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.

Bank pin solver not working

Featured Replies

I'm trying to debug my script.

getBank.open()

log("next step")

This is my entire script, its located in the "loop" section.

The script clicks on the banker, opens the PIN interface then, the log comes up. After some time I get

Script exeecutor is taking too long to suspend; restarting now...." "Shutting down script background executors"

Then the bank pin solver starts and CORRECTLY ENTERS THE PIN. Followed by

"Terminated script my script"

 

I can't for the life of me figure out what the heck is happening. The back pin solver is "working" but will never work while my script is running.

when I wait for  the bank to open, the solver never comes up.

Does anyone know what is happening here? I have also tried a conditional wait for the bank to be open and I get similar strange behavior. Thanks!

Edited by driedApricots

  • Author

Another strange thing is happening.

If I have the following

getBank().open();
log("Test1");
sleep(10000);//Ten seconds
log("Test2");

both log messages appear immediately. Followed by the random solver starting.

Edited by driedApricots

Use this:

    public boolean sleeped(String text, int timeout, BooleanSupplier condition) {
        return new ConditionalSleep(timeout) {
            @Override
            public boolean condition() throws InterruptedException {
                return condition.getAsBoolean();
            }
        }.sleep();
    }

 

 

and in your script:

 

if (getBank().isOpen()) {
log("Bank is currently open");
return random(800, 1400);
}
log("Attempting to open bank...");
if (!getBank().open()) {
log("...didn't open bank, try again...");
return random(800, 1400);
}
boolean didSucceed = sleeped("Wait up to 10s for bank to open", 10000, () -> getBank().isOpen();
if (!didSucceed) {
log("Waited the whole 10 seconds and bank didn't open...");
return 600;
}
log("Bank successfully opened");
return 600;
 

  • 1 month later...

I figured out what was happening. The main method of my script was throwing an interrupt exception presumably from the random solver. Handing the interrupt or disabling the random solver both worked.

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.