Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.rsbot.script.ScriptManifest;
- import org.rsbot.script.Script;
- import org.rsbot.script.wrappers.RSObject;
- import org.rsbot.script.wrappers.RSTile;
- import org.rsbot.script.wrappers.RSArea;
- @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.")
- public class ZGP93Miner extends Script {
- private final int[] pickaxeIDs = { 1265, 1275, 1271, 1269, 1273 };
- private int[] rockIDs = { 11956, 11959, 11957, 11961, 11960 };
- private RSTile[] walkingPath = { new RSTile(3285, 3366),
- new RSTile(3287, 3368), new RSTile(3292, 3387),
- new RSTile(3292, 3394), new RSTile(3290, 3400),
- new RSTile(3290, 3406), new RSTile(3287, 3412),
- new RSTile(3287, 3368), new RSTile(3284, 3424),
- new RSTile(3276, 3428), new RSTile(3262, 3429),
- new RSTile(3253, 3420) };
- private RSArea bankArea = new RSArea(new RSTile(3250, 3419), new RSTile(
- 3257, 3423));
- private RSArea miningArea = new RSArea(new RSTile(3280, 3361), new RSTile(
- 3290, 3371));
- public boolean onStart() {
- mouse.setSpeed(random(4, 7));
- return true;
- }
- public int loop() {
- if (inventory.isFull()) {
- if (bankArea.contains(getMyPlayer().getLocation())) {
- if (!bank.isOpen()) {
- bank.open();
- return random(500, 700);
- }
- }
- }
- return 0;
- }
- }
Add Comment
Please, Sign In to add comment