Resolved Banking method bug

Discussion in 'Client & Site Support' started by khaldrogo420, Mar 30, 2015.

  1. 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.
     
  2. Best Answer:
    Post #2 by Cloud, Mar 30, 2015
  3. Miss clicks are inevitable, I recommend just handling that specific situation within your code.
     
  4. I have now :), using:

    Code (Text):
    1.     private void checkCollection() {
    2.         InterfaceComponent collectionBox = Interfaces.getAt(402, 2, 11);
    3.         if (collectionBox != null) {
    4.             if (collectionBox.isValid() && collectionBox.isVisible()) {
    5.                 collectionBox.interact("Close");
    6.                 Execution.delayUntil(() -> !collectionBox.isVisible(), 800, 1200);
    7.             }
    8.         }
    9.     }
     
  5. 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 bot that banks.
     
  6. Hmm okay.
     

Share This Page

Loading...