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.

Method to open bank

Featured Replies

Apparently opening the bank is missing/broken in the current OsBot API, so I just wanted to share you guys the method.

It's HIGHLY likely you will find simliar things in released scripts.

 

 

  final int[] BANK_IDS = { 1604, 2213 };   /**     * Opens the nearby bank     * @throws InterruptedException     */    private void openBank() throws InterruptedException {        if (!client.getBank().isOpen()) {            for (int bank : BANK_IDS) {                if (canReach(script.closestObject(bank)) && closestObject(bank) != null) {                    selectEntityOption(closestObject(bank), "Bank", "Bank booth");                } else {                    //wandelenNaarBank();                    log("Can't find the bank!");                }            }        } else            log("Bank is already open");    }  

Edited by Articron

void openBank() {        RS2Object bank = closestObject(BANK_ID);        if (bank != null && bank.getPosition().distance(client.getMyPlayer().getPosition()) <= 8) {             client.moveCameraToEntity(bank);            selectEntityOption(bank, true, "Bank");            sleep(random(1000, 1500));             if(client.getBank().isOpen()) {                state = State.BANKING;            }         } else {            log("Cannot find bank or is not close enough.");        }    }

lol if it's "broken or missing in the api" how are you using the api to do it? this is the api...

lol if it's "broken or missing in the api" how are you using the api to do it? this is the api...

Are you being serious?

By the way OP, nothing is broken or missing... the bank class involves interacting with an open bank. Selectentityoption is just one line of code that opens the bank. Doesn't really get simpler.

Guest
This topic is now closed to further replies.

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.