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
  • Is there a way to set a break from the code?


    greekhaima

    Recommended Posts

    Is there a way to set a break from the code?

     

    I used to use sleep to break, but not that disconnects from dreambot and stops the script:

     

    5:52:25 AM: [ERROR] There was an issue connecting to our servers

    Link to comment
    Share on other sites

    @MaximusPrimothanks but that was not the question. You can't set a time to sleep at night and that break also has issues like if in combat sometimes it will keep trying to break, or the character might die because it just went on a break.

     

    Im looking to take a break from the script programically 

    Link to comment
    Share on other sites

    • 3 weeks later...
    • 1 month later...
        private void toggleLogin(boolean enable){
            if(enable)
                getRandomManager().enableSolver("Login Handler");
            else
                getRandomManager().disableSolver("Login Handler");
        }

    then when it's break time just toggleLogin(false)

    when its time to resume toggleLogin(true)

    I know it's a little late but I just got here today, hope this helps someone.

    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.