Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Script launches but does nothing [SOLVED]

Featured Replies

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

  • 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.

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

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.