Jump to content

Script launches but does nothing [SOLVED]


Nor3g

Recommended Posts

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 by Nor3g
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...