Guest User

Untitled

a guest
Jul 19th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. import java.util.Map;
  2.  
  3. import org.rsbot.script.Script;
  4. import org.rsbot.script.ScriptManifest;
  5. import org.rsbot.script.wrappers.RSObject;
  6. import java.awt.Graphics;
  7. import java.awt.Color;
  8. import org.rsbot.event.listeners.PaintListener;
  9. import org.rsbot.script.Constants;
  10.  
  11. @ScriptManifest(authors = { "WtfClawed" }, category = "Woodcutting", name = "WtfWillows", version = 1.00, description = "<html><head><body><h2>" + "Rapes Logs")
  12.  
  13.  
  14. public class WtfWillows extends Script{
  15.  
  16. public int[] Willow = {5551,5552};
  17. public int WoodcuttingAnimation = 867; //
  18. public int[] Hatchet = {1351, 1353, 1355, 1357, 1359}; //
  19.  
  20.  
  21. public int loop() {
  22.  
  23. if(getMyPlayer().isMoving()){
  24. return 800;
  25. }
  26.  
  27. if(getMyPlayer().isMoving()){
  28. return 800;
  29. }
  30. if(getMyPlayer().getAnimation() == WoodcuttingAnimation){
  31. return 800;
  32. }
  33. //If the loop has gotten this far, we know we are not already
  34. //Woodcutting Willows and We know we are not moving, therefore
  35. //it is safe to Woodcut
  36.  
  37. if(isInventoryFull()){
  38. dropAllExcept(Hatchet);
  39. return 800;
  40. }
  41.  
  42. //if we have gotten here, this means all of the above comments,
  43. //and our inventory is not full. This means it's perfect to
  44. //Woodcut.
  45.  
  46. RSObject WillowTree = findObject(Willow);
  47. if(WillowTree == null){
  48. return 800;
  49. }
  50.  
  51. atObject(WillowTree, "Chop down");
  52.  
  53. return 300;
  54. }
  55. }
Add Comment
Please, Sign In to add comment