Ahh, so it sounds like your issue is with holdzones, not just dynamic zones in general. I haven't tried messing with hold zones yet, so I don't really know much about it or how well it works.
What perl stuff are you running to get the spawngroup ID? To get the NPC ID, you should be able to run something like this:
$npc->GetNPCTypeID();
But, you may have to get the NPC using another command first. You probably won't be able to run any commands to get the spawnID in the EVENT_SPAWN, because all of that stuff is being built as it spawns, so it won't be able to get it until after the spawning is completed. You should be able to start a timer when it spawns and then get the NPC ID later. But, timers probably can't get NPC too easily to run commands on. Not using NPC names will probably complicate things though :P
What exactly are you trying to do with these spawnIDs and spawngroups?
|