Jump to content
tolyaba

iron mine rock detection(remember spot)

Recommended Posts

Well i have made iron varock miner but it stil not working perfect...

 

question:

Lets say u are 3 squares from the rock and bot click on iron color lets say at 200,200

how can u remember that spesific spot even if u moving around it? becouse cords of that iron rock changes when u move closer to it(duhh)

 

currently i have something like this ;D

 

procedure mine;

begin

 

if FindColortolerance(x,y,3228273,200,170,500,360,2)

then

begin

mouse(x+5,y,3,3,true);

a1:=x-30

a2:=y-30

b1:=x+30

b2:=y+30

repeat

wait(600)

until not FindColortolerance(x,y,3228273,a1,a2,b1,b2,2)

end;

end;

 

is there any better way ?

Link to comment
Share on other sites

Why use coords instead of findcolor? If you can't get some good colors use the Auto Color Aid v2 that is include in OSI. If ur problem is that you need it to wait until it is close to the charactor use

FindColorTolerance(x, y, c, MSCX - 60, MSCY - 60, MSCX + 60, MSCX + 60.

 

All this req OSI. If you dont have it then download it, its really effective.

 

And next time post it in the Scripting help section.

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...