Results 1 to 4 of 4

Thread: Help, Getting Back To The Right Position!

  1. #1
    Join Date
    Oct 2007
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help, Getting Back To The Right Position!

    I am at dark wizzards, as you can see in the picture below...

    And, incase i cant find any dark wizzards, i want my script to walk back to them.

    I cannot use the yellow circles on the MM because nearby, there are guards which also are yellow circles...

    So yeah, i need help getting back to the dark wizzards...

    I was thinking maybe using a bmp of one of those stone thingy's on the minimap... But idk

    Help
    Woot woot.

  2. #2
    Join Date
    Jul 2008
    Posts
    907
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    is this to check if you're there or not? if it is then just make a DDTM of the stone symbols around the edge, youd have to fgind a good mainpoint though


  3. #3
    Join Date
    Jun 2007
    Location
    La Mirada, CA
    Posts
    2,484
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    DDTM of the circle of black spots (forget what they are called) on the MM with a center point of a random spot in the middle.

    That is probably your best bet.

    "Failure is the opportunity to begin again more intelligently" (Henry Ford)


  4. #4
    Join Date
    Mar 2007
    Posts
    1,700
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Here's what I came up with, works very well
    SCAR Code:
    function Calibrate: Boolean;
    var
      P, TPA: TPointArray;
      aP: T2DPointArray;
      Hi, i, L, xx, yy, CTS, c1, c2: integer;
      X, Y, Z: Extended;
    begin
      CTS := GetColorToleranceSpeed;
      ColorToleranceSpeed(1);
      FindColorsSpiralTolerance(MMCX, MMCY, P, 722182, MMX1, MMY1, MMX2, MMY2, 20);
      ColorToleranceSpeed(CTS);
      P := RemoveDistTPointArray(MMCX, MMCY, 76, P, True);
      Hi := High(P);
      if Hi < 0 then Exit;
      SetLength(TPA, Hi+1);
      for i := 0 to Hi do
      begin
        c1 := GetColor(P[i].x, P[i].y);
        ColorToXYZ(c1, X, Y, Z);
        if (X < 0.5) and (Y < 0.5) and (Z < 1.0) then
        begin
          c2 := GetColor(P[i].x+1, P[i].y);
          if c1 <> c2 then
          begin
            ColorToXYZ(c2, X, Y, Z);
            if Abs(X - Y) < 0.4 then
            begin
              TPA[L] := P[i];
              Inc(L);
            end;
          end;
        end;
      end;
      if L < 1 then Exit;
      SetLength(TPA, L);
      aP := SplitTPA(TPA, 15);
      Hi := High(aP);
      for i := 0 to Hi do
        if Length(aP[i]) > 5 then
        begin
          MiddleTPAEx(aP[i], xx, yy);
          MFNF(xx, yy, -1, 1);
          Result := FFlag(0);
        end;
    end;

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
  •