Results 1 to 10 of 10

Thread: Click it if im not moving

  1. #1
    Join Date
    Feb 2012
    Posts
    390
    Mentioned
    2 Post(s)
    Quoted
    14 Post(s)

    Default Click it if im not moving

    How can I use pixel shift or something to make sure I clikc the tree if im not moving?

  2. #2
    Join Date
    Feb 2012
    Posts
    390
    Mentioned
    2 Post(s)
    Quoted
    14 Post(s)

    Default

    would this work?

    or (Chopping = false);

    Function Chopping: Boolean;
    var
    PBox: TBox;
    begin
    PBox := IntToBox(245, 130, 285, 195);
    Result := (AveragePixelShift(PBox, 250, 500) > 400);
    end;

  3. #3
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Quote Originally Posted by fisherblue23 View Post
    would this work?

    or (Chopping = false);

    Function Chopping: Boolean;
    var
    PBox: TBox;
    begin
    PBox := IntToBox(245, 130, 285, 195);
    Result := (AveragePixelShift(PBox, 250, 500) > 400);
    end;
    If the Chopping boolean has the correct box and pixelshift limit, this should work.
    Simba Code:
    if not (Chopping) then
    begin
    **Find next tree procedure\function here***
    **other sutff**
    end;

    Forum account issues? Please send me a PM

  4. #4
    Join Date
    Feb 2012
    Posts
    390
    Mentioned
    2 Post(s)
    Quoted
    14 Post(s)

    Default

    Does anyone know how to make the box and stuff its so confuusing

  5. #5
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    Simba Code:
    Function Woodcut: Boolean;
      var
        PBox: TBox;
      begin
        PBox := IntToBox(245, 130, 285, 195);
        Result := (AveragePixelShift(PBox, 500, 650) > 400);
        Writeln(IntToStr(AveragePixelShift(PBox, 500, 650)));
      end;

    If you look at where it says Pbox, that is the dimensions around the character, I believe it goes

    Top left, Top right, Bottom left, Bottom right

  6. #6
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by xtrapsp View Post
    Simba Code:
    Function Woodcut: Boolean;
      var
        PBox: TBox;
      begin
        PBox := IntToBox(245, 130, 285, 195);
        Result := (AveragePixelShift(PBox, 500, 650) > 400);
        Writeln(IntToStr(AveragePixelShift(PBox, 500, 650)));
      end;

    If you look at where it says Pbox, that is the dimensions around the character, I believe it goes

    Top left, Top right, Bottom left, Bottom right
    think its just the top left x and y, then bottom right x and y


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  7. #7
    Join Date
    Sep 2012
    Location
    Legolan, Ireland
    Posts
    542
    Mentioned
    0 Post(s)
    Quoted
    50 Post(s)

    Default

    Simba Code:
    Procedure Chop;
    begin
       Findtree;
       Choptree;
          If (isChopping) then
               repeat
                  Wait(5000);
               until not (isChopping);
    end;

    Made this away from Simba so haven't tested, but something like that is basic and may work for you.
    Have you felt the whale lately?
    .__________.
    Whale so hard.

  8. #8
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    or you might try this:
    Simba Code:
    repeat until not isMoving;
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  9. #9
    Join Date
    Sep 2012
    Location
    Legolan, Ireland
    Posts
    542
    Mentioned
    0 Post(s)
    Quoted
    50 Post(s)

    Default

    Quote Originally Posted by WT-Fakawi View Post
    or you might try this:
    Simba Code:
    repeat until not isMoving;
    Sort of what I had. But isn't isMoving more of a generalized pixelshift that would be better replaced by isChopping?
    Have you felt the whale lately?
    .__________.
    Whale so hard.

  10. #10
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    afaik: ismoving returns true if the minimap is not moving.
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

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
  •