Results 1 to 9 of 9

Thread: Box walk Tolerance

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

    Default Box walk Tolerance

    So I had a little time to kill and I came up with this Semi-reliable walking method:BoxWalk, It is pretty much just a failsafe version of using find color tolerance, but it's not bad!

    Simba Code:
    Procedure BoxWalkTolerance(Col,xe,ye,w,h,tol,rm: Integer);
    Var
      X,Y,T:Integer;
    Begin //643 83
      If FindColorSpiralTolerance(X, Y, col, xe, ye, w, h, tol) then
      Begin
        MMouse(RandomRange(X - rm, X + rm), RandomRange(y - rm, y + rm), 0, 0);
        ClickMouse2(Mouse_Left)
        Wait(RandomRange(200, 400));
        If P07_FindMMFlag Then
        Begin
          MarkTime(T)
          Repeat
          Wait(RandomRange(50, 150));
          Until (P07_FindMMFlag=False) Or (TimeFromMark(T) > 6000)
          Writeln('Can no longer find the flag')
        End;
      End;
    End;


    How to use:

    BoxWalkTolerance(COLOR, X1, Y1, X2, Y2, TOL, RANDOMOFFSET)


    Example script:

    Simba Code:
    {$I SRL/SRL.Simba}
    {$I P07Include.Simba}
    Procedure BoxWalkTolerance(Col,xe,ye,w,h,tol,rm: Integer);
    Var
      X,Y,T:Integer;
    Begin //643 83
      If FindColorSpiralTolerance(X, Y, col, xe, ye, w, h, tol) then
      Begin
        MMouse(RandomRange(X - rm, X + rm), RandomRange(y - rm, y + rm), 0, 0);
        ClickMouse2(Mouse_Left)
        Wait(RandomRange(200, 400));
        If P07_FindMMFlag Then
        Begin
          MarkTime(T)
          Repeat
          Wait(RandomRange(50, 150));
          Until (P07_FindMMFlag=False) Or (TimeFromMark(T) > 6000)
          Writeln('Can no longer find the flag')
        End;
      End;
    End;
    Begin
      SetupP07Include;
      MouseSpeed := 15;
      BoxWalkTolerance(3297113, 632, 101, 655, 112, 15, 5)
    End.

    All I can say it, it works better then rotated DTM's for me, this just got me from flax feilds to bank 5 times in a row(didn't test anymore cba)

    Simba Code:
    BoxWalkTolerance(2063699, 597, 73, 615, 96, 7, 3)
      BoxWalkTolerance(1932142, 612, 28, 665, 56, 7, 3)
      BoxWalkTolerance(1932142, 612, 28, 665, 56, 7, 3)
      BoxWalkTolerance(1932135, 628, 17, 663, 44, 7, 3)
      BoxWalkTolerance(1932149, 658, 32, 687, 64, 7, 3)
      BoxWalkTolerance(4771055, 622, 35, 692, 121, 10, 4)

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

    Default

    so essentially it just follows a colour inside a box which you define the width and height for ?

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

    Default

    Quote Originally Posted by xtrapsp View Post
    so essentially it just follows a colour inside a box which you define the width and height for ?
    Pretty much.

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

    Default

    I'm pretty sure I've seen something like this before, correct me if I'm wrong haha.

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

    Default

    Quote Originally Posted by xtrapsp View Post
    I'm pretty sure I've seen something like this before, correct me if I'm wrong haha.
    Probably but it's more easy for nubs to use this then Findcolortolerance because it has a small fail-safe

  6. #6
    Join Date
    Jul 2012
    Posts
    113
    Mentioned
    7 Post(s)
    Quoted
    34 Post(s)

    Default

    This won't help you when the compass decides to be off by -20 - 20 degrees :P

    Walking needs to consistently work for it to be viable. (Even after you've reset the client/had it running for a while!)

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

    Default

    Quote Originally Posted by SeanStar View Post
    This won't help you when the compass decides to be off by -20 - 20 degrees :P

    Walking needs to consistently work for it to be viable. (Even after you've reset the client/had it running for a while!)
    P07_MakeCompassNorth

  8. #8
    Join Date
    Jul 2012
    Posts
    113
    Mentioned
    7 Post(s)
    Quoted
    34 Post(s)

    Default

    Quote Originally Posted by RJJ95 View Post
    P07_MakeCompassNorth
    Are you aware the the compass is actually inaccurate after a while? Compass can say perfect north, but the minimap can be like 15 degrees.

  9. #9
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Quote Originally Posted by SeanStar View Post
    Are you aware the the compass is actually inaccurate after a while? Compass can say perfect north, but the minimap can be like 15 degrees.
    Best way to explain it (and what actually happens) is that the map in the minimap rotates, and the compass is unmoved.

    Aside from that you should take a look at findColoredAreaTolerance rjj.

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
  •