Try just having a zone as a dynamic zone with hold state equal to true in the database. Try adding a spawn to the db and what not. Do #npcstats and look at the SpawnGroupID, not the NPC ID. After that, leave the zone. When you go back in, do #npcstats on them again. There SpawnGroupID (if they are the only one in the zone) will be at 0. Doing a #repop will set their SpawnGroupID to the proper SpawnGroupID in the db.
However, now it looks like I'm running into more issues because spawning another NPC with an NPC requires the NPC ID and not the SpawnGroup ID. The SpawnGroupID is the only ID you can access in PERL via a var. Also, when spawning a new NPC, in that NPC under the sub EVENT_SPAWN, there is no way for them to retrieve the spawngroup ID or the NPC ID (meaning there is no way to tell what the NPC is). You can retrieve names, but all NPCs on my server have no name (i'm testing out a special design), so I need to be able to either access the NPC ID at all times or the SpawnGroupID at all times (I prefer the NPC ID) because the spawn function and most of the functions that access NPCs require the NPC ID but the only thing u can get via variables with PERL is the SpawnGroupID.
So, right now, there is no way for me to detect what type of NPC an NPC is if it's newly spawned and has no spawn group =/=.
Please add code to retrieve an NPC's ID and not their SpawnGroupID or something ^_^, unless you can tell me another way to do it ;p.
__________________
//The Path of Chaos Server-
//Fate Industries
//Lots of stuff O-o
|