Results 1 to 6 of 6

Thread: Proper NPC Finding

  1. #1
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default Proper NPC Finding

    so now im trying to limit the area (white line by the pink box) to search for the Judge to try and avoid problems with the guards that surrond him- mainly the two next to the blue arrow because they often appear on the mainscreen while the camera angle is low and get misclicked or moused over when looking for uptext because they are the same color (second picture). To solve this I am trying to use the minimap to return only the yellow dot(s) as positive values to search for and click on inside the pink box if they satisfy the color and uptext.

    EDIT:' it also needs to be able to find the Judge if some one is standing over the Judge, because then the yellow dot is covered up with the players white dot'

    is this possible with the two guards often appearing on the mainscreen when the camera angle is low- will they still get missclicked? i cant find a releavent MMtoMS guide and im uncertain if the FindObjThroughMM is the right function im looking for to do this. is there a better way? any tips/hints would be appreciated.

    im not sure why they get misclicked because i have a mmouse then check up text to ensure a guard isnt the NPC being clicked on
    Simba Code:
    if FindObjCustom(jx, jy, ['omp', 'tition'], [judgecolor1, judgecolor2, judgecolor3], 5) then
    begin
      MMouse(jx,jy,0,0);
      if IsUpTextMultiCustom(['omp', 'tition']) then
      begin
        ClickMouse2(mouse_left);

    if this is a inncorrect or noobish method i would still like to know how to limit objects it checks on the mainscreen to narrow the selection down

    thanks a ton in advance! last thing before it's a flawless script (other then randoms ha)!

    two guides i thought might be useful but unsure because EOC
    http://villavu.com/forum/showthread.php?t=100227 - surfaces
    http://villavu.com/forum/showthread.php?t=76005 - how to find a moving NPC





    Last edited by Sk1nyNerd; 04-24-2013 at 01:36 AM.

    View my OSR Script Repository!


    Botted to max
    Guides: How to Report Bugs to the Scripter
    ~~~~ Moved to Java. Currently Lurking ~~~~

  2. #2
    Join Date
    Mar 2013
    Location
    Shaolin
    Posts
    863
    Mentioned
    24 Post(s)
    Quoted
    519 Post(s)

    Default

    Use a TPA. I suggest using the tool in my sig.
    You have permission to steal anything I've ever made...

  3. #3
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default

    Quote Originally Posted by Joseph D View Post
    Use a TPA. I suggest using the tool in my sig.
    http://docs.villavu.com/simba/scriptref/tpa.html

    be more specific perhaps? ive never used one

    can i get a second on using a TPA or other suggestions?

    View my OSR Script Repository!


    Botted to max
    Guides: How to Report Bugs to the Scripter
    ~~~~ Moved to Java. Currently Lurking ~~~~

  4. #4
    Join Date
    Mar 2007
    Posts
    393
    Mentioned
    1 Post(s)
    Quoted
    98 Post(s)

    Default

    use TPA and if you stand next to judge then start sorting your TPA's from point(MSCx, MSCy).

  5. #5
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    Definitely use TPAs, although as you don't quite understand them, I suggest you look up and use ACA in order to learn to use it - And the wonders of it's auto-generated object (or in this case person) finding function.

    http://villavu.com/forum/showthread.php?t=98368

  6. #6
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default

    can i get a relavent guide to some TPA's that would make this happen? i dont know what im really looking for on what to use the TPA with.

    the only thing i know about a TPA is its an Array of Points or "Tpoints" (whats the T stand for?) so I am assuming those points will consist of the Judge Colors? and theres obviously a load functions as seen above in the link to use

    Thanks

    View my OSR Script Repository!


    Botted to max
    Guides: How to Report Bugs to the Scripter
    ~~~~ Moved to Java. Currently Lurking ~~~~

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
  •