Jump to content

Bank chest help!


imancity

Recommended Posts

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

 

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 :(

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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