So, I'm trying to work with waypoints with no luck. I can add waypoints no problem and have the npc walk the waypoints in order, but anything beyond that causes grief.

For some reason it seems that it's not setting the waypoint properly when I first spawn it.
Instead of the waypoint showing up as a smaller version of the creature, it shows up as a wisp and in the .wp show info it says <not found> for the creature.
When I set a waittime, it throws an error in the console and then the npc just says "error" or "npc not found" when he crosses the waypoint.
Code:
CastSpell: unknown spell id 30 by caster: creature (Entry: 6)
MaNGOS/0.13.0-DEV (* * Revision 7434 - *) for Win32 (little-endian)
Using script library: Revision[*] * * (Win32)
Using World DB: FCDB 3.1 SD2 r900 ACID 7 NGB 4.1 for MaNGOS 7390 WotLK Blizzlike