Skip to content

spell_area

This table is used to apply a specific spell aura to the player within an area in the game. When any player enters this area or somehow interacts with a quest, this aura will be handled accordingly.

Structure ​

FieldTypeAttributesKeyNullDefaultExtraComment
spellintunsignedPRINO0
areaintunsignedPRINO0
quest_startintunsignedPRINO0
quest_endintunsignedNO0
aura_spellintsignedPRINO0
racemaskintunsignedPRINO0
gendertinyintunsignedPRINO2
autocasttinyintunsignedNO0
quest_start_statusintsignedNO64
quest_end_statusintsignedNO11
 

Description of fields ​

spell ​

The Spell ID to be casted on the player.  

area ​

The AreaTable ID where spell should be applied.  

quest_start ​

The Quest ID which the player must have in the state defined by quest_start_status for the spell to apply.  

quest_end ​

The Quest ID which the player must not have in the state defined by quest_end_status for the spell to apply. 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) imposes additional condition.

  • aura_spell < 0: If the player has aura -aura_spell then spell will not be activated.
  • aura_spell = 0: This column is ignored.
  • aura_spell > 0: If the player has no aura aura_spell then spell will not be activated.  

racemask ​

Race mask of ChrRace IDs spell applies to. (0: any race)

ValueFlagNameValueFlagName
10x0001Human20x0002Orc
40x0004Dwarf160x0010Undead
80x0008Night Elf320x0020Tauren
640x0040Gnome1280x0080Troll
10240x0400Draenei5120x0200Blood Elf
11010x044DAlliance6900x02B2Horde

 

gender ​

The player gender this entry applies to.

enum Gender

IDNameComment
0GENDER_MALEMale
1GENDER_FEMALEFemale
2GENDER_NONEAny

 

autocast ​

The spell will be automatically applied when the character enters the area. Also prevents the user from removing it.  

quest_start_status ​

quest_end_status ​

Bitmask of different quest statuses.

enum QuestStatus

ValueFlagNameComment
10x01QUEST_STATUS_NONEPlayer does not have or had quest at all. He could accept it, but he did not (yet).
20x02QUEST_STATUS_COMPLETEPlayer fulfilled objectives, but did not hand it in yet.
80x08QUEST_STATUS_INCOMPLETEPlayer did not fulfill objectives yet.
320x20QUEST_STATUS_FAILEDPlayer failed to fulfill objectives for any reason, e.g. time limit.
640x40QUEST_STATUS_REWARDEDPlayer handed quest in and this is sort of a post-quest interaction.

 

Examples ​