johnw1 1 Share Posted July 15, 2015 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 More sharing options...
Computor 178 Author Share Posted July 15, 2015 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 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 More sharing options...
ishyfishy 5 Share Posted July 16, 2015 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 More sharing options...
Computor 178 Author Share Posted July 16, 2015 good to know! I can implement that but having a video that lays out how everything works is still good I will be making one soon! Link to comment Share on other sites More sharing options...
Fran 99 Share Posted July 16, 2015 Great job buddy. Nice contribuition to the community. Link to comment Share on other sites More sharing options...
Polish Civil 90 Share Posted July 16, 2015 (edited) 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 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 July 16, 2015 by Polish Civil Link to comment Share on other sites More sharing options...
Zawy 938 Share Posted July 17, 2015 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 More sharing options...
Polish Civil 90 Share Posted July 17, 2015 (edited) 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. Edited July 17, 2015 by Polish Civil Link to comment Share on other sites More sharing options...
Zawy 938 Share Posted July 17, 2015 Because scripts are boring i need to feed my brain with something more constructive. Link to comment Share on other sites More sharing options...
Cardozz 46 Share Posted August 1, 2015 (edited) 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)! Edited August 1, 2015 by Cardozz Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now