Results 1 to 2 of 2

Thread: Reflection Lape finding tree patch [Farming]

  1. #1
    Join Date
    Aug 2013
    Posts
    82
    Mentioned
    0 Post(s)
    Quoted
    35 Post(s)

    Default Reflection Lape finding tree patch [Farming]

    I've tried using the TReflectObject(all kinds), TReflectNPC, TReflectGroundItem and it won't find it. Am I missing something? I'd love some help with this. Stuck with my script even though I'm about halfway.

    Greets

  2. #2
    Join Date
    Aug 2014
    Posts
    93
    Mentioned
    2 Post(s)
    Quoted
    36 Post(s)

    Default

    do it like this:

    Code:
    procedure ClickTree;
        var
       TreeObject:TReflectObject;
       TreePointz:TPoint; 
       begin
       if not locPlayer.isLoggedIn then Exit;
       
        if TreeObject.Find(ObjGame,'Tree',10) then //If finds the name 'Tree' within 10 tiles.
       begin                       
        writeln('Found Object!');
        TreePointz := TreeObject.GetMsPoint;
        HumanMMouse(TreePointz,5,5);
        Wait(randomrange(400,800));
        FastClick(Mouse_left);
       end else
        begin
        writeln('Not found Object!');
        end;
        end;
      end;
    You can also change a name to a ID

    Then its like:

    if TreeObject.Find(ObjGame,2224,10)

Thread Information

Users Browsing this Thread

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

Posting Permissions

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