xabdullahx Posted June 19, 2016 Share Posted June 19, 2016 (edited) Tutorial island completer v1.0 Have a new account, start bot, select what you want in the GUI, click start Features: - Reliable - Gives random appearance - Can be started anywhere (but must be close to npc) - Can train at chickens or walk to GE when done. - Paint with runtime and settings will be shown Bugs: - There might be a bug in what happens after tutorial island (it's not thoroughly tested tbh) Please request additional features Download: http://www79.zippyshare.com/v/qGgDGu5Z/file.html Instructions: Go to C:\Users\YourUserName\OSBot\Scripts, place the .jar in there, start bot Edited June 19, 2016 by xabdullahx 8 Quote Link to comment Share on other sites More sharing options...
Aiban Posted June 19, 2016 Share Posted June 19, 2016 Nice release people will love this! Quote Link to comment Share on other sites More sharing options...
xabdullahx Posted June 19, 2016 Author Share Posted June 19, 2016 Nice release people will love this! Thank you ! I am excited to see what people think of this Quote Link to comment Share on other sites More sharing options...
Muffins Posted June 19, 2016 Share Posted June 19, 2016 You might want to remove the actual .jar of osbot from your build, the script should only be like 100kb max, not 5mb :p Quote Link to comment Share on other sites More sharing options...
xabdullahx Posted June 19, 2016 Author Share Posted June 19, 2016 You might want to remove the actual .jar of osbot from your build, the script should only be like 100kb max, not 5mb :p You are right Done, if anyone downloaded the script, please download again 1 Quote Link to comment Share on other sites More sharing options...
Harry Posted June 19, 2016 Share Posted June 19, 2016 Very nice, reading through the code, it looks nice. :- ) 1 Quote Link to comment Share on other sites More sharing options...
razel Posted June 19, 2016 Share Posted June 19, 2016 great release Quote Link to comment Share on other sites More sharing options...
xabdullahx Posted June 19, 2016 Author Share Posted June 19, 2016 (edited) Very nice, reading through the code, it looks nice. :- ) I think the structure i came up with, works pretty nice, its easy to add new functions, debug errors, and i pretty much have control of everything that happens all the time. It is inspired by the Task structure The gui stuff is a bit messy, it was added quickly, minutes before release Edited June 19, 2016 by xabdullahx Quote Link to comment Share on other sites More sharing options...
Auron Posted June 19, 2016 Share Posted June 19, 2016 Dude I'm literally developing a VERY similar thing hahaha. At the moment it does exactly this. I'm planning on adding loads of other things though Good job with the tut island, I know how annoying it can be. Quote Link to comment Share on other sites More sharing options...
xabdullahx Posted June 19, 2016 Author Share Posted June 19, 2016 Dude I'm literally developing a VERY similar thing hahaha. At the moment it does exactly this. I'm planning on adding loads of other things though Good job with the tut island, I know how annoying it can be. Hehe, well, it's a good start to learning the osbot API, unfortunately, some methods do not work as intended in tutorial island. If you need help, i can provide it Quote Link to comment Share on other sites More sharing options...
Sean Posted June 19, 2016 Share Posted June 19, 2016 Testing this now. Looks awesome Quote Link to comment Share on other sites More sharing options...
Auron Posted June 19, 2016 Share Posted June 19, 2016 Hehe, well, it's a good start to learning the osbot API, unfortunately, some methods do not work as intended in tutorial island. If you need help, i can provide it Haha, yeah man I know all your troubles. Thanks for the offer, but I've finished now lol. But it would be good to hear your opinion on some things. In particular clicking continue on interactions, wow that was fun to get around. Also I noticed the way your of deciding which step you were on is a bit hacky. I used the progression bar widget to see which step I was on. Here's my method: private int getState() { for (int i = 1; i < 21; i++) { if (s.widgets.get(371, i) != null && s.widgets.get(371, i).getTextColor() == 0) { if (debug) s.log("Getting state" + (i - 1)); return i - 1; } } return -1; } Quote Link to comment Share on other sites More sharing options...
xabdullahx Posted June 19, 2016 Author Share Posted June 19, 2016 Testing this now. Looks awesome Great ! Cant wait to hear what you think. Also, make sure to download the latest version, i've updated it just now Haha, yeah man I know all your troubles. Thanks for the offer, but I've finished now lol. But it would be good to hear your opinion on some things. In particular clicking continue on interactions, wow that was fun to get around. Also I noticed the way your of deciding which step you were on is a bit hacky. I used the progression bar widget to see which step I was on. Here's my method: private int getState() { for (int i = 1; i < 21; i++) { if (s.widgets.get(371, i) != null && s.widgets.get(371, i).getTextColor() == 0) { if (debug) s.log("Getting state" + (i - 1)); return i - 1; } } return -1; } Using the progress bar is a good idea, when i started the bot, i didnt know about widgets and what they could do. so, instead, i look for npcs around me and determine where i am. Progressbar is definitely a good way to do it! I made these two methods for checking if "click here to continue" is available: public boolean getPendingContinuation(){ return getScript().getWidgets().get(231,2) != null || getScript().getWidgets().get(193,2) != null || getScript().getWidgets().get(217,2) != null || getScript().getWidgets().get(229,1) != null || getScript().getWidgets().get(11,3) != null; } public boolean getOtherPendingContinuation(){ return getScript().getWidgets().get(162,33) != null; } Also, these methods, i made before knowing that i could check getMessage to see if it contains the text i want ("click here to continue"). But they work great, and is a great way around getDialogue.getPendingContinuation(). The getOtherPendingContinuation() detects that other message that has bold text and the click here to continue is a bit further up Quote Link to comment Share on other sites More sharing options...
Explv Posted June 19, 2016 Share Posted June 19, 2016 Haha, yeah man I know all your troubles. Thanks for the offer, but I've finished now lol. But it would be good to hear your opinion on some things. In particular clicking continue on interactions, wow that was fun to get around. Also I noticed the way your of deciding which step you were on is a bit hacky. I used the progression bar widget to see which step I was on. Here's my method: private int getState() { for (int i = 1; i < 21; i++) { if (s.widgets.get(371, i) != null && s.widgets.get(371, i).getTextColor() == 0) { if (debug) s.log("Getting state" + (i - 1)); return i - 1; } } return -1; } The best way to determine progress is using configs. There is a config for every quest including Tutorial Island. The value of that config changes for each stage of the quest. So your code would just look like: switch (getConfigs().get(SOME_CONFIG_ID)) { case 0: // do something break; case 10: // do something else break; } 1 Quote Link to comment Share on other sites More sharing options...
Auron Posted June 19, 2016 Share Posted June 19, 2016 The best way to determine progress is using configs. There is a config for every quest including Tutorial Island. The value of that config changes for each stage of the quest. So your code would just look like: switch (getConfigs().get(SOME_CONFIG_ID)) { case 0: // do something break; case 10: // do something else break; } Yeah I saw that comment on your tutorial island thread, but by that time I already had the Widget thing, and I thought it was pretty inventive so I stuck with. Basically the same thing so works either way :P the progression bar more than likely works off those configs. Don't take this away from me Explv D: Quote Link to comment Share on other sites More sharing options...