Log in

View Full Version : NPC Pathing


blackdragonsdg
02-01-2010, 04:03 AM
I am trying to export the npc pathing I set on my minilogin but I seem to be missing something. Setting the way points in game using the #wpadd command sets the way points for that particular npc in the grid and grid_entries tables but there isn't anything linking those tables to the npc's as far as I can tell. I noticed that in the spawn2 table there is a column labeled pathgrid but it is always set to 0. What part am I missing that will link it all together?

Lillu
02-01-2010, 04:52 AM
You miss nothing, the pathgrid field in spawn2 table is the one linking NPCs and pathgrids.
You create a:
- pathgrid (grid table)
- you add waypoints to that grid (grid_entries )
- you have to assign the pathgridID to a specifit NPC in the spawn2 table pathgrid frield.

Make sure the pathgrid field isn't 0.

trevius
02-01-2010, 06:02 AM
This should make it as clear as possible:

http://www.georgestools.eqemulator.net/spawning_tut/moving_spawns.html

blackdragonsdg
02-01-2010, 02:53 PM
Oh so I just needed to add the pathgrid id's to the spawn2 table, that is simple enough. Thanks for the help!