Results 1 to 6 of 6

Thread: [Reflection] Wont interact with oak tree

  1. #1
    Join Date
    Dec 2016
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default [Reflection] Wont interact with oak tree

    So i tried interacting with oak tree but it was unsuccessfull (when changing to willow or any other object it works perfectly)

    Here's the code i use to interact

    Code:
    Procedure ChopDownTree;
    
      var
        Oak: TReflectObject;
        Point: TPoint;
    
      begin
        if Oak.Find(objGame, 'Oak', 30) then
          begin
             Point := Oak.GetMSPoint;
             Reflect.Mouse.Move(Point, 2, 2);
                If Reflect.Text.IsUpText('Chop down Oak') then
                  Reflect.Mouse.Click(Mouse_Left);
                  wait(1000 + random(350));
                  FFlag(0);
                  if reflectPlayer.IsMoving then wait(3000);
            end;
      end;

  2. #2
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    have you tried

    Point := Oak.GetMSPoint.getMiddle();

    Have not messed with any of the include in a while but maybe its not getting the center point i don't know

  3. #3
    Join Date
    Dec 2016
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Still ain't working its really weird it looks like those trees are magical or something lol since i can interact with other trees and objects just fine

  4. #4
    Join Date
    May 2012
    Location
    Glorious Nippon
    Posts
    1,011
    Mentioned
    50 Post(s)
    Quoted
    505 Post(s)

    Default

    Quote Originally Posted by minedass View Post
    Still ain't working its really weird it looks like those trees are magical or something lol since i can interact with other trees and objects just fine
    They aren't called 'Oak.' They were called 'Mill' last I checked a few months ago. Just debug all of the nearby objects.

  5. #5
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    If it still continues to give issues, I suggest you to create a color procedure to find the Oak Just the way I would do it!

    Good luck

  6. #6
    Join Date
    Dec 2016
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Thank u citrus it worked lol :O

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
  •