Home
2006-09-18 10:59:37
Once again.. I got idea to post my dumb ass functions :P
Updated : To Use MaxWait As Back Up :P
He, he
:)
~Home
Updated : To Use MaxWait As Back Up :P
{*******************************************************************************
Function Mined(OreColor, Tol, MaxWait : Integer ): Boolean;
By: Home
Description: Checks If Ore Is Mined And Uses MaxWait(In Seconds) And Results True.
*******************************************************************************}
Function Mined(OreColor, Tol, MaxWait : Integer ): Boolean;
Var
PX, PY: Integer;
Begin
MarkTime(Mark);
Repeat
Wait(100+random(100))
Until(Not (FindColorSpiralTolerance(PX, PY, OreColor, 210, 130, 300, 220, Tol))Or(TimeFromMark(Mark)>MaxWait*1000))
Result := True;
End;He, he
:)
~Home