Log in

View Full Version : Find Command


provocating
03-20-2016, 08:53 PM
I know which routine is run when the FindPerson command is clicked. Does anyone know what code is run when you move around and a new path is created? To be specific, when you click find and pick an NPC and the yellow path is created. When you move around the path is recalculated. I want to tweak mine a bit to my liking.

demonstar55
03-20-2016, 09:19 PM
the recalc I think is 100% client side. We send it a list of points and it handles the rest.

ghanja
03-20-2016, 09:21 PM
Client sends the server a request, the server sends a reply ("findable" [sic] mob/NPC) and client presents the path.

provocating
03-20-2016, 09:23 PM
That is what I was thinking too, just because I have exhausted my searches in the code. One thing I notice is that you almost have to loop around the path again and make them cross to get it to recalculate. I guess it was like this in live too. I remember using it a good bit when it came out, I think it was around Luclin. I cannot remember if it was quirky though, my memory fails me on that.

ghanja
03-20-2016, 09:27 PM
That is what I was thinking too, just because I have exhausted my searches in the code. One thing I notice is that you almost have to loop around the path again and make them cross to get it to recalculate. I guess it was like this in live too. I remember using it a good bit when it came out, I think it was around Luclin. I cannot remember if it was quirky though, my memory fails me on that.

It was annoyingly quirky on live, at least when I last logged on/played, yes.

provocating
03-20-2016, 09:31 PM
Good enough for me

demonstar55
03-20-2016, 09:31 PM
Client sends the server a request, the server sends a reply ("findable" [sic] mob/NPC) and client presents the path.

We tell it the path.

ghanja
03-20-2016, 09:51 PM
We tell it the path.

Yeah, using the pathing nodes, I should have said displayed rather than presents, as that's misleading. My bad.