rsbots2013
2013-05-25 06:31:12
How do I tell my Script to pick a random if FindColorSpiralTolerance then from a list
I got a feeling adding Random or RandomRange somewhere would do the trick.
Example:
I got a feeling adding Random or RandomRange somewhere would do the trick.
Example:
procedure Help;
var
x, y : integer;
Color1, Color2, Color3, Color4, Color5, Color6 : integer;
begin
if FindColorSpiralTolerance( x, y, Color1, 359, 172, 408, 254, 10) or
FindColorSpiralTolerance( x, y, Color2, 359, 172, 408, 254, 10) or
FindColorSpiralTolerance( x, y, Color3, 359, 172, 408, 254, 10) or
FindColorSpiralTolerance( x, y, Color4, 359, 172, 408, 254, 10) or
FindColorSpiralTolerance( x, y, Color5, 359, 172, 408, 254, 10) or
FindColorSpiralTolerance( x, y, Color6, 359, 172, 408, 254, 10) then
begin
MoveMouse( x, y);
end;
end;