Results 1 to 2 of 2

Thread: Trying to make a cowkiller.

  1. #1
    Join Date
    Nov 2009
    Posts
    471
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default Trying to make a cowkiller.

    Here is my script it wont actually attack cows.

    HTML Code:
    {$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.

  2. #2
    Join Date
    Jan 2012
    Location
    in a galaxy far far away
    Posts
    371
    Mentioned
    3 Post(s)
    Quoted
    48 Post(s)

    Default

    Quote Originally Posted by tom99 View Post
    Here is my script it wont actually attack cows.

    HTML Code:
    {$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
    >:)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •