Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1.     public void chopTree()
  2.     {
  3.         if (myTreeArea.contains(getMyPlayer().getLocation())){
  4.            
  5.             if(getMyPlayer().getAnimation() != -1 && !getMyPlayer().isMoving())
  6.             {
  7.                 RSObject tree = objects.getNearest(currentTreeID);
  8.                 if(tree != null)
  9.                 {
  10.                     tree.doAction("Chop down");
  11.                     sleep(2000);
  12.                 }
  13.             }
  14.         }
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement