
Originally Posted by
zippoxer
I need help i just started scripting...
i did this script.
Code:
program ChickenBlooder;
var
i,x,y: Integer;
begin
i:= 0;
repeat
i:= i + 1;
if(FindColor(x,y,924015,0,0,338,178)) then
begin
MoveMouseSmoothEx(x,y+random(0),20,40,45,25,20);
ClickMouse(x,y,true);
end;
until(not(FindColor(x,y,924015,0,0,338,178)));
end.
now the problem that it's click 5 times very fast on the color i choosed and stop the script...
i wanna make it kill the chicken and wait until it's killed and kill new one...

The reason it clicks loads and fast is because you have told it to repeat the section where it finds the colour and clicks it, therefore it will continue to click it until the colour has disappeared.
What you should is this:
SCAR Code:
program ChickenBlooder;
{.include srl/srl.scar}
var
i,x,y: Integer;
procedure theclikybit;
begin
i:= 0;
if(FindColor(x,y,924015,0,0,338,178)) then
begin
MoveMouseSmoothEx(x,y+random(0),20,40,45,25,20);
ClickMouse(x,y,true);
end;
i:= i + 1;
end;
Begin
SetupSRL;
Repeat
theclickybit;
until(not(FindColor(x,y,924015,0,0,338,178)));
end.
This will then make it click the certain colour once.
DR