http://wiki.eqemulator.org/p?Waypoints&frm=Main
check that out.
you'll have to use #grid max.. then #grid add to that number + 1
then you #gassign and repop and wait until the grid gets assigned to the npc (takes a few seconds.. you can check with #wpinfo.. then you just do #wpadd)