SRL Archive - RS3 Help

SRL fails to detect whether the bankscreen is open or not


Reflector

2014-01-19 18:54:06

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

2014-01-19 23:56:06

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

Ashaman88

2014-01-19 23:58:39

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

2014-01-20 00:13:35

Could have moved the bankscreen interface from the old school default?