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.

Walk to Bank and Banking method

Featured Replies

Hi,

 

Is there any good Walk to Bank and Banking method?

 

Could not really find a good example / snippet.

 

Many thanks,

Prolax

Get area of bank and walk to it, to open bank use this

 

getBank().open();

 

Edit::

 

The api has a number of bank areas already

Edited by Aibanker

If !area.contains (myPosition()){

Getwalking.webWalk (BANK_POSITION);

} else {

If !getbank ().isOpen () {

Getbank().open;

//ConditionalSleep @return getbank.isopen

} else {

//Handle banking.

}

}

Wrote this on mobile.

http://osbot.org/forum/topic/100862-bank-closest-to-entity/  that will get the closest bank to your player, or you can hardcode one in instead either way.

 

and then once you have that you can do:

if(!currentBank.contains(myPlayer().getPosition()){
getWalking().webWalk(currentBank);
} else {
if(!getBank().isOpen()){
getBank().open();
new ConditionalSleep(2500, 3000){
@Override
public boolean condition(){
return getBank().isOpen();
}
}.sleep();
} else {
//withdraw stuff etc.

}
}

Edited by LoudPacks

  • Author

Thanks for the replies, I'll add this to my script this evening.

 

Will post the full script once it's done.

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.