Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.rsbot.script.*;
- import org.rsbot.script.wrappers.*;
- @ScriptManifest(authors = {"Matt"}, keywords = {"monk fish piscatoris"}, name = "Powerminer", description = "Monk fisher", version = 1)
- public class Powerminer extends Script{
- int [] ironRockID = {37309, 37307, 37308, 14851, 14850, 2092, 2093};
- int
- [] pickaxe = {1265, 1267, 1269, 1271, 1273, 1275, 14099, 14107, 15259};
- @Override
- public boolean onStart() {
- return true;
- }
- public int loop() {
- if (!inventory.isFull()) {
- if (players.getMyPlayer().getAnimation() == -1) {
- RSObject rock = objects.getNearest(ironRockID);
- if (rock != null) {
- rock.doAction("Mine");
- }
- }
- }
- if (inventory.isFull()){
- inventory.dropAllExcept(pickaxe);
- }
- return random(500, 1500);
- }
- @Override
- public void onFinish() {
- }
- }
Add Comment
Please, Sign In to add comment