Updated spawnentry (markdown)

Paul Coene 2019-09-04 10:10:37 -04:00
parent 81e6b14fe3
commit 01f234f275

@ -4,3 +4,15 @@ spawngroupID|int(11)|NO|PRI|0|
npcID|int(11)|NO|PRI|0| npcID|int(11)|NO|PRI|0|
chance|smallint(4)|NO| |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 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