One way of getting waypoints with minimal fuss
in glorious pseudo code for NPC::Process()
Setup a timer called something along the lines of "MoveMe".
if MoveMe->Check() then
1. find a mob that I would consider "friendly"
2. swap my origin coordinates to that of my friend, with a slight offset (rand()%5 on x,y)
3. set ismovinghome to true
--MV
|