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.

How to handle banking?

Featured Replies

hello, i recently started writing scripts after having a huge interest in them since i was a kid, and since i started taking programming in school i am starting to understand the basics.

 

so far after following tutorials i made a sardine fisher that could pretty much only drop the whole inventory and stop. what i want to work on is making a fly-fisher that banks exclusively at edgeville. as i type now i should be able to code the actual fishing, but banking.. i just have no idea how to approach it (how would i walk to the bank? open it? only deposit trout/salmon?) any advice or tutorials to point me in the right direction would be really appreciated!

  • Author

Walking: walking.webWalk(Bank.EDGEVILLE);

Opening: bank.open();

Deposit: bank.depositAllExcept("Fly fishing rod", "Feather");

 

something like this -> http://prntscr.com/ak56m3 ? or am i completely in the wrong direction?

 

edit: the getState() was fucked in the beginning but i fixed it

Edited by snowek

something like this -> http://prntscr.com/ak56m3 ? or am i completely in the wrong direction?

 

edit: the getState() was fucked in the beginning but i fixed it

uhh not sure about this but wasn't a fishing spot an npc?

So it'd be NPC fishSpot = getNpcs().closest("Fishing spot") 

check however im not entirely sure lol

uhh not sure about this but wasn't a fishing spot an npc?

So it'd be NPC fishSpot = getNpcs().closest("Fishing spot") 

check however im not entirely sure lol

You´re correct.

something like this -> http://prntscr.com/ak56m3 ? or am i completely in the wrong direction?

 

edit: the getState() was fucked in the beginning but i fixed it

 

Something like that yes, but you should account for cases where walking fails, or opening the bank fails etc. etc.

 

You will also want to sleep when opening the bank to avoid spam clicking. So something more like this:

private void bank(){
    if(!Banks.EDGEVILLE.cotains(myPosition())) getWalking().webWalk(Banks.EDGEVILLE);
    else if(!getBank().isOpen()) openBank();
    else getBank().depositAllExcept("Fly fishing rod", "Feather");
}

private void openBank(){
    getBank().open();
    new ConditionalSleep(5000) {
        @Override
        public boolean condition() throws InterruptedException {
            return getBank().isOpen();
        }
    }.sleep();
}

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.