DtohhM8 4 Share Posted September 17, 2019 My walking method looks like this: public void walkToTile(Tile area) { getWalking().walk(area); sleepUntil(() -> !getLocalPlayer().isMoving() && !getLocalPlayer().isAnimating(), 60000 * 60); // 1 Hour time limit of travel } Inside of Rellekka, there is the Rock Crab area. The sleeping Rock Crabs do not wake up after a certain length of time of you being there unless you run out of the area and back in. When I try to use my method like so: walkToTile(new Tile(2659, 3677, 0)); // Walk out of area walkToTile(new Tile(2673, 3716, 0)); // Walk back into area It clicks to the first Tile, then clicks straight to the second one without waiting to arrive at the first Tile. I tried to change my method to: public void walkToTile(Tile area) { getWalking().walk(area); sleepUntil(() -> getLocalPlayer().getTile().equals(area), 60000 * 60); // 1 Hour time limit of travel } But this causes no click to be made to the Tile what so ever and the player to just stand still. How can I get my script to wait until the player has arrived at the Tile it is walking to? Link to comment Share on other sites More sharing options...
NovaGTX 106 Share Posted September 17, 2019 sleepUntil(()-> getWalking().getDestinationDistance() == 0, Calculations.random(30000, 60000)); Link to comment Share on other sites More sharing options...
Nuclear Nezz 2040 Share Posted September 17, 2019 Walk doesn't sleep, it calculates the next tile, clicks, and returns. You can sleep on your own by checking your destination distance. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.