From playing around with the database a little it looks like the crashes only happen if there is an orphan record in npc_faction_entries -- that is, a record in npc_faction_entries has an npc_faction_id that doesn't match any id in npc_faction.
In the source sample you submitted, you made that typo where one of the records was supposed to be faction id 171 but you have it as 178. The zone server would crash on me too, and then I updated that one record to be faction id 171 like it was supposed to and no more crashes.
|