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
  • [Video Tutorial Series] | Dreambot Scripting | Request scripting tutorials here.


    Computor

    Recommended Posts

    Nice, can you make a video on adding GUIs to scripts? (ex. time ran, showing logs as status, etc)

     

    Adding a simple paint is pretty easy actually -

     

    @Override
    	public void onPaint(Graphics2D g){
    			g.drawString("Run time: " + rt.formatTime(), 5, 65);
    			g.drawString("Logs chopped: " + chopped, 5, 80);
    	}
        private Timer rt = new Timer();
    	private int chopped = 0;
    
    @Override
        public void onMessage(Message m) {
        	if (m.getMessage().contains("You get some logs.")) {
        		chopped++;
        	}
        }
    
    
    and make sure you import

     

    import org.dreambot.api.utilities.Timer;
    import org.dreambot.api.wrappers.widgets.message.Message;
    import java.awt.Graphics2D;
    
    Link to comment
    Share on other sites

    10 years later, job interview:

     

     - What languages do you know?

     - Dreambot API.

     

    I'm not saying its bad. But there shouldn't be any 'tutorial' of scripting, just good documentation. [imho]

     

    And pls 'package BasicWoodcutter;'

     

     

    dat sexy voice

     

     

     

    alt+insert

    ctrl alt v,c,f

    ctrl alt m

    Notice how at the beginning of the video I start off by saying "This shouldn't be your intro into java". I already had that point in mind. This isn't a java tutorial, just to try and help noobs out :D

    Can I add you on skype? I really want to learn to script.

    jeff.dreambot I won't do private session, unless you pay me, but I'll make a tutorial if you want!

    Nice, can you make a video on adding GUIs to scripts? (ex. time ran, showing logs as status, etc)

    I sure can!!

    Link to comment
    Share on other sites

     

    Adding a simple paint is pretty easy actually -

     

    @Override
    	public void onPaint(Graphics2D g){
    			g.drawString("Run time: " + rt.formatTime(), 5, 65);
    			g.drawString("Logs chopped: " + chopped, 5, 80);
    	}
        private Timer rt = new Timer();
    	private int chopped = 0;
    
    @Override
        public void onMessage(Message m) {
        	if (m.getMessage().contains("You get some logs.")) {
        		chopped++;
        	}
        }
    
    
    and make sure you import

     

    import org.dreambot.api.utilities.Timer;
    import org.dreambot.api.wrappers.widgets.message.Message;
    import java.awt.Graphics2D;
    

    good to know! I can implement that but having a video that lays out how everything works is still good :)

    Link to comment
    Share on other sites

    gr8 woddcutter m8

     

    In many ways, knowing how to use an API is all java really is. Java itself is an API, amirite?

     

    I think video tutorials are a good start. It would be an even better start if we can focus on teaching valuable programming practices through these tutorials to generate better future programmers.

     

    It's important to teach how to do something, but even more important to teach WHY to do something.

     

     

     

     

    pls porish, api's r for losers. make ur own swing or jfx caus i no u use dat api

     

    Its important to show how to use it, not trying to teach it.

    "Java itself is an API" lol wut? For wizard coders probably but not for newcomers.

    How to script on dreambot should be this way:

    Learn how2java -> then actually show how to use api

    and by how to use api i mean show what classes do, what they store, what we should expect after using it.

     

    Because if ppl start learning from scripting only we end up with scripts that are not stable and detectable, we dont want that kek.

    Notice how at the beginning of the video I start off by saying "This shouldn't be your intro into java". I already had that point in mind. This isn't a java tutorial, just to try and help noobs out :D

    jeff.dreambot I won't do private session, unless you pay me, but I'll make a tutorial if you want!

    I sure can!!

    Ye ikr, you shoulda post some random java tutorials and tell dem noobs to take look at them first! peace

     

    Ikr im bitching about nothing, i just want to have better scripts :C

    Edited by Polish Civil
    Link to comment
    Share on other sites

    Its important to show how to use it, not trying to teach it.

    "Java itself is an API" lol wut? For wizard coders probably but not for newcomers.

    How to script on dreambot should be this way:

    Learn how2java -> then actually show how to use api

    and by how to use api i mean show what classes do, what they store, what we should expect after using it.

     

    Because if ppl start learning from scripting only we end up with scripts that are not stable and detectable, we dont want that kek.

    Ye ikr, you shoulda post some random java tutorials and tell dem noobs to take look at them first! peace

     

    Ikr im bitching about nothing, i just want to have better scripts :C

    Why don't you release some scripts? You are online every day.

    Link to comment
    Share on other sites

    Why don't you release some scripts? You are online every day.

     

    Because scripts are boring i need to feed my brain with something more constructive.

     

    are-you-guilty-of-been-there-done-that-h

    Edited by Polish Civil
    Link to comment
    Share on other sites

    • 2 weeks later...

    I would love to see a simple script where you'll explain the handling of JavaFX gui and make it a base of an AIO-script using the State-framework (because Node framework AIO tutorial is already here)! <3

    Edited by Cardozz
    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
    ×
    ×
    • 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.