Skip to content

instance

This table holds static information on all current instances that have not yet been reset.

Structure ​

FieldTypeAttributesKeyNullDefaultExtraComment
idintunsignedPRINO0
mapsmallintunsignedMULNO0
resettimebigintunsignedMULNO0
difficultytinyintunsignedMULNO0
completedEncountersintunsignedNO0
datatinytextNO
 

Description of fields ​

id ​

The instance ID. This number is unique to every instance.  

map ​

The Map ID the instance is in.  

resettime ​

The Unix timestamp when the instance will be reset. This field is zero for raid and heroic instances. The resettime of raid and heroic instances for every specific group is stored in instance_reset.  

difficulty ​

IDName
0RAID_DIFFICULTY_10MAN_NORMAL / DUNGEON_DIFFICULTY_NORMAL
1RAID_DIFFICULTY_25MAN_NORMAL / DUNGEON_DIFFICULTY_HEROIC
2RAID_DIFFICULTY_10MAN_HEROIC
3RAID_DIFFICULTY_25MAN_HEROIC

 

completedEncounters ​

Bitmask of completed encounters, where EncounterBit is DungeonEncounter OrderIndex of the matching entry. completedEncounters |= 1 << EncounterBit;  

data ​

String of space separated values in 3 parts

  1. Header: space separated chars of DataHeader from InstanceMapScript header file (usually instance shorthand)
  2. BossState: encounterState in order of encounters
  3. MiscData (optional): state of doors, timers, events unique to this instance, manually defined in InstanceMapScript.