QQu
2006-06-14 07:20:04
Hi everyone, I felt bored so I made some Functions which might be useful :rolleyes:
- FindMMColorMulti
This Function looks for the three specified colors on the MiniMap and if not found, uses a Tolerance Riser.
- FindMSColorMulti
This Function looks for the three specified colors on the Main Screen and if not found, uses a Tolerance Riser.
Can someone please test them out?
I am pretty sure they work :D
Cheers,
Surajd ;)
- FindMMColorMulti
This Function looks for the three specified colors on the MiniMap and if not found, uses a Tolerance Riser.
Function ClickMMColorMulti(Color1 : Integer; Color2 : Integer; Color3 : Integer; MaxTol : Integer): Integer;
Var Tol : Integer;
Begin
for Tol:= 0 to MaxTol do
Begin
if (FindColorSpiralTolerance(x, y, Color1, 574, 8, 724, 157, Tol )) or
FindColorSpiralTolerance(x, y, Color2, 574, 8, 724, 157, Tol ) or
FindColorSpiralTolerance(x, y, Color3, 574, 8, 724, 157, Tol ) then
Mouse(x, y, 0, 0, true);
Exit;
end;
end;- FindMSColorMulti
This Function looks for the three specified colors on the Main Screen and if not found, uses a Tolerance Riser.
Function ClickMSColorMulti(Color1 : Integer; Color2 : Integer; Color3 : Integer; MaxTol : Integer): Integer;
Var Tol : Integer;
Begin
for Tol:= 0 to MaxTol do
Begin
if ( FindColorSpiralTolerance(x, y, Color1, 0, 0, 515, 338, Tol )) or
FindColorSpiralTolerance(x, y, Color2, 0, 0, 515, 338, Tol ) or
FindColorSpiralTolerance(x, y, Color3, 0, 0, 515, 338, Tol ) then
Mouse(x, y, 0, 0, true);
Exit;
end;
end;Can someone please test them out?
I am pretty sure they work :D
Cheers,
Surajd ;)