Guest User

Untitled

a guest
Aug 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. import org.rsbot.script.ScriptManifest;
  2. import org.rsbot.script.Script;
  3.  
  4. import org.rsbot.script.wrappers.RSObject;
  5. import org.rsbot.script.wrappers.RSTile;
  6. import org.rsbot.script.wrappers.RSArea;
  7.  
  8. @ScriptManifest(authors = { "ZGP93" }, keywords = { "Miner, Banker" }, name = "ZGP93's Varrock East Miner and Banker", version = 1.0, description = "Mines Everything in the East Mine near varrock.")
  9. public class ZGP93Miner extends Script {
  10.  
  11. private final int[] pickaxeIDs = { 1265, 1275, 1271, 1269, 1273 };
  12. private int[] rockIDs = { 11956, 11959, 11957, 11961, 11960 };
  13.  
  14. private RSTile[] walkingPath = { new RSTile(3285, 3366),
  15. new RSTile(3287, 3368), new RSTile(3292, 3387),
  16. new RSTile(3292, 3394), new RSTile(3290, 3400),
  17. new RSTile(3290, 3406), new RSTile(3287, 3412),
  18. new RSTile(3287, 3368), new RSTile(3284, 3424),
  19. new RSTile(3276, 3428), new RSTile(3262, 3429),
  20. new RSTile(3253, 3420) };
  21. private RSArea bankArea = new RSArea(new RSTile(3250, 3419), new RSTile(
  22. 3257, 3423));
  23. private RSArea miningArea = new RSArea(new RSTile(3280, 3361), new RSTile(
  24. 3290, 3371));
  25.  
  26. public boolean onStart() {
  27. mouse.setSpeed(random(4, 7));
  28. return true;
  29. }
  30.  
  31. public int loop() {
  32. if (inventory.isFull()) {
  33. if (bankArea.contains(getMyPlayer().getLocation())) {
  34. if (!bank.isOpen()) {
  35. bank.open();
  36. return random(500, 700);
  37. }
  38. }
  39. }
  40. return 0;
  41. }
  42. }
Add Comment
Please, Sign In to add comment