Murloc Cult

Back to the archive

Level 3 autonomously; fix for “off-mesh” NPCs

Crashtroller reaches level 3 alone (scorpids, cactus apples picked with the opening spell, new gear) but could not turn in two quests: Gornek stands inside the Den, at a point the navigation mesh does not cover. Movement now aims at the NPC's real position when visible, otherwise at a reachable point close by.

Commit
320bc2e
Build
Build success (1 min) · Target worldserver

Finding

PathGenerator returned PATHFIND_NOPATH | PATHFIND_SHORTCUT (type 10) towards Gornek's stored position: spawn coordinates inside a building, outside mesh polygons. Two completed quests stayed in the log.

Fix

  1. To turn in or pick up a quest, the brain first aims at the NPC's real position when visible within 60 m (what a player does), and only otherwise at the known spawn position.
  2. If the exact point is off the mesh, MoveTo tries neighbouring points on rings of 2, 4, 6 then 8 m (8 directions), with the ground height recomputed (Map::GetHeight, vertical gap ≤ 6 m), and follows the first valid path. Still no straight-line movement off the mesh.

Observed progress

  • level 2 → 3;
  • “Sting of the Scorpid” completed, 6 cactus apples picked (locks opened by spell);
  • “Ragged Leather Boots” and “Frayed Bracers” equipped;
  • no more spurious takeovers caused by client echoes.