diff --git a/spawnentry.md b/spawnentry.md index 0485162..27e1da0 100644 --- a/spawnentry.md +++ b/spawnentry.md @@ -9,10 +9,16 @@ The spawnentry table has an entry for every NPC that is possible for a spawngrou 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: +It is easy to get the roles of the _condition, cond_value (both from spawn2) and 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 +_condition|spawn2|A spawn2 entry will not fire unless _condition is zero (always on) or a specified non-zero _condition is enabled (see spawn_condition_values). +cond_value|spawn2|Only used if (_condition > 0). Nearly 100% of the usage of this field is on(1)/off(0). +condition_value_filter|spawnentry|The cond_value of the _condition in the relevant spawn2 entry must match exactly to enable this npc. + +**(Note about why condition_value_filter was added)** + +Most eqemu servers utilize (2) spawn2 entries to enable day/night. One entry for Night (condition 1) and another for Day (condition 2). Using this technique does not allow for day/night spawns to co-exist. On live, some zones such as lake rathe, allow day mobs to spawn in spots where night mobs were killed, while leaving the rest of the night mobs up. + +The addition of the condition_value_filter in spawnentry allows day/night to be implemented using a single condition and single spawn2 locations for each mob. These spawn2 entries are always enabled (cond_value 1). The single condition simply toggles between day/night. This is done by using a spawn_condition with an onchange value of 0 (do nothing). The spawnentry rows are then filtered based on the current value of the _condition. See [spawn_events](https://github.com/EQEmu/Server/wiki/spawn_events)table for details on how day/night are enabled/disabled. \ No newline at end of file