Guest User

Untitled

a guest
Oct 22nd, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. import org.rsbot.script.*;
  2. import org.rsbot.script.wrappers.*;
  3.  
  4. @ScriptManifest(authors = {"Matt"}, keywords = {"monk fish piscatoris"}, name = "Powerminer", description = "Monk fisher", version = 1)
  5.  
  6. public class Powerminer extends Script{
  7. int [] ironRockID = {37309, 37307, 37308, 14851, 14850, 2092, 2093};
  8. int
  9. [] pickaxe = {1265, 1267, 1269, 1271, 1273, 1275, 14099, 14107, 15259};
  10.  
  11.  
  12. @Override
  13. public boolean onStart() {
  14. return true;
  15. }
  16.  
  17. public int loop() {
  18. if (!inventory.isFull()) {
  19. if (players.getMyPlayer().getAnimation() == -1) {
  20. RSObject rock = objects.getNearest(ironRockID);
  21. if (rock != null) {
  22. rock.doAction("Mine");
  23. }
  24. }
  25. }
  26. if (inventory.isFull()){
  27. inventory.dropAllExcept(pickaxe);
  28. }
  29. return random(500, 1500);
  30. }
  31.  
  32. @Override
  33. public void onFinish() {
  34. }
  35.  
  36. }
Add Comment
Please, Sign In to add comment