Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void chopTree()
- {
- if (myTreeArea.contains(getMyPlayer().getLocation())){
- if(getMyPlayer().getAnimation() != -1 && !getMyPlayer().isMoving())
- {
- RSObject tree = objects.getNearest(currentTreeID);
- if(tree != null)
- {
- tree.doAction("Chop down");
- sleep(2000);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement