1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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 Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    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 Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,606
    Likes Received:
    990
    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 Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    Hmm okay.
     

Share This Page

Loading...