Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved Banking method bug

Joined
Feb 27, 2015
Messages
5
Sometimes when using the Bank.open() api method it accidentally clicks the 'Collect' option on the bank booth in 07scape, and doesn't close the window.
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
Miss clicks are inevitable, I recommend just handling that specific situation within your code.
 
Joined
Feb 27, 2015
Messages
5
I have now :), using:

Code:
    private void checkCollection() {
        InterfaceComponent collectionBox = Interfaces.getAt(402, 2, 11);
        if (collectionBox != null) {
            if (collectionBox.isValid() && collectionBox.isVisible()) {
                collectionBox.interact("Close");
                Execution.delayUntil(() -> !collectionBox.isVisible(), 800, 1200);
            }
        }
    }
 
Author of MaxiBots
Joined
Dec 3, 2013
Messages
6,770
Hmm @Cloud i think this should actually be handled via the interface closer or as a separate game event solver as this is going to be a problem for every script that banks.
 
Top