Jump to content

Bank chest help!


Recommended Posts

Posted (edited)

Traditional banking using RS2Object.

RS2Object bankBooth = objects.closest("Bank booth"); //Create an RS2Object looking for "Bank booth"
if (bankBooth != null) { //Null check
if (bankBooth.interact("Bank")) { //If the action was successful (true)
sleep(600); //sleep
//bank is open...
}
}

Improved way to open the bank using the Bank API

if (!getBank().isOpen()){ //If the bank is not open
getBank().open(); //Opens bank chests, booths, etc.
//sleep
} else {
//Bank is open..do something
}
Edited by Sinatra
  • Like 1
Posted

 

Traditional banking using RS2Object.

RS2Object bankBooth = objects.closest("Bank booth"); //Create an RS2Object looking for "Bank booth"
if (bankBooth != null) { //Null check
if (bankBooth.interact("Bank")) { //If the action was successful (true)
sleep(600); //sleep
//bank is open...
}
}

Improved way to open the bank using the Bank API

if (!getBank().isOpen()){ //If the bank is not open
getBank().open(); //Opens bank chests, booths, etc.
//sleep
} else {
//Bank is open..do something
}

 

 

Thank you!! Worked perfect. Any chance you're online atm and would be willing to look over my script over PM? I got it to do 80% of what I want, but one part is stumping me :(

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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