instance_spawn_groups
This table manages spawn groups in instances based on boss state.
A spawn group is activated if any of its FLAG_ACTIVATE_SPAWN conditions are met, unless any of its FLAG_BLOCK_SPAWN conditions are met - this allows for some neat complex management if necessary.
Structure
| Field | Type | Attributes | Key | Null | Default | Extra | Comment |
|---|---|---|---|---|---|---|---|
| instanceMapId | smallint | unsigned | PRI | NO | |||
| bossStateId | tinyint | unsigned | PRI | NO | |||
| bossStates | tinyint | unsigned | PRI | NO | |||
| spawnGroupId | int | unsigned | PRI | NO | |||
| flags | tinyint | unsigned | NO |
Description of fields
instanceMapId
Map ID the boss is on.
bossStateId
Data index of the boss set in its instance script header file.
bossStates
bitmask from enum EncounterState values
| Value | Flag | Name |
|---|---|---|
| 1 | 0x01 | NOT_STARTED |
| 2 | 0x02 | IN_PROGRESS |
| 4 | 0x04 | FAIL |
| 8 | 0x08 | DONE |
| 16 | 0x10 | SPECIAL |
| 32 | 0x20 | TO_BE_DECIDED |
spawnGroupId
groupId from spawn_group_template
flags
| Value | Flag | Name | Comment |
|---|---|---|---|
| 1 | 0x01 | FLAG_ACTIVATE_SPAWN | |
| 2 | 0x02 | FLAG_BLOCK_SPAWN | |
| 4 | 0x04 | FLAG_ALLIANCE_ONLY | |
| 8 | 0x08 | FLAG_HORDE_ONLY |
