abouhanafy87 1 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 (edited) What exactly are you trying to do? Edited March 4, 2021 by Damian666 Link to comment Share on other sites More sharing options...
abouhanafy87 1 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
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 accountSign in
Already have an account? Sign in here.
Sign In Now