View Single Post
  #1  
Old 04-15-2002, 01:42 AM
Malevolent
Hill Giant
 
Join Date: Mar 2002
Posts: 171
Default 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
Reply With Quote