PDA

View Full Version : Changing Spawn Time of NPC Vendors


DonBono
08-09-2008, 10:26 PM
in what file is the spawn time located for the Npc to respawn after they have been killed. Also how to change their stats to make them a bit more resilant to damage.

Shadow
08-10-2008, 11:34 AM
Both of these have been covered other places.

For the resurrect time, it's in systems.gdb, but it's not a simple number. Resurrecting a NPC is an event. An event only happens every once in a while (controlled by NewEventMinTime and NewEventMaxTime) and only has a certain chance of happening (EventChance). When an event happens, then it chooses which specific event is going to happen. The parm for the resurrecting is EventChanceNewNpc. Just a note, the chance numbers for the different events are all relative to each, so if you make one higher than the other events will happen less.

The easiest way to make the NPCs more hardy is to find their database entries in Database/Monsters/NpcTypes.gdb and add an enhancement like they were a unique monster. Look in MonsterTypes.gdb and you will see what I mean.