Wanted
2009-08-20 20:57:09
LoggedIn uses WHITE which is extremely common to be picked up falsely by lag or by SMART's annoying white screen… I think the color should be changed to the red part of the report button and have that wait in there…. this is causing mass havoc in certain scenarios. Waits/retrys for small temporary lag.
I made this
Edit:
Optimized
I made this
Edit:
Optimized
{*******************************************************************************
function LoggedIn: Boolean;
By: IceFire908.
Description: Detects if you're logged in and compensates for white screen lag,
general lag, and false detections.
*******************************************************************************}
function LoggedIn: Boolean;
var
C: LongInt;
I: Byte;
begin
for I := 1 to 10 do
begin
C := GetColor(412, 484);
Result := ((C = 2302834) or (C = 3356886));
if (Result) then
Exit;
Wait(200);
end;
end;{*******************************************************************************
function LoggedIn: Boolean;
By: IceFire908.
Description: Detects if you're logged in and compensates for white screen lag,
general lag, and false detections.
*******************************************************************************}
function LoggedIn: Boolean;
var
P: TPoint;
I: Byte;
begin
for I := 1 to 10 do
begin
Result := FindColor(P.X, P.Y, 2302834, 404, 481, 514, 502);
if (not (Result)) then
Result := FindColor(P.X, P.Y, 3816406, 404, 481, 514, 502);
if (Result) then
Exit;
Wait(200);
end;
end;