TheGodfather
2007-03-28 22:00:25
Hey, I made a universal range finder, (tested it with all the ranges, and it worked.) So since what SRL has doesn't work, I thought I'd make one.
Post feedback please.
{********** Finds the range to cook on **********}
Function FindFryer(var FrX, FrY: integer): Boolean;
var c, tol: integer;
Begin
Repeat
if (not (LoggedIn) ) then Break; //or exit; but Jukka prefers break;
result := false;
Writeln('Searching for range...');
c := c + 1;
if (FindColorSpiralTolerance(x, y, 857975, MSX1, MSY1, MSX2, MSY2, tol))
or
(FindColorSpiralTolerance(x, y, 924553, MSX1, MSY1, MSX2, MSY2, tol))
or
(FindColorSpiralTolerance(x, y, 1187474, MSX1, MSY1, MSX2, MSY2, tol))
or
(FindColorSpiralTolerance(x, y, 1121424, MSX1, MSY1, MSX2, MSY2, tol))
or
(FindColorSpiralTolerance(x, y, 1122196, MSX1, MSY1, MSX2, MSY2, tol)) then
begin
result := true;
Writeln('Range Found');
FrX := x;
FrY := y;
break;
end;
tol:= tol + 5;
FTWait(1);
Until(c >= 4)
if (c >= 4) then
begin
result := False;
Writeln('Range not found');
end;
End;Post feedback please.