Jump to content

mushbam

Members
  • Posts

    3
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

mushbam's Achievements

Newbie

Newbie (1/10)

1

Reputation

  1. EDIT: Thanks for everyones help, fixed.
  2. thanks for your help, ill try and fix those things you've mentioned.
  3. I'be been trying to make a very basic power miner, it works alright so far the only problem being that the script clicks on multiple rocks even with one interaction code line? i think it has something to so with how the interact method works but it looks very in-human clicking on different rocks running all over the place when i just want it to click on one rock in the MINE enum. private State getState() { RS2Object tinRocks = objects.closest(7485); if(!myPlayer().isAnimating() && !myPlayer().isMoving()) if (tinRocks != null) if (inventory.isFull()) { return State.DROP; } else { tinRocks.interact("Mine"); return State.MINE; } return State.WAIT; } @[member=Override] public int onLoop() throws InterruptedException { switch (getState()) { case MINE: log("(1) Selecting Rock"); RS2Object currentRock = objects.closest("Rocks"); sleepB(250); log("(1) Finshed Selecting Rock"); log(currentRock.getGridX() +" " +currentRock.getGridY()); log("(2) Mining.."); currentRock.interact("Mine"); sleepB(1500); log("(2) Done Mining."); sleepB(2000); break; case DROP: inventory.dropAll(); break; case WAIT: break; } return random(200, 300); } Can anyone help? thanks.
×
×
  • Create New...