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


    kamilo
     Share

    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

    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.