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
  • wait till player is standing still


    Kirito

    Recommended Posts

    So i'm using walk() but i also say what tiles it needs to use but i cant use sleep(int) coz it instantly clicks so i'm in need that it clicks once the player is standing still :/

    Link to comment
    Share on other sites

    //This function lets you walk to the location and then waits untill the player is standing still (With a timeout of 10 seconds)
    private boolean walkToLocation(Tile tile) {
        sleepUntil(()->getWalking().walk(tile), 5000);
        sleepUntil(()->getLocalPlayer().isStandingStill(), 10000);
        return true;
    }
    
    sleepUntil(()->walkToLocation(new Tile(X, Y, Z)), 10001);
    

    That should do the trick. This is just basic programming though.

     

    diNh's answer is better

    Link to comment
    Share on other sites

    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.