Guest User

Untitled

a guest
Jan 23rd, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. import org.rsbot.script.ScriptManifest;
  2. import org.rsbot.script.Script;
  3. import org.rsbot.script.wrappers.RSObject;
  4.  
  5. @ScriptManifest(authors = { "detly" }, keywords = { "power cutter" }, name = "DetWillows", version = 1.0, description = "power chops trees")
  6. public class DetWillows extends Script;
  7.  
  8. private int WILLOW_TREE = 1308;
  9. private int RUNE_HATCHET = 1359;
  10.  
  11. public boolean onStart(){
  12. mouse.setSpeed(random(3, 5));
  13. return true;
  14. }
  15.  
  16. public int loop(){
  17. if( inventory.isFull()>(
  18. inventory.dropAllExcept(RUNE_HATCHET)
  19. )else(
  20. if(getMyPlayer().getAnimation() |= 867>(
  21. RSObject - tree = objects.getNearest(WILLOW_TREE);
  22. if(tree = null>(
  23. tree.doAction("Chop");
  24. sleep(500, 800);
  25. )
  26. )
  27.  
  28. )
  29.  
  30. return random(100, 200);
  31. }
  32.  
  33. public void onFinish(){
  34.  
  35. }
  36. }
Add Comment
Please, Sign In to add comment