Resolved Banking method bug

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

  1. khaldrogo420

    Joined:
    Feb 27, 2015
    Messages:
    5
    Likes Received:
    0
    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. Cloud

    Cloud The Developer

    Joined:
    Jul 28, 2013
    Messages:
    2,329
    Likes Received:
    757
    Miss clicks are inevitable, I recommend just handling that specific situation within your code.
     
  4. khaldrogo420

    Joined:
    Feb 27, 2015
    Messages:
    5
    Likes Received:
    0
    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. Aidden

    Aidden The better executive ;)

    Joined:
    Dec 3, 2013
    Messages:
    3,286
    Likes Received:
    665
    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. Cloud

    Cloud The Developer

    Joined:
    Jul 28, 2013
    Messages:
    2,329
    Likes Received:
    757
    Hmm okay.
     

Share This Page

Loading...