Hi, this is my first script, the script is fine, but the problem is it just clicks everywhere without directly targeting the chicken, because there are bones,meat and feathers on the ground it will pick those up before attacking the chicken. I was just wondering if there is anyway to use a left click and to directly click the chicken so it doesnt pick up the items first.
Code:
program AutoChickenFighterV1;
var
i,x,y: Integer;
const
Chicken1 = 234;
begin
i:= 0;
repeat
i:= i +1;
if(FindColor(x,y,Chicken1,0,0,500,500)) then
begin
MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
Wait(1000+random(100));
ClickMouse(x,y,true);
end;
until(false);
end.
Code:
program AutoChickenFighterV1;
var
i,x,y: Integer;
const
Chicken1 = 234;
begin
i:= 0;
repeat
i:= i +1;
if(FindColor(x,y,Chicken1,0,0,500,500)) then
begin
MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
Wait(1000+random(100));
ClickMouse(x,y,true);
end;
until(false);
end.

