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.

Interacting with bank in OSBot 2

Featured Replies

This used to work:

RS2Object bank = closestObjectForName("Bank booth");
	if (bank != null) {
		if (bank.interact("Bank")) {
			while (!client.getBank().isOpen())
				sleep(250);
			client.getBank().depositAll();
		}
	}

AFAIC RS2Object is obsolete in v2. So I change it to Object. But interact is obsolete too. How to fix it?

 

Thanks.

Edited by todamach

Entity bankBooth = objects.closest("Bank booth");

if (bankBooth != null)

bankBooth.interact("Bank");

This is what is giving you problem

RS2Object bank = closestObjectForName("Bank booth");

Osbot 2 doesn't have closestObjectForName()

Osbot 2 uses

objects.closest("bank booth");

RS2Object is obsolete in v2. So I change it to Object.

:facep:

 

Entity bankBooth = objects.closest("Bank booth");

if (bankBooth != null)
    bankBooth.interact("Bank");

That won't work in half the RS banks.

RS2Object objects = objects.closest("bank booth");


if (bankBooth != null)
bankBooth.interact("Bank");

Who says this wouldnt work

Edited by josedpay

RS2Object objects = objects.closest("bank booth");


if (bankBooth != null)
bankBooth.interact("Bank");

Who says this wouldnt work

 

If won't work if it's a closed bank booth.

If won't work if it's a closed bank booth.

im not trying to spoon feed them, Im only supplying the basics.

im not trying to spoon feed them, Im only supplying the basics.

If you're trying to supply the basics you should at least mention it wouldn't work in all cases instead of saying 

Who says this wouldnt work

 
			client.getBank().depositAll();

also using :

bank.depositAll();

is quicker :)

facep.gif

 

That won't work in half the RS banks.

No shit, you think I'm going to write it all for him? I learned through trial and error, worked for me. doge.png

Edited by Eliot

  • Author

Guys, calm your tits rolleyes.gif  I suck at java in general, and now it's whole new API, so I'm confused more than usual. 

 

Since, I don't like creating new thread for every small question (or should I do that?), I'll ask here:
 
			if(East[i].contains(ore) && canReach(ore)){
				
			}

I want to check if area contains entity, and if I can reach that entity. Obviously, I don't know how to use canReach. So, how to use canReach?

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.