n3ss3s
2007-10-18 08:16:59
:stirthepot:
This one finds closest fire…
About 20ms usually..
Buahahaha - rs is like teh infinite source for finding diff objects! :stirthepot: more coming!
EDIT: Crap I cant stop making these, next one is monster finder..
This one finds closest fire…
Function FindClosestFire(Var FiX, FiY: Integer): Boolean;
Var
I, CTS, X, Y, M: Integer;
Var
TPA: TPointArray;
Begin
M := GetSystemTime;
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
X := MSCX;
Y := MSCY;
If(FindColorSpiralTolerance(X, Y, 3577775, MSX1, MSY1, MSX2, MSY2, 10))Then
Begin
FindColorsTolerance(TPA, 3577775, X - 15, Y - 15, X + 15, Y + 15, 15);
Writeln(IntToStr(Length(TPA)));
If(GetArrayLength(TPA) >= 10)Then
Begin
MiddleTPAEx(TPA, Fix, Fiy);
Result := True;
End;
End;
Writeln(IntToStr(GetSystemTime - M));
ColorToleranceSpeed(CTS);
End;About 20ms usually..
Buahahaha - rs is like teh infinite source for finding diff objects! :stirthepot: more coming!
EDIT: Crap I cant stop making these, next one is monster finder..