Advertisement
Guest User

Untitled

a guest
May 26th, 2015
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. package Main;
  2.  
  3. import View.UI;
  4. import data.Tree;
  5. import org.parabot.environment.scripts.Category;
  6. import org.parabot.environment.scripts.Script;
  7. import org.parabot.environment.scripts.ScriptManifest;
  8. import org.parabot.environment.scripts.framework.LoopTask;
  9. import org.parabot.environment.scripts.framework.Strategy;
  10. import strategies.Banking;
  11. import strategies.Function;
  12. import strategies.Normal;
  13. import strategies.Walker;
  14.  
  15. import java.util.ArrayList;
  16. import java.util.List;
  17.  
  18.  
  19. @ScriptManifest(author = "LordgMage",
  20. category = Category.WOODCUTTING,
  21. description = "Cuts trees",
  22. name = "LordWood",
  23. servers = {"Ikov"},
  24. version = 1.0)
  25.  
  26. public class LordWood extends Script implements LoopTask {
  27.  
  28. private final List<Function> functionList = new ArrayList<>();
  29. private static ArrayList<Strategy> strategies = new ArrayList<>();
  30.  
  31. public static boolean start;
  32. public static Tree tree;
  33.  
  34.  
  35. public boolean onExecute() {
  36. new UI();
  37. functionList.add(new Normal());
  38. functionList.add(new Banking());
  39. functionList.add(new Walker());
  40. return true;
  41. }
  42.  
  43. @Override
  44. public int loop() {
  45. if (start) {
  46. for (Function function : functionList){
  47. if (function.isValid()){
  48. function.execute();
  49. }
  50. }
  51. }
  52. return 0;
  53. }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement