Skip to content

spell_area

Structure ​

FieldTypeAttributesKeyNullDefaultExtraComment
spellintunsignedPRINO0
areaintunsignedPRINO0
quest_startintunsignedPRINO0
quest_endintunsignedNO0
aura_spellintsignedPRINO0
racemaskbigintunsignedPRINO0
gendertinyintunsignedPRINO2
flagstinyintunsignedNO3
quest_start_statusintsignedNO64
quest_end_statusintsignedNO11
 

Description of fields ​

spell ​

The spell ID of the spell to be casted on the player. See SpellName.db2).  

area ​

The area ID. Type ".gps" in-game and find the "Area:" number to use for this cell. Also see AreaTable.db2.  

quest_start ​

The entry of the quest which the player must have in the state defined by quest_start_status. See quest_template.ID.  

quest_end ​

The entry of the quest which the player must not have in the state defined by quest_end_status. See quest_template.ID. Setting both quest_start and quest_end to the same value is useless.  

aura_spell ​

If set, this value (plus or minus aura spell ID from SpellName.db2) imposes additional condition.

The value has the following effect:

    < 0  (negative values) If the player has aura -aura_spell then the spell will not be activated.
      0  this column is ignored.
    > 0  (positive values) If the player has no aura aura_spell then the spell will not be activated.

 

racemask ​

Calculate using table below. (ordered by Race ID)

RaceMask
RACE_HUMAN0x1
RACE_ORC0x2
RACE_DWARF0x4
RACE_NIGHTELF0x8
RACE_UNDEAD_PLAYER0x10
RACE_TAUREN0x20
RACE_GNOME0x40
RACE_TROLL0x80
RACE_GOBLIN0x100
RACE_BLOODELF0x200
RACE_DRAENEI0x400
RACE_WORGEN0x200000
RACE_PANDAREN_NEUTRAL0x800000
RACE_PANDAREN_ALLIANCE0x1000000
RACE_PANDAREN_HORDE0x2000000
RACE_NIGHTBORNE0x4000000
RACE_HIGHMOUNTAIN_TAUREN0x8000000
RACE_VOID_ELF0x10000000
RACE_LIGHTFORGED_DRAENEI0x20000000
RACE_ZANDALARI_TROLL0x40000000
RACE_KUL_TIRAN0x80000000
RACE_DARK_IRON_DWARF0x800
RACE_VULPERA0x1000
RACE_MAGHAR_ORC0x2000
RACE_MECHAGNOME0x4000
RACE_DRACTHYR_ALLIANCE0x10000
RACE_DRACTHYR_HORDE0x8000
PrecalculatedMask
RACEMASK_ALLIANCE0xB1214C4D
RACEMASK_HORDE0x4E00B3B2
RACEMASK_ALL_PLAYABLE0xFFA1FFFF
 

gender ​

The gender type this entry applies to. 0 = Male, 1 = Female, 2 = Any.  

flags ​

FlagFlag (hex)NameComment
10x01SPELL_AREA_FLAG_AUTOCASTIf the spell should be automatically applied when the character enters the area. Also prevents the user from removing it.
20x02SPELL_AREA_FLAG_AUTOREMOVEIf the spell should be automatically removed when the character is inside the area (only works with quest updates)
 

quest_start_status/quest_end_status ​

Quest StatusFlagsExplanation
QUEST_STATUS_NONE1Player does not have or had quest at all. He could accept it, but he did not (yet).
QUEST_STATUS_COMPLETE2Player fulfilled objectives, but did not hand it in yet.
❌ QUEST_STATUS_UNAVAILABLE4(not used)
QUEST_STATUS_INCOMPLETE8Player did not fulfill objectives yet
❌ QUEST_STATUS_AVAILABLE16(not used)
QUEST_STATUS_FAILED32Player failed to fulfill objectives for any reason, e.g. time limit
QUEST_STATUS_REWARDED64Player handed quest in and this is sort of a post-quest interaction