diff --git a/spawnentry.md b/spawnentry.md index d64dc1a..0485162 100644 --- a/spawnentry.md +++ b/spawnentry.md @@ -3,4 +3,16 @@ spawngroupID|int(11)|NO|PRI|0| npcID|int(11)|NO|PRI|0| chance|smallint(4)|NO| |0| -condition_value_filter|mediumint(9)|NO| |1|1:Always possible, 2-n:Will only spawn if condition_value in spawn2 matches \ No newline at end of file +condition_value_filter|mediumint(9)|NO| |1|1:Always possible, 2-n:Will only spawn if condition_value in spawn2 matches + +The spawnentry table has an entry for every NPC that is possible for a spawngroup. Every [spawn2](https://github.com/EQEmu/Server/wiki/spawn2) entry is associated with exactly one [spawngroup](https://github.com/EQEmu/Server/wiki/spawngroup). If an entry in the [spawn2](https://github.com/EQEmu/Server/wiki/spawn2)table is enabled, and the condition value for that entry's condition is at least 1, an NPC is picked based on chance from this (spawnentry) table. + +The condition_value_filter allows further filtering of which NPC gets picked. + +It is easy to get the roles of the _condition, cond_value (both from spawn2) and the condition_value_filter confused. To summarize: + +**Field**|**Table**|**Notes** +-----|-----|----- +_condition|spawn2|A spawn2 entry will not file unless _condition is enabled (see spawn_condition_values). +cond_value|spawn2|Nearly 100% of the usage of this field is on(1)/off(0). 0-off,1-on,2-n max _condition allowed to spawn. +condition_value_filter|spawnentry|The cond_value of the _condition in the relevant spawn2 entry must match exactly to enable this npc \ No newline at end of file