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
  • Programmatically schedule/start a Break


    Lifeinvader

    Recommended Posts

    Posted

    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!

    Posted

    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);
    }
    
    Posted

     

    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);

    Posted

    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);
    
    Posted

    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.

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • 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.