Lifeinvader 1 Posted July 20, 2016 Something I really miss is to start/schedule a break that is handled in the same manner as the one provided by the client settings itself. For instance you have put something on Grand Exchange and you would like the account to check Grand Exchange every min-max minutes. At the moment you have to keep the account logged on and wait until this time has been reached, which is not that great in many ways. If there is already a possiblity in the current API, feel free to link me to it!
Calculus 30 Posted July 20, 2016 What's so bad about writing your own method for it? void pauseScript(){ getTabs().logout(); Timer t = new Timer(Calculations.random(600000, 900000)); //Sleeps 10-15 minutes while(t.remaining() > 0) sleep(100); }
Lifeinvader 1 Author Posted July 20, 2016 What's so bad about writing your own method for it? void pauseScript(){ getTabs().logout(); Timer t = new Timer(Calculations.random(600000, 900000)); //Sleeps 10-15 minutes while(t.remaining() > 0) sleep(100); } Wouldn't the inbuilt RANDOM_SOLVER log the account straight back in after you logged it out? since there is a script still active? And in your snippet you could just do sleep(Calculations.random(1000 * 60 * 10, 1000 * 60 * 15);
Calculus 30 Posted July 20, 2016 Wouldn't the inbuilt RANDOM_SOLVER log the account straight back in after you logged it out? since there is a script still active? And in your snippet you could just do sleep(Calculations.random(1000 * 60 * 10, 1000 * 60 * 15); I put the integers in for a reason, those calculations look like trash. getRandomManager().disableSolver(RandomEvent.LOGIN); getRandomManager().enableSolver(RandomEvent.LOGIN);
Lifeinvader 1 Author Posted July 20, 2016 Okay this would be a solution to have custom breaks, however my preference goes to an API method. Which only make sense, because I'm sure I'm not the only one implementing some kind of break in their script.. But this will do for now.
Hopewelljnj 46 Posted July 21, 2016 Did you try any of this? I haven't played around with it myself but it could work... i think http://dreambot.org/javadocs/org/dreambot/api/randoms/BreakSolver.html
Recommended Posts
Archived
This topic is now archived and is closed to further replies.