if you had one of each npc (and lets say the npcs walk around) that u wanted to be able to send the player to an npc, then you could update the location of the npc say every second into a variable something like this.
Code:
local Mobx
local Moby
local Mobz
local Mobo
function Mob_OnSpawn(pUnit,Event)
pUnit:RegisterEvent("Mob_UpdateLoc", 1000, 0)
end
function Mob_UpdateLoc(pUnit,Event)
Mobx = Mob:GetX()
Moby = Mob:GetY()
Mobz = Mob:GetZ()
Mobo = Mob:GetO()
end
RegisterUnitEvent(NPCID, 16, "Mob_OnSpawn")
Tadaaaa
hope that helps