Jump to content

Noob question... how to bank?

Recommended Posts

5 minutes ago, jiggerjaw said:

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


I've imported bank, this doesnt work?

Not every location has a bank booth.

Link to comment
Share on other sites

20 minutes ago, jiggerjaw said:

Ha, shoulda been more specific... the bank opens perfectly fine, it doesn't deposit.  Guess it could be that it's trying to deposit before the bank is open, I'll try that.  Thanks Jugs

*How do I give +Rep?  I clicked the check mark and nothing happened

Yes, in your snippet you are sleeping for 0-100ms, not exactly long enough for the bank to open, especially if your player has to walk there first.

If you use getBank().open() it will sleep until the bank is open, so something like this should work:


if (!getBank().isOpen()) {
} else {


1 hour ago, Hydra said:

Bank booths are an RS2Object, not an Entity,

also you might want to do a != null check.

RS2Object is a subinterface of Entity, so what he wrote is fine:


  • Like 3
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.

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