Results 1 to 3 of 3

Thread: Minimap Symbol detection

  1. #1
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    418
    Mentioned
    2 Post(s)
    Quoted
    86 Post(s)

    Default Minimap Symbol detection



    There is what my Minimap looks like, here is my code for finding a Minigame symbol outside of the fightcave :
    Simba Code:
    Function Symbol : Boolean;
    var
      CTS, I: Integer;
      TPA: TPointArray;
      ATPA: Array of TPointArray;
      x,y : Integer;
      begin
      CTS := GetColorToleranceSpeed;
      ColorToleranceSpeed(2);
        SetColorSpeed2Modifiers(0.05, 2.01);
     if FindColorsSpiralTolerance(x, y, TPA, 2431709, MMX1,MMY1,MMX2,MMY2, 10) then
     Writeln('Found Symbol');
     result := true;
      ColorToleranceSpeed(CTS);
      ATPA := TPAToATPAEx(TPA, 40, 20);
        If Length(tpa) = 0 then exit;
      For I := 0 to high(ATPA) do
      begin
        MiddleTPAEx(ATPA[i], x, y);
        wait(20+random(10));
        If I > 10 then break;
       P07_MakeCameraAngleHigh;
       P07_MakeCompassSouth;
      end;
    end;

    My writeln is showing in the debug window whilst in the fight cave that is has found the symbol, which is false. Could anyone point me in the direct where I have gone wrong?

    Thank you.

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

    Default

    Are you trying to count the yellow NPC dots?

  3. #3
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    418
    Mentioned
    2 Post(s)
    Quoted
    86 Post(s)

    Default

    n
    Quote Originally Posted by RJJ95 View Post
    Are you trying to count the yellow NPC dots?
    Nope, outside the gave it is to detect the mini game symbol. Inside the cave it says it detects the symbol, but as shown in the image there is no red in the minimap.

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
  •