Skip 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.

BankWithdraw(...)

Featured Replies

So lately ive been having a problem with withdrawing a certain item that isn't in view, when the bank is open. I heard around the forum of other people having this same issue. But finally i got a solution.

			if (client.getBank().isOpen()){
			if (client.getBank().contains(Bucket))	{
			client.getBank().scrollToSlot(client.getBank().getSlotForId(Bucket));
			client.getBank().withdraw5(Bucket);
			sleep(3000);
				}
			}

or for even a shorter code:

			int B = this.client.getBank().getSlotForId(Bucket);
            if (client.getBank().isOpen()){
            if (client.getBank().contains(Bucket))    {
            client.getBank().scrollToSlot(B);
            client.getBank().withdraw5(Bucket);
            sleep(3000);
                }
            }

Edited by josedpay

  • Author

I think the admins should just fix the method as it is broken, but this works, too.

the withdraw method use to work fine before.

nice done. but as there are multiple ways to do so. i dont think the admins will use it.

 

  • Author

nice done. but as there are multiple ways to do so. i dont think the admins will use it.

This isnt really for the admin, it just to help out Scripters  that are having troubling withdrawing items 

Simple fix to this would be for botters to put item in top half of there bank :)

  • Author

Simple fix to this would be for botters to put item in top half of there bank smile.png

i was thinking about that, and i thought i should try to find a fix before i do that. it didnt even take me that long.

I would personally use something more like this:

public boolean withdraw(int itemId, int quantity) throws InterruptedException
{
	if (!getBank().isOpen())
		return false;
	
	int slotId = getBank().getSlotForId(itemId);

	// getSlotForId returns -1 if the item is unavailable
	if (slotId == -1)
		return false;

	if (!getBank().isSlotVisible(slotId))
		getBank().scrollToSlot(slotId);

	return getBank().withdrawX(itemId, quantity);
}

Edited by bfir3

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.