itSchRis917
2007-07-14 20:45:53
This function will walk you at a specific angle (degree) at a specified distance from center of Minimap (radius) until it finds a set color. Ranx and Rany = Random x and y for Mouse. Hope you enjoy! And I dont know if someone already made this or not, if someone did, sorry.
Edit: Here's a few more of the same type of walking procedures, just with different variables… if that makes sense… lol
This one will walk at a specified angle again, once again, at a specified radius, but JUST ONCE.
This one will walk until it finds a symbol of your choosing..
Procedure AWalkCol(Degree, Radius, Color, Ranx, Rany: integer);
Var
Ax, Ay, Clicks : Integer;
Begin
Ax := Round ( Radius * Sin (Degree * Pi / 180))+648;
Ay := Round (-Radius * Cos (Degree * Pi / 180))+83;
Repeat
Mouse(Ax, Ay, Ranx, Rany, True);
FFlag(5);
Clicks:=Clicks+1;
Until(FindColor(x, y, Color, MMX1, MMY1, MMX2, MMY2))OR (Clicks >=30);
End;
Edit: Here's a few more of the same type of walking procedures, just with different variables… if that makes sense… lol
This one will walk at a specified angle again, once again, at a specified radius, but JUST ONCE.
Procedure AWalk3(Degree, Radius, ranx,rany : Integer);
Var
Ax, Ay : Integer;
begin
If (Radius > 57) then
Radius := 57;
Ax := Round ( Radius * Sin (Degree * Pi / 180)) + 648;
Ay := Round (- Radius * Cos (Degree * Pi / 180)) + 83;
Mouse(Ax, Ay, ranx, rany, True);
end;
This one will walk until it finds a symbol of your choosing..
Procedure AWalkSymbol(Degree, Radius, Ranx, Rany : Integer; Symbol :String);
Var
Ax, Ay, Clicks : Integer;
Begin
Ax := Round ( Radius * Sin (Degree * Pi / 180))+648;
Ay := Round (-Radius * Cos (Degree * Pi / 180))+83;
Repeat
Mouse(Ax, Ay, Ranx, Rany, True);
FFlag(5);
Clicks:=Clicks+1;
Until(FindSymbol(x, y, Symbol)) OR (Clicks >= 30);
End;