SCAR Code:
function BankScreen: Boolean;
var
c: Integer;
begin
Result := FindTextTPA(4106994, 20, 20, 22, 400, 45, 'Bank', upchars, Nothing);
if (Result) then
Exit;
c := GetTimeRunning + 45000;
while (not FindTextTPA(4106994, 20, 20, 22, 400, 45, 'Bank', upchars, Nothing)) and (GetTimeRunning < c) do
Wait(50);
Wait(RandomRange(100, 150));
end;
Now it doesn't?
EDIT:
SCAR Code:
function BankScreen: Boolean;
var
c: Integer;
begin
if (FindTextTPA(4106994, 20, 20, 22, 400, 45, 'Bank', upchars, Nothing)) then
Exit;
c := GetTimeRunning + 45000;
while (not FindTextTPA(4106994, 20, 20, 22, 400, 45, 'Bank', upchars, Nothing)) and (GetTimeRunning < c) do
Wait(50);
Result := GetTimeRunning < c;
//Result := FindTextTPA(4106994, 20, 20, 22, 400, 45, 'Bank', upchars, Nothing);
Wait(RandomRange(100, 150));
end;