Results 1 to 8 of 8

Thread: help with npc finding

  1. #1
    Join Date
    Oct 2012
    Location
    Porto, Portugal
    Posts
    218
    Mentioned
    0 Post(s)
    Quoted
    42 Post(s)

    Default help with npc finding

    I need to find this NPC



    How do I do it efficiently without mousing around all the screen?

  2. #2
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Use a TPA.

  3. #3
    Join Date
    Oct 2012
    Location
    Porto, Portugal
    Posts
    218
    Mentioned
    0 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by Shay View Post
    Use a TPA.
    LOL I used lots of stuff. The problem is the guards are exactly the same colour of the judge...

    Here is my current code. The only problem in it is that sometimes it moves the mouse all around. I was hoping if somebody could tell me a way to find the judge at first try always.

    Simba Code:
    procedure FindJudge;

    var
    tmpCTS,x ,y, I, H, bx, by: Integer;
    JudgeTPA: TPointArray;
    JudgeATPA: T2DPointArray;

    begin
      tmpCTS := GetToleranceSpeed;
      SetColorToleranceSpeed(2);
      SetToleranceSpeed2Modifiers(0.12, 0.89);

      FindColorsSpiralTolerance(MSCX, MSCY, JudgeTPA, 2178370, MSX1, MSY1, MSX2, MSY2, 13);

      SetColorToleranceSpeed(tmpCTS);
      SetToleranceSpeed2Modifiers(0.02, 0.02);

      JudgeATPA := TPAtoATPAEx(JudgeTPA, 30, 60);

      if Length(JudgeATPA) = 0 then
      begin
        TerminateScript;
      end;

      H := High(JudgeATPA);
      for I := 0 to H do
      begin
        if High(JudgeATPA[I]) > 40 then
        begin
          MiddleTPAEx(JudgeATPA[I], bx, by);
          MMouse(bx, by, 3, 3);
          GetMousePos(x, y);
          if IsUpText('mpetitio') then
          begin
            ClickMouse2(false);
            WaitOption('ompete', 100);
            Wait(RandomRange(300, 500));
            PressKey(31);
            Break;
          end;
        end;
      end;
    end;

  4. #4
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    2,254
    Mentioned
    21 Post(s)
    Quoted
    238 Post(s)

    Default

    Use TPA, right click, if you don't have the correct option in the submenu, do a check to make sure you are in position? ObjDTM?

  5. #5
    Join Date
    Oct 2012
    Location
    Porto, Portugal
    Posts
    218
    Mentioned
    0 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by cause View Post
    Use TPA, right click, if you don't have the correct option in the submenu, do a check to make sure you are in position? ObjDTM?
    the problem is that the judge keeps moving and sometimes it is kinda hidden so it would only find some pixels of that colors, and if I reduce the amount of pixels needed it would mouse around the trees and stuff.

    Plus, I want to make this less botlike as possible so I dont want it to mouse around brown stuff until it reaches the judge.

  6. #6
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    2,254
    Mentioned
    21 Post(s)
    Quoted
    238 Post(s)

    Default

    oh oh, i remember, I think runaway (?) came up with a TPA function that you can search for multiple groups of colours but it only returns true if they are within a defined distance of each other. Here ill find the link
    http://villavu.com/forum/showthread.php?t=83397
    edit: and this:
    http://villavu.com/forum/showthread.php?t=82580

  7. #7
    Join Date
    Dec 2011
    Location
    Holland
    Posts
    545
    Mentioned
    0 Post(s)
    Quoted
    19 Post(s)

    Default

    I haven't done RS object finding in a while, but my idea is:
    1. Find the yellow dot on the MM that is closest to the player's square (if that's always the judge, otherwise get MM angle and change the point it has to be closest to)
    2. Use MMToMS
    3. Find the judge's colors/DTM around the result
    4. Use MMouse, uptext and GetOptions
    5. WIN
    Though I don't know how far the judge and the guards move.

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

    Default

    Sort the atpa from you..

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
  •