Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. package CashCows;
  2.  
  3. import CashCows.node.Attack;
  4. import CashCows.node.Banking;
  5. import CashCows.node.Traverse;
  6. import org.rspeer.runetek.api.movement.position.Area;
  7. import org.rspeer.runetek.api.movement.position.Position;
  8. import org.rspeer.script.ScriptMeta;
  9. import org.rspeer.script.ScriptCategory;
  10. import org.rspeer.script.task.Task;
  11. import org.rspeer.script.task.TaskScript;
  12.  
  13. @ScriptMeta(name = "Sweti's Cash Cows", desc = "Kills cows in east Lumby, banks hides", developer = "Sweti Yeti", category = ScriptCategory.COMBAT)
  14. public class CashCows extends TaskScript {
  15.  
  16. private static final Task[] TASKS = { new Traverse(), new Attack(), new Banking()};
  17.  
  18. public static final Area BANK_AREA_STAIRS = Area.rectangular(3206, 3209, 3205, 3208);//stairs in Lumby castle
  19. public static final Area BANK_AREA = Area.rectangular(3207, 3221, 3210, 3215, 2); //actual bank area
  20. public static final Area COW_AREA = Area.rectangular(3265, 3255, 3255, 3296);
  21. public static final Area COW_FIGHT_AREA = Area.polygonal(
  22. new Position[] {
  23. new Position(3253, 3255, 0),
  24. new Position(3266, 3255, 0),
  25. new Position(3266, 3297, 0),
  26. new Position(3261, 3299, 0),
  27. new Position(3241, 3299, 0),
  28. new Position(3240, 3296, 0),
  29. new Position(3242, 3294, 0),
  30. new Position(3242, 3289, 0),
  31. new Position(3240, 3286, 0),
  32. new Position(3244, 3281, 0),
  33. new Position(3248, 3278, 0),
  34. new Position(3251, 3278, 0),
  35. new Position(3251, 3275, 0),
  36. new Position(3253, 3272, 0),
  37. new Position(3253, 3255, 0)
  38. }
  39. );
  40.  
  41. public static String cowName = "Cow";
  42. public static String hideName = "Cowhide";
  43.  
  44. @Override
  45. public void onStart() {
  46. submit(TASKS);
  47. }
  48.  
  49. @Override
  50. public void onStop() {
  51. //When the script is stopped the segment of code in this method will be ran once.
  52. }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement