Results 1 to 4 of 4

Thread: Net Fishing Animation Help Required

  1. #1
    Join Date
    Nov 2011
    Location
    Jozi, South Africa
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Exclamation Net Fishing Animation Help Required

    The traditional method to monitor animations is to use the AveragePixelShift function. I am looking specifically at the net fishing one - which takes about 2 1/2 seconds to complete. So to be sure you are 'measuring' only the net fishing animation, you need to monitor more than just one cycle - perhaps even 3 or 4. This is to make sure that the animation you are 'monitoring' is indeed the net fishing one - and not someone running past you or any other movements to the side of you.

    This means that checking for animation will take several multiples of the approx. 2.5 secs that net fishing has. This seems to me to be a rather long time just to monitor an animation - especially if you have this in a loop.

    Are their any words of wisdom on this to reduce this to a more reasonable time - say 1 sec ? Have I missed a trick that the experienced scripters of this forum are using. Thank you!
    Ciao
    NM

  2. #2
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Simba Code:
    function IsMining: Boolean;
    begin
      Result := (PixelShift(IntToBox(MSCX - 15, MSCY - 15, MSCX + 15, MSCY + 15), 1500) > 500);
    end;

    That is my mining check in my scripts. It relies on PixelShift, as you can see and it is very accurate as I have found.

    I also created this to help grab the animations and find out the information I required for my mining check:
    Simba Code:
    procedure AnimationGrabber;
    var
      I: Integer;
    begin
      WriteLn('Animations for the character:');

      for I := 0 to 20 do
      begin
        WriteLn('I - ' + ToStr(I) + ': ' + ToStr(PixelShift(IntToBox(MSCX - 15, MSCY - 15, MSCX + 15, MSCY + 15), 1000)));
      end;

      WriteLn('Done grabbing animations, please check the debug.');
    end;

  3. #3
    Join Date
    Nov 2011
    Location
    Jozi, South Africa
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Thumbs up Net Fishing Animation Help Required

    Quote Originally Posted by RISK View Post
    Simba Code:
    function IsMining: Boolean;
    begin
      Result := (PixelShift(IntToBox(MSCX - 15, MSCY - 15, MSCX + 15, MSCY + 15), 1500) > 500);
    end;

    That is my mining check in my scripts. It relies on PixelShift, as you can see and it is very accurate as I have found.

    I also created this to help grab the animations and find out the information I required for my mining check:
    Simba Code:
    procedure AnimationGrabber;
    var
      I: Integer;
    begin
      WriteLn('Animations for the character:');

      for I := 0 to 20 do
      begin
        WriteLn('I - ' + ToStr(I) + ': ' + ToStr(PixelShift(IntToBox(MSCX - 15, MSCY - 15, MSCX + 15, MSCY + 15), 1000)));
      end;

      WriteLn('Done grabbing animations, please check the debug.');
    end;
    RISK - I see that you capture your PixelShift over 1.5 seconds. I suppose that their is no getting away from it - if your animation is that long - then you need to check it over at least one cycle - perhaps more.

    I appreciate your scriptlets however and thanks for your feedback.
    Ciao
    NM

  4. #4
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I do a 1.5 second check because of the pause in animation when it goes to an idle animation for a 'bit in mining. It can be lowered as much as you desire depending on the animation, you see. It just requires a 'bit of tweaking to your preference.

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
  •