Results 1 to 8 of 8

Thread: FindEnt help

  1. #1
    Join Date
    Jul 2007
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default FindEnt help

    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..
    SCAR Code:
    FindEnt(fx,fy,true);
    is that correct?





  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    2,984
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    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:


  3. #3
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

  4. #4
    Join Date
    Oct 2006
    Posts
    2,297
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by hermpie View Post
    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);
    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]

  5. #5
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    2,984
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    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:


  6. #6
    Join Date
    Jul 2007
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    is this correct?

    SCAR Code:
    if FindObjCustom(x, y, ['aple tree'], [Maple, Maple2, Maple3], Tol) then
        begin
          Writeln('Found a maple... chopping');
          FindEnt(x,y,true)
          GetMousePos(x, y);
          Mouse(x, y, 0, 0, True);





  7. #7
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    2,984
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Zeta View Post
    is this correct?

    SCAR Code:
    if FindObjCustom(x, y, ['aple tree'], [Maple, Maple2, Maple3], Tol) then
        begin
          Writeln('Found a maple... chopping');
          FindEnt(x,y,true)
          GetMousePos(x, y);
          Mouse(x, y, 0, 0, True);
    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:


  8. #8
    Join Date
    Jul 2007
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    okay thanks +rep





Thread Information

Users Browsing this Thread

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

Similar Threads

  1. findent :/
    By macromacro123 in forum OSR Help
    Replies: 12
    Last Post: 08-24-2007, 08:20 AM
  2. FindEnt;
    By steth1010 in forum OSR Help
    Replies: 4
    Last Post: 05-10-2007, 03:11 PM

Posting Permissions

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