PDA

View Full Version : SRL fails to detect whether the bankscreen is open or not



Reflector
01-19-2014, 11:54 PM
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


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??

Coh3n
01-20-2014, 04:56 AM
That seems odd. Ashaman88; will probably be able to help. :)

Ashaman88
01-20-2014, 04:58 AM
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

The Mayor
01-20-2014, 05:13 AM
Could have moved the bankscreen interface from the old school default?