Results 1 to 7 of 7

Thread: After a couple hours of running, BankScreen.Open doesn't work...

  1. #1
    Join Date
    Aug 2014
    Posts
    58
    Mentioned
    0 Post(s)
    Quoted
    30 Post(s)

    Default After a couple hours of running, BankScreen.Open doesn't work...

    After 8-9 hours of botting, the SMART client is re-started due to 6 hour fix and then a few mins later I get this bug where the code won't recognize the bankscreen to be open even though it is open...Any ideas why? I have a long delay before the statement:

    bankScreen.clickButton(BANK_BUTTON_PRESET_1);

    but it says bank screen isn't open....Why would it say that even though the screen is open? Like I said, this only happens after code has been running for 8 hours+
    Error is:

    -- ERROR: bankScreen.clickButton(): Unable to click button since bankscreen isn't open

  2. #2
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Is that treasure box thing open? (The one with the keys)

  3. #3
    Join Date
    Aug 2014
    Posts
    58
    Mentioned
    0 Post(s)
    Quoted
    30 Post(s)

    Default

    No, it is closed...I find it really weird because I have other bots that do the same after a while of running and something like a teleport resets and fixes the glitch so that is my current fix for this...Not sure if someone else experienced this.

  4. #4
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    bankScreen.isOpen has a lot of problems for me. Sometimes it doesn't recognize that it's open, so I had to create my own bankIsOpen function.

  5. #5
    Join Date
    Jun 2014
    Location
    Lithuania
    Posts
    475
    Mentioned
    27 Post(s)
    Quoted
    200 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    bankScreen.isOpen has a lot of problems for me. Sometimes it doesn't recognize that it's open, so I had to create my own bankIsOpen function.
    It just kills my bots too, can i have a snippet plz?

  6. #6
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Quote Originally Posted by cosmasjdz View Post
    It just kills my bots too, can i have a snippet plz?
    Simba Code:
    function bankIsOpen:Boolean;
    var
      TPA:TPointArray;
      t:TPoint;
    begin
      colorSetting(2, 0.01, 0.61);
      SetLength(TPA, 0);
      FindColorsSpiralTolerance(T.y,T.y,TPA,307678,IntToBox(225,17,380,30), 7)
      Result := Length(TPA) > 20;
      colorSetting(2, 0.20, 0.20);
    end;

    Simba Code:
    if bankIsOpen then...

  7. #7
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •