Results 1 to 4 of 4

Thread: SRL fails to detect whether the bankscreen is open or not

  1. #1
    Join Date
    Jan 2014
    Location
    Error: Data Unavailable
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    12 Post(s)

    Default SRL fails to detect whether the bankscreen is open or not

    Like the title says I guess.. I am writing a script and the banking function is the only buggy one... I use bankscreen.open and it opens the bank find but bankscreen.quickdeposit fails with the error saying that it failed to find the bankscreen/bankscreen isn't open. Is this a known issue or am I doing something wrong?? This is my banking function btw

    Simba Code:
    function Bank: Boolean;
    begin
        bankScreen.open(BANK_NPC_GREY);
        if not bankScreen.isOpen then wait(randomRange(randomRange(50, 100), 200));
            wait(randomRange(randomRange(50, 100), 200));
        if (bankScreen.isOpen) then bankScreen.quickDeposit(QUICK_DEPOSIT_INVENTORY);
        wait(randomRange(randomRange(50, 100), 200));
        if (bankScreen.isOpen) then bankScreen.close();
    end;

    EDIT: I found out why (it was because of chatbox.getxp by ashaman88) but why does it fail if the xp counter is not found??
    Last edited by Reflector; 01-20-2014 at 12:43 AM.

  2. #2
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    That seems odd. @Ashaman88; will probably be able to help.

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

    Default

    Show me more of the script I can't tell from that, but the getxp wouldn't do anything to the bankscreen functions, also you don't need to check for .isopen everytime. each of those functions check for it within themselves

  4. #4
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 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
  •