Guest User

Untitled

a guest
Jul 21st, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. import java.awt.*;
  2. import java.util.*;
  3.  
  4. import org.rsbot.script.*;
  5. import org.rsbot.script.wrappers.RSObject;
  6.  
  7. import org.rsbot.event.listeners.PaintListener;
  8. import org.rsbot.event.listeners.ServerMessageListener;
  9. import org.rsbot.event.events.ServerMessageEvent;
  10.  
  11. @ScriptManifest(authors = { "Spart" }, category = "woodcutting", name = "NoobWcer", version = 1.00, description = "Script description here.")
  12.  
  13. public class NoobWcer extends Script implements PaintListener, ServerMessageListener {
  14.  
  15. private final ScriptManifest properties = getClass().getAnnotation(ScriptManifest.class);
  16.  
  17. public int [] tree = {5553, 5551, 5552};
  18. public int [] axe = { 1351, 1349, 1353, 1361, 1355, 1357, 1359, 6739, 13470 };
  19.  
  20.  
  21.  
  22. public boolean chop() {
  23. RSObject willow = getNearestObjectByID (tree);
  24. if(tree != null){
  25. atObject (willow, "chop");
  26. return true;
  27. }
  28. if (tree == null);{
  29. return false;
  30. }
  31. return true;
  32. }
  33.  
  34.  
  35. public boolean onStart(Map<String, String> args) {
  36. log("noobwcer has begun");
  37. return true;
  38. }
  39. }
Add Comment
Please, Sign In to add comment