-- TRSBankscreen.__openBankBooth() -- TRSBankscreen.__openBankBooth() result = False
TRSBankscreen.__openBankBooth() keeps failing, even when the bank booth is on screen
-- TRSBankscreen.__openBankBooth()
-- TRSBankscreen.__openBankBooth() result = False
90% of the time it'll fail.
Code:
Simba Code:
function openBank: boolean;
Var
clicked, open: boolean;
begin
result:=false;
case random(50) of
1..10: clicked:=bankscreen.open(BANK_NPC_GREY);
11..50: clicked:=bankscreen.open(BANK_BOOTH);
end;
open:=bankscreen.isOpen(2500);
if(clicked) and (open) then
result:=true;
end;
function doBanking: boolean;
begin
result:= false;
if(openBank) then
begin
case USER_BANKPRESET of
1: bankscreen.clickButton(BANK_BUTTON_PRESET_1);
2: bankscreen.clickButton(BANK_BUTTON_PRESET_2);
end;
bankscreen.close();
if(not bankscreen.isOpen(2500)) then
if(TabBackpack.isItemInSlot(1)) then
exit(true);
end
else
//errorOut(2, 'doBanking');
end;
Using the NPC works perfectly fine.
I'm at Falador Bank, here's a pic:
http://i.gyazo.com/827b0c0965253d9f66f6327443995abd.png