YoHoJo
2011-12-03 21:00:38
So openbank is like this:
As you can see it basically chooses a random open bank function for given bank.
Problem is that THREE of those support all banks, but ONE of them does not!
OpenBankQuiet only supports
So when users call OpenBank (and enter a non-supported bank by OpenBankQuet) they have a 1 in 4 chance of getting
So either remove OpenBankQuiet from OpenBank OR have OpenBankQuiet support all banks!
function OpenBank(WhichBank: string; ChangeCompass, ChangeAngle: Boolean): Boolean;
var
I: Integer;
begin
result := false;
if BankScreen then
begin
Result := True;
Exit;
end;
for I := 0 to 3 do
begin
case I of
0: Result := OpenBankFast(WhichBank);
1: Result := OpenBankGlass(WhichBank, ChangeCompass, ChangeAngle);
2: Result := OpenBankQuiet(WhichBank);
3: Result := OpenBankNPC;
end;
if Result then
Exit;
end;
end; As you can see it basically chooses a random open bank function for given bank.
Problem is that THREE of those support all banks, but ONE of them does not!
OpenBankQuiet only supports
'feb' (Falador East Bank)
'fwb' (Falador West Bank)
'veb' (Varrock East Bank)
'vwb' (Varrock West Bank)
'db' (Draynor Bank)
'eb' (Edgeville Bank)
'akb' (Al-Kharid Bank) So when users call OpenBank (and enter a non-supported bank by OpenBankQuet) they have a 1 in 4 chance of getting
srl_Warn('OpenBankQuiet', 'Unknown bank: ' + WhichBank, warn_AllVersions); and the script failing.So either remove OpenBankQuiet from OpenBank OR have OpenBankQuiet support all banks!