
Originally Posted by
YoHoJo
SCAR Code:
Procedure KillChicken;
Begin
X:=MSCX; //X and Y set for middle points, so that the spiral searches from
Y:=MSCY; //the middle of the screen outward
I:=10 //number of pixels to add or subtract from search box
Repeat
If FindColorSpiral(x,y,Color,MSCX+I,MSCY-I,MSCX+I,MSCY-I) Then {Finds color inside of the the box, stats from a 10X10 square from the middle and gets larger each loop}
GetMousePos(Chi,Ken)//Calls the coordinates chi,ken
MMouse(Chi,Ken,4,4); //Moves to coordinates
I:=I+10 //Adds 10 pixels to the search box, so search in a wider area if //chicken was not found
Until(IsUpText('Ata') or I>150)// Repeats until find the text 'Att' at
//top of screen or script has looped 15 times
End;
Yeah! Can i use this system in my script ( it's my first script )? I'll later do my own system.

But can i get it to click the chicken like this then?
SCAR Code:
Begin
X:=MSCX; //X and Y set for middle points, so that the spiral searches from
Y:=MSCY; //the middle of the screen outward
I:=15 //number of pixels to add or subtract from search box
Repeat
If FindColorSpiral(x,y,123123,MSCX+I,MSCY-I,MSCX+I,MSCY-I) Then {Finds color inside of the the box, stats from a 10X10 square from the middle and gets larger each loop}
GetMousePos(Chi,Ken)//Calls the coordinates chi,ken
MMouse(Chi,Ken,4,4); //Moves to coordinates
I:=I+5 //Adds 5 pixels to the search box, so search in a wider area if //chicken was not found
if (I = 150 ) then
X; //Exits the procedure, what's the command and is there one?
else;
Until(IsUpText('Ata') then
Mouse(Chi,Ken,4,4,true); // And what's the 4,4?
End;