Guest User

Untitled

a guest
Jan 12th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. import java.avt.color;
  2. import org.rsbot.script.Script;
  3. import org.rsbot.script.wrappers.*;
  4. import org.rsbot.script.wrappers.rsobject;
  5.  
  6. @scriptmanifest(authors = {"sante60"}, keywords = {"mining, coal, argounge, 99"}, name = "imine", description = "mines some ores", version = 1.0))
  7. public class imine extends Script {
  8.  
  9. int[] coalrockID = (2096, 2097);
  10. int[] pickaxeID = (1265, 1267, 1269, 1271, 1273, 1275, 14099, 14107, 15259);
  11.  
  12. @override
  13. public boolean onStart() {
  14. log(color.GREEN, "welcome to imine.");
  15. log(color.CYAN, "visit my thread for more updates");
  16. return true;
  17. }
  18.  
  19. @override
  20. public int loop() {
  21. if (!inventory.isfull()) {
  22. if (players.getmyplayer().getanimation() == -1) }
  23. RSobject rock = objects.getnearest(coalrockID);
  24. if (rock != null) {
  25. rock.doaction("mine");
  26. }
  27. return random(500, 1500);
  28. }
  29.  
  30. @override
  31. public void onfinish() {
  32. log(color.PINK, "thanks for using me!");
  33. }
  34. }
Add Comment
Please, Sign In to add comment