PDA

View Full Version : Trying to make a cowkiller.



tom99
11-30-2018, 05:16 PM
Here is my script it wont actually attack cows.


{$DEFINE SMART} // comment this line out if you don't want to use SMART
{$i srl-6/srl.simba}

var
x,y:integer;
x1,y1,x2,y2:integer;
{begin
clearDebug();
setupSRL();
end.

}
procedure killcows;
begin
writeln('start');
if(FindColorTolerance(x,y,4676986 or 11783907 ,0,0,788,586,20)) then
begin
clickmouse(x,y,mouse_Right);
writeln('found cow');

wait(200+random(200));
clickmouse(x,y+29,Mouse_left);
end;
end;
begin
killcows;
end.

chief herb
11-30-2018, 08:07 PM
Here is my script it wont actually attack cows.


{$DEFINE SMART} // comment this line out if you don't want to use SMART
{$i srl-6/srl.simba}

var
x,y:integer;
x1,y1,x2,y2:integer;
{begin
clearDebug();
setupSRL();
end.

}
procedure killcows;
begin
writeln('start');
if(FindColorTolerance(x,y,4676986 or 11783907 ,0,0,788,586,20)) then
begin
//////you're telling it to click, but not move the mouse where it needs to click...
clickmouse(x,y,mouse_Right);
writeln('found cow');

wait(200+random(200));
clickmouse(x,y+29,Mouse_left); //////// whats the +29 on y?
end;
end;
begin
killcows; ////////if it finds cows on the screen it will keep trying to clicks cows...need a better main loop
end.

look up some guides on forums... https://villavu.com/forum/showthread.php?t=117425