Results 1 to 2 of 2

Thread: Learning how to script yet my script wont chop the tree.

  1. #1
    Join Date
    Mar 2012
    Posts
    47
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default Learning how to script yet my script wont chop the tree.

    Hey I am following a video tutorial on scripting down my first tree and I am having a problem. Im trying to make a PowerChopper. However The mouse constantly is searching for the trees and its just moving the cursor without clicking on it. Maybe you could inform me to why its not clicking the tree?

    Code:
    Function ChopDownTree: Boolean;
    Var
      X, Y: Integer;
    begin
      If FindObjCustom(x, y, ['chop', 'down', 'p d'], [3957891 ,4353678 ], 20) Then
      WriteLn('We found a tree');
      GetMousePos(X, Y);
      Case Random(2) of
        0: mouse(X, Y, 5, 5, True);
        1: Begin
            Mouse(X, Y, 5, 5, False);
            WaitOption('Chop', 100);
            End;
      end;
    end;

  2. #2
    Join Date
    Mar 2013
    Posts
    224
    Mentioned
    1 Post(s)
    Quoted
    127 Post(s)

    Default

    Quote Originally Posted by tigerkungfu View Post
    Hey I am following a video tutorial on scripting down my first tree and I am having a problem. Im trying to make a PowerChopper. However The mouse constantly is searching for the trees and its just moving the cursor without clicking on it. Maybe you could inform me to why its not clicking the tree?

    Code:
    Function ChopDownTree: Boolean;
    Var
      X, Y: Integer;
    begin
      If FindObjCustom(x, y, ['chop', 'down', 'p d'], [3957891 ,4353678 ], 20) Then
      WriteLn('We found a tree');
      GetMousePos(X, Y);
      Case Random(2) of
        0: mouse(X, Y, 5, 5, True);
        1: Begin
            Mouse(X, Y, 5, 5, False);
            WaitOption('Chop', 100);
            End;
      end;
    end;
    Use things like 'hop down' 'own' ect, try not putting the first letter

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
  •