Jump to content

hariake

Members
  • Posts

    10
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by hariake

  1. Doesnt seem to drop the hammer after repairing the struts
  2. Great script, running on 4 accs atm, already seeing shit like rune sets and plenty of rune 2h-s/scimmys being picked up
  3. Question, what ever way i do mining. The bot keeps clicking on different ores. How to stop the clicking after bot has started mining and until he has mined the ore?
  4. Ive triple checked all spellings, nothing seems wrong. Are you sure there cant be any other causes, script finds the rocks and cycles throgh them all but never clicking on them. Edit: nvm my bad its actually just "mine" not "mine-from"
  5. import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; @ScriptManifest(author = "You", info = "My first script", name = "Power Miner", version = 0, logo = "") public class main extends Script { @@OverRideCwalk public void onStart() { log("gonna mine"); } private enum State { MINE, DROP, WAIT }; private State getState() { Entity Rocks = objects.closest("Rocks"); if (!inventory.isEmpty()) return State.DROP; if (Rocks != null) return State.MINE; return State.WAIT; } @@OverRideCwalk public int onLoop() throws InterruptedException { switch (getState()) { case MINE: Entity Rocks = objects.closest("Rocks"); if (Rocks != null) { Rocks.interact("Mine-from"); } break; case DROP: inventory.dropAll(); break; case WAIT: sleep(random(500, 700)); break; } return random(200, 300); } @@OverRideCwalk public void onExit() { log("mining done"); } @@OverRideCwalk public void onPaint(Graphics2D g) { } } only hovers over rocks doesnt actually mine
×
×
  • Create New...