Nor3g Posted January 24, 2019 Share Posted January 24, 2019 (edited) import org.osbot.rs07.api.map.constants.Banks; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.utility.ConditionalSleep; import java.util.function.BooleanSupplier; import java.awt.*; @ScriptManifest(name = "Muler", author = "Nor3g", info = "Trynna holla at the m00le", version = 0.1, logo = "") public final class Muler extends Script { @Override public final int onLoop() throws InterruptedException { bank(); return random(150, 200); } private void bank() throws InterruptedException { if (!Banks.VARROCK_WEST.contains(myPosition())) { getWalking().webWalk(Banks.VARROCK_WEST); log("Walking to V WB"); } else if (!getBank().isOpen()) { log("Opening bank"); getBank().open(); } else if (!getInventory().isEmptyExcept("Raw swordfish")) { getBank().depositAll(); } else if (getBank().contains("Raw swordfish")) { getBank().withdrawAll("Raw swordfish"); } else { stop(true); } } } I'm trying to make a script that walks to Varrock West Bank, but when I run it, starting in lumbridge, it doesn't do anything. Can someone explain what is wrong? The log doesn't tell me anything other than that the script started. Thanks Edited January 24, 2019 by Nor3g Quote Link to comment Share on other sites More sharing options...
Spider Scripts Posted January 24, 2019 Share Posted January 24, 2019 can you show the logger? Quote Link to comment Share on other sites More sharing options...
Nor3g Posted January 24, 2019 Author Share Posted January 24, 2019 15 minutes ago, Spider said: can you show the logger? Nevermind, I fixed it. Thank you for taking the time regardless. It was because I didn't compile it as "Artifact" in IntelliJ. The code works super. Quote Link to comment Share on other sites More sharing options...
Spider Scripts Posted January 24, 2019 Share Posted January 24, 2019 4 hours ago, Nor3g said: Nevermind, I fixed it. Thank you for taking the time regardless. It was because I didn't compile it as "Artifact" in IntelliJ. The code works super. awesome, no worries Quote Link to comment Share on other sites More sharing options...