abouhanafy87 4 Share Posted March 4, 2021 private void walkto(Area tt){ Tile myplayert = getLocalPlayer().getTile(); Tile next = new Tile(); next.setX(Calculations.random(myplayert.getX(),tt.getRandomTile().getX())); next.setY(Calculations.random(myplayert.getY(),tt.getRandomTile().getY())); if(Walking.canWalk(next)){ Walking.clickTileOnMinimap(next); log(next.getX()); log("/t y ="); log(next.getY()); }else { Walking.walk(Walking.getClosestTileOnMap(next)); log(next.getX()); log("/t y ="); log(next.getY()); } sleep(500,5000); } Link to comment Share on other sites More sharing options...
Damian666 4 Share Posted March 4, 2021 What exactly are you trying to do? Link to comment Share on other sites More sharing options...
abouhanafy87 4 Author Share Posted May 31, 2021 i want to walk randomly . make method like Walking.walk Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.