Jump to content

Interacting with bank in OSBot 2


todamach

Recommended Posts

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
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...