Guest User

Untitled

a guest
Jul 19th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1.  
  2. public boolean atPlace() {
  3.  
  4. if(distanceTo(new RSTile(3162, 3490)) <= 2) {
  5.  
  6. return true;
  7. }
  8.  
  9. if (distanceTo(getDestination()) < random(1, 5)) {
  10. if (!walkTileMM(new RSTile(3162, 3490))) {
  11. walkTo(new RSTile(3162, 3490));
  12.  
  13. } else {
  14.  
  15. return false;
  16.  
  17. }
  18. }
  19. return false;
  20. }
Add Comment
Please, Sign In to add comment