Everytime I use findent; in my script it's constantly moving the cursor to the upper left hand corner of the rs main screen. Is there anyway way to fix this?
btw this is how my findent is set up..
is that correct?SCAR Code:FindEnt(fx,fy,true);
fx, fy needs to be the coord of the tree, it will move over the tree and then check for an ent. In your case fx, fy is probably 0, 0 which is why it moves to the upper left corner.
Administrator's Warning:
so do somthing like
SCAR Code:if findcolor(x,y,treecolor,msx1,msy1,msx2,msy2) then
stuff to find it here
while cutting....
findent(x,y,true);
~Hermen
When you want to use while, you have to be sure that you don't change your mouse, which you can't, else he will search for an ent at a place were your mouse is located, which can be everywere..
Think about antiban, SleepAndMoveMouse, Idle, Random MMouse, ..etc All these things can mess that up
So Zeta, be carefull and only just remember what Sumilion said
-Tsn.
[QUOTE=Santa_Clause;277761]I love you too TSN :p[/QUOTE]
[CENTER][URL="http://www.stats.srl-forums.com/sigs"][IMG]http://www.stats.srl-forums.com/sigs/1324.png[/IMG][/URL][/CENTER]
You stop chopping if an ent pops up (rs-wise) so you only need to check it before you click a tree.
Administrator's Warning:
I think it should work ... you could also do this however :
SCAR Code:if FindObjCustom(x, y, ['aple tree'], [Maple, Maple2, Maple3], Tol) then
begin
Writeln('Found a maple... chopping');
if not(FindEnt(x,y,true))then
begin
GetMousePos(x, y);
Mouse(x, y, 0, 0, True);
end;
Cause with yours, if it found it and avoided it it would click it after it's done waiting no matter what. But perhaps the tree is gone by then ?
Administrator's Warning:
There are currently 1 users browsing this thread. (0 members and 1 guests)