Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int loop() {
- if (InventoryContains(pickId)) {
- if (distanceTo(new RSTile(3286, 3368)) > 10) {
- walkTo(new RSTile(3286, 3368));
- status = "Walking";
- return 500;
- }
- if (isInventoryFull()) {
- status = "Dropping";
- dropAllExcept(pickId);
- return 500;
- }
- RSObject iron = getNearestObjectByID(ironId);
- if (iron == null) {
- return 500;
- }
- atObject(iron, "Mine");
- status = "Mining";
- return 2500;
- }
- else{
- if (distanceTo(new RSTile(3253, 3421)) > 5) {
- walkTo(new RSTile(3253, 3421));
- status = "Walking";
- return 500;
- }
- }
- }
Add Comment
Please, Sign In to add comment