Results 1 to 7 of 7

Thread: Woodcutting Animation?

  1. #1
    Join Date
    May 2012
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Woodcutting Animation?

    So, I have my own woodcutting script and it cuts Willows, when it selects the chop option it clicks it again when its still chopping is there a way to prevent this? like a certain wait?

    ~Leyser

  2. #2
    Join Date
    Jul 2011
    Location
    /home/litoris
    Posts
    2,226
    Mentioned
    0 Post(s)
    Quoted
    159 Post(s)

    Default

    You can make the script check whether the character is doing the animation using pixelshift.
    There's a tutorial right here:http://villavu.com/forum/showthread.php?t=74090
    Miner & Urn Crafter & 07 Chicken Killer
    SPS BlindWalk Tutorial

    Working on: Nothing

    teacher in every art, brought the fire that hath proved to mortals a means to mighty ends

  3. #3
    Join Date
    May 2012
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I still dont get this, where exactly do I put it and call it?

  4. #4
    Join Date
    Jul 2011
    Location
    /home/litoris
    Posts
    2,226
    Mentioned
    0 Post(s)
    Quoted
    159 Post(s)

    Default

    Quote Originally Posted by Leyser View Post
    I still dont get this, where exactly do I put it and call it?
    Simba Code:
    //Stolen from the tut:
    function Woodcutting: Boolean;
     PBox: TBox;
      begin
        PBox := IntToBox(245, 130, 285, 195);
        Result := (AveragePixelShift(PBox, 250, 500) > 400);
      end;
    //Woodcutting procedure:
    procedure Cut;
    begin
      FindTree; //Your procedure to find tree colors
      Mouse(treex, treey, randomx, randomy, True);
      repeat
        Antiban;
        Antirandoms;
        WaitWhileCutting; //Count logs you got or whatever
        Wait(600); //Wait one whole game tick just in case
      until( not (Woodcutting)) //Stops the loop when cutting animation stops
    end
    Miner & Urn Crafter & 07 Chicken Killer
    SPS BlindWalk Tutorial

    Working on: Nothing

    teacher in every art, brought the fire that hath proved to mortals a means to mighty ends

  5. #5
    Join Date
    Feb 2012
    Location
    SRL Jail
    Posts
    1,319
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Leyser View Post
    I still dont get this, where exactly do I put it and call it?
    Like litoris posted, just put it above your woodcutting procedure. Or under your declareplayers. (anywhere near the top of the script so its above the other procedures and can be called in any one of them)

  6. #6
    Join Date
    May 2012
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by JOEbot View Post
    Like litoris posted, just put it above your woodcutting procedure. Or under your declareplayers. (anywhere near the top of the script so its above the other procedures and can be called in any one of them)

    Thanks a bunch!

  7. #7
    Join Date
    May 2012
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by litoris View Post
    Simba Code:
    //Stolen from the tut:
    function Woodcutting: Boolean;
     PBox: TBox;
      begin
        PBox := IntToBox(245, 130, 285, 195);
        Result := (AveragePixelShift(PBox, 250, 500) > 400);
      end;
    //Woodcutting procedure:
    procedure Cut;
    begin
      FindTree; //Your procedure to find tree colors
      Mouse(treex, treey, randomx, randomy, True);
      repeat
        Antiban;
        Antirandoms;
        WaitWhileCutting; //Count logs you got or whatever
        Wait(600); //Wait one whole game tick just in case
      until( not (Woodcutting)) //Stops the loop when cutting animation stops
    end


    Thanks man!

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
  •