private static void DisplayPath(Spell spell, WorldObject caster, WorldObject target, ref Vector3 to) { if (!(caster is Character)) return; if (!NPCMgr.Loaded) { NPCMgr.LoadAllLater(); caster.Say("Loading NPCs..."); return; } var from = caster.Position; from.Z += 5; to.Z += 5; caster.Map.Terrain.FindPath(new PathQuery(from, ref to, caster, OnFoundPath)); }