Kirito 5 Posted December 4, 2016 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 :/
Scrivus 172 Posted December 4, 2016 //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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.