Jump to content
Ruinedscape

Bit new, can't see where i've gone wrong

Recommended Posts

Creating a mining script for an rsps. I'm using scar v3.33 so the functions aren't the current.

procedure MineRock;
begin
if (GetColor(705, 445)=255) then begin  //check last inv spot is clear 
     if(findcolortolerance (x, y, RockColour, 4, 3, 516, 337, 5)) then //if it can find the rock colour then
     begin movewindmouseex (x, y, 1, 1, 20);  
     clickmouse (x, y, true);  //it moves mouse and clicks it
     wait(20000)  
     end else
      sendarrowwait(0+random(4), 1000);   //else it will move the camera angle
   writeln('Cannot find rock')
   wait(500)
else begin end  //ends MineRock if inv spot is not clear
end;

 

Comments were my intentions for that part of the code to make things clearer.

Thanks in advance.

Edited by Ruinedscape
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...