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.

Can someone show me the proper way to bank and withdraw my items?

Featured Replies

This is what i am using to bank and withdraw my items, it works but i know its not the proper way. 

This is what i use :

 

 	if (chestArea.contains(myPosition()) & !getBank().isOpen() & !getInventory().contains(bankItems)) {
    		getObjects().closest("Bank chest").interact("Use");
                new ConditionalSleep(5000) { 						// If in bank area and bank isnt open and inventory contains -
				 public boolean condition() {						// certain items, open the bank.
                      return getBank().isOpen(); }
                  }.sleep();}

    	else
    		log("Banking");
                 
                  if (getBank().contains(amuletFilter)) {					//If the bank contains amulet then -
                	  bank.depositAll();									// deposit everything
                	  inventItems.forEach((e) -> bank.withdraw(e, 1));		// withdraw my array of items	
                	  getBank().withdraw(amuletFilter, 1);					// withdraw amulet
                	  getBank().withdraw(duelRing, 1);						// withdraw ring
                	  if (!getEquipment().isWearingItem(EquipmentSlot.RING, "Ring of wealth")) { 		// if im not wearing a ring of wealth then
                		  getBank().withdraw(ringOfWealth, 1);											// withdraw a ring of wealth aswell as the other items
                	  }
                	    getBank().close();									//close the bank
                	} else {
                	    log("Out of supplies!");     						//else if any of that is not possible, stop script.
                	    stop();
                	}

 

You want to check if your the bank contains your players position in a separate if statement, so you can else it with a walk to bank function and nest the isopen() check inside that.

if(bank.contains(myPlayer())){

    if(bank.isopen()){

        depositall();

    }

    else

        openbank();

}

else

    walktobank();

 

also for withdrawing items I would just type the string of the item name, unless you have a reason for it? 

getBank().withdraw("Ring of dueling", 1);

Edited by Cloxygen

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.