Ok, the script walks to the bank and opens the bank, but for some reason stops working after that. The script just stops doing anything, but is still running.
Thanks
SCAR Code:
procedure DraynorBanking;
var
rx,ry,a:integer;
begin
a:=0;
PerfectNorth;
while (FindBank('db')=false) do //tries to find the bank a bunch of times
begin
a:=a+1;
FTwait(4);
BoredEvery(1);
if (a>10) then
begin
Mouse(669,47,3,3,true);//if findbank doesn't work, it blind clicks to try and get there
Flag;
if (OpenbankQuiet('db')=false) then
begin
writeln('Could not find bank near '+Players[CurrentPlayer].Name);
NextPlayer(false);
PlayerLogin;
Exit;
end;
end;
end;
writeln('[debug] walked to bank');// Script does not write this, so the problem happens before here
Flag;
FTwait(2);
if (PinScreen) then
begin
writeln('found pin screen');
if (PlayerPin='') then
begin
writeln('You have not specified a pin for '+Players[CurrentPlayer].Name);
NextPlayer(False);
PlayerLogin;
Exit;
end else
InPin(PlayerPin);
FTWait(4);
if (BankScreen) then
DepositItemType(LogDTM);
end else
if (BankScreen) then
begin
writeln('[debug] found bankscreen');
DepositItemType(LogDTM);
FTWait(4);
Mouse(613,110,2,2,true);
Flag;
end;
end;