SCAR Code:
Procedure test;
Begin
MarkTime(i);
Repeat
OpenBankFast('akb');
Until FindColorTolerance(x, y, 4106994, 187, 26, 325, 40, 10) Or
(TimeFromMark(i) > 2000 + Random(2000));
If (FindColorTolerance(x, y, 4106994, 187, 26, 325, 40, 10)) The
Begin
Writeln('We found the color.. lets exit');
Exit;
End;
MarkTime(i);
Repeat
OpenBankGlass('akb', False, False);
Until FindColorTolerance(x, y, 4106994, 187, 26, 325, 40,
10) Or (TimeFromMark(i) > 2000 + Random(2000));
If (FindColorTolerance(x, y, 4106994, 187, 26, 325, 40, 10)) Then
Begin
Writeln('We found the color.. lets exit');
Exit;
End Else
Begin
Writeln('We didnt find the color.. Terminate!');
TerminateScript;
//NextPlayer(False); //Multiplayer
End;
End;
Why are you searching for colors? What is that for? Too see if the bank is open?
If so use BankScreen