kamilo 7 Posted July 18, 2020 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?
Bunnybun 181 Posted July 18, 2020 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);
kamilo 7 Author Posted July 19, 2020 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
tammyt 0 Posted July 19, 2020 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); }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.