Hey, I'm wondering if I can use this little bit I wrote up (not necessarily my idea's, seeing as most comes from the includes #creds2srlTeam). I use it in a script, but I'm curious if it's a potential for causing problems (i.e. bad form/misuse of statements, etc.)
Ideally it's suppose to see if you are not viewing your bankscreen, then if so, will search for the bank on the mini map to relocate to the aforementioned bank.
Simba Code:
procedure DaBank;
var
z: Integer;
begin
BankChest;
if (BankScreen) then
begin
// Bank stuffs
Exit;
end else
if not (BankScreen) then
FindNormalRandoms();
begin
if FindBank('SRL_BANK_CW') then
BankChest;
if not (BankScreen) then
repeat
FindBank('SRL_BANK_CW');
incEx(z, 1);
until(BankScreen);
if z=5 then
begin
Writeln('Error, out of range.');
Logout;
TerminateScript;
end;
end;
end;