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
  • walking() method issue


    kamilo

    Recommended Posts

    I've noticed my script get's stuck while walking to a tile (which is very close), lets say 1 tile away. And the walking() method keeps spamming that tile on the minimap

     

    is there a way to walk to a tile manually (without the minimap), i've encountered this before too; if you're standing a tile away from ur target destination tile, the bot will spam the minimap, and the player wont move

     

    so i wish to add a condition lets say if the distance to tile is 1, the walk to that tile WITHOUT using the minimap. 

     

    suggestions?

    Link to comment
    Share on other sites

    Is it spamming the tile because it's unreachable? Or not going to the exact tile you want? 

    If it's because it's unreachable, add a threshold:

    if (getLocalPlayer().distance(tile) > 1) {
     getWalking().walk(tile); 
    }

    If it's because it's not going to the exact tile use:

    getWalking().walkExact(tile);

     

    Link to comment
    Share on other sites

    2 hours ago, Bunnybun said:

    Is it spamming the tile because it's unreachable? Or not going to the exact tile you want? 

    If it's because it's unreachable, add a threshold:

    
    if (getLocalPlayer().distance(tile) > 1) {
     getWalking().walk(tile); 
    }

    If it's because it's not going to the exact tile use:

    
    getWalking().walkExact(tile);

     

    alright ill try the exact method, it just stands next to the tile and keeps clicking on the minimap without moving

    its a random glitch doesn't happen often, just sometimes

    Link to comment
    Share on other sites

    If you don't wish to use the minimap to walk and the tile is visible on the screen you can use this too:

    if (getMap().isTileOnScreen(tile) && getMap().isVisible(tile)) {
    	getWalking().walkOnScreen(tile);
    } 

     

    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.