Im making a woodcutting script, but i want it to not keep clicking the tree even though the tree is still there.
Can someone link me to where to show me how to do this or tell me here?
Thanks, Ben AKA Bh.![]()
Im making a woodcutting script, but i want it to not keep clicking the tree even though the tree is still there.
Can someone link me to where to show me how to do this or tell me here?
Thanks, Ben AKA Bh.![]()
you could just click it once then wait until it doesnt find the tree color anymore
edit 200th post
Well what you could do is find the tree using a color, and then keep on checking for that color in that same cord, and when it changes to a different color, the tree is gone. Don't know if that made sense(its early...12 am lol)![]()
On vacation from July 2nd till middle of August
Account Creator and Tutorial Island Runner (member | public) Errors fixed
Check out my Complete forms tutorial. It will teach you everything you need to know about forms.
Post an example
Plus thanks for the fast responce, lol.
yea thats the base outline of what i can think of in 10 seconds...SCAR Code:begin
findcolortolerance(x,y,treecolor,10);
wait(50+random(50));
Mouse(x,y,1,1,true);
wait(50+random(50));
getmousepos(x,y);
wait(50+random(50));
if (not(getcolor(x,y)=treecolor)) then
begin
whatever;
end else;
whatever;
end.
You could just use a TimeMark or something and let the user decide how long to wait before clicking again, for example waiting 20 + random 10 seconds or soBecause color checking isn't that reliable if there's more of the same trees or colors around. And you need to remember that if you click a tree your account often moves, so checking the coordinates wouldn't work in that case (account has walked to different spot -> tree has moved on the screen -> tree not found -> click again.. Not that good)..
There are currently 1 users browsing this thread. (0 members and 1 guests)