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
  • Try asking for help in the chatbox
  • How to do i set a delay for the dismissSolver?


    pokemonhuang
     Share

    Recommended Posts

    35 minutes ago, Infidel said:

    Disable the solver, create a array of the ids of the random npcs you wish to handle, if random appears is on screen (random.isOnScreen()) - set system.currenttimemillis, after timer reached, interact with npc.

     

    Edit: if there is a better way, share it. Would be interested in seeing how others do it.

    Good idea, I will build further on your solution.

    You can extend the above and use the Timer class in dreambot. Here is an example on how to use it:

    Timer timer = new Timer(2000); //Set the runtime for the timer to be 2 seconds
    while (!timer.finished()) {
      System.out.println(timer.formatTime()); //Print out the current timer time
      MethodProvider.sleep(1000); //Sleep 1 second
    }
    
    //This will be printed out after 2 seconds has passed
    System.out.println("Timer finished");

     

    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
     Share

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