Im trying to make it so if it doesnt find coins in the bank it logs out and ends the script, heres what iv done:
SCAR Code:
Procedure FindTheCoins;
Var
Coins, x, y : Integer;
begin
Coins := DTMFromString('78DA631463606090644001D3AA8419F881342' +
'310FF0702463520438E010D302291405A1048081250C309241409' +
'A85125C21C6920A1865F0D0059820676');
If FindDTM(Coins, x, y, MBX1, MBY1, MBX2, MBY2) Then
Mouse(x, y, 0, 0, False);
ChooseOption('draw-X');
Wait(500 + Random(600));
TypeSend('6750');
If not FindDTM(Coins, x, y, MBX1, MBY1, MBX2, MBY2) Then
begin
Writeln('No Coins Found!')
Logout;
TerminateScript;
Exit;
FreeDTM(Coins);
end;
end;
If it cant find the coins it still types 6750 and then terminates the script but it doesnt log out leaving it on the bank screen?