SRL Archive - OSR Help

Proper NPC Finding


Sk1nyNerd

2013-04-23 21:04:52

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
    
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





Wu-Tang Clan

2013-04-23 21:43:21

Use a TPA. I suggest using the tool in my sig.

Sk1nyNerd

2013-04-24 11:31:58

From: Joseph D
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?

t4q

2013-04-24 16:59:33

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

Kevin

2013-04-24 17:31:13

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

Sk1nyNerd

2013-04-26 20:41:49

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