Skip to content

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 ​

FieldTypeAttributesKeyNullDefaultExtraComment
instanceMapIdsmallintunsignedPRINO
bossStateIdtinyintunsignedPRINO
bossStatestinyintunsignedPRINO
spawnGroupIdintunsignedPRINO
flagstinyintunsignedNO
 

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, 1 << state for enum EncounterState values

IDstate
0NOT_STARTED
1IN_PROGRESS
2FAIL
3DONE
4SPECIAL

 

spawnGroupId ​

groupId from spawn_group_template  

flags ​

ValueFlagNameComment
10x01FLAG_ACTIVATE_SPAWN
20x02FLAG_BLOCK_SPAWN
40x04FLAG_ALLIANCE_ONLY
80x08FLAG_HORDE_ONLY