Guest User

Untitled

a guest
Jun 22nd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. import java.awt.event.KeyEvent;
  2. import com.speljohan.rsbot.script.wrappers.RSNPC;
  3. import com.speljohan.rsbot.script.wrappers.RSTile;
  4. import java.util.*;
  5. import com.speljohan.rsbot.accessors.NPC;
  6. import com.speljohan.rsbot.bot.Bot;
  7. import com.speljohan.rsbot.script.*;
  8. import com.speljohan.rsbot.script.wrappers.RSObject;
  9.  
  10. public class ArzinianMiner extends Script{
  11.  
  12. //Variables\\
  13. public int[] GoldRocks = {2098,2099,5989,34976,34977};
  14. public int[] Pickaxe = {1265,11265,1269,1273,1271,1275};
  15. public int[] Helmet = {4567};
  16. public int[] Animation = {624,6752};
  17. public int[] GoldOre = {444};
  18. public int[] DwarvenBoatman = {1845};
  19. public int[] DondakanTheDwarf = {1836};
  20.  
  21. //Paths\\
  22. public RSTile [] cannonToDeposit = new RSTile[] {new RSTile (2824,10171), new RSTile(2835,10168), new RSTile (2839,10162), new RSTile(2860,10164), new RSTile(2870,10167)};
  23. public RSTile [] depositToCannon = reversePath(cannonToDeposit);
  24.  
  25. public String getName(){
  26. return "Kingsley's Arzinian Miner";
  27. }
  28. public String getAuthor(){
  29. return "Kingsley";
  30. }
  31. public String getScriptCategory(){
  32. return "Mining";
  33. }
  34. public double getVersion(){
  35. return 1.0;
  36. }
  37. public boolean onStart(Map<String, String> args) {
  38.  
  39. return true;
  40. }
  41. public void onFinish(){
  42.  
  43. return;
  44. }
  45.  
  46. public int loop() {
  47. final RSNPC DondakanTheDwarf = getNearestNPCByID(1836);
  48. if (DondakanTheDwarf == null) {
  49. }
  50. atNPC(DondakanTheDwarf, "Fire-into-rock");
  51.  
  52. return random(500, 700);
  53. }
  54. }
Add Comment
Please, Sign In to add comment