Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
  • Need help with some basic scripting qeustions#stuck


    ikiddoi
     Share

    Recommended Posts

    Hey most people know me from discord never did any formal introduction, but i wanted to pick up rs scripting so i can move to android app building. So i had like a realy good plan for the vacation(learning java) so i started reading headfirst java and watched like youtube vids 1week passed by and felt like i didnt learn anything  :wacko:

     

    So i reset myself to learn again bc i still think scripting is fun and building app is my goal:

    so i was reading how to learn java etc and found this video:

     

    https://www.youtube.com/watch?v=00RxteR1oGQ.

     

    my qeustion is what tools do i need to learn to make a rs script for ex. a simple fishing bot or a simple woodcutter that cuts in wcguild bc.

     

    My plan was re-reading the headfirst book and applying it in a simple script.

     

    tl;dr stuck learning java need some tips to move foward stil fun to learn.

     

    kind regards ikiddoi :ph34r:

    Link to comment
    Share on other sites

    The easiest way to get started (assuming you have a basic understand of programming) would be to follow a tutorial here on the site. There is a lot that will be taught in books and general programming tutorials that is not relevant to making a script using the dreambot API. I'll post a link to a few tutorials that you can do that will leave you with a working script example. The only tool you need is to download intellij or eclipse. Those are both IDEs (integrated development environment) that support Java. They are both free and either will work.

     

    https://dreambot.org/forums/index.php/topic/628-scripting-tutorial-in-depth-no-prior-knowledge-needed-where-to-get-started-by-apaec/

     

    https://dreambot.org/forums/index.php/topic/8530-scripting-101/

     

    https://dreambot.org/forums/index.php/topic/10549-scripting-explained-basic-woodcutter-open-source/

     

    https://dreambot.org/forums/index.php/topic/3556-dreamlickers-video-tutorials/

     

    Any of the above tutorials should get you a working example. I recommend doing all of them.

    Edited by distraction
    Link to comment
    Share on other sites

    Hey most people know me from discord never did any formal introduction, but i wanted to pick up rs scripting so i can move to android app building. So i had like a realy good plan for the vacation(learning java) so i started reading headfirst java and watched like youtube vids 1week passed by and felt like i didnt learn anything  :wacko:

     

    So i reset myself to learn again bc i still think scripting is fun and building app is my goal:

    so i was reading how to learn java etc and found this video:

     

    https://www.youtube.com/watch?v=00RxteR1oGQ.

     

    my qeustion is what tools do i need to learn to make a rs script for ex. a simple fishing bot or a simple woodcutter that cuts in wcguild bc.

     

    My plan was re-reading the headfirst book and applying it in a simple script.

     

    tl;dr stuck learning java need some tips to move foward stil fun to learn.

     

    kind regards ikiddoi :ph34r:

    Like the above post from dinh, I learned Java by just writing it. I started learning Java about 2 years ago and had no background either. The core aspect of why I know Java fairly well now is just because I like programming and I think it's great fun. So what i'd suggest is read the full (yes it's quite big, but fun!) Java basics from Oracle (https://docs.oracle.com/javase/tutorial/java/) and then just begin writing. If you get stuck, ask others for help and learn from it. That's basically how I grew and learned the language.

     

    When you know the basics of Java, you can take some sort of courses at Tutorialspoint (Google it). Very fun to do also and very educative. 

     

    Edit: and oh, what i forgot to mention is that programming is often nothing more than logically writing down steps. Think about the steps you need to undertake to accomplish something. Let's take the woodcutting script for example.

     

    In a WC script you want:

    1. To have an empty inventory, or empty inventory slots;
    2. Have the specified tree nearby when you want to cut;
    3. Bank the logs if you have a full inventory;
    4. Walk back to the trees and repeat the process.

    Of course you can add / delete steps the way you like. You then just write out the steps one by one and optimize the combination. Writing these steps one by one get more complicated when you have a more complex script, but basically this is what i always do when i write scripts. Not to mention that I go crazy often if I have complex steps to think about lol.

     

    Anyway, the most satisfying thing about programming is that there are a thousand ways to write the same script (result wise). This means that you can learn and adapt your coding to the way you like and which way you are comfortable with.

    Edited by Cardozz
    Link to comment
    Share on other sites

    Here's a great course I really recommend http://mooc.fi/courses/2013/programming-part-1/material.html. You don't have to complete the whole course, but try to learn enough to grasp the very basics. Once you know the very basics you can try to learn how to script. Learning how to make scripts is basically just trial and error until you understand how to form the logic of the script. 

    Link to comment
    Share on other sites

    learning by doing&troubleshooting and not learning by reading xd

    what would you suggest me to make? besides making some complex script

    Like the above post from dinh, I learned Java by just writing it. I started learning Java about 2 years ago and had no background either. The core aspect of why I know Java fairly well now is just because I like programming and I think it's great fun. So what i'd suggest is read the full (yes it's quite big, but fun!) Java basics from Oracle (https://docs.oracle.com/javase/tutorial/java/) and then just begin writing. If you get stuck, ask others for help and learn from it. That's basically how I grew and learned the language.

     

    When you know the basics of Java, you can take some sort of courses at Tutorialspoint (Google it). Very fun to do also and very educative. 

     

    Edit: and oh, what i forgot to mention is that programming is often nothing more than logically writing down steps. Think about the steps you need to undertake to accomplish something. Let's take the woodcutting script for example.

     

    In a WC script you want:

    1. To have an empty inventory, or empty inventory slots;
    2. Have the specified tree nearby when you want to cut;
    3. Bank the logs if you have a full inventory;
    4. Walk back to the trees and repeat the process.

    Of course you can add / delete steps the way you like. You then just write out the steps one by one and optimize the combination. Writing these steps one by one get more complicated when you have a more complex script, but basically this is what i always do when i write scripts. Not to mention that I go crazy often if I have complex steps to think about lol.

     

    Anyway, the most satisfying thing about programming is that there are a thousand ways to write the same script (result wise). This means that you can learn and adapt your coding to the way you like and which way you are comfortable with.

    Wow ty for the tips :D i have a lot of material already but lack reallife practice but yeah im just gonna re-read the book and do exercises after that, but ty for you comment!

    The easiest way to get started (assuming you have a basic understand of programming) would be to follow a tutorial here on the site. There is a lot that will be taught in books and general programming tutorials that is not relevant to making a script using the dreambot API. I'll post a link to a few tutorials that you can do that will leave you with a working script example. The only tool you need is to download intellij or eclipse. Those are both IDEs (integrated development environment) that support Java. They are both free and either will work.

     

    https://dreambot.org/forums/index.php/topic/628-scripting-tutorial-in-depth-no-prior-knowledge-needed-where-to-get-started-by-apaec/

     

    https://dreambot.org/forums/index.php/topic/8530-scripting-101/

     

    https://dreambot.org/forums/index.php/topic/10549-scripting-explained-basic-woodcutter-open-source/

     

    https://dreambot.org/forums/index.php/topic/3556-dreamlickers-video-tutorials/

     

    Any of the above tutorials should get you a working example. I recommend doing all of them.

    i did like dreamlickers guide ended up destroying my GUI i mostly read all of them and understanded there logic but i think i just lack brainpower atm since he used advanced java(java that i didnt learn yet) so i probably should try and practice more i dont expect to learn java in 10mins this like huge project for my vacation.

    Here's a great course I really recommend http://mooc.fi/courses/2013/programming-part-1/material.html. You don't have to complete the whole course, but try to learn enough to grasp the very basics. Once you know the very basics you can try to learn how to script. Learning how to make scripts is basically just trial and error until you understand how to form the logic of the script. 

    Ty for your resource i will look in to it i have like tons of youtube tutorials.

    for anyone wondering im learning on those sites atm but they are quiet hard:

    https://www.hackerrank.com/domains/java/java-introduction

    http://codingbat.com/java

    http://www.w3resource.com/java-exercises/basic/index.php

     

    open to suggestion practice sites

    Link to comment
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
     Share

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.