Coded something like this for Evertorn but can't remember where I added the code off the top of my head. Will check it later today and let you know.
Basically what I did was add a new column to spawn2 which linked all the spawns to that specific flag, then added a column to zones which was the flag spawn2 looked at to see what NPCs should spawn.
I originally coded this for the adventure system I set up, which set the flag based on the persons level so it spawned level appropriate NPCs, but I'll probably expand it to use it for some of the other ideas I have as well.
Really simple to implement though.
|