January 24, 20197 yr 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, 20197 yr by Nor3g
January 24, 20197 yr Author 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.
January 24, 20197 yr 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
Create an account or sign in to comment