[9362] Make specs work at least for action bars
[getmangos.git] / src / game / SharedDefines.h
bloba6921a86aec2663745e4becf6b8263aa27dbf1ef
1 /*
2 * Copyright (C) 2005-2010 MaNGOS <http://getmangos.com/>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef MANGOS_SHAREDDEFINES_H
20 #define MANGOS_SHAREDDEFINES_H
22 #include "Platform/Define.h"
23 #include <cassert>
25 enum Gender
27 GENDER_MALE = 0,
28 GENDER_FEMALE = 1,
29 GENDER_NONE = 2
32 // Race value is index in ChrRaces.dbc
33 enum Races
35 RACE_HUMAN = 1,
36 RACE_ORC = 2,
37 RACE_DWARF = 3,
38 RACE_NIGHTELF = 4,
39 RACE_UNDEAD_PLAYER = 5,
40 RACE_TAUREN = 6,
41 RACE_GNOME = 7,
42 RACE_TROLL = 8,
43 //RACE_GOBLIN = 9,
44 RACE_BLOODELF = 10,
45 RACE_DRAENEI = 11,
46 //RACE_FEL_ORC = 12,
47 //RACE_NAGA = 13,
48 //RACE_BROKEN = 14,
49 //RACE_SKELETON = 15,
50 //RACE_VRYKUL = 16,
51 //RACE_TUSKARR = 17,
52 //RACE_FOREST_TROLL = 18,
53 //RACE_TAUNKA = 19,
54 //RACE_NORTHREND_SKELETON = 20,
55 //RACE_ICE_TROLL = 21
58 // max+1 for player race
59 #define MAX_RACES 12
61 #define RACEMASK_ALL_PLAYABLE \
62 ((1<<(RACE_HUMAN-1)) |(1<<(RACE_ORC-1)) |(1<<(RACE_DWARF-1)) | \
63 (1<<(RACE_NIGHTELF-1))|(1<<(RACE_UNDEAD_PLAYER-1))|(1<<(RACE_TAUREN-1)) | \
64 (1<<(RACE_GNOME-1)) |(1<<(RACE_TROLL-1)) |(1<<(RACE_BLOODELF-1))| \
65 (1<<(RACE_DRAENEI-1)) )
67 // Class value is index in ChrClasses.dbc
68 enum Classes
70 CLASS_WARRIOR = 1,
71 CLASS_PALADIN = 2,
72 CLASS_HUNTER = 3,
73 CLASS_ROGUE = 4,
74 CLASS_PRIEST = 5,
75 CLASS_DEATH_KNIGHT = 6,
76 CLASS_SHAMAN = 7,
77 CLASS_MAGE = 8,
78 CLASS_WARLOCK = 9,
79 // CLASS_UNK2 = 10,unused
80 CLASS_DRUID = 11,
83 // max+1 for player class
84 #define MAX_CLASSES 12
86 #define CLASSMASK_ALL_PLAYABLE \
87 ((1<<(CLASS_WARRIOR-1))|(1<<(CLASS_PALADIN-1))|(1<<(CLASS_HUNTER-1))| \
88 (1<<(CLASS_ROGUE-1)) |(1<<(CLASS_PRIEST-1)) |(1<<(CLASS_SHAMAN-1))| \
89 (1<<(CLASS_MAGE-1)) |(1<<(CLASS_WARLOCK-1))|(1<<(CLASS_DRUID-1)) | \
90 (1<<(CLASS_DEATH_KNIGHT-1)) )
92 #define CLASSMASK_ALL_CREATURES ((1<<(CLASS_WARRIOR-1)) | (1<<(CLASS_PALADIN-1)) | (1<<(CLASS_ROGUE-1)) | (1<<(CLASS_MAGE-1)) )
94 #define CLASSMASK_WAND_USERS ((1<<(CLASS_PRIEST-1))|(1<<(CLASS_MAGE-1))|(1<<(CLASS_WARLOCK-1)))
96 #define PLAYER_MAX_BATTLEGROUND_QUEUES 2
98 enum ReputationRank
100 REP_HATED = 0,
101 REP_HOSTILE = 1,
102 REP_UNFRIENDLY = 2,
103 REP_NEUTRAL = 3,
104 REP_FRIENDLY = 4,
105 REP_HONORED = 5,
106 REP_REVERED = 6,
107 REP_EXALTED = 7
110 #define MIN_REPUTATION_RANK (REP_HATED)
111 #define MAX_REPUTATION_RANK 8
113 enum MoneyConstants
115 COPPER = 1,
116 SILVER = COPPER*100,
117 GOLD = SILVER*100
120 enum Stats
122 STAT_STRENGTH = 0,
123 STAT_AGILITY = 1,
124 STAT_STAMINA = 2,
125 STAT_INTELLECT = 3,
126 STAT_SPIRIT = 4
129 #define MAX_STATS 5
131 enum Powers
133 POWER_MANA = 0,
134 POWER_RAGE = 1,
135 POWER_FOCUS = 2,
136 POWER_ENERGY = 3,
137 POWER_HAPPINESS = 4,
138 POWER_RUNE = 5,
139 POWER_RUNIC_POWER = 6,
140 POWER_HEALTH = 0xFFFFFFFE // (-2 as signed value)
143 #define MAX_POWERS 7
145 enum SpellSchools
147 SPELL_SCHOOL_NORMAL = 0,
148 SPELL_SCHOOL_HOLY = 1,
149 SPELL_SCHOOL_FIRE = 2,
150 SPELL_SCHOOL_NATURE = 3,
151 SPELL_SCHOOL_FROST = 4,
152 SPELL_SCHOOL_SHADOW = 5,
153 SPELL_SCHOOL_ARCANE = 6
156 #define MAX_SPELL_SCHOOL 7
158 enum SpellSchoolMask
160 SPELL_SCHOOL_MASK_NONE = 0x00, // not exist
161 SPELL_SCHOOL_MASK_NORMAL = (1 << SPELL_SCHOOL_NORMAL), // PHYSICAL (Armor)
162 SPELL_SCHOOL_MASK_HOLY = (1 << SPELL_SCHOOL_HOLY ),
163 SPELL_SCHOOL_MASK_FIRE = (1 << SPELL_SCHOOL_FIRE ),
164 SPELL_SCHOOL_MASK_NATURE = (1 << SPELL_SCHOOL_NATURE),
165 SPELL_SCHOOL_MASK_FROST = (1 << SPELL_SCHOOL_FROST ),
166 SPELL_SCHOOL_MASK_SHADOW = (1 << SPELL_SCHOOL_SHADOW),
167 SPELL_SCHOOL_MASK_ARCANE = (1 << SPELL_SCHOOL_ARCANE),
169 // unions
171 // 124, not include normal and holy damage
172 SPELL_SCHOOL_MASK_SPELL = ( SPELL_SCHOOL_MASK_FIRE |
173 SPELL_SCHOOL_MASK_NATURE | SPELL_SCHOOL_MASK_FROST |
174 SPELL_SCHOOL_MASK_SHADOW | SPELL_SCHOOL_MASK_ARCANE ),
175 // 126
176 SPELL_SCHOOL_MASK_MAGIC = ( SPELL_SCHOOL_MASK_HOLY | SPELL_SCHOOL_MASK_SPELL ),
178 // 127
179 SPELL_SCHOOL_MASK_ALL = ( SPELL_SCHOOL_MASK_NORMAL | SPELL_SCHOOL_MASK_MAGIC )
182 inline SpellSchools GetFirstSchoolInMask(SpellSchoolMask mask)
184 for(int i = 0; i < MAX_SPELL_SCHOOL; ++i)
185 if(mask & (1 << i))
186 return SpellSchools(i);
188 return SPELL_SCHOOL_NORMAL;
191 enum ItemQualities
193 ITEM_QUALITY_POOR = 0, //GREY
194 ITEM_QUALITY_NORMAL = 1, //WHITE
195 ITEM_QUALITY_UNCOMMON = 2, //GREEN
196 ITEM_QUALITY_RARE = 3, //BLUE
197 ITEM_QUALITY_EPIC = 4, //PURPLE
198 ITEM_QUALITY_LEGENDARY = 5, //ORANGE
199 ITEM_QUALITY_ARTIFACT = 6, //LIGHT YELLOW
200 ITEM_QUALITY_HEIRLOOM = 7
203 #define MAX_ITEM_QUALITY 8
205 const uint32 ItemQualityColors[MAX_ITEM_QUALITY] = {
206 0xff9d9d9d, //GREY
207 0xffffffff, //WHITE
208 0xff1eff00, //GREEN
209 0xff0070dd, //BLUE
210 0xffa335ee, //PURPLE
211 0xffff8000, //ORANGE
212 0xffe6cc80, //LIGHT YELLOW
213 0xffe6cc80 //LIGHT YELLOW
217 // ***********************************
218 // Spell Attributes definitions
219 // ***********************************
221 #define SPELL_ATTR_UNK0 0x00000001 // 0
222 #define SPELL_ATTR_RANGED 0x00000002 // 1 All ranged abilites have this flag
223 #define SPELL_ATTR_ON_NEXT_SWING_1 0x00000004 // 2 on next swing
224 #define SPELL_ATTR_UNK3 0x00000008 // 3 not set in 3.0.3
225 #define SPELL_ATTR_UNK4 0x00000010 // 4 isAbility
226 #define SPELL_ATTR_TRADESPELL 0x00000020 // 5 trade spells, will be added by client to a sublist of profession spell
227 #define SPELL_ATTR_PASSIVE 0x00000040 // 6 Passive spell
228 #define SPELL_ATTR_UNK7 0x00000080 // 7 can't be linked in chat?
229 #define SPELL_ATTR_UNK8 0x00000100 // 8 hide created item in tooltip (for effect=24)
230 #define SPELL_ATTR_UNK9 0x00000200 // 9
231 #define SPELL_ATTR_ON_NEXT_SWING_2 0x00000400 // 10 on next swing 2
232 #define SPELL_ATTR_UNK11 0x00000800 // 11
233 #define SPELL_ATTR_DAYTIME_ONLY 0x00001000 // 12 only useable at daytime, not set in 2.4.2
234 #define SPELL_ATTR_NIGHT_ONLY 0x00002000 // 13 only useable at night, not set in 2.4.2
235 #define SPELL_ATTR_INDOORS_ONLY 0x00004000 // 14 only useable indoors, not set in 2.4.2
236 #define SPELL_ATTR_OUTDOORS_ONLY 0x00008000 // 15 Only useable outdoors.
237 #define SPELL_ATTR_NOT_SHAPESHIFT 0x00010000 // 16 Not while shapeshifted
238 #define SPELL_ATTR_ONLY_STEALTHED 0x00020000 // 17 Must be in stealth
239 #define SPELL_ATTR_UNK18 0x00040000 // 18
240 #define SPELL_ATTR_LEVEL_DAMAGE_CALCULATION 0x00080000 // 19 spelldamage depends on caster level
241 #define SPELL_ATTR_STOP_ATTACK_TARGET 0x00100000 // 20 Stop attack after use this spell (and not begin attack if use)
242 #define SPELL_ATTR_IMPOSSIBLE_DODGE_PARRY_BLOCK 0x00200000 // 21 Cannot be dodged/parried/blocked
243 #define SPELL_ATTR_UNK22 0x00400000 // 22
244 #define SPELL_ATTR_UNK23 0x00800000 // 23 castable while dead?
245 #define SPELL_ATTR_CASTABLE_WHILE_MOUNTED 0x01000000 // 24 castable while mounted
246 #define SPELL_ATTR_DISABLED_WHILE_ACTIVE 0x02000000 // 25 Activate and start cooldown after aura fade or remove summoned creature or go
247 #define SPELL_ATTR_UNK26 0x04000000 // 26
248 #define SPELL_ATTR_CASTABLE_WHILE_SITTING 0x08000000 // 27 castable while sitting
249 #define SPELL_ATTR_CANT_USED_IN_COMBAT 0x10000000 // 28 Cannot be used in combat
250 #define SPELL_ATTR_UNAFFECTED_BY_INVULNERABILITY 0x20000000 // 29 unaffected by invulnerability (hmm possible not...)
251 #define SPELL_ATTR_UNK30 0x40000000 // 30 breakable by damage?
252 #define SPELL_ATTR_CANT_CANCEL 0x80000000 // 31 positive aura can't be canceled
254 #define SPELL_ATTR_EX_UNK0 0x00000001 // 0
255 #define SPELL_ATTR_EX_DRAIN_ALL_POWER 0x00000002 // 1 use all power (Only paladin Lay of Hands and Bunyanize)
256 #define SPELL_ATTR_EX_CHANNELED_1 0x00000004 // 2 channeled 1
257 #define SPELL_ATTR_EX_UNK3 0x00000008 // 3
258 #define SPELL_ATTR_EX_UNK4 0x00000010 // 4
259 #define SPELL_ATTR_EX_NOT_BREAK_STEALTH 0x00000020 // 5 Not break stealth
260 #define SPELL_ATTR_EX_CHANNELED_2 0x00000040 // 6 channeled 2
261 #define SPELL_ATTR_EX_NEGATIVE 0x00000080 // 7
262 #define SPELL_ATTR_EX_NOT_IN_COMBAT_TARGET 0x00000100 // 8 Spell req target not to be in combat state
263 #define SPELL_ATTR_EX_UNK9 0x00000200 // 9
264 #define SPELL_ATTR_EX_NO_INITIAL_AGGRO 0x00000400 // 10 no generates threat on cast 100%
265 #define SPELL_ATTR_EX_UNK11 0x00000800 // 11
266 #define SPELL_ATTR_EX_UNK12 0x00001000 // 12
267 #define SPELL_ATTR_EX_UNK13 0x00002000 // 13
268 #define SPELL_ATTR_EX_UNK14 0x00004000 // 14
269 #define SPELL_ATTR_EX_DISPEL_AURAS_ON_IMMUNITY 0x00008000 // 15 remove auras on immunity
270 #define SPELL_ATTR_EX_UNAFFECTED_BY_SCHOOL_IMMUNE 0x00010000 // 16 unaffected by school immunity
271 #define SPELL_ATTR_EX_UNK17 0x00020000 // 17
272 #define SPELL_ATTR_EX_UNK18 0x00040000 // 18
273 #define SPELL_ATTR_EX_UNK19 0x00080000 // 19
274 #define SPELL_ATTR_EX_REQ_COMBO_POINTS1 0x00100000 // 20 Req combo points on target
275 #define SPELL_ATTR_EX_UNK21 0x00200000 // 21
276 #define SPELL_ATTR_EX_REQ_COMBO_POINTS2 0x00400000 // 22 Req combo points on target
277 #define SPELL_ATTR_EX_UNK23 0x00800000 // 23
278 #define SPELL_ATTR_EX_UNK24 0x01000000 // 24 Req fishing pole??
279 #define SPELL_ATTR_EX_UNK25 0x02000000 // 25
280 #define SPELL_ATTR_EX_UNK26 0x04000000 // 26
281 #define SPELL_ATTR_EX_UNK27 0x08000000 // 27
282 #define SPELL_ATTR_EX_UNK28 0x10000000 // 28
283 #define SPELL_ATTR_EX_UNK29 0x20000000 // 29
284 #define SPELL_ATTR_EX_UNK30 0x40000000 // 30 overpower
285 #define SPELL_ATTR_EX_UNK31 0x80000000 // 31
287 #define SPELL_ATTR_EX2_UNK0 0x00000001 // 0
288 #define SPELL_ATTR_EX2_UNK1 0x00000002 // 1
289 #define SPELL_ATTR_EX2_CANT_REFLECTED 0x00000004 // 2 ? used for detect can or not spell reflected
290 #define SPELL_ATTR_EX2_UNK3 0x00000008 // 3
291 #define SPELL_ATTR_EX2_UNK4 0x00000010 // 4
292 #define SPELL_ATTR_EX2_AUTOREPEAT_FLAG 0x00000020 // 5
293 #define SPELL_ATTR_EX2_UNK6 0x00000040 // 6
294 #define SPELL_ATTR_EX2_UNK7 0x00000080 // 7
295 #define SPELL_ATTR_EX2_UNK8 0x00000100 // 8 not set in 3.0.3
296 #define SPELL_ATTR_EX2_UNK9 0x00000200 // 9
297 #define SPELL_ATTR_EX2_UNK10 0x00000400 // 10
298 #define SPELL_ATTR_EX2_HEALTH_FUNNEL 0x00000800 // 11
299 #define SPELL_ATTR_EX2_UNK12 0x00001000 // 12
300 #define SPELL_ATTR_EX2_UNK13 0x00002000 // 13
301 #define SPELL_ATTR_EX2_UNK14 0x00004000 // 14
302 #define SPELL_ATTR_EX2_UNK15 0x00008000 // 15 not set in 3.0.3
303 #define SPELL_ATTR_EX2_UNK16 0x00010000 // 16
304 #define SPELL_ATTR_EX2_UNK17 0x00020000 // 17 Hunters Shot and Stings only have this flag
305 #define SPELL_ATTR_EX2_UNK18 0x00040000 // 18 Only Revive pet - possible req dead pet
306 #define SPELL_ATTR_EX2_NOT_NEED_SHAPESHIFT 0x00080000 // 19 does not necessarly need shapeshift
307 #define SPELL_ATTR_EX2_UNK20 0x00100000 // 20
308 #define SPELL_ATTR_EX2_DAMAGE_REDUCED_SHIELD 0x00200000 // 21 for ice blocks, pala immunity buffs, priest absorb shields, but used also for other spells -> not sure!
309 #define SPELL_ATTR_EX2_UNK22 0x00400000 // 22
310 #define SPELL_ATTR_EX2_UNK23 0x00800000 // 23 Only mage Arcane Concentration have this flag
311 #define SPELL_ATTR_EX2_UNK24 0x01000000 // 24
312 #define SPELL_ATTR_EX2_UNK25 0x02000000 // 25
313 #define SPELL_ATTR_EX2_UNK26 0x04000000 // 26 unaffected by school immunity
314 #define SPELL_ATTR_EX2_UNK27 0x08000000 // 27
315 #define SPELL_ATTR_EX2_UNK28 0x10000000 // 28 no breaks stealth if it fails??
316 #define SPELL_ATTR_EX2_CANT_CRIT 0x20000000 // 29 Spell can't crit
317 #define SPELL_ATTR_EX2_UNK30 0x40000000 // 30
318 #define SPELL_ATTR_EX2_FOOD_BUFF 0x80000000 // 31 Food or Drink Buff (like Well Fed)
320 #define SPELL_ATTR_EX3_UNK0 0x00000001 // 0
321 #define SPELL_ATTR_EX3_UNK1 0x00000002 // 1
322 #define SPELL_ATTR_EX3_UNK2 0x00000004 // 2
323 #define SPELL_ATTR_EX3_UNK3 0x00000008 // 3
324 #define SPELL_ATTR_EX3_UNK4 0x00000010 // 4 Druid Rebirth only this spell have this flag
325 #define SPELL_ATTR_EX3_UNK5 0x00000020 // 5
326 #define SPELL_ATTR_EX3_UNK6 0x00000040 // 6
327 #define SPELL_ATTR_EX3_UNK7 0x00000080 // 7
328 #define SPELL_ATTR_EX3_UNK8 0x00000100 // 8
329 #define SPELL_ATTR_EX3_UNK9 0x00000200 // 9
330 #define SPELL_ATTR_EX3_MAIN_HAND 0x00000400 // 10 Main hand weapon required
331 #define SPELL_ATTR_EX3_BATTLEGROUND 0x00000800 // 11 Can casted only on battleground
332 #define SPELL_ATTR_EX3_CAST_ON_DEAD 0x00001000 // 12 target is a dead player (not every spell has this flag)
333 #define SPELL_ATTR_EX3_UNK13 0x00002000 // 13
334 #define SPELL_ATTR_EX3_UNK14 0x00004000 // 14 "Honorless Target" only this spells have this flag
335 #define SPELL_ATTR_EX3_UNK15 0x00008000 // 15 Auto Shoot, Shoot, Throw, - this is autoshot flag
336 #define SPELL_ATTR_EX3_UNK16 0x00010000 // 16 no triggers effects that trigger on casting a spell??
337 #define SPELL_ATTR_EX3_UNK17 0x00020000 // 17 no triggers effects that trigger on casting a spell??
338 #define SPELL_ATTR_EX3_UNK18 0x00040000 // 18
339 #define SPELL_ATTR_EX3_UNK19 0x00080000 // 19
340 #define SPELL_ATTR_EX3_DEATH_PERSISTENT 0x00100000 // 20 Death persistent spells
341 #define SPELL_ATTR_EX3_UNK21 0x00200000 // 21
342 #define SPELL_ATTR_EX3_REQ_WAND 0x00400000 // 22 Req wand
343 #define SPELL_ATTR_EX3_UNK23 0x00800000 // 23
344 #define SPELL_ATTR_EX3_REQ_OFFHAND 0x01000000 // 24 Req offhand weapon
345 #define SPELL_ATTR_EX3_UNK25 0x02000000 // 25 no cause spell pushback ?
346 #define SPELL_ATTR_EX3_UNK26 0x04000000 // 26
347 #define SPELL_ATTR_EX3_UNK27 0x08000000 // 27
348 #define SPELL_ATTR_EX3_UNK28 0x10000000 // 28
349 #define SPELL_ATTR_EX3_UNK29 0x20000000 // 29
350 #define SPELL_ATTR_EX3_UNK30 0x40000000 // 30
351 #define SPELL_ATTR_EX3_UNK31 0x80000000 // 31
353 #define SPELL_ATTR_EX4_UNK0 0x00000001 // 0
354 #define SPELL_ATTR_EX4_UNK1 0x00000002 // 1 proc on finishing move?
355 #define SPELL_ATTR_EX4_UNK2 0x00000004 // 2
356 #define SPELL_ATTR_EX4_UNK3 0x00000008 // 3
357 #define SPELL_ATTR_EX4_UNK4 0x00000010 // 4 This will no longer cause guards to attack on use??
358 #define SPELL_ATTR_EX4_UNK5 0x00000020 // 5
359 #define SPELL_ATTR_EX4_NOT_STEALABLE 0x00000040 // 6 although such auras might be dispellable, they cannot be stolen
360 #define SPELL_ATTR_EX4_UNK7 0x00000080 // 7
361 #define SPELL_ATTR_EX4_STACK_DOT_MODIFIER 0x00000100 // 8 no effect on non DoTs?
362 #define SPELL_ATTR_EX4_UNK9 0x00000200 // 9
363 #define SPELL_ATTR_EX4_SPELL_VS_EXTEND_COST 0x00000400 // 10 Rogue Shiv have this flag
364 #define SPELL_ATTR_EX4_UNK11 0x00000800 // 11
365 #define SPELL_ATTR_EX4_UNK12 0x00001000 // 12
366 #define SPELL_ATTR_EX4_UNK13 0x00002000 // 13
367 #define SPELL_ATTR_EX4_UNK14 0x00004000 // 14
368 #define SPELL_ATTR_EX4_UNK15 0x00008000 // 15
369 #define SPELL_ATTR_EX4_NOT_USABLE_IN_ARENA 0x00010000 // 16 not usable in arena
370 #define SPELL_ATTR_EX4_USABLE_IN_ARENA 0x00020000 // 17 usable in arena
371 #define SPELL_ATTR_EX4_UNK18 0x00040000 // 18
372 #define SPELL_ATTR_EX4_UNK19 0x00080000 // 19
373 #define SPELL_ATTR_EX4_UNK20 0x00100000 // 20
374 #define SPELL_ATTR_EX4_UNK21 0x00200000 // 21
375 #define SPELL_ATTR_EX4_UNK22 0x00400000 // 22
376 #define SPELL_ATTR_EX4_UNK23 0x00800000 // 23
377 #define SPELL_ATTR_EX4_UNK24 0x01000000 // 24
378 #define SPELL_ATTR_EX4_UNK25 0x02000000 // 25 pet scaling auras
379 #define SPELL_ATTR_EX4_CAST_ONLY_IN_OUTLAND 0x04000000 // 26 Can only be used in Outland.
380 #define SPELL_ATTR_EX4_UNK27 0x08000000 // 27
381 #define SPELL_ATTR_EX4_UNK28 0x10000000 // 28
382 #define SPELL_ATTR_EX4_UNK29 0x20000000 // 29
383 #define SPELL_ATTR_EX4_UNK30 0x40000000 // 30
384 #define SPELL_ATTR_EX4_UNK31 0x80000000 // 31
386 #define SPELL_ATTR_EX5_UNK0 0x00000001 // 0
387 #define SPELL_ATTR_EX5_NO_REAGENT_WHILE_PREP 0x00000002 // 1 not need reagents if UNIT_FLAG_PREPARATION
388 #define SPELL_ATTR_EX5_UNK2 0x00000004 // 2
389 #define SPELL_ATTR_EX5_USABLE_WHILE_STUNNED 0x00000008 // 3 usable while stunned
390 #define SPELL_ATTR_EX5_UNK4 0x00000010 // 4
391 #define SPELL_ATTR_EX5_SINGLE_TARGET_SPELL 0x00000020 // 5 Only one target can be apply at a time
392 #define SPELL_ATTR_EX5_UNK6 0x00000040 // 6
393 #define SPELL_ATTR_EX5_UNK7 0x00000080 // 7
394 #define SPELL_ATTR_EX5_UNK8 0x00000100 // 8
395 #define SPELL_ATTR_EX5_START_PERIODIC_AT_APPLY 0x00000200 // 9 begin periodic tick at aura apply
396 #define SPELL_ATTR_EX5_UNK10 0x00000400 // 10
397 #define SPELL_ATTR_EX5_UNK11 0x00000800 // 11
398 #define SPELL_ATTR_EX5_UNK12 0x00001000 // 12
399 #define SPELL_ATTR_EX5_UNK13 0x00002000 // 13
400 #define SPELL_ATTR_EX5_UNK14 0x00004000 // 14
401 #define SPELL_ATTR_EX5_UNK15 0x00008000 // 15
402 #define SPELL_ATTR_EX5_UNK16 0x00010000 // 16
403 #define SPELL_ATTR_EX5_USABLE_WHILE_FEARED 0x00020000 // 17 usable while feared
404 #define SPELL_ATTR_EX5_USABLE_WHILE_CONFUSED 0x00040000 // 18 usable while confused
405 #define SPELL_ATTR_EX5_UNK19 0x00080000 // 19
406 #define SPELL_ATTR_EX5_UNK20 0x00100000 // 20
407 #define SPELL_ATTR_EX5_UNK21 0x00200000 // 21
408 #define SPELL_ATTR_EX5_UNK22 0x00400000 // 22
409 #define SPELL_ATTR_EX5_UNK23 0x00800000 // 23
410 #define SPELL_ATTR_EX5_UNK24 0x01000000 // 24
411 #define SPELL_ATTR_EX5_UNK25 0x02000000 // 25
412 #define SPELL_ATTR_EX5_UNK26 0x04000000 // 26
413 #define SPELL_ATTR_EX5_UNK27 0x08000000 // 27
414 #define SPELL_ATTR_EX5_UNK28 0x10000000 // 28
415 #define SPELL_ATTR_EX5_UNK29 0x20000000 // 29
416 #define SPELL_ATTR_EX5_UNK30 0x40000000 // 30
417 #define SPELL_ATTR_EX5_UNK31 0x80000000 // 31 Forces all nearby enemies to focus attacks caster
419 #define SPELL_ATTR_EX6_UNK0 0x00000001 // 0 Only Move spell have this flag
420 #define SPELL_ATTR_EX6_ONLY_IN_ARENA 0x00000002 // 1 only usable in arena, not used in 3.2.0a and early
421 #define SPELL_ATTR_EX6_UNK2 0x00000004 // 2
422 #define SPELL_ATTR_EX6_UNK3 0x00000008 // 3
423 #define SPELL_ATTR_EX6_UNK4 0x00000010 // 4
424 #define SPELL_ATTR_EX6_UNK5 0x00000020 // 5
425 #define SPELL_ATTR_EX6_UNK6 0x00000040 // 6
426 #define SPELL_ATTR_EX6_UNK7 0x00000080 // 7
427 #define SPELL_ATTR_EX6_UNK8 0x00000100 // 8
428 #define SPELL_ATTR_EX6_UNK9 0x00000200 // 9
429 #define SPELL_ATTR_EX6_UNK10 0x00000400 // 10
430 #define SPELL_ATTR_EX6_NOT_IN_RAID_INSTANCE 0x00000800 // 11 not usable in raid instance
431 #define SPELL_ATTR_EX6_UNK12 0x00001000 // 12
432 #define SPELL_ATTR_EX6_UNK13 0x00002000 // 13
433 #define SPELL_ATTR_EX6_UNK14 0x00004000 // 14
434 #define SPELL_ATTR_EX6_UNK15 0x00008000 // 15 not set in 3.0.3
435 #define SPELL_ATTR_EX6_UNK16 0x00010000 // 16
436 #define SPELL_ATTR_EX6_UNK17 0x00020000 // 17
437 #define SPELL_ATTR_EX6_UNK18 0x00040000 // 18
438 #define SPELL_ATTR_EX6_UNK19 0x00080000 // 19
439 #define SPELL_ATTR_EX6_UNK20 0x00100000 // 20
440 #define SPELL_ATTR_EX6_UNK21 0x00200000 // 21
441 #define SPELL_ATTR_EX6_UNK22 0x00400000 // 22
442 #define SPELL_ATTR_EX6_UNK23 0x00800000 // 23 not set in 3.0.3
443 #define SPELL_ATTR_EX6_UNK24 0x01000000 // 24 not set in 3.0.3
444 #define SPELL_ATTR_EX6_UNK25 0x02000000 // 25 not set in 3.0.3
445 #define SPELL_ATTR_EX6_UNK26 0x04000000 // 26 not set in 3.0.3
446 #define SPELL_ATTR_EX6_UNK27 0x08000000 // 27 not set in 3.0.3
447 #define SPELL_ATTR_EX6_UNK28 0x10000000 // 28 not set in 3.0.3
448 #define SPELL_ATTR_EX6_NO_DMG_PERCENT_MODS 0x20000000 // 29 do not apply damage percent mods (usually in cases where it has already been applied)
449 #define SPELL_ATTR_EX6_UNK30 0x40000000 // 30 not set in 3.0.3
450 #define SPELL_ATTR_EX6_UNK31 0x80000000 // 31 not set in 3.0.3
452 #define MAX_TALENT_SPEC_COUNT 2
453 #define MAX_GLYPH_SLOT_INDEX 6
455 enum SheathTypes
457 SHEATHETYPE_NONE = 0,
458 SHEATHETYPE_MAINHAND = 1,
459 SHEATHETYPE_OFFHAND = 2,
460 SHEATHETYPE_LARGEWEAPONLEFT = 3,
461 SHEATHETYPE_LARGEWEAPONRIGHT = 4,
462 SHEATHETYPE_HIPWEAPONLEFT = 5,
463 SHEATHETYPE_HIPWEAPONRIGHT = 6,
464 SHEATHETYPE_SHIELD = 7
467 #define MAX_SHEATHETYPE 8
469 enum CharacterSlot
471 SLOT_HEAD = 0,
472 SLOT_NECK = 1,
473 SLOT_SHOULDERS = 2,
474 SLOT_SHIRT = 3,
475 SLOT_CHEST = 4,
476 SLOT_WAIST = 5,
477 SLOT_LEGS = 6,
478 SLOT_FEET = 7,
479 SLOT_WRISTS = 8,
480 SLOT_HANDS = 9,
481 SLOT_FINGER1 = 10,
482 SLOT_FINGER2 = 11,
483 SLOT_TRINKET1 = 12,
484 SLOT_TRINKET2 = 13,
485 SLOT_BACK = 14,
486 SLOT_MAIN_HAND = 15,
487 SLOT_OFF_HAND = 16,
488 SLOT_RANGED = 17,
489 SLOT_TABARD = 18,
490 SLOT_EMPTY = 19
493 enum Language
495 LANG_UNIVERSAL = 0,
496 LANG_ORCISH = 1,
497 LANG_DARNASSIAN = 2,
498 LANG_TAURAHE = 3,
499 LANG_DWARVISH = 6,
500 LANG_COMMON = 7,
501 LANG_DEMONIC = 8,
502 LANG_TITAN = 9,
503 LANG_THALASSIAN = 10,
504 LANG_DRACONIC = 11,
505 LANG_KALIMAG = 12,
506 LANG_GNOMISH = 13,
507 LANG_TROLL = 14,
508 LANG_GUTTERSPEAK = 33,
509 LANG_DRAENEI = 35,
510 LANG_ZOMBIE = 36,
511 LANG_GNOMISH_BINARY = 37,
512 LANG_GOBLIN_BINARY = 38,
513 LANG_ADDON = 0xFFFFFFFF // used by addons, in 2.4.0 not exit, replaced by messagetype?
516 #define LANGUAGES_COUNT 19
518 enum Team
520 HORDE = 67,
521 ALLIANCE = 469,
522 //TEAM_STEAMWHEEDLE_CARTEL = 169, // not used in code
523 //TEAM_ALLIANCE_FORCES = 891,
524 //TEAM_HORDE_FORCES = 892,
525 //TEAM_SANCTUARY = 936,
526 //TEAM_OUTLAND = 980,
527 //TEAM_OTHER = 0, // if ReputationListId > 0 && Flags != FACTION_FLAG_TEAM_HEADER
530 enum SpellEffects
532 SPELL_EFFECT_INSTAKILL = 1,
533 SPELL_EFFECT_SCHOOL_DAMAGE = 2,
534 SPELL_EFFECT_DUMMY = 3,
535 SPELL_EFFECT_PORTAL_TELEPORT = 4,
536 SPELL_EFFECT_TELEPORT_UNITS = 5,
537 SPELL_EFFECT_APPLY_AURA = 6,
538 SPELL_EFFECT_ENVIRONMENTAL_DAMAGE = 7,
539 SPELL_EFFECT_POWER_DRAIN = 8,
540 SPELL_EFFECT_HEALTH_LEECH = 9,
541 SPELL_EFFECT_HEAL = 10,
542 SPELL_EFFECT_BIND = 11,
543 SPELL_EFFECT_PORTAL = 12,
544 SPELL_EFFECT_RITUAL_BASE = 13,
545 SPELL_EFFECT_RITUAL_SPECIALIZE = 14,
546 SPELL_EFFECT_RITUAL_ACTIVATE_PORTAL = 15,
547 SPELL_EFFECT_QUEST_COMPLETE = 16,
548 SPELL_EFFECT_WEAPON_DAMAGE_NOSCHOOL = 17,
549 SPELL_EFFECT_RESURRECT = 18,
550 SPELL_EFFECT_ADD_EXTRA_ATTACKS = 19,
551 SPELL_EFFECT_DODGE = 20,
552 SPELL_EFFECT_EVADE = 21,
553 SPELL_EFFECT_PARRY = 22,
554 SPELL_EFFECT_BLOCK = 23,
555 SPELL_EFFECT_CREATE_ITEM = 24,
556 SPELL_EFFECT_WEAPON = 25,
557 SPELL_EFFECT_DEFENSE = 26,
558 SPELL_EFFECT_PERSISTENT_AREA_AURA = 27,
559 SPELL_EFFECT_SUMMON = 28,
560 SPELL_EFFECT_LEAP = 29,
561 SPELL_EFFECT_ENERGIZE = 30,
562 SPELL_EFFECT_WEAPON_PERCENT_DAMAGE = 31,
563 SPELL_EFFECT_TRIGGER_MISSILE = 32,
564 SPELL_EFFECT_OPEN_LOCK = 33,
565 SPELL_EFFECT_SUMMON_CHANGE_ITEM = 34,
566 SPELL_EFFECT_APPLY_AREA_AURA_PARTY = 35,
567 SPELL_EFFECT_LEARN_SPELL = 36,
568 SPELL_EFFECT_SPELL_DEFENSE = 37,
569 SPELL_EFFECT_DISPEL = 38,
570 SPELL_EFFECT_LANGUAGE = 39,
571 SPELL_EFFECT_DUAL_WIELD = 40,
572 SPELL_EFFECT_JUMP = 41,
573 SPELL_EFFECT_JUMP2 = 42,
574 SPELL_EFFECT_TELEPORT_UNITS_FACE_CASTER= 43,
575 SPELL_EFFECT_SKILL_STEP = 44,
576 SPELL_EFFECT_ADD_HONOR = 45,
577 SPELL_EFFECT_SPAWN = 46,
578 SPELL_EFFECT_TRADE_SKILL = 47,
579 SPELL_EFFECT_STEALTH = 48,
580 SPELL_EFFECT_DETECT = 49,
581 SPELL_EFFECT_TRANS_DOOR = 50,
582 SPELL_EFFECT_FORCE_CRITICAL_HIT = 51,
583 SPELL_EFFECT_GUARANTEE_HIT = 52,
584 SPELL_EFFECT_ENCHANT_ITEM = 53,
585 SPELL_EFFECT_ENCHANT_ITEM_TEMPORARY = 54,
586 SPELL_EFFECT_TAMECREATURE = 55,
587 SPELL_EFFECT_SUMMON_PET = 56,
588 SPELL_EFFECT_LEARN_PET_SPELL = 57,
589 SPELL_EFFECT_WEAPON_DAMAGE = 58,
590 SPELL_EFFECT_CREATE_RANDOM_ITEM = 59,
591 SPELL_EFFECT_PROFICIENCY = 60,
592 SPELL_EFFECT_SEND_EVENT = 61,
593 SPELL_EFFECT_POWER_BURN = 62,
594 SPELL_EFFECT_THREAT = 63,
595 SPELL_EFFECT_TRIGGER_SPELL = 64,
596 SPELL_EFFECT_APPLY_AREA_AURA_RAID = 65,
597 SPELL_EFFECT_CREATE_MANA_GEM = 66,
598 SPELL_EFFECT_HEAL_MAX_HEALTH = 67,
599 SPELL_EFFECT_INTERRUPT_CAST = 68,
600 SPELL_EFFECT_DISTRACT = 69,
601 SPELL_EFFECT_PULL = 70,
602 SPELL_EFFECT_PICKPOCKET = 71,
603 SPELL_EFFECT_ADD_FARSIGHT = 72,
604 SPELL_EFFECT_UNTRAIN_TALENTS = 73,
605 SPELL_EFFECT_APPLY_GLYPH = 74,
606 SPELL_EFFECT_HEAL_MECHANICAL = 75,
607 SPELL_EFFECT_SUMMON_OBJECT_WILD = 76,
608 SPELL_EFFECT_SCRIPT_EFFECT = 77,
609 SPELL_EFFECT_ATTACK = 78,
610 SPELL_EFFECT_SANCTUARY = 79,
611 SPELL_EFFECT_ADD_COMBO_POINTS = 80,
612 SPELL_EFFECT_CREATE_HOUSE = 81,
613 SPELL_EFFECT_BIND_SIGHT = 82,
614 SPELL_EFFECT_DUEL = 83,
615 SPELL_EFFECT_STUCK = 84,
616 SPELL_EFFECT_SUMMON_PLAYER = 85,
617 SPELL_EFFECT_ACTIVATE_OBJECT = 86,
618 SPELL_EFFECT_WMO_DAMAGE = 87,
619 SPELL_EFFECT_WMO_REPAIR = 88,
620 SPELL_EFFECT_WMO_CHANGE = 89,
621 SPELL_EFFECT_KILL_CREDIT = 90,
622 SPELL_EFFECT_THREAT_ALL = 91,
623 SPELL_EFFECT_ENCHANT_HELD_ITEM = 92,
624 SPELL_EFFECT_SUMMON_PHANTASM = 93,
625 SPELL_EFFECT_SELF_RESURRECT = 94,
626 SPELL_EFFECT_SKINNING = 95,
627 SPELL_EFFECT_CHARGE = 96,
628 SPELL_EFFECT_SUMMON_ALL_TOTEMS = 97,
629 SPELL_EFFECT_KNOCK_BACK = 98,
630 SPELL_EFFECT_DISENCHANT = 99,
631 SPELL_EFFECT_INEBRIATE = 100,
632 SPELL_EFFECT_FEED_PET = 101,
633 SPELL_EFFECT_DISMISS_PET = 102,
634 SPELL_EFFECT_REPUTATION = 103,
635 SPELL_EFFECT_SUMMON_OBJECT_SLOT1 = 104,
636 SPELL_EFFECT_SUMMON_OBJECT_SLOT2 = 105,
637 SPELL_EFFECT_SUMMON_OBJECT_SLOT3 = 106,
638 SPELL_EFFECT_SUMMON_OBJECT_SLOT4 = 107,
639 SPELL_EFFECT_DISPEL_MECHANIC = 108,
640 SPELL_EFFECT_SUMMON_DEAD_PET = 109,
641 SPELL_EFFECT_DESTROY_ALL_TOTEMS = 110,
642 SPELL_EFFECT_DURABILITY_DAMAGE = 111,
643 SPELL_EFFECT_112 = 112,
644 SPELL_EFFECT_RESURRECT_NEW = 113,
645 SPELL_EFFECT_ATTACK_ME = 114,
646 SPELL_EFFECT_DURABILITY_DAMAGE_PCT = 115,
647 SPELL_EFFECT_SKIN_PLAYER_CORPSE = 116,
648 SPELL_EFFECT_SPIRIT_HEAL = 117,
649 SPELL_EFFECT_SKILL = 118,
650 SPELL_EFFECT_APPLY_AREA_AURA_PET = 119,
651 SPELL_EFFECT_TELEPORT_GRAVEYARD = 120,
652 SPELL_EFFECT_NORMALIZED_WEAPON_DMG = 121,
653 SPELL_EFFECT_122 = 122,
654 SPELL_EFFECT_SEND_TAXI = 123,
655 SPELL_EFFECT_PLAYER_PULL = 124,
656 SPELL_EFFECT_MODIFY_THREAT_PERCENT = 125,
657 SPELL_EFFECT_STEAL_BENEFICIAL_BUFF = 126,
658 SPELL_EFFECT_PROSPECTING = 127,
659 SPELL_EFFECT_APPLY_AREA_AURA_FRIEND = 128,
660 SPELL_EFFECT_APPLY_AREA_AURA_ENEMY = 129,
661 SPELL_EFFECT_REDIRECT_THREAT = 130,
662 SPELL_EFFECT_131 = 131,
663 SPELL_EFFECT_PLAY_MUSIC = 132,
664 SPELL_EFFECT_UNLEARN_SPECIALIZATION = 133,
665 SPELL_EFFECT_KILL_CREDIT2 = 134,
666 SPELL_EFFECT_CALL_PET = 135,
667 SPELL_EFFECT_HEAL_PCT = 136,
668 SPELL_EFFECT_ENERGIZE_PCT = 137,
669 SPELL_EFFECT_LEAP_BACK = 138,
670 SPELL_EFFECT_CLEAR_QUEST = 139,
671 SPELL_EFFECT_FORCE_CAST = 140,
672 SPELL_EFFECT_141 = 141,
673 SPELL_EFFECT_TRIGGER_SPELL_WITH_VALUE = 142,
674 SPELL_EFFECT_APPLY_AREA_AURA_OWNER = 143,
675 SPELL_EFFECT_144 = 144,
676 SPELL_EFFECT_145 = 145,
677 SPELL_EFFECT_ACTIVATE_RUNE = 146,
678 SPELL_EFFECT_QUEST_FAIL = 147,
679 SPELL_EFFECT_148 = 148,
680 SPELL_EFFECT_149 = 149,
681 SPELL_EFFECT_150 = 150,
682 SPELL_EFFECT_TRIGGER_SPELL_2 = 151,
683 SPELL_EFFECT_152 = 152,
684 SPELL_EFFECT_153 = 153,
685 SPELL_EFFECT_154 = 154,
686 SPELL_EFFECT_TITAN_GRIP = 155,
687 SPELL_EFFECT_ENCHANT_ITEM_PRISMATIC = 156,
688 SPELL_EFFECT_CREATE_ITEM_2 = 157,
689 SPELL_EFFECT_MILLING = 158,
690 SPELL_EFFECT_ALLOW_RENAME_PET = 159,
691 SPELL_EFFECT_160 = 160,
692 SPELL_EFFECT_TALENT_SPEC_COUNT = 161,
693 SPELL_EFFECT_TALENT_SPEC_SELECT = 162,
694 TOTAL_SPELL_EFFECTS = 163
697 enum SpellCastResult
699 SPELL_FAILED_SUCCESS = 0x00,
700 SPELL_FAILED_AFFECTING_COMBAT = 0x01,
701 SPELL_FAILED_ALREADY_AT_FULL_HEALTH = 0x02,
702 SPELL_FAILED_ALREADY_AT_FULL_MANA = 0x03,
703 SPELL_FAILED_ALREADY_AT_FULL_POWER = 0x04,
704 SPELL_FAILED_ALREADY_BEING_TAMED = 0x05,
705 SPELL_FAILED_ALREADY_HAVE_CHARM = 0x06,
706 SPELL_FAILED_ALREADY_HAVE_SUMMON = 0x07,
707 SPELL_FAILED_ALREADY_OPEN = 0x08,
708 SPELL_FAILED_AURA_BOUNCED = 0x09,
709 SPELL_FAILED_AUTOTRACK_INTERRUPTED = 0x0A,
710 SPELL_FAILED_BAD_IMPLICIT_TARGETS = 0x0B,
711 SPELL_FAILED_BAD_TARGETS = 0x0C,
712 SPELL_FAILED_CANT_BE_CHARMED = 0x0D,
713 SPELL_FAILED_CANT_BE_DISENCHANTED = 0x0E,
714 SPELL_FAILED_CANT_BE_DISENCHANTED_SKILL = 0x0F,
715 SPELL_FAILED_CANT_BE_MILLED = 0x10,
716 SPELL_FAILED_CANT_BE_PROSPECTED = 0x11,
717 SPELL_FAILED_CANT_CAST_ON_TAPPED = 0x12,
718 SPELL_FAILED_CANT_DUEL_WHILE_INVISIBLE = 0x13,
719 SPELL_FAILED_CANT_DUEL_WHILE_STEALTHED = 0x14,
720 SPELL_FAILED_CANT_STEALTH = 0x15,
721 SPELL_FAILED_CASTER_AURASTATE = 0x16,
722 SPELL_FAILED_CASTER_DEAD = 0x17,
723 SPELL_FAILED_CHARMED = 0x18,
724 SPELL_FAILED_CHEST_IN_USE = 0x19,
725 SPELL_FAILED_CONFUSED = 0x1A,
726 SPELL_FAILED_DONT_REPORT = 0x1B,
727 SPELL_FAILED_EQUIPPED_ITEM = 0x1C,
728 SPELL_FAILED_EQUIPPED_ITEM_CLASS = 0x1D,
729 SPELL_FAILED_EQUIPPED_ITEM_CLASS_MAINHAND = 0x1E,
730 SPELL_FAILED_EQUIPPED_ITEM_CLASS_OFFHAND = 0x1F,
731 SPELL_FAILED_ERROR = 0x20,
732 SPELL_FAILED_FIZZLE = 0x21,
733 SPELL_FAILED_FLEEING = 0x22,
734 SPELL_FAILED_FOOD_LOWLEVEL = 0x23,
735 SPELL_FAILED_HIGHLEVEL = 0x24,
736 SPELL_FAILED_HUNGER_SATIATED = 0x25,
737 SPELL_FAILED_IMMUNE = 0x26,
738 SPELL_FAILED_INCORRECT_AREA = 0x27,
739 SPELL_FAILED_INTERRUPTED = 0x28,
740 SPELL_FAILED_INTERRUPTED_COMBAT = 0x29,
741 SPELL_FAILED_ITEM_ALREADY_ENCHANTED = 0x2A,
742 SPELL_FAILED_ITEM_GONE = 0x2B,
743 SPELL_FAILED_ITEM_NOT_FOUND = 0x2C,
744 SPELL_FAILED_ITEM_NOT_READY = 0x2D,
745 SPELL_FAILED_LEVEL_REQUIREMENT = 0x2E,
746 SPELL_FAILED_LINE_OF_SIGHT = 0x2F,
747 SPELL_FAILED_LOWLEVEL = 0x30,
748 SPELL_FAILED_LOW_CASTLEVEL = 0x31,
749 SPELL_FAILED_MAINHAND_EMPTY = 0x32,
750 SPELL_FAILED_MOVING = 0x33,
751 SPELL_FAILED_NEED_AMMO = 0x34,
752 SPELL_FAILED_NEED_AMMO_POUCH = 0x35,
753 SPELL_FAILED_NEED_EXOTIC_AMMO = 0x36,
754 SPELL_FAILED_NEED_MORE_ITEMS = 0x37,
755 SPELL_FAILED_NOPATH = 0x38,
756 SPELL_FAILED_NOT_BEHIND = 0x39,
757 SPELL_FAILED_NOT_FISHABLE = 0x3A,
758 SPELL_FAILED_NOT_FLYING = 0x3B,
759 SPELL_FAILED_NOT_HERE = 0x3C,
760 SPELL_FAILED_NOT_INFRONT = 0x3D,
761 SPELL_FAILED_NOT_IN_CONTROL = 0x3E,
762 SPELL_FAILED_NOT_KNOWN = 0x3F,
763 SPELL_FAILED_NOT_MOUNTED = 0x40,
764 SPELL_FAILED_NOT_ON_TAXI = 0x41,
765 SPELL_FAILED_NOT_ON_TRANSPORT = 0x42,
766 SPELL_FAILED_NOT_READY = 0x43,
767 SPELL_FAILED_NOT_SHAPESHIFT = 0x44,
768 SPELL_FAILED_NOT_STANDING = 0x45,
769 SPELL_FAILED_NOT_TRADEABLE = 0x46,
770 SPELL_FAILED_NOT_TRADING = 0x47,
771 SPELL_FAILED_NOT_UNSHEATHED = 0x48,
772 SPELL_FAILED_NOT_WHILE_GHOST = 0x49,
773 SPELL_FAILED_NOT_WHILE_LOOTING = 0x4A,
774 SPELL_FAILED_NO_AMMO = 0x4B,
775 SPELL_FAILED_NO_CHARGES_REMAIN = 0x4C,
776 SPELL_FAILED_NO_CHAMPION = 0x4D,
777 SPELL_FAILED_NO_COMBO_POINTS = 0x4E,
778 SPELL_FAILED_NO_DUELING = 0x4F,
779 SPELL_FAILED_NO_ENDURANCE = 0x50,
780 SPELL_FAILED_NO_FISH = 0x51,
781 SPELL_FAILED_NO_ITEMS_WHILE_SHAPESHIFTED = 0x52,
782 SPELL_FAILED_NO_MOUNTS_ALLOWED = 0x53,
783 SPELL_FAILED_NO_PET = 0x54,
784 SPELL_FAILED_NO_POWER = 0x55,
785 SPELL_FAILED_NOTHING_TO_DISPEL = 0x56,
786 SPELL_FAILED_NOTHING_TO_STEAL = 0x57,
787 SPELL_FAILED_ONLY_ABOVEWATER = 0x58,
788 SPELL_FAILED_ONLY_DAYTIME = 0x59,
789 SPELL_FAILED_ONLY_INDOORS = 0x5A,
790 SPELL_FAILED_ONLY_MOUNTED = 0x5B,
791 SPELL_FAILED_ONLY_NIGHTTIME = 0x5C,
792 SPELL_FAILED_ONLY_OUTDOORS = 0x5D,
793 SPELL_FAILED_ONLY_SHAPESHIFT = 0x5E,
794 SPELL_FAILED_ONLY_STEALTHED = 0x5F,
795 SPELL_FAILED_ONLY_UNDERWATER = 0x60,
796 SPELL_FAILED_OUT_OF_RANGE = 0x61,
797 SPELL_FAILED_PACIFIED = 0x62,
798 SPELL_FAILED_POSSESSED = 0x63,
799 SPELL_FAILED_REAGENTS = 0x64,
800 SPELL_FAILED_REQUIRES_AREA = 0x65,
801 SPELL_FAILED_REQUIRES_SPELL_FOCUS = 0x66,
802 SPELL_FAILED_ROOTED = 0x67,
803 SPELL_FAILED_SILENCED = 0x68,
804 SPELL_FAILED_SPELL_IN_PROGRESS = 0x69,
805 SPELL_FAILED_SPELL_LEARNED = 0x6A,
806 SPELL_FAILED_SPELL_UNAVAILABLE = 0x6B,
807 SPELL_FAILED_STUNNED = 0x6C,
808 SPELL_FAILED_TARGETS_DEAD = 0x6D,
809 SPELL_FAILED_TARGET_AFFECTING_COMBAT = 0x6E,
810 SPELL_FAILED_TARGET_AURASTATE = 0x6F,
811 SPELL_FAILED_TARGET_DUELING = 0x70,
812 SPELL_FAILED_TARGET_ENEMY = 0x71,
813 SPELL_FAILED_TARGET_ENRAGED = 0x72,
814 SPELL_FAILED_TARGET_FRIENDLY = 0x73,
815 SPELL_FAILED_TARGET_IN_COMBAT = 0x74,
816 SPELL_FAILED_TARGET_IS_PLAYER = 0x75,
817 SPELL_FAILED_TARGET_IS_PLAYER_CONTROLLED = 0x76,
818 SPELL_FAILED_TARGET_NOT_DEAD = 0x77,
819 SPELL_FAILED_TARGET_NOT_IN_PARTY = 0x78,
820 SPELL_FAILED_TARGET_NOT_LOOTED = 0x79,
821 SPELL_FAILED_TARGET_NOT_PLAYER = 0x7A,
822 SPELL_FAILED_TARGET_NO_POCKETS = 0x7B,
823 SPELL_FAILED_TARGET_NO_WEAPONS = 0x7C,
824 SPELL_FAILED_TARGET_NO_RANGED_WEAPONS = 0x7D,
825 SPELL_FAILED_TARGET_UNSKINNABLE = 0x7E,
826 SPELL_FAILED_THIRST_SATIATED = 0x7F,
827 SPELL_FAILED_TOO_CLOSE = 0x80,
828 SPELL_FAILED_TOO_MANY_OF_ITEM = 0x81,
829 SPELL_FAILED_TOTEM_CATEGORY = 0x82,
830 SPELL_FAILED_TOTEMS = 0x83,
831 SPELL_FAILED_TRY_AGAIN = 0x84,
832 SPELL_FAILED_UNIT_NOT_BEHIND = 0x85,
833 SPELL_FAILED_UNIT_NOT_INFRONT = 0x86,
834 SPELL_FAILED_WRONG_PET_FOOD = 0x87,
835 SPELL_FAILED_NOT_WHILE_FATIGUED = 0x88,
836 SPELL_FAILED_TARGET_NOT_IN_INSTANCE = 0x89,
837 SPELL_FAILED_NOT_WHILE_TRADING = 0x8A,
838 SPELL_FAILED_TARGET_NOT_IN_RAID = 0x8B,
839 SPELL_FAILED_TARGET_FREEFORALL = 0x8C,
840 SPELL_FAILED_NO_EDIBLE_CORPSES = 0x8D,
841 SPELL_FAILED_ONLY_BATTLEGROUNDS = 0x8E,
842 SPELL_FAILED_TARGET_NOT_GHOST = 0x8F,
843 SPELL_FAILED_TRANSFORM_UNUSABLE = 0x90,
844 SPELL_FAILED_WRONG_WEATHER = 0x91,
845 SPELL_FAILED_DAMAGE_IMMUNE = 0x92,
846 SPELL_FAILED_PREVENTED_BY_MECHANIC = 0x93,
847 SPELL_FAILED_PLAY_TIME = 0x94,
848 SPELL_FAILED_REPUTATION = 0x95,
849 SPELL_FAILED_MIN_SKILL = 0x96,
850 SPELL_FAILED_NOT_IN_ARENA = 0x97,
851 SPELL_FAILED_NOT_ON_SHAPESHIFT = 0x98,
852 SPELL_FAILED_NOT_ON_STEALTHED = 0x99,
853 SPELL_FAILED_NOT_ON_DAMAGE_IMMUNE = 0x9A,
854 SPELL_FAILED_NOT_ON_MOUNTED = 0x9B,
855 SPELL_FAILED_TOO_SHALLOW = 0x9C,
856 SPELL_FAILED_TARGET_NOT_IN_SANCTUARY = 0x9D,
857 SPELL_FAILED_TARGET_IS_TRIVIAL = 0x9E,
858 SPELL_FAILED_BM_OR_INVISGOD = 0x9F,
859 SPELL_FAILED_EXPERT_RIDING_REQUIREMENT = 0xA0,
860 SPELL_FAILED_ARTISAN_RIDING_REQUIREMENT = 0xA1,
861 SPELL_FAILED_NOT_IDLE = 0xA2,
862 SPELL_FAILED_NOT_INACTIVE = 0xA3,
863 SPELL_FAILED_PARTIAL_PLAYTIME = 0xA4,
864 SPELL_FAILED_NO_PLAYTIME = 0xA5,
865 SPELL_FAILED_NOT_IN_BATTLEGROUND = 0xA6,
866 SPELL_FAILED_NOT_IN_RAID_INSTANCE = 0xA7,
867 SPELL_FAILED_ONLY_IN_ARENA = 0xA8,
868 SPELL_FAILED_TARGET_LOCKED_TO_RAID_INSTANCE = 0xA9,
869 SPELL_FAILED_ON_USE_ENCHANT = 0xAA,
870 SPELL_FAILED_NOT_ON_GROUND = 0xAB,
871 SPELL_FAILED_CUSTOM_ERROR = 0xAC,
872 SPELL_FAILED_CANT_DO_THAT_RIGHT_NOW = 0xAD,
873 SPELL_FAILED_TOO_MANY_SOCKETS = 0xAE,
874 SPELL_FAILED_INVALID_GLYPH = 0xAF,
875 SPELL_FAILED_UNIQUE_GLYPH = 0xB0,
876 SPELL_FAILED_GLYPH_SOCKET_LOCKED = 0xB1,
877 SPELL_FAILED_NO_VALID_TARGETS = 0xB2,
878 SPELL_FAILED_ITEM_AT_MAX_CHARGES = 0xB3,
879 SPELL_FAILED_NOT_IN_BARBERSHOP = 0xB4,
880 SPELL_FAILED_FISHING_TOO_LOW = 0xB5,
881 SPELL_FAILED_ITEM_ENCHANT_TRADE_WINDOW = 0xB6,
882 SPELL_FAILED_SUMMON_PENDING = 0xB7,
883 SPELL_FAILED_MAX_SOCKETS = 0xB8,
884 SPELL_FAILED_PET_CAN_RENAME = 0xB9,
885 SPELL_FAILED_UNKNOWN = 0xBA,
887 SPELL_CAST_OK = 0xFF // custom value, don't must be send to client
890 // Spell aura states
891 enum AuraState
892 { // (C) used in caster aura state (T) used in target aura state
893 // (c) used in caster aura state-not (t) used in target aura state-not
894 AURA_STATE_DEFENSE = 1, // C |
895 AURA_STATE_HEALTHLESS_20_PERCENT = 2, // CcT |
896 AURA_STATE_BERSERKING = 3, // C T |
897 AURA_STATE_FROZEN = 4, // c t| frozen target
898 AURA_STATE_JUDGEMENT = 5, // C |
899 //AURA_STATE_UNKNOWN6 = 6, // | not used
900 AURA_STATE_HUNTER_PARRY = 7, // C |
901 AURA_STATE_ROGUE_ATTACK_FROM_STEALTH = 7, // C | FIX ME: not implemented yet!
902 //AURA_STATE_UNKNOWN7 = 7, // c | random/focused bursts spells (?)
903 //AURA_STATE_UNKNOWN8 = 8, // | not used
904 //AURA_STATE_UNKNOWN9 = 9, // | not used
905 AURA_STATE_WARRIOR_VICTORY_RUSH = 10, // C | warrior victory rush
906 //AURA_STATE_UNKNOWN11 = 11, // t|
907 AURA_STATE_FAERIE_FIRE = 12, // c t|
908 AURA_STATE_HEALTHLESS_35_PERCENT = 13, // C T |
909 AURA_STATE_CONFLAGRATE = 14, // T | per-caster
910 AURA_STATE_SWIFTMEND = 15, // T |
911 AURA_STATE_DEADLY_POISON = 16, // T |
912 AURA_STATE_ENRAGE = 17, // C |
913 //AURA_STATE_UNKNOWN18 = 18, // C t|
914 //AURA_STATE_UNKNOWN19 = 19, // | not used
915 //AURA_STATE_UNKNOWN20 = 20, // c | only (45317 Suicide)
916 //AURA_STATE_UNKNOWN21 = 21, // | not used
917 //AURA_STATE_UNKNOWN22 = 22, // C | not implemented yet (Requires Evasive Charges to use)
918 AURA_STATE_HEALTH_ABOVE_75_PERCENT = 23, // C |
921 // Spell mechanics
922 enum Mechanics
924 MECHANIC_NONE = 0,
925 MECHANIC_CHARM = 1,
926 MECHANIC_DISORIENTED = 2,
927 MECHANIC_DISARM = 3,
928 MECHANIC_DISTRACT = 4,
929 MECHANIC_FEAR = 5,
930 MECHANIC_GRIP = 6,
931 MECHANIC_ROOT = 7,
932 MECHANIC_PACIFY = 8, //0 spells use this mechanic
933 MECHANIC_SILENCE = 9,
934 MECHANIC_SLEEP = 10,
935 MECHANIC_SNARE = 11,
936 MECHANIC_STUN = 12,
937 MECHANIC_FREEZE = 13,
938 MECHANIC_KNOCKOUT = 14,
939 MECHANIC_BLEED = 15,
940 MECHANIC_BANDAGE = 16,
941 MECHANIC_POLYMORPH = 17,
942 MECHANIC_BANISH = 18,
943 MECHANIC_SHIELD = 19,
944 MECHANIC_SHACKLE = 20,
945 MECHANIC_MOUNT = 21,
946 MECHANIC_INFECTED = 22,
947 MECHANIC_TURN = 23,
948 MECHANIC_HORROR = 24,
949 MECHANIC_INVULNERABILITY = 25,
950 MECHANIC_INTERRUPT = 26,
951 MECHANIC_DAZE = 27,
952 MECHANIC_DISCOVERY = 28,
953 MECHANIC_IMMUNE_SHIELD = 29, // Divine (Blessing) Shield/Protection and Ice Block
954 MECHANIC_SAPPED = 30,
955 MECHANIC_ENRAGED = 31
958 // Used for spell 42292 Immune Movement Impairment and Loss of Control (0x49967da6)
959 #define IMMUNE_TO_MOVEMENT_IMPAIRMENT_AND_LOSS_CONTROL_MASK ( \
960 (1<<(MECHANIC_CHARM -1))|(1<<(MECHANIC_DISORIENTED-1))|(1<<(MECHANIC_FEAR -1))| \
961 (1<<(MECHANIC_ROOT -1))|(1<<(MECHANIC_PACIFY -1))|(1<<(MECHANIC_SLEEP -1))| \
962 (1<<(MECHANIC_SNARE -1))|(1<<(MECHANIC_STUN -1))|(1<<(MECHANIC_FREEZE-1))| \
963 (1<<(MECHANIC_KNOCKOUT-1))|(1<<(MECHANIC_POLYMORPH -1))|(1<<(MECHANIC_BANISH-1))| \
964 (1<<(MECHANIC_SHACKLE -1))|(1<<(MECHANIC_TURN -1))|(1<<(MECHANIC_HORROR-1))| \
965 (1<<(MECHANIC_DAZE -1))|(1<<(MECHANIC_SAPPED -1)))
967 #define IMMUNE_TO_ROOT_AND_SNARE_MASK ( \
968 (1<<(MECHANIC_ROOT-1))|(1<<(MECHANIC_SNARE-1)))
970 #define IMMUNE_TO_ROOT_AND_STUN_MASK ( \
971 (1<<(MECHANIC_ROOT-1))|(1<<(MECHANIC_STUN-1)))
973 #define IMMUNE_TO_SILENCE_AND_STUN_AND_FEAR_MASK ( \
974 (1<<(MECHANIC_SILENCE-1))|(1<<(MECHANIC_STUN-1))|(1<<(MECHANIC_FEAR-1)))
976 #define IMMUNE_TO_INTERRUPT_AND_SILENCE_MASK ( \
977 (1<<(MECHANIC_INTERRUPT-1))|(1<<(MECHANIC_SILENCE-1)))
979 // Daze and all croud control spells except polymorph are not removed
980 #define MECHANIC_NOT_REMOVED_BY_SHAPESHIFT ( \
981 (1<<(MECHANIC_CHARM -1))|(1<<(MECHANIC_DISORIENTED-1))|(1<<(MECHANIC_FEAR -1))| \
982 (1<<(MECHANIC_PACIFY-1))|(1<<(MECHANIC_STUN -1))|(1<<(MECHANIC_FREEZE-1))| \
983 (1<<(MECHANIC_BANISH-1))|(1<<(MECHANIC_SHACKLE -1))|(1<<(MECHANIC_HORROR-1))| \
984 (1<<(MECHANIC_TURN -1))|(1<<(MECHANIC_DAZE -1))|(1<<(MECHANIC_SAPPED-1)))
986 // Spell dispell type
987 enum DispelType
989 DISPEL_NONE = 0,
990 DISPEL_MAGIC = 1,
991 DISPEL_CURSE = 2,
992 DISPEL_DISEASE = 3,
993 DISPEL_POISON = 4,
994 DISPEL_STEALTH = 5,
995 DISPEL_INVISIBILITY = 6,
996 DISPEL_ALL = 7,
997 DISPEL_SPE_NPC_ONLY = 8,
998 DISPEL_ENRAGE = 9,
999 DISPEL_ZG_TICKET = 10,
1000 DESPEL_OLD_UNUSED = 11
1003 #define DISPEL_ALL_MASK ( (1<<DISPEL_MAGIC) | (1<<DISPEL_CURSE) | (1<<DISPEL_DISEASE) | (1<<DISPEL_POISON) )
1005 //To all Immune system,if target has immunes,
1006 //some spell that related to ImmuneToDispel or ImmuneToSchool or ImmuneToDamage type can't cast to it,
1007 //some spell_effects that related to ImmuneToEffect<effect>(only this effect in the spell) can't cast to it,
1008 //some aura(related to Mechanics or ImmuneToState<aura>) can't apply to it.
1009 enum SpellImmunity
1011 IMMUNITY_EFFECT = 0, // enum SpellEffects
1012 IMMUNITY_STATE = 1, // enum AuraType
1013 IMMUNITY_SCHOOL = 2, // enum SpellSchoolMask
1014 IMMUNITY_DAMAGE = 3, // enum SpellSchoolMask
1015 IMMUNITY_DISPEL = 4, // enum DispelType
1016 IMMUNITY_MECHANIC = 5 // enum Mechanics
1019 #define MAX_SPELL_IMMUNITY 6
1021 enum WeaponAttackType
1023 BASE_ATTACK = 0,
1024 OFF_ATTACK = 1,
1025 RANGED_ATTACK = 2
1028 #define MAX_ATTACK 3
1030 enum Targets
1032 TARGET_SELF = 1,
1033 TARGET_RANDOM_ENEMY_CHAIN_IN_AREA = 2, // only one spell has that, but regardless, it's a target type after all
1034 TARGET_RANDOM_FRIEND_CHAIN_IN_AREA = 3,
1035 TARGET_PET = 5,
1036 TARGET_CHAIN_DAMAGE = 6,
1037 TARGET_AREAEFFECT_INSTANT = 7, // targets around provided destination point
1038 TARGET_AREAEFFECT_CUSTOM = 8,
1039 TARGET_INNKEEPER_COORDINATES = 9, // uses in teleport to innkeeper spells
1040 TARGET_ALL_ENEMY_IN_AREA = 15,
1041 TARGET_ALL_ENEMY_IN_AREA_INSTANT = 16,
1042 TARGET_TABLE_X_Y_Z_COORDINATES = 17, // uses in teleport spells and some other
1043 TARGET_EFFECT_SELECT = 18, // highly depends on the spell effect
1044 TARGET_ALL_PARTY_AROUND_CASTER = 20,
1045 TARGET_SINGLE_FRIEND = 21,
1046 TARGET_CASTER_COORDINATES = 22, // used only in TargetA, target selection dependent from TargetB
1047 TARGET_GAMEOBJECT = 23,
1048 TARGET_IN_FRONT_OF_CASTER = 24,
1049 TARGET_DUELVSPLAYER = 25,
1050 TARGET_GAMEOBJECT_ITEM = 26,
1051 TARGET_MASTER = 27,
1052 TARGET_ALL_ENEMY_IN_AREA_CHANNELED = 28,
1053 TARGET_ALL_FRIENDLY_UNITS_AROUND_CASTER = 30, // in TargetB used only with TARGET_ALL_AROUND_CASTER and in self casting range in TargetA
1054 TARGET_ALL_FRIENDLY_UNITS_IN_AREA = 31,
1055 TARGET_MINION = 32,
1056 TARGET_ALL_PARTY = 33,
1057 TARGET_ALL_PARTY_AROUND_CASTER_2 = 34, // used in Tranquility
1058 TARGET_SINGLE_PARTY = 35,
1059 TARGET_ALL_HOSTILE_UNITS_AROUND_CASTER = 36,
1060 TARGET_AREAEFFECT_PARTY = 37,
1061 TARGET_SCRIPT = 38,
1062 TARGET_SELF_FISHING = 39,
1063 TARGET_FOCUS_OR_SCRIPTED_GAMEOBJECT= 40,
1064 TARGET_TOTEM_EARTH = 41,
1065 TARGET_TOTEM_WATER = 42,
1066 TARGET_TOTEM_AIR = 43,
1067 TARGET_TOTEM_FIRE = 44,
1068 TARGET_CHAIN_HEAL = 45,
1069 TARGET_SCRIPT_COORDINATES = 46,
1070 TARGET_DYNAMIC_OBJECT_FRONT = 47,
1071 TARGET_DYNAMIC_OBJECT_BEHIND = 48,
1072 TARGET_DYNAMIC_OBJECT_LEFT_SIDE = 49,
1073 TARGET_DYNAMIC_OBJECT_RIGHT_SIDE = 50,
1074 TARGET_AREAEFFECT_CUSTOM_2 = 52,
1075 TARGET_CURRENT_ENEMY_COORDINATES = 53, // set unit coordinates as dest, only 16 target B imlemented
1076 TARGET_LARGE_FRONTAL_CONE = 54,
1077 TARGET_ALL_RAID_AROUND_CASTER = 56,
1078 TARGET_SINGLE_FRIEND_2 = 57,
1079 TARGET_NARROW_FRONTAL_CONE = 60,
1080 TARGET_AREAEFFECT_PARTY_AND_CLASS = 61,
1081 TARGET_DUELVSPLAYER_COORDINATES = 63,
1082 TARGET_INFRONT_OF_VICTIM = 64,
1083 TARGET_BEHIND_VICTIM = 65, // used in teleport behind spells, caster/target dependent from spell effect
1084 TARGET_RIGHT_FROM_VICTIM = 66,
1085 TARGET_LEFT_FROM_VICTIM = 67,
1086 TARGET_RANDOM_NEARBY_LOC = 72, // used in teleport onto nearby locations
1087 TARGET_RANDOM_CIRCUMFERENCE_POINT = 73,
1088 TARGET_DYNAMIC_OBJECT_COORDINATES = 76,
1089 TARGET_SINGLE_ENEMY = 77,
1090 TARGET_POINT_AT_NORTH = 78, // 78-85 possible _COORDINATES at radius with pi/4 step around target in unknown order, N?
1091 TARGET_POINT_AT_SOUTH = 79, // S?
1092 TARGET_POINT_AT_EAST = 80, // 80/81 must be symmetric from line caster->target, E (base at 82/83, 84/85 order) ?
1093 TARGET_POINT_AT_WEST = 81, // 80/81 must be symmetric from line caster->target, W (base at 82/83, 84/85 order) ?
1094 TARGET_POINT_AT_NE = 82, // from spell desc: "(NE)"
1095 TARGET_POINT_AT_NW = 83, // from spell desc: "(NW)"
1096 TARGET_POINT_AT_SE = 84, // from spell desc: "(SE)"
1097 TARGET_POINT_AT_SW = 85, // from spell desc: "(SW)"
1098 TARGET_RANDOM_NEARBY_DEST = 86, // "Test Nearby Dest Random" - random around selected destination
1099 TARGET_SELF2 = 87,
1100 TARGET_DIRECTLY_FORWARD = 89,
1101 TARGET_NONCOMBAT_PET = 90,
1102 TARGET_IN_FRONT_OF_CASTER_30 = 104,
1105 enum SpellMissInfo
1107 SPELL_MISS_NONE = 0,
1108 SPELL_MISS_MISS = 1,
1109 SPELL_MISS_RESIST = 2,
1110 SPELL_MISS_DODGE = 3,
1111 SPELL_MISS_PARRY = 4,
1112 SPELL_MISS_BLOCK = 5,
1113 SPELL_MISS_EVADE = 6,
1114 SPELL_MISS_IMMUNE = 7,
1115 SPELL_MISS_IMMUNE2 = 8,
1116 SPELL_MISS_DEFLECT = 9,
1117 SPELL_MISS_ABSORB = 10,
1118 SPELL_MISS_REFLECT = 11
1121 enum SpellHitType
1123 SPELL_HIT_TYPE_UNK1 = 0x00001,
1124 SPELL_HIT_TYPE_CRIT = 0x00002,
1125 SPELL_HIT_TYPE_UNK3 = 0x00004,
1126 SPELL_HIT_TYPE_UNK4 = 0x00008,
1127 SPELL_HIT_TYPE_UNK5 = 0x00010, // replace caster?
1128 SPELL_HIT_TYPE_UNK6 = 0x00020
1131 enum SpellDmgClass
1133 SPELL_DAMAGE_CLASS_NONE = 0,
1134 SPELL_DAMAGE_CLASS_MAGIC = 1,
1135 SPELL_DAMAGE_CLASS_MELEE = 2,
1136 SPELL_DAMAGE_CLASS_RANGED = 3
1139 enum SpellPreventionType
1141 SPELL_PREVENTION_TYPE_NONE = 0,
1142 SPELL_PREVENTION_TYPE_SILENCE = 1,
1143 SPELL_PREVENTION_TYPE_PACIFY = 2
1146 enum GameobjectTypes
1148 GAMEOBJECT_TYPE_DOOR = 0,
1149 GAMEOBJECT_TYPE_BUTTON = 1,
1150 GAMEOBJECT_TYPE_QUESTGIVER = 2,
1151 GAMEOBJECT_TYPE_CHEST = 3,
1152 GAMEOBJECT_TYPE_BINDER = 4,
1153 GAMEOBJECT_TYPE_GENERIC = 5,
1154 GAMEOBJECT_TYPE_TRAP = 6,
1155 GAMEOBJECT_TYPE_CHAIR = 7,
1156 GAMEOBJECT_TYPE_SPELL_FOCUS = 8,
1157 GAMEOBJECT_TYPE_TEXT = 9,
1158 GAMEOBJECT_TYPE_GOOBER = 10,
1159 GAMEOBJECT_TYPE_TRANSPORT = 11,
1160 GAMEOBJECT_TYPE_AREADAMAGE = 12,
1161 GAMEOBJECT_TYPE_CAMERA = 13,
1162 GAMEOBJECT_TYPE_MAP_OBJECT = 14,
1163 GAMEOBJECT_TYPE_MO_TRANSPORT = 15,
1164 GAMEOBJECT_TYPE_DUEL_ARBITER = 16,
1165 GAMEOBJECT_TYPE_FISHINGNODE = 17,
1166 GAMEOBJECT_TYPE_SUMMONING_RITUAL = 18,
1167 GAMEOBJECT_TYPE_MAILBOX = 19,
1168 GAMEOBJECT_TYPE_DO_NOT_USE = 20,
1169 GAMEOBJECT_TYPE_GUARDPOST = 21,
1170 GAMEOBJECT_TYPE_SPELLCASTER = 22,
1171 GAMEOBJECT_TYPE_MEETINGSTONE = 23,
1172 GAMEOBJECT_TYPE_FLAGSTAND = 24,
1173 GAMEOBJECT_TYPE_FISHINGHOLE = 25,
1174 GAMEOBJECT_TYPE_FLAGDROP = 26,
1175 GAMEOBJECT_TYPE_MINI_GAME = 27,
1176 GAMEOBJECT_TYPE_DO_NOT_USE_2 = 28,
1177 GAMEOBJECT_TYPE_CAPTURE_POINT = 29,
1178 GAMEOBJECT_TYPE_AURA_GENERATOR = 30,
1179 GAMEOBJECT_TYPE_DUNGEON_DIFFICULTY = 31,
1180 GAMEOBJECT_TYPE_BARBER_CHAIR = 32,
1181 GAMEOBJECT_TYPE_DESTRUCTIBLE_BUILDING = 33,
1182 GAMEOBJECT_TYPE_GUILD_BANK = 34,
1183 GAMEOBJECT_TYPE_TRAPDOOR = 35
1186 #define MAX_GAMEOBJECT_TYPE 36 // sending to client this or greater value can crash client.
1188 #define GAMEOBJECT_FISHINGNODE_ENTRY 35591 // Better to define it somewhere instead of hardcoding everywhere
1190 enum GameObjectFlags
1192 GO_FLAG_IN_USE = 0x00000001, //disables interaction while animated
1193 GO_FLAG_LOCKED = 0x00000002, //require key, spell, event, etc to be opened. Makes "Locked" appear in tooltip
1194 GO_FLAG_INTERACT_COND = 0x00000004, //cannot interact (condition to interact)
1195 GO_FLAG_TRANSPORT = 0x00000008, //any kind of transport? Object can transport (elevator, boat, car)
1196 GO_FLAG_UNK1 = 0x00000010, //
1197 GO_FLAG_NODESPAWN = 0x00000020, //never despawn, typically for doors, they just change state
1198 GO_FLAG_TRIGGERED = 0x00000040, //typically, summoned objects. Triggered by spell or other events
1199 GO_FLAG_UNK_8 = 0x00000080,
1200 GO_FLAG_UNK_9 = 0x00000100, //? Seen on type 33, possible meaning "destruct in progress"
1201 GO_FLAG_UNK_10 = 0x00000200, //? Seen on type 33
1202 GO_FLAG_UNK_11 = 0x00000400 //? Seen on type 33, possibly meaning "destructed"
1205 enum TextEmotes
1207 TEXTEMOTE_AGREE = 1,
1208 TEXTEMOTE_AMAZE = 2,
1209 TEXTEMOTE_ANGRY = 3,
1210 TEXTEMOTE_APOLOGIZE = 4,
1211 TEXTEMOTE_APPLAUD = 5,
1212 TEXTEMOTE_BASHFUL = 6,
1213 TEXTEMOTE_BECKON = 7,
1214 TEXTEMOTE_BEG = 8,
1215 TEXTEMOTE_BITE = 9,
1216 TEXTEMOTE_BLEED = 10,
1217 TEXTEMOTE_BLINK = 11,
1218 TEXTEMOTE_BLUSH = 12,
1219 TEXTEMOTE_BONK = 13,
1220 TEXTEMOTE_BORED = 14,
1221 TEXTEMOTE_BOUNCE = 15,
1222 TEXTEMOTE_BRB = 16,
1223 TEXTEMOTE_BOW = 17,
1224 TEXTEMOTE_BURP = 18,
1225 TEXTEMOTE_BYE = 19,
1226 TEXTEMOTE_CACKLE = 20,
1227 TEXTEMOTE_CHEER = 21,
1228 TEXTEMOTE_CHICKEN = 22,
1229 TEXTEMOTE_CHUCKLE = 23,
1230 TEXTEMOTE_CLAP = 24,
1231 TEXTEMOTE_CONFUSED = 25,
1232 TEXTEMOTE_CONGRATULATE = 26,
1233 TEXTEMOTE_COUGH = 27,
1234 TEXTEMOTE_COWER = 28,
1235 TEXTEMOTE_CRACK = 29,
1236 TEXTEMOTE_CRINGE = 30,
1237 TEXTEMOTE_CRY = 31,
1238 TEXTEMOTE_CURIOUS = 32,
1239 TEXTEMOTE_CURTSEY = 33,
1240 TEXTEMOTE_DANCE = 34,
1241 TEXTEMOTE_DRINK = 35,
1242 TEXTEMOTE_DROOL = 36,
1243 TEXTEMOTE_EAT = 37,
1244 TEXTEMOTE_EYE = 38,
1245 TEXTEMOTE_FART = 39,
1246 TEXTEMOTE_FIDGET = 40,
1247 TEXTEMOTE_FLEX = 41,
1248 TEXTEMOTE_FROWN = 42,
1249 TEXTEMOTE_GASP = 43,
1250 TEXTEMOTE_GAZE = 44,
1251 TEXTEMOTE_GIGGLE = 45,
1252 TEXTEMOTE_GLARE = 46,
1253 TEXTEMOTE_GLOAT = 47,
1254 TEXTEMOTE_GREET = 48,
1255 TEXTEMOTE_GRIN = 49,
1256 TEXTEMOTE_GROAN = 50,
1257 TEXTEMOTE_GROVEL = 51,
1258 TEXTEMOTE_GUFFAW = 52,
1259 TEXTEMOTE_HAIL = 53,
1260 TEXTEMOTE_HAPPY = 54,
1261 TEXTEMOTE_HELLO = 55,
1262 TEXTEMOTE_HUG = 56,
1263 TEXTEMOTE_HUNGRY = 57,
1264 TEXTEMOTE_KISS = 58,
1265 TEXTEMOTE_KNEEL = 59,
1266 TEXTEMOTE_LAUGH = 60,
1267 TEXTEMOTE_LAYDOWN = 61,
1268 TEXTEMOTE_MESSAGE = 62,
1269 TEXTEMOTE_MOAN = 63,
1270 TEXTEMOTE_MOON = 64,
1271 TEXTEMOTE_MOURN = 65,
1272 TEXTEMOTE_NO = 66,
1273 TEXTEMOTE_NOD = 67,
1274 TEXTEMOTE_NOSEPICK = 68,
1275 TEXTEMOTE_PANIC = 69,
1276 TEXTEMOTE_PEER = 70,
1277 TEXTEMOTE_PLEAD = 71,
1278 TEXTEMOTE_POINT = 72,
1279 TEXTEMOTE_POKE = 73,
1280 TEXTEMOTE_PRAY = 74,
1281 TEXTEMOTE_ROAR = 75,
1282 TEXTEMOTE_ROFL = 76,
1283 TEXTEMOTE_RUDE = 77,
1284 TEXTEMOTE_SALUTE = 78,
1285 TEXTEMOTE_SCRATCH = 79,
1286 TEXTEMOTE_SEXY = 80,
1287 TEXTEMOTE_SHAKE = 81,
1288 TEXTEMOTE_SHOUT = 82,
1289 TEXTEMOTE_SHRUG = 83,
1290 TEXTEMOTE_SHY = 84,
1291 TEXTEMOTE_SIGH = 85,
1292 TEXTEMOTE_SIT = 86,
1293 TEXTEMOTE_SLEEP = 87,
1294 TEXTEMOTE_SNARL = 88,
1295 TEXTEMOTE_SPIT = 89,
1296 TEXTEMOTE_STARE = 90,
1297 TEXTEMOTE_SURPRISED = 91,
1298 TEXTEMOTE_SURRENDER = 92,
1299 TEXTEMOTE_TALK = 93,
1300 TEXTEMOTE_TALKEX = 94,
1301 TEXTEMOTE_TALKQ = 95,
1302 TEXTEMOTE_TAP = 96,
1303 TEXTEMOTE_THANK = 97,
1304 TEXTEMOTE_THREATEN = 98,
1305 TEXTEMOTE_TIRED = 99,
1306 TEXTEMOTE_VICTORY = 100,
1307 TEXTEMOTE_WAVE = 101,
1308 TEXTEMOTE_WELCOME = 102,
1309 TEXTEMOTE_WHINE = 103,
1310 TEXTEMOTE_WHISTLE = 104,
1311 TEXTEMOTE_WORK = 105,
1312 TEXTEMOTE_YAWN = 106,
1313 TEXTEMOTE_BOGGLE = 107,
1314 TEXTEMOTE_CALM = 108,
1315 TEXTEMOTE_COLD = 109,
1316 TEXTEMOTE_COMFORT = 110,
1317 TEXTEMOTE_CUDDLE = 111,
1318 TEXTEMOTE_DUCK = 112,
1319 TEXTEMOTE_INSULT = 113,
1320 TEXTEMOTE_INTRODUCE = 114,
1321 TEXTEMOTE_JK = 115,
1322 TEXTEMOTE_LICK = 116,
1323 TEXTEMOTE_LISTEN = 117,
1324 TEXTEMOTE_LOST = 118,
1325 TEXTEMOTE_MOCK = 119,
1326 TEXTEMOTE_PONDER = 120,
1327 TEXTEMOTE_POUNCE = 121,
1328 TEXTEMOTE_PRAISE = 122,
1329 TEXTEMOTE_PURR = 123,
1330 TEXTEMOTE_PUZZLE = 124,
1331 TEXTEMOTE_RAISE = 125,
1332 TEXTEMOTE_READY = 126,
1333 TEXTEMOTE_SHIMMY = 127,
1334 TEXTEMOTE_SHIVER = 128,
1335 TEXTEMOTE_SHOO = 129,
1336 TEXTEMOTE_SLAP = 130,
1337 TEXTEMOTE_SMIRK = 131,
1338 TEXTEMOTE_SNIFF = 132,
1339 TEXTEMOTE_SNUB = 133,
1340 TEXTEMOTE_SOOTHE = 134,
1341 TEXTEMOTE_STINK = 135,
1342 TEXTEMOTE_TAUNT = 136,
1343 TEXTEMOTE_TEASE = 137,
1344 TEXTEMOTE_THIRSTY = 138,
1345 TEXTEMOTE_VETO = 139,
1346 TEXTEMOTE_SNICKER = 140,
1347 TEXTEMOTE_STAND = 141,
1348 TEXTEMOTE_TICKLE = 142,
1349 TEXTEMOTE_VIOLIN = 143,
1350 TEXTEMOTE_SMILE = 163,
1351 TEXTEMOTE_RASP = 183,
1352 TEXTEMOTE_PITY = 203,
1353 TEXTEMOTE_GROWL = 204,
1354 TEXTEMOTE_BARK = 205,
1355 TEXTEMOTE_SCARED = 223,
1356 TEXTEMOTE_FLOP = 224,
1357 TEXTEMOTE_LOVE = 225,
1358 TEXTEMOTE_MOO = 226,
1359 TEXTEMOTE_OPENFIRE = 327,
1360 TEXTEMOTE_FLIRT = 328,
1361 TEXTEMOTE_JOKE = 329,
1362 TEXTEMOTE_COMMEND = 243,
1363 TEXTEMOTE_WINK = 363,
1364 TEXTEMOTE_PAT = 364,
1365 TEXTEMOTE_SERIOUS = 365,
1366 TEXTEMOTE_MOUNTSPECIAL = 366,
1367 TEXTEMOTE_GOODLUCK = 367,
1368 TEXTEMOTE_BLAME = 368,
1369 TEXTEMOTE_BLANK = 369,
1370 TEXTEMOTE_BRANDISH = 370,
1371 TEXTEMOTE_BREATH = 371,
1372 TEXTEMOTE_DISAGREE = 372,
1373 TEXTEMOTE_DOUBT = 373,
1374 TEXTEMOTE_EMBARRASS = 374,
1375 TEXTEMOTE_ENCOURAGE = 375,
1376 TEXTEMOTE_ENEMY = 376,
1377 TEXTEMOTE_EYEBROW = 377,
1378 TEXTEMOTE_TOAST = 378
1381 enum Emote
1383 EMOTE_ONESHOT_NONE = 0,
1384 EMOTE_ONESHOT_TALK = 1,
1385 EMOTE_ONESHOT_BOW = 2,
1386 EMOTE_ONESHOT_WAVE = 3,
1387 EMOTE_ONESHOT_CHEER = 4,
1388 EMOTE_ONESHOT_EXCLAMATION = 5,
1389 EMOTE_ONESHOT_QUESTION = 6,
1390 EMOTE_ONESHOT_EAT = 7,
1391 EMOTE_STATE_DANCE = 10,
1392 EMOTE_ONESHOT_LAUGH = 11,
1393 EMOTE_STATE_SLEEP = 12,
1394 EMOTE_STATE_SIT = 13,
1395 EMOTE_ONESHOT_RUDE = 14,
1396 EMOTE_ONESHOT_ROAR = 15,
1397 EMOTE_ONESHOT_KNEEL = 16,
1398 EMOTE_ONESHOT_KISS = 17,
1399 EMOTE_ONESHOT_CRY = 18,
1400 EMOTE_ONESHOT_CHICKEN = 19,
1401 EMOTE_ONESHOT_BEG = 20,
1402 EMOTE_ONESHOT_APPLAUD = 21,
1403 EMOTE_ONESHOT_SHOUT = 22,
1404 EMOTE_ONESHOT_FLEX = 23,
1405 EMOTE_ONESHOT_SHY = 24,
1406 EMOTE_ONESHOT_POINT = 25,
1407 EMOTE_STATE_STAND = 26,
1408 EMOTE_STATE_READYUNARMED = 27,
1409 EMOTE_STATE_WORK_SHEATHED = 28,
1410 EMOTE_STATE_POINT = 29,
1411 EMOTE_STATE_NONE = 30,
1412 EMOTE_ONESHOT_WOUND = 33,
1413 EMOTE_ONESHOT_WOUNDCRITICAL = 34,
1414 EMOTE_ONESHOT_ATTACKUNARMED = 35,
1415 EMOTE_ONESHOT_ATTACK1H = 36,
1416 EMOTE_ONESHOT_ATTACK2HTIGHT = 37,
1417 EMOTE_ONESHOT_ATTACK2HLOOSE = 38,
1418 EMOTE_ONESHOT_PARRYUNARMED = 39,
1419 EMOTE_ONESHOT_PARRYSHIELD = 43,
1420 EMOTE_ONESHOT_READYUNARMED = 44,
1421 EMOTE_ONESHOT_READY1H = 45,
1422 EMOTE_ONESHOT_READYBOW = 48,
1423 EMOTE_ONESHOT_SPELLPRECAST = 50,
1424 EMOTE_ONESHOT_SPELLCAST = 51,
1425 EMOTE_ONESHOT_BATTLEROAR = 53,
1426 EMOTE_ONESHOT_SPECIALATTACK1H = 54,
1427 EMOTE_ONESHOT_KICK = 60,
1428 EMOTE_ONESHOT_ATTACKTHROWN = 61,
1429 EMOTE_STATE_STUN = 64,
1430 EMOTE_STATE_DEAD = 65,
1431 EMOTE_ONESHOT_SALUTE = 66,
1432 EMOTE_STATE_KNEEL = 68,
1433 EMOTE_STATE_USESTANDING = 69,
1434 EMOTE_ONESHOT_WAVE_NOSHEATHE = 70,
1435 EMOTE_ONESHOT_CHEER_NOSHEATHE = 71,
1436 EMOTE_ONESHOT_EAT_NOSHEATHE = 92,
1437 EMOTE_STATE_STUN_NOSHEATHE = 93,
1438 EMOTE_ONESHOT_DANCE = 94,
1439 EMOTE_ONESHOT_SALUTE_NOSHEATH = 113,
1440 EMOTE_STATE_USESTANDING_NOSHEATHE = 133,
1441 EMOTE_ONESHOT_LAUGH_NOSHEATHE = 153,
1442 EMOTE_STATE_WORK = 173,
1443 EMOTE_STATE_SPELLPRECAST = 193,
1444 EMOTE_ONESHOT_READYRIFLE = 213,
1445 EMOTE_STATE_READYRIFLE = 214,
1446 EMOTE_STATE_WORK_MINING = 233,
1447 EMOTE_STATE_WORK_CHOPWOOD = 234,
1448 EMOTE_STATE_APPLAUD = 253,
1449 EMOTE_ONESHOT_LIFTOFF = 254,
1450 EMOTE_ONESHOT_YES = 273,
1451 EMOTE_ONESHOT_NO = 274,
1452 EMOTE_ONESHOT_TRAIN = 275,
1453 EMOTE_ONESHOT_LAND = 293,
1454 EMOTE_STATE_AT_EASE = 313,
1455 EMOTE_STATE_READY1H = 333,
1456 EMOTE_STATE_SPELLKNEELSTART = 353,
1457 EMOTE_STATE_SUBMERGED = 373,
1458 EMOTE_ONESHOT_SUBMERGE = 374,
1459 EMOTE_STATE_READY2H = 375,
1460 EMOTE_STATE_READYBOW = 376,
1461 EMOTE_ONESHOT_MOUNTSPECIAL = 377,
1462 EMOTE_STATE_TALK = 378,
1463 EMOTE_STATE_FISHING = 379,
1464 EMOTE_ONESHOT_FISHING = 380,
1465 EMOTE_ONESHOT_LOOT = 381,
1466 EMOTE_STATE_WHIRLWIND = 382,
1467 EMOTE_STATE_DROWNED = 383,
1468 EMOTE_STATE_HOLD_BOW = 384,
1469 EMOTE_STATE_HOLD_RIFLE = 385,
1470 EMOTE_STATE_HOLD_THROWN = 386,
1471 EMOTE_ONESHOT_DROWN = 387,
1472 EMOTE_ONESHOT_STOMP = 388,
1473 EMOTE_ONESHOT_ATTACKOFF = 389,
1474 EMOTE_ONESHOT_ATTACKOFFPIERCE = 390,
1475 EMOTE_STATE_ROAR = 391,
1476 EMOTE_STATE_LAUGH = 392,
1477 EMOTE_ONESHOT_CREATURE_SPECIAL = 393,
1478 EMOTE_ONESHOT_JUMPLANDRUN = 394,
1479 EMOTE_ONESHOT_JUMPEND = 395,
1480 EMOTE_ONESHOT_TALK_NOSHEATHE = 396,
1481 EMOTE_ONESHOT_POINT_NOSHEATHE = 397,
1482 EMOTE_STATE_CANNIBALIZE = 398,
1483 EMOTE_ONESHOT_JUMPSTART = 399,
1484 EMOTE_STATE_DANCESPECIAL = 400,
1485 EMOTE_ONESHOT_DANCESPECIAL = 401,
1486 EMOTE_ONESHOT_CUSTOMSPELL01 = 402,
1487 EMOTE_ONESHOT_CUSTOMSPELL02 = 403,
1488 EMOTE_ONESHOT_CUSTOMSPELL03 = 404,
1489 EMOTE_ONESHOT_CUSTOMSPELL04 = 405,
1490 EMOTE_ONESHOT_CUSTOMSPELL05 = 406,
1491 EMOTE_ONESHOT_CUSTOMSPELL06 = 407,
1492 EMOTE_ONESHOT_CUSTOMSPELL07 = 408,
1493 EMOTE_ONESHOT_CUSTOMSPELL08 = 409,
1494 EMOTE_ONESHOT_CUSTOMSPELL09 = 410,
1495 EMOTE_ONESHOT_CUSTOMSPELL10 = 411,
1496 EMOTE_STATE_EXCLAIM = 412,
1497 EMOTE_STATE_DANCE_CUSTOM = 413,
1498 EMOTE_STATE_SIT_CHAIR_MED = 415,
1499 EMOTE_STATE_CUSTOM_SPELL_01 = 416,
1500 EMOTE_STATE_CUSTOM_SPELL_02 = 417,
1501 EMOTE_STATE_EAT = 418,
1502 EMOTE_STATE_CUSTOM_SPELL_04 = 419,
1503 EMOTE_STATE_CUSTOM_SPELL_03 = 420,
1504 EMOTE_STATE_CUSTOM_SPELL_05 = 421,
1505 EMOTE_STATE_SPELLEFFECT_HOLD = 422,
1506 EMOTE_STATE_EAT_NO_SHEATHE = 423,
1507 EMOTE_STATE_MOUNT = 424,
1508 EMOTE_STATE_READY2HL = 425,
1509 EMOTE_STATE_SIT_CHAIR_HIGH = 426,
1510 EMOTE_STATE_FALL = 427,
1511 EMOTE_STATE_LOOT = 428,
1512 EMOTE_STATE_SUBMERGED_NEW = 429,
1513 EMOTE_ONESHOT_COWER = 430,
1514 EMOTE_STATE_COWER = 431,
1515 EMOTE_ONESHOT_USESTANDING = 432,
1516 EMOTE_STATE_STEALTH_STAND = 433,
1517 EMOTE_ONESHOT_OMNICAST_GHOUL = 434,
1518 EMOTE_ONESHOT_ATTACKBOW = 435,
1519 EMOTE_ONESHOT_ATTACKRIFLE = 436,
1520 EMOTE_STATE_SWIM_IDLE = 437,
1521 EMOTE_STATE_ATTACK_UNARMED = 438,
1522 EMOTE_ONESHOT_SPELLCAST_W_SOUND = 439,
1523 EMOTE_ONESHOT_DODGE = 440,
1524 EMOTE_ONESHOT_PARRY1H = 441,
1525 EMOTE_ONESHOT_PARRY2H = 442,
1526 EMOTE_ONESHOT_PARRY2HL = 443,
1527 EMOTE_STATE_FLYFALL = 444,
1528 EMOTE_ONESHOT_FLYDEATH = 445,
1529 EMOTE_STATE_FLY_FALL = 446,
1530 EMOTE_ONESHOT_FLY_SIT_GROUND_DOWN = 447,
1531 EMOTE_ONESHOT_FLY_SIT_GROUND_UP = 448,
1532 EMOTE_ONESHOT_EMERGE = 449,
1533 EMOTE_ONESHOT_DRAGONSPIT = 450,
1534 EMOTE_STATE_SPECIALUNARMED = 451,
1535 EMOTE_ONESHOT_FLYGRAB = 452,
1536 EMOTE_STATE_FLYGRABCLOSED = 453,
1537 EMOTE_ONESHOT_FLYGRABTHROWN = 454,
1538 EMOTE_STATE_FLY_SIT_GROUND = 455,
1539 EMOTE_STATE_WALKBACKWARDS = 456,
1540 EMOTE_ONESHOT_FLYTALK = 457,
1541 EMOTE_ONESHOT_FLYATTACK1H = 458,
1542 EMOTE_STATE_CUSTOMSPELL08 = 459,
1543 EMOTE_ONESHOT_FLY_DRAGONSPIT = 460,
1544 EMOTE_STATE_SIT_CHAIR_LOW = 461,
1545 EMOTE_ONE_SHOT_STUN = 462,
1546 EMOTE_ONESHOT_SPELLCAST_OMNI = 463,
1547 EMOTE_STATE_READYTHROWN = 464
1550 enum Anim
1552 ANIM_STAND = 0x0,
1553 ANIM_DEATH = 0x1,
1554 ANIM_SPELL = 0x2,
1555 ANIM_STOP = 0x3,
1556 ANIM_WALK = 0x4,
1557 ANIM_RUN = 0x5,
1558 ANIM_DEAD = 0x6,
1559 ANIM_RISE = 0x7,
1560 ANIM_STANDWOUND = 0x8,
1561 ANIM_COMBATWOUND = 0x9,
1562 ANIM_COMBATCRITICAL = 0xA,
1563 ANIM_SHUFFLE_LEFT = 0xB,
1564 ANIM_SHUFFLE_RIGHT = 0xC,
1565 ANIM_WALK_BACKWARDS = 0xD,
1566 ANIM_STUN = 0xE,
1567 ANIM_HANDS_CLOSED = 0xF,
1568 ANIM_ATTACKUNARMED = 0x10,
1569 ANIM_ATTACK1H = 0x11,
1570 ANIM_ATTACK2HTIGHT = 0x12,
1571 ANIM_ATTACK2HLOOSE = 0x13,
1572 ANIM_PARRYUNARMED = 0x14,
1573 ANIM_PARRY1H = 0x15,
1574 ANIM_PARRY2HTIGHT = 0x16,
1575 ANIM_PARRY2HLOOSE = 0x17,
1576 ANIM_PARRYSHIELD = 0x18,
1577 ANIM_READYUNARMED = 0x19,
1578 ANIM_READY1H = 0x1A,
1579 ANIM_READY2HTIGHT = 0x1B,
1580 ANIM_READY2HLOOSE = 0x1C,
1581 ANIM_READYBOW = 0x1D,
1582 ANIM_DODGE = 0x1E,
1583 ANIM_SPELLPRECAST = 0x1F,
1584 ANIM_SPELLCAST = 0x20,
1585 ANIM_SPELLCASTAREA = 0x21,
1586 ANIM_NPCWELCOME = 0x22,
1587 ANIM_NPCGOODBYE = 0x23,
1588 ANIM_BLOCK = 0x24,
1589 ANIM_JUMPSTART = 0x25,
1590 ANIM_JUMP = 0x26,
1591 ANIM_JUMPEND = 0x27,
1592 ANIM_FALL = 0x28,
1593 ANIM_SWIMIDLE = 0x29,
1594 ANIM_SWIM = 0x2A,
1595 ANIM_SWIM_LEFT = 0x2B,
1596 ANIM_SWIM_RIGHT = 0x2C,
1597 ANIM_SWIM_BACKWARDS = 0x2D,
1598 ANIM_ATTACKBOW = 0x2E,
1599 ANIM_FIREBOW = 0x2F,
1600 ANIM_READYRIFLE = 0x30,
1601 ANIM_ATTACKRIFLE = 0x31,
1602 ANIM_LOOT = 0x32,
1603 ANIM_SPELL_PRECAST_DIRECTED = 0x33,
1604 ANIM_SPELL_PRECAST_OMNI = 0x34,
1605 ANIM_SPELL_CAST_DIRECTED = 0x35,
1606 ANIM_SPELL_CAST_OMNI = 0x36,
1607 ANIM_SPELL_BATTLEROAR = 0x37,
1608 ANIM_SPELL_READYABILITY = 0x38,
1609 ANIM_SPELL_SPECIAL1H = 0x39,
1610 ANIM_SPELL_SPECIAL2H = 0x3A,
1611 ANIM_SPELL_SHIELDBASH = 0x3B,
1612 ANIM_EMOTE_TALK = 0x3C,
1613 ANIM_EMOTE_EAT = 0x3D,
1614 ANIM_EMOTE_WORK = 0x3E,
1615 ANIM_EMOTE_USE_STANDING = 0x3F,
1616 ANIM_EMOTE_EXCLAMATION = 0x40,
1617 ANIM_EMOTE_QUESTION = 0x41,
1618 ANIM_EMOTE_BOW = 0x42,
1619 ANIM_EMOTE_WAVE = 0x43,
1620 ANIM_EMOTE_CHEER = 0x44,
1621 ANIM_EMOTE_DANCE = 0x45,
1622 ANIM_EMOTE_LAUGH = 0x46,
1623 ANIM_EMOTE_SLEEP = 0x47,
1624 ANIM_EMOTE_SIT_GROUND = 0x48,
1625 ANIM_EMOTE_RUDE = 0x49,
1626 ANIM_EMOTE_ROAR = 0x4A,
1627 ANIM_EMOTE_KNEEL = 0x4B,
1628 ANIM_EMOTE_KISS = 0x4C,
1629 ANIM_EMOTE_CRY = 0x4D,
1630 ANIM_EMOTE_CHICKEN = 0x4E,
1631 ANIM_EMOTE_BEG = 0x4F,
1632 ANIM_EMOTE_APPLAUD = 0x50,
1633 ANIM_EMOTE_SHOUT = 0x51,
1634 ANIM_EMOTE_FLEX = 0x52,
1635 ANIM_EMOTE_SHY = 0x53,
1636 ANIM_EMOTE_POINT = 0x54,
1637 ANIM_ATTACK1HPIERCE = 0x55,
1638 ANIM_ATTACK2HLOOSEPIERCE = 0x56,
1639 ANIM_ATTACKOFF = 0x57,
1640 ANIM_ATTACKOFFPIERCE = 0x58,
1641 ANIM_SHEATHE = 0x59,
1642 ANIM_HIPSHEATHE = 0x5A,
1643 ANIM_MOUNT = 0x5B,
1644 ANIM_RUN_LEANRIGHT = 0x5C,
1645 ANIM_RUN_LEANLEFT = 0x5D,
1646 ANIM_MOUNT_SPECIAL = 0x5E,
1647 ANIM_KICK = 0x5F,
1648 ANIM_SITDOWN = 0x60,
1649 ANIM_SITTING = 0x61,
1650 ANIM_SITUP = 0x62,
1651 ANIM_SLEEPDOWN = 0x63,
1652 ANIM_SLEEPING = 0x64,
1653 ANIM_SLEEPUP = 0x65,
1654 ANIM_SITCHAIRLOW = 0x66,
1655 ANIM_SITCHAIRMEDIUM = 0x67,
1656 ANIM_SITCHAIRHIGH = 0x68,
1657 ANIM_LOADBOW = 0x69,
1658 ANIM_LOADRIFLE = 0x6A,
1659 ANIM_ATTACKTHROWN = 0x6B,
1660 ANIM_READYTHROWN = 0x6C,
1661 ANIM_HOLDBOW = 0x6D,
1662 ANIM_HOLDRIFLE = 0x6E,
1663 ANIM_HOLDTHROWN = 0x6F,
1664 ANIM_LOADTHROWN = 0x70,
1665 ANIM_EMOTE_SALUTE = 0x71,
1666 ANIM_KNEELDOWN = 0x72,
1667 ANIM_KNEELING = 0x73,
1668 ANIM_KNEELUP = 0x74,
1669 ANIM_ATTACKUNARMEDOFF = 0x75,
1670 ANIM_SPECIALUNARMED = 0x76,
1671 ANIM_STEALTHWALK = 0x77,
1672 ANIM_STEALTHSTAND = 0x78,
1673 ANIM_KNOCKDOWN = 0x79,
1674 ANIM_EATING = 0x7A,
1675 ANIM_USESTANDINGLOOP = 0x7B,
1676 ANIM_CHANNELCASTDIRECTED = 0x7C,
1677 ANIM_CHANNELCASTOMNI = 0x7D,
1678 ANIM_WHIRLWIND = 0x7E,
1679 ANIM_BIRTH = 0x7F,
1680 ANIM_USESTANDINGSTART = 0x80,
1681 ANIM_USESTANDINGEND = 0x81,
1682 ANIM_HOWL = 0x82,
1683 ANIM_DROWN = 0x83,
1684 ANIM_DROWNED = 0x84,
1685 ANIM_FISHINGCAST = 0x85,
1686 ANIM_FISHINGLOOP = 0x86,
1687 ANIM_FLY = 0x87,
1688 ANIM_EMOTE_WORK_NO_SHEATHE = 0x88,
1689 ANIM_EMOTE_STUN_NO_SHEATHE = 0x89,
1690 ANIM_EMOTE_USE_STANDING_NO_SHEATHE= 0x8A,
1691 ANIM_SPELL_SLEEP_DOWN = 0x8B,
1692 ANIM_SPELL_KNEEL_START = 0x8C,
1693 ANIM_SPELL_KNEEL_LOOP = 0x8D,
1694 ANIM_SPELL_KNEEL_END = 0x8E,
1695 ANIM_SPRINT = 0x8F,
1696 ANIM_IN_FIGHT = 0x90,
1698 ANIM_GAMEOBJ_SPAWN = 145,
1699 ANIM_GAMEOBJ_CLOSE = 146,
1700 ANIM_GAMEOBJ_CLOSED = 147,
1701 ANIM_GAMEOBJ_OPEN = 148,
1702 ANIM_GAMEOBJ_OPENED = 149,
1703 ANIM_GAMEOBJ_DESTROY = 150,
1704 ANIM_GAMEOBJ_DESTROYED = 151,
1705 ANIM_GAMEOBJ_REBUILD = 152,
1706 ANIM_GAMEOBJ_CUSTOM0 = 153,
1707 ANIM_GAMEOBJ_CUSTOM1 = 154,
1708 ANIM_GAMEOBJ_CUSTOM2 = 155,
1709 ANIM_GAMEOBJ_CUSTOM3 = 156,
1710 ANIM_GAMEOBJ_DESPAWN = 157,
1711 ANIM_HOLD = 158,
1712 ANIM_DECAY = 159,
1713 ANIM_BOWPULL = 160,
1714 ANIM_BOWRELEASE = 161,
1715 ANIM_SHIPSTART = 162,
1716 ANIM_SHIPMOVEING = 163,
1717 ANIM_SHIPSTOP = 164,
1718 ANIM_GROUPARROW = 165,
1719 ANIM_ARROW = 166,
1720 ANIM_CORPSEARROW = 167,
1721 ANIM_GUIDEARROW = 168,
1722 ANIM_SWAY = 169,
1723 ANIM_DRUIDCATPOUNCE = 170,
1724 ANIM_DRUIDCATRIP = 171,
1725 ANIM_DRUIDCATRAKE = 172,
1726 ANIM_DRUIDCATRAVAGE = 173,
1727 ANIM_DRUIDCATCLAW = 174,
1728 ANIM_DRUIDCATCOWER = 175,
1729 ANIM_DRUIDBEARSWIPE = 176,
1730 ANIM_DRUIDBEARBITE = 177,
1731 ANIM_DRUIDBEARMAUL = 178,
1732 ANIM_DRUIDBEARBASH = 179,
1733 ANIM_DRAGONTAIL = 180,
1734 ANIM_DRAGONSTOMP = 181,
1735 ANIM_DRAGONSPIT = 182,
1736 ANIM_DRAGONSPITHOVER = 183,
1737 ANIM_DRAGONSPITFLY = 184,
1738 ANIM_EMOTEYES = 185,
1739 ANIM_EMOTENO = 186,
1740 ANIM_JUMPLANDRUN = 187,
1741 ANIM_LOOTHOLD = 188,
1742 ANIM_LOOTUP = 189,
1743 ANIM_STANDHIGH = 190,
1744 ANIM_IMPACT = 191,
1745 ANIM_LIFTOFF = 192,
1746 ANIM_HOVER = 193,
1747 ANIM_SUCCUBUSENTICE = 194,
1748 ANIM_EMOTETRAIN = 195,
1749 ANIM_EMOTEDEAD = 196,
1750 ANIM_EMOTEDANCEONCE = 197,
1751 ANIM_DEFLECT = 198,
1752 ANIM_EMOTEEATNOSHEATHE = 199,
1753 ANIM_LAND = 200,
1754 ANIM_SUBMERGE = 201,
1755 ANIM_SUBMERGED = 202,
1756 ANIM_CANNIBALIZE = 203,
1757 ANIM_ARROWBIRTH = 204,
1758 ANIM_GROURARROWBIRTH = 205,
1759 ANIM_CORPSEARROWBIRTH = 206,
1760 ANIM_GUIDEARROWBIRTH = 207,
1761 ANIM_EMOTETALKNOSHEATHE = 208,
1762 ANIM_EMOTEPOINTNOSHEATHE = 209,
1763 ANIM_EMOTESALUTENOSHEATHE = 210,
1764 ANIM_EMOTEDANCESPECIAL = 211,
1765 ANIM_MUTILATE = 212,
1766 ANIM_CUSTOMSPELL01 = 213,
1767 ANIM_CUSTOMSPELL02 = 214,
1768 ANIM_CUSTOMSPELL03 = 215,
1769 ANIM_CUSTOMSPELL04 = 216,
1770 ANIM_CUSTOMSPELL05 = 217,
1771 ANIM_CUSTOMSPELL06 = 218,
1772 ANIM_CUSTOMSPELL07 = 219,
1773 ANIM_CUSTOMSPELL08 = 220,
1774 ANIM_CUSTOMSPELL09 = 221,
1775 ANIM_CUSTOMSPELL10 = 222,
1776 ANIM_StealthRun = 223
1779 enum LockKeyType
1781 LOCK_KEY_NONE = 0,
1782 LOCK_KEY_ITEM = 1,
1783 LOCK_KEY_SKILL = 2
1786 enum LockType
1788 LOCKTYPE_PICKLOCK = 1,
1789 LOCKTYPE_HERBALISM = 2,
1790 LOCKTYPE_MINING = 3,
1791 LOCKTYPE_DISARM_TRAP = 4,
1792 LOCKTYPE_OPEN = 5,
1793 LOCKTYPE_TREASURE = 6,
1794 LOCKTYPE_CALCIFIED_ELVEN_GEMS = 7,
1795 LOCKTYPE_CLOSE = 8,
1796 LOCKTYPE_ARM_TRAP = 9,
1797 LOCKTYPE_QUICK_OPEN = 10,
1798 LOCKTYPE_QUICK_CLOSE = 11,
1799 LOCKTYPE_OPEN_TINKERING = 12,
1800 LOCKTYPE_OPEN_KNEELING = 13,
1801 LOCKTYPE_OPEN_ATTACKING = 14,
1802 LOCKTYPE_GAHZRIDIAN = 15,
1803 LOCKTYPE_BLASTING = 16,
1804 LOCKTYPE_SLOW_OPEN = 17,
1805 LOCKTYPE_SLOW_CLOSE = 18,
1806 LOCKTYPE_FISHING = 19,
1807 LOCKTYPE_INSCRIPTION = 20,
1808 LOCKTYPE_OPEN_FROM_VEHICLE = 21
1811 enum TrainerType // this is important type for npcs!
1813 TRAINER_TYPE_CLASS = 0,
1814 TRAINER_TYPE_MOUNTS = 1, // on blizz it's 2
1815 TRAINER_TYPE_TRADESKILLS = 2,
1816 TRAINER_TYPE_PETS = 3
1819 #define MAX_TRAINER_TYPE 4
1821 // CreatureType.dbc
1822 enum CreatureType
1824 CREATURE_TYPE_BEAST = 1,
1825 CREATURE_TYPE_DRAGONKIN = 2,
1826 CREATURE_TYPE_DEMON = 3,
1827 CREATURE_TYPE_ELEMENTAL = 4,
1828 CREATURE_TYPE_GIANT = 5,
1829 CREATURE_TYPE_UNDEAD = 6,
1830 CREATURE_TYPE_HUMANOID = 7,
1831 CREATURE_TYPE_CRITTER = 8,
1832 CREATURE_TYPE_MECHANICAL = 9,
1833 CREATURE_TYPE_NOT_SPECIFIED = 10,
1834 CREATURE_TYPE_TOTEM = 11,
1835 CREATURE_TYPE_NON_COMBAT_PET = 12,
1836 CREATURE_TYPE_GAS_CLOUD = 13
1839 uint32 const CREATURE_TYPEMASK_DEMON_OR_UNDEAD = (1 << (CREATURE_TYPE_DEMON-1)) | (1 << (CREATURE_TYPE_UNDEAD-1));
1840 uint32 const CREATURE_TYPEMASK_HUMANOID_OR_UNDEAD = (1 << (CREATURE_TYPE_HUMANOID-1)) | (1 << (CREATURE_TYPE_UNDEAD-1));
1841 uint32 const CREATURE_TYPEMASK_MECHANICAL_OR_ELEMENTAL = (1 << (CREATURE_TYPE_MECHANICAL-1)) | (1 << (CREATURE_TYPE_ELEMENTAL-1));
1843 // CreatureFamily.dbc
1844 enum CreatureFamily
1846 CREATURE_FAMILY_WOLF = 1,
1847 CREATURE_FAMILY_CAT = 2,
1848 CREATURE_FAMILY_SPIDER = 3,
1849 CREATURE_FAMILY_BEAR = 4,
1850 CREATURE_FAMILY_BOAR = 5,
1851 CREATURE_FAMILY_CROCOLISK = 6,
1852 CREATURE_FAMILY_CARRION_BIRD = 7,
1853 CREATURE_FAMILY_CRAB = 8,
1854 CREATURE_FAMILY_GORILLA = 9,
1855 CREATURE_FAMILY_HORSE_CUSTOM = 10, // not exist in DBC but used for horse like beasts in DB
1856 CREATURE_FAMILY_RAPTOR = 11,
1857 CREATURE_FAMILY_TALLSTRIDER = 12,
1858 CREATURE_FAMILY_FELHUNTER = 15,
1859 CREATURE_FAMILY_VOIDWALKER = 16,
1860 CREATURE_FAMILY_SUCCUBUS = 17,
1861 CREATURE_FAMILY_DOOMGUARD = 19,
1862 CREATURE_FAMILY_SCORPID = 20,
1863 CREATURE_FAMILY_TURTLE = 21,
1864 CREATURE_FAMILY_IMP = 23,
1865 CREATURE_FAMILY_BAT = 24,
1866 CREATURE_FAMILY_HYENA = 25,
1867 CREATURE_FAMILY_BIRD_OF_PREY = 26,
1868 CREATURE_FAMILY_WIND_SERPENT = 27,
1869 CREATURE_FAMILY_REMOTE_CONTROL = 28,
1870 CREATURE_FAMILY_FELGUARD = 29,
1871 CREATURE_FAMILY_DRAGONHAWK = 30,
1872 CREATURE_FAMILY_RAVAGER = 31,
1873 CREATURE_FAMILY_WARP_STALKER = 32,
1874 CREATURE_FAMILY_SPOREBAT = 33,
1875 CREATURE_FAMILY_NETHER_RAY = 34,
1876 CREATURE_FAMILY_SERPENT = 35,
1877 CREATURE_FAMILY_MOTH = 37,
1878 CREATURE_FAMILY_CHIMAERA = 38,
1879 CREATURE_FAMILY_DEVILSAUR = 39,
1880 CREATURE_FAMILY_GHOUL = 40,
1881 CREATURE_FAMILY_SILITHID = 41,
1882 CREATURE_FAMILY_WORM = 42,
1883 CREATURE_FAMILY_RHINO = 43,
1884 CREATURE_FAMILY_WASP = 44,
1885 CREATURE_FAMILY_CORE_HOUND = 45,
1886 CREATURE_FAMILY_SPIRIT_BEAST = 46
1889 enum CreatureTypeFlags
1891 CREATURE_TYPEFLAGS_TAMEABLE = 0x000001, // Tameable by any hunter
1892 CREATURE_TYPEFLAGS_GHOST_VISIBLE = 0x000002, // Creatures which can _also_ be seen when player is a ghost
1893 CREATURE_TYPEFLAGS_UNK3 = 0x000004,
1894 CREATURE_TYPEFLAGS_UNK4 = 0x000008,
1895 CREATURE_TYPEFLAGS_UNK5 = 0x000010,
1896 CREATURE_TYPEFLAGS_UNK6 = 0x000020,
1897 CREATURE_TYPEFLAGS_UNK7 = 0x000040,
1898 CREATURE_TYPEFLAGS_UNK8 = 0x000080,
1899 CREATURE_TYPEFLAGS_HERBLOOT = 0x000100, // Can be looted by herbalist
1900 CREATURE_TYPEFLAGS_MININGLOOT = 0x000200, // Can be looted by miner
1901 CREATURE_TYPEFLAGS_UNK11 = 0x000400,
1902 CREATURE_TYPEFLAGS_UNK12 = 0x000800, // ? Related to mounts in some way. If mounted, fight mounted, mount appear as independant when rider dies?
1903 CREATURE_TYPEFLAGS_UNK13 = 0x001000, // ? Can aid any player in combat if in range?
1904 CREATURE_TYPEFLAGS_UNK14 = 0x002000,
1905 CREATURE_TYPEFLAGS_UNK15 = 0x004000, // ? Possibly not in use
1906 CREATURE_TYPEFLAGS_ENGINEERLOOT = 0x008000, // Can be looted by engineer
1907 CREATURE_TYPEFLAGS_EXOTIC = 0x010000, // Can be tamed by hunter as exotic pet
1908 CREATURE_TYPEFLAGS_UNK18 = 0x020000, // ? Related to vehicles/pvp?
1909 CREATURE_TYPEFLAGS_UNK19 = 0x040000, // ? Related to vehicle/siege weapons?
1910 CREATURE_TYPEFLAGS_UNK20 = 0x080000,
1911 CREATURE_TYPEFLAGS_UNK21 = 0x100000,
1912 CREATURE_TYPEFLAGS_UNK22 = 0x200000,
1913 CREATURE_TYPEFLAGS_UNK23 = 0x400000,
1914 CREATURE_TYPEFLAGS_UNK24 = 0x800000 // ? First seen in 3.2.2. Related to banner/backpack of creature/companion?
1917 enum CreatureEliteType
1919 CREATURE_ELITE_NORMAL = 0,
1920 CREATURE_ELITE_ELITE = 1,
1921 CREATURE_ELITE_RAREELITE = 2,
1922 CREATURE_ELITE_WORLDBOSS = 3,
1923 CREATURE_ELITE_RARE = 4,
1924 CREATURE_UNKNOWN = 5 // found in 2.2.3 for 2 mobs
1927 // values based at Holidays.dbc
1928 enum HolidayIds
1930 HOLIDAY_FIREWORKS_SPECTACULAR = 62,
1931 HOLIDAY_FEAST_OF_WINTER_VEIL = 141,
1932 HOLIDAY_NOBLEGARDEN = 181,
1933 HOLIDAY_CHILDRENS_WEEK = 201,
1934 HOLIDAY_CALL_TO_ARMS_AV = 283,
1935 HOLIDAY_CALL_TO_ARMS_WS = 284,
1936 HOLIDAY_CALL_TO_ARMS_AB = 285,
1937 HOLIDAY_FISHING_EXTRAVAGANZA = 301,
1938 HOLIDAY_HARVEST_FESTIVAL = 321,
1939 HOLIDAY_HALLOWS_END = 324,
1940 HOLIDAY_LUNAR_FESTIVAL = 327,
1941 HOLIDAY_LOVE_IS_IN_THE_AIR = 335,
1942 HOLIDAY_FIRE_FESTIVAL = 341,
1943 HOLIDAY_CALL_TO_ARMS_EY = 353,
1944 HOLIDAY_BREWFEST = 372,
1945 HOLIDAY_DARKMOON_FAIRE_ELWYNN = 374,
1946 HOLIDAY_DARKMOON_FAIRE_THUNDER = 375,
1947 HOLIDAY_DARKMOON_FAIRE_SHATTRATH = 376,
1948 HOLIDAY_PIRATES_DAY = 398,
1949 HOLIDAY_CALL_TO_ARMS_SA = 400,
1950 HOLIDAY_PILGRIMS_BOUNTY = 404,
1951 HOLIDAY_WOTLK_LAUNCH = 406,
1952 HOLIDAY_DAY_OF_DEAD = 409,
1953 HOLIDAY_CALL_TO_ARMS_ISLE_OF_C = 420
1956 // values based at QuestInfo.dbc
1957 enum QuestTypes
1959 QUEST_TYPE_ELITE = 1,
1960 QUEST_TYPE_LIFE = 21,
1961 QUEST_TYPE_PVP = 41,
1962 QUEST_TYPE_RAID = 62,
1963 QUEST_TYPE_DUNGEON = 81,
1964 QUEST_TYPE_WORLD_EVENT = 82,
1965 QUEST_TYPE_LEGENDARY = 83,
1966 QUEST_TYPE_ESCORT = 84,
1967 QUEST_TYPE_HEROIC = 85,
1968 QUEST_TYPE_RAID_10 = 88,
1969 QUEST_TYPE_RAID_25 = 89
1972 // values based at QuestSort.dbc
1973 enum QuestSort
1975 QUEST_SORT_EPIC = 1,
1976 QUEST_SORT_WAILING_CAVERNS_OLD = 21,
1977 QUEST_SORT_SEASONAL = 22,
1978 QUEST_SORT_UNDERCITY_OLD = 23,
1979 QUEST_SORT_HERBALISM = 24,
1980 QUEST_SORT_BATTLEGROUNDS = 25,
1981 QUEST_SORT_ULDAMN_OLD = 41,
1982 QUEST_SORT_WARLOCK = 61,
1983 QUEST_SORT_WARRIOR = 81,
1984 QUEST_SORT_SHAMAN = 82,
1985 QUEST_SORT_FISHING = 101,
1986 QUEST_SORT_BLACKSMITHING = 121,
1987 QUEST_SORT_PALADIN = 141,
1988 QUEST_SORT_MAGE = 161,
1989 QUEST_SORT_ROGUE = 162,
1990 QUEST_SORT_ALCHEMY = 181,
1991 QUEST_SORT_LEATHERWORKING = 182,
1992 QUEST_SORT_ENGINERING = 201,
1993 QUEST_SORT_TREASURE_MAP = 221,
1994 QUEST_SORT_SUNKEN_TEMPLE_OLD = 241,
1995 QUEST_SORT_HUNTER = 261,
1996 QUEST_SORT_PRIEST = 262,
1997 QUEST_SORT_DRUID = 263,
1998 QUEST_SORT_TAILORING = 264,
1999 QUEST_SORT_SPECIAL = 284,
2000 QUEST_SORT_COOKING = 304,
2001 QUEST_SORT_FIRST_AID = 324,
2002 QUEST_SORT_LEGENDARY = 344,
2003 QUEST_SORT_DARKMOON_FAIRE = 364,
2004 QUEST_SORT_AHN_QIRAJ_WAR = 365,
2005 QUEST_SORT_LUNAR_FESTIVAL = 366,
2006 QUEST_SORT_REPUTATION = 367,
2007 QUEST_SORT_INVASION = 368,
2008 QUEST_SORT_MIDSUMMER = 369,
2009 QUEST_SORT_BREWFEST = 370,
2010 QUEST_SORT_INSCRIPTION = 371,
2011 QUEST_SORT_DEATH_KNIGHT = 372,
2012 QUEST_SORT_JEWELCRAFTING = 373
2015 inline uint8 ClassByQuestSort(int32 QuestSort)
2017 switch(QuestSort)
2019 case QUEST_SORT_WARLOCK: return CLASS_WARLOCK;
2020 case QUEST_SORT_WARRIOR: return CLASS_WARRIOR;
2021 case QUEST_SORT_SHAMAN: return CLASS_SHAMAN;
2022 case QUEST_SORT_PALADIN: return CLASS_PALADIN;
2023 case QUEST_SORT_MAGE: return CLASS_MAGE;
2024 case QUEST_SORT_ROGUE: return CLASS_ROGUE;
2025 case QUEST_SORT_HUNTER: return CLASS_HUNTER;
2026 case QUEST_SORT_PRIEST: return CLASS_PRIEST;
2027 case QUEST_SORT_DRUID: return CLASS_DRUID;
2028 case QUEST_SORT_DEATH_KNIGHT: return CLASS_DEATH_KNIGHT;
2030 return 0;
2033 enum SkillType
2035 SKILL_NONE = 0,
2037 SKILL_FROST = 6,
2038 SKILL_FIRE = 8,
2039 SKILL_ARMS = 26,
2040 SKILL_COMBAT = 38,
2041 SKILL_SUBTLETY = 39,
2042 SKILL_SWORDS = 43,
2043 SKILL_AXES = 44,
2044 SKILL_BOWS = 45,
2045 SKILL_GUNS = 46,
2046 SKILL_BEAST_MASTERY = 50,
2047 SKILL_SURVIVAL = 51,
2048 SKILL_MACES = 54,
2049 SKILL_2H_SWORDS = 55,
2050 SKILL_HOLY = 56,
2051 SKILL_SHADOW = 78,
2052 SKILL_DEFENSE = 95,
2053 SKILL_LANG_COMMON = 98,
2054 SKILL_RACIAL_DWARVEN = 101,
2055 SKILL_LANG_ORCISH = 109,
2056 SKILL_LANG_DWARVEN = 111,
2057 SKILL_LANG_DARNASSIAN = 113,
2058 SKILL_LANG_TAURAHE = 115,
2059 SKILL_DUAL_WIELD = 118,
2060 SKILL_RACIAL_TAUREN = 124,
2061 SKILL_ORC_RACIAL = 125,
2062 SKILL_RACIAL_NIGHT_ELF = 126,
2063 SKILL_FIRST_AID = 129,
2064 SKILL_FERAL_COMBAT = 134,
2065 SKILL_STAVES = 136,
2066 SKILL_LANG_THALASSIAN = 137,
2067 SKILL_LANG_DRACONIC = 138,
2068 SKILL_LANG_DEMON_TONGUE = 139,
2069 SKILL_LANG_TITAN = 140,
2070 SKILL_LANG_OLD_TONGUE = 141,
2071 SKILL_SURVIVAL2 = 142,
2072 SKILL_RIDING_HORSE = 148,
2073 SKILL_RIDING_WOLF = 149,
2074 SKILL_RIDING_RAM = 152,
2075 SKILL_RIDING_TIGER = 150,
2076 SKILL_SWIMING = 155,
2077 SKILL_2H_MACES = 160,
2078 SKILL_UNARMED = 162,
2079 SKILL_MARKSMANSHIP = 163,
2080 SKILL_BLACKSMITHING = 164,
2081 SKILL_LEATHERWORKING = 165,
2082 SKILL_ALCHEMY = 171,
2083 SKILL_2H_AXES = 172,
2084 SKILL_DAGGERS = 173,
2085 SKILL_THROWN = 176,
2086 SKILL_HERBALISM = 182,
2087 SKILL_GENERIC_DND = 183,
2088 SKILL_RETRIBUTION = 184,
2089 SKILL_COOKING = 185,
2090 SKILL_MINING = 186,
2091 SKILL_PET_IMP = 188,
2092 SKILL_PET_FELHUNTER = 189,
2093 SKILL_TAILORING = 197,
2094 SKILL_ENGINERING = 202,
2095 SKILL_PET_SPIDER = 203,
2096 SKILL_PET_VOIDWALKER = 204,
2097 SKILL_PET_SUCCUBUS = 205,
2098 SKILL_PET_INFERNAL = 206,
2099 SKILL_PET_DOOMGUARD = 207,
2100 SKILL_PET_WOLF = 208,
2101 SKILL_PET_CAT = 209,
2102 SKILL_PET_BEAR = 210,
2103 SKILL_PET_BOAR = 211,
2104 SKILL_PET_CROCILISK = 212,
2105 SKILL_PET_CARRION_BIRD = 213,
2106 SKILL_PET_CRAB = 214,
2107 SKILL_PET_GORILLA = 215,
2108 SKILL_PET_RAPTOR = 217,
2109 SKILL_PET_TALLSTRIDER = 218,
2110 SKILL_RACIAL_UNDED = 220,
2111 SKILL_CROSSBOWS = 226,
2112 SKILL_WANDS = 228,
2113 SKILL_POLEARMS = 229,
2114 SKILL_PET_SCORPID = 236,
2115 SKILL_ARCANE = 237,
2116 SKILL_PET_TURTLE = 251,
2117 SKILL_ASSASSINATION = 253,
2118 SKILL_FURY = 256,
2119 SKILL_PROTECTION = 257,
2120 SKILL_PROTECTION2 = 267,
2121 SKILL_PET_TALENTS = 270,
2122 SKILL_PLATE_MAIL = 293,
2123 SKILL_LANG_GNOMISH = 313,
2124 SKILL_LANG_TROLL = 315,
2125 SKILL_ENCHANTING = 333,
2126 SKILL_DEMONOLOGY = 354,
2127 SKILL_AFFLICTION = 355,
2128 SKILL_FISHING = 356,
2129 SKILL_ENHANCEMENT = 373,
2130 SKILL_RESTORATION = 374,
2131 SKILL_ELEMENTAL_COMBAT = 375,
2132 SKILL_SKINNING = 393,
2133 SKILL_MAIL = 413,
2134 SKILL_LEATHER = 414,
2135 SKILL_CLOTH = 415,
2136 SKILL_SHIELD = 433,
2137 SKILL_FIST_WEAPONS = 473,
2138 SKILL_RIDING_RAPTOR = 533,
2139 SKILL_RIDING_MECHANOSTRIDER = 553,
2140 SKILL_RIDING_UNDEAD_HORSE = 554,
2141 SKILL_RESTORATION2 = 573,
2142 SKILL_BALANCE = 574,
2143 SKILL_DESTRUCTION = 593,
2144 SKILL_HOLY2 = 594,
2145 SKILL_DISCIPLINE = 613,
2146 SKILL_LOCKPICKING = 633,
2147 SKILL_PET_BAT = 653,
2148 SKILL_PET_HYENA = 654,
2149 SKILL_PET_BIRD_OF_PREY = 655,
2150 SKILL_PET_WIND_SERPENT = 656,
2151 SKILL_LANG_GUTTERSPEAK = 673,
2152 SKILL_RIDING_KODO = 713,
2153 SKILL_RACIAL_TROLL = 733,
2154 SKILL_RACIAL_GNOME = 753,
2155 SKILL_RACIAL_HUMAN = 754,
2156 SKILL_JEWELCRAFTING = 755,
2157 SKILL_RACIAL_BLOODELF = 756,
2158 SKILL_PET_EVENT_RC = 758,
2159 SKILL_LANG_DRAENEI = 759,
2160 SKILL_RACIAL_DRAENEI = 760,
2161 SKILL_PET_FELGUARD = 761,
2162 SKILL_RIDING = 762,
2163 SKILL_PET_DRAGONHAWK = 763,
2164 SKILL_PET_NETHER_RAY = 764,
2165 SKILL_PET_SPOREBAT = 765,
2166 SKILL_PET_WARP_STALKER = 766,
2167 SKILL_PET_RAVAGER = 767,
2168 SKILL_PET_SERPENT = 768,
2169 SKILL_INTERNAL = 769,
2170 SKILL_DK_BLOOD = 770,
2171 SKILL_DK_FROST = 771,
2172 SKILL_DK_UNHOLY = 772,
2173 SKILL_INSCRIPTION = 773,
2174 SKILL_PET_MOTH = 775,
2175 SKILL_RUNEFORGING = 776,
2176 SKILL_MOUNTS = 777,
2177 SKILL_COMPANIONS = 778,
2178 SKILL_PET_EXOTIC_CHIMAERA = 780,
2179 SKILL_PET_EXOTIC_DEVILSAUR = 781,
2180 SKILL_PET_GHOUL = 782,
2181 SKILL_PET_EXOTIC_SILITHID = 783,
2182 SKILL_PET_EXOTIC_WORM = 784,
2183 SKILL_PET_WASP = 785,
2184 SKILL_PET_EXOTIC_RHINO = 786,
2185 SKILL_PET_EXOTIC_CORE_HOUND = 787,
2186 SKILL_PET_EXOTIC_SPIRIT_BEAST = 788
2189 #define MAX_SKILL_TYPE 789
2191 inline SkillType SkillByLockType(LockType locktype)
2193 switch(locktype)
2195 case LOCKTYPE_PICKLOCK: return SKILL_LOCKPICKING;
2196 case LOCKTYPE_HERBALISM: return SKILL_HERBALISM;
2197 case LOCKTYPE_MINING: return SKILL_MINING;
2198 case LOCKTYPE_FISHING: return SKILL_FISHING;
2199 case LOCKTYPE_INSCRIPTION: return SKILL_INSCRIPTION;
2200 default: break;
2202 return SKILL_NONE;
2205 inline uint32 SkillByQuestSort(int32 QuestSort)
2207 switch(QuestSort)
2209 case QUEST_SORT_HERBALISM: return SKILL_HERBALISM;
2210 case QUEST_SORT_FISHING: return SKILL_FISHING;
2211 case QUEST_SORT_BLACKSMITHING: return SKILL_BLACKSMITHING;
2212 case QUEST_SORT_ALCHEMY: return SKILL_ALCHEMY;
2213 case QUEST_SORT_LEATHERWORKING: return SKILL_LEATHERWORKING;
2214 case QUEST_SORT_ENGINERING: return SKILL_ENGINERING;
2215 case QUEST_SORT_TAILORING: return SKILL_TAILORING;
2216 case QUEST_SORT_COOKING: return SKILL_COOKING;
2217 case QUEST_SORT_FIRST_AID: return SKILL_FIRST_AID;
2218 case QUEST_SORT_JEWELCRAFTING: return SKILL_JEWELCRAFTING;
2219 case QUEST_SORT_INSCRIPTION: return SKILL_INSCRIPTION;
2221 return 0;
2224 enum SkillCategory
2226 SKILL_CATEGORY_ATTRIBUTES = 5,
2227 SKILL_CATEGORY_WEAPON = 6,
2228 SKILL_CATEGORY_CLASS = 7,
2229 SKILL_CATEGORY_ARMOR = 8,
2230 SKILL_CATEGORY_SECONDARY = 9, // secondary professions
2231 SKILL_CATEGORY_LANGUAGES = 10,
2232 SKILL_CATEGORY_PROFESSION = 11, // primary professions
2233 SKILL_CATEGORY_GENERIC = 12
2236 enum TotemCategory
2238 TC_SKINNING_SKIFE_OLD = 1,
2239 TC_EARTH_TOTEM = 2,
2240 TC_AIR_TOTEM = 3,
2241 TC_FIRE_TOTEM = 4,
2242 TC_WATER_TOTEM = 5,
2243 TC_COPPER_ROD = 6,
2244 TC_SILVER_ROD = 7,
2245 TC_GOLDEN_ROD = 8,
2246 TC_TRUESILVER_ROD = 9,
2247 TC_ARCANITE_ROD = 10,
2248 TC_MINING_PICK_OLD = 11,
2249 TC_PHILOSOPHERS_STONE = 12,
2250 TC_BLACKSMITH_HAMMER_OLD = 13,
2251 TC_ARCLIGHT_SPANNER = 14,
2252 TC_GYROMATIC_MA = 15,
2253 TC_MASTER_TOTEM = 21,
2254 TC_FEL_IRON_ROD = 41,
2255 TC_ADAMANTITE_ROD = 62,
2256 TC_ETERNIUM_ROD = 63,
2257 TC_HOLLOW_QUILL = 81,
2258 TC_RUNED_AZURITE_ROD = 101,
2259 TC_VIRTUOSO_INKING_SET = 121,
2260 TC_DRUMS = 141,
2261 TC_GNOMISH_ARMY_KNIFE = 161,
2262 TC_BLACKSMITH_HAMMER = 162,
2263 TC_MINING_PICK = 165,
2264 TC_SKINNING_KNIFE = 166,
2265 TC_HAMMER_PICK = 167,
2266 TC_BLADED_PICKAXE = 168,
2267 TC_FLINT_AND_TINDER = 169,
2268 TC_RUNED_COBALT_ROD = 189,
2269 TC_RUNED_TITANIUM_ROD = 190
2272 enum UnitDynFlags
2274 UNIT_DYNFLAG_NONE = 0x0000,
2275 UNIT_DYNFLAG_LOOTABLE = 0x0001,
2276 UNIT_DYNFLAG_TRACK_UNIT = 0x0002,
2277 UNIT_DYNFLAG_TAPPED = 0x0004, // Lua_UnitIsTapped
2278 UNIT_DYNFLAG_TAPPED_BY_PLAYER = 0x0008, // Lua_UnitIsTappedByPlayer
2279 UNIT_DYNFLAG_SPECIALINFO = 0x0010,
2280 UNIT_DYNFLAG_DEAD = 0x0020,
2281 UNIT_DYNFLAG_REFER_A_FRIEND = 0x0040,
2282 UNIT_DYNFLAG_TAPPED_BY_ALL_THREAT_LIST = 0x0080 // Lua_UnitIsTappedByAllThreatList
2285 enum CorpseDynFlags
2287 CORPSE_DYNFLAG_LOOTABLE = 0x0001
2290 // Passive Spell codes explicit used in code
2291 #define SPELL_ID_GENERIC_LEARN 483
2292 #define SPELL_ID_GENERIC_LEARN_PET 55884 // used for learning mounts and companions
2293 #define SPELL_ID_PASSIVE_BATTLE_STANCE 2457
2294 #define SPELL_ID_PASSIVE_RESURRECTION_SICKNESS 15007
2295 #define SPELL_ID_WEAPON_SWITCH_COOLDOWN_1_5s 6119
2296 #define SPELL_ID_WEAPON_SWITCH_COOLDOWN_1_0s 6123
2297 #define SPELL_ID_AUTOSHOT 75 // used for checks in other spells interruption
2298 #define SPELL_ID_SHADOWMELD 58984 // used for check ignore stealth stance state
2300 enum WeatherType
2302 WEATHER_TYPE_FINE = 0,
2303 WEATHER_TYPE_RAIN = 1,
2304 WEATHER_TYPE_SNOW = 2,
2305 WEATHER_TYPE_STORM = 3,
2306 WEATHER_TYPE_THUNDERS = 86,
2307 WEATHER_TYPE_BLACKRAIN = 90
2310 #define MAX_WEATHER_TYPE 4
2312 enum ChatMsg
2314 CHAT_MSG_ADDON = 0xFFFFFFFF,
2315 CHAT_MSG_SYSTEM = 0x00,
2316 CHAT_MSG_SAY = 0x01,
2317 CHAT_MSG_PARTY = 0x02,
2318 CHAT_MSG_RAID = 0x03,
2319 CHAT_MSG_GUILD = 0x04,
2320 CHAT_MSG_OFFICER = 0x05,
2321 CHAT_MSG_YELL = 0x06,
2322 CHAT_MSG_WHISPER = 0x07,
2323 CHAT_MSG_WHISPER_FOREIGN = 0x08,
2324 CHAT_MSG_WHISPER_INFORM = 0x09,
2325 CHAT_MSG_EMOTE = 0x0A,
2326 CHAT_MSG_TEXT_EMOTE = 0x0B,
2327 CHAT_MSG_MONSTER_SAY = 0x0C,
2328 CHAT_MSG_MONSTER_PARTY = 0x0D,
2329 CHAT_MSG_MONSTER_YELL = 0x0E,
2330 CHAT_MSG_MONSTER_WHISPER = 0x0F,
2331 CHAT_MSG_MONSTER_EMOTE = 0x10,
2332 CHAT_MSG_CHANNEL = 0x11,
2333 CHAT_MSG_CHANNEL_JOIN = 0x12,
2334 CHAT_MSG_CHANNEL_LEAVE = 0x13,
2335 CHAT_MSG_CHANNEL_LIST = 0x14,
2336 CHAT_MSG_CHANNEL_NOTICE = 0x15,
2337 CHAT_MSG_CHANNEL_NOTICE_USER = 0x16,
2338 CHAT_MSG_AFK = 0x17,
2339 CHAT_MSG_DND = 0x18,
2340 CHAT_MSG_IGNORED = 0x19,
2341 CHAT_MSG_SKILL = 0x1A,
2342 CHAT_MSG_LOOT = 0x1B,
2343 CHAT_MSG_MONEY = 0x1C,
2344 CHAT_MSG_OPENING = 0x1D,
2345 CHAT_MSG_TRADESKILLS = 0x1E,
2346 CHAT_MSG_PET_INFO = 0x1F,
2347 CHAT_MSG_COMBAT_MISC_INFO = 0x20,
2348 CHAT_MSG_COMBAT_XP_GAIN = 0x21,
2349 CHAT_MSG_COMBAT_HONOR_GAIN = 0x22,
2350 CHAT_MSG_COMBAT_FACTION_CHANGE = 0x23,
2351 CHAT_MSG_BG_SYSTEM_NEUTRAL = 0x24,
2352 CHAT_MSG_BG_SYSTEM_ALLIANCE = 0x25,
2353 CHAT_MSG_BG_SYSTEM_HORDE = 0x26,
2354 CHAT_MSG_RAID_LEADER = 0x27,
2355 CHAT_MSG_RAID_WARNING = 0x28,
2356 CHAT_MSG_RAID_BOSS_EMOTE = 0x29,
2357 CHAT_MSG_RAID_BOSS_WHISPER = 0x2A,
2358 CHAT_MSG_FILTERED = 0x2B,
2359 CHAT_MSG_BATTLEGROUND = 0x2C,
2360 CHAT_MSG_BATTLEGROUND_LEADER = 0x2D,
2361 CHAT_MSG_RESTRICTED = 0x2E,
2362 CHAT_MSG_BATTLENET = 0x2F,
2363 CHAT_MSG_ACHIEVEMENT = 0x30,
2364 CHAT_MSG_GUILD_ACHIEVEMENT = 0x31,
2365 CHAT_MSG_ARENA_POINTS = 0x32,
2366 CHAT_MSG_PARTY_LEADER = 0x33
2369 #define MAX_CHAT_MSG_TYPE 0x34
2371 enum ChatLinkColors
2373 CHAT_LINK_COLOR_TRADE = 0xffffd000, // orange
2374 CHAT_LINK_COLOR_TALENT = 0xff4e96f7, // blue
2375 CHAT_LINK_COLOR_SPELL = 0xff71d5ff, // bright blue
2376 CHAT_LINK_COLOR_ENCHANT = 0xffffd000, // orange
2377 CHAT_LINK_COLOR_ACHIEVEMENT = 0xffffff00,
2378 CHAT_LINK_COLOR_GLYPH = 0xff66bbff
2381 // Values from ItemPetFood (power of (value-1) used for compare with CreatureFamilyEntry.petDietMask
2382 enum PetDiet
2384 PET_DIET_MEAT = 1,
2385 PET_DIET_FISH = 2,
2386 PET_DIET_CHEESE = 3,
2387 PET_DIET_BREAD = 4,
2388 PET_DIET_FUNGAS = 5,
2389 PET_DIET_FRUIT = 6,
2390 PET_DIET_RAW_MEAT = 7,
2391 PET_DIET_RAW_FISH = 8
2394 #define MAX_PET_DIET 9
2396 #define CHAIN_SPELL_JUMP_RADIUS 10
2398 // Max values for Guild & Guild Bank
2399 #define GUILD_BANK_MAX_TABS 6 // send by client for money log also
2400 #define GUILD_BANK_MAX_SLOTS 98
2401 #define GUILD_BANK_MAX_LOGS 25
2402 #define GUILD_BANK_MONEY_LOGS_TAB 100 // used for money log in DB
2403 #define GUILD_EVENTLOG_MAX_RECORDS 100
2404 #define GUILD_RANKS_MIN_COUNT 5
2405 #define GUILD_RANKS_MAX_COUNT 10
2407 enum AiReaction
2409 AI_REACTION_UNK1 = 1,
2410 AI_REACTION_AGGRO = 2, // trigger aggro sound to play, if defined in dbc
2411 AI_REACTION_UNK3 = 3, // seen happen at polymorph, possible when AI not in control of self?
2412 AI_REACTION_UNK4 = 4
2415 // Diminishing Returns Types
2416 enum DiminishingReturnsType
2418 DRTYPE_NONE = 0, // this spell is not diminished, but may have limited it's duration to 10s
2419 DRTYPE_PLAYER = 1, // this spell is diminished only when applied on players
2420 DRTYPE_ALL = 2 // this spell is diminished in every case
2423 // Diminishing Return Groups
2424 enum DiminishingGroup
2426 // Common Groups
2427 DIMINISHING_NONE,
2428 DIMINISHING_CONTROL_STUN, // Player Controlled stuns
2429 DIMINISHING_TRIGGER_STUN, // By aura proced stuns, usualy chance on hit talents
2430 DIMINISHING_CONTROL_ROOT, // Immobilizing effects from casted spells
2431 DIMINISHING_TRIGGER_ROOT, // Immobilizing effects from triggered spells like Frostbite
2432 DIMINISHING_FEAR_BLIND, // Fears & blind
2433 DIMINISHING_CHARM,
2434 DIMINISHING_POLYMORPH_GOUGE_SAP,
2435 // Warlock Specific
2436 DIMINISHING_DEATHCOIL, // Death Coil Diminish only with another Death Coil
2437 // Druid Specific
2438 DIMINISHING_CYCLONE, // From 2.3.0
2439 // Shared Class Specific
2440 DIMINISHING_CHEAPSHOT_POUNCE,
2441 DIMINISHING_DISARM, // From 2.3.0
2442 DIMINISHING_SILENCE, // From 2.3.0
2443 DIMINISHING_FREEZE_SLEEP, // Hunter's Freezing Trap
2444 DIMINISHING_BANISH,
2445 // Other
2446 // Don't Diminish, but limit duration to 10s
2447 DIMINISHING_LIMITONLY
2450 enum ResponseCodes
2452 RESPONSE_SUCCESS = 0x00,
2453 RESPONSE_FAILURE = 0x01,
2454 RESPONSE_CANCELLED = 0x02,
2455 RESPONSE_DISCONNECTED = 0x03,
2456 RESPONSE_FAILED_TO_CONNECT = 0x04,
2457 RESPONSE_CONNECTED = 0x05,
2458 RESPONSE_VERSION_MISMATCH = 0x06,
2460 CSTATUS_CONNECTING = 0x07,
2461 CSTATUS_NEGOTIATING_SECURITY = 0x08,
2462 CSTATUS_NEGOTIATION_COMPLETE = 0x09,
2463 CSTATUS_NEGOTIATION_FAILED = 0x0A,
2464 CSTATUS_AUTHENTICATING = 0x0B,
2466 AUTH_OK = 0x0C,
2467 AUTH_FAILED = 0x0D,
2468 AUTH_REJECT = 0x0E,
2469 AUTH_BAD_SERVER_PROOF = 0x0F,
2470 AUTH_UNAVAILABLE = 0x10,
2471 AUTH_SYSTEM_ERROR = 0x11,
2472 AUTH_BILLING_ERROR = 0x12,
2473 AUTH_BILLING_EXPIRED = 0x13,
2474 AUTH_VERSION_MISMATCH = 0x14,
2475 AUTH_UNKNOWN_ACCOUNT = 0x15,
2476 AUTH_INCORRECT_PASSWORD = 0x16,
2477 AUTH_SESSION_EXPIRED = 0x17,
2478 AUTH_SERVER_SHUTTING_DOWN = 0x18,
2479 AUTH_ALREADY_LOGGING_IN = 0x19,
2480 AUTH_LOGIN_SERVER_NOT_FOUND = 0x1A,
2481 AUTH_WAIT_QUEUE = 0x1B,
2482 AUTH_BANNED = 0x1C,
2483 AUTH_ALREADY_ONLINE = 0x1D,
2484 AUTH_NO_TIME = 0x1E,
2485 AUTH_DB_BUSY = 0x1F,
2486 AUTH_SUSPENDED = 0x20,
2487 AUTH_PARENTAL_CONTROL = 0x21,
2488 AUTH_LOCKED_ENFORCED = 0x22,
2490 REALM_LIST_IN_PROGRESS = 0x23,
2491 REALM_LIST_SUCCESS = 0x24,
2492 REALM_LIST_FAILED = 0x25,
2493 REALM_LIST_INVALID = 0x26,
2494 REALM_LIST_REALM_NOT_FOUND = 0x27,
2496 ACCOUNT_CREATE_IN_PROGRESS = 0x28,
2497 ACCOUNT_CREATE_SUCCESS = 0x29,
2498 ACCOUNT_CREATE_FAILED = 0x2A,
2500 CHAR_LIST_RETRIEVING = 0x2B,
2501 CHAR_LIST_RETRIEVED = 0x2C,
2502 CHAR_LIST_FAILED = 0x2D,
2504 CHAR_CREATE_IN_PROGRESS = 0x2E,
2505 CHAR_CREATE_SUCCESS = 0x2F,
2506 CHAR_CREATE_ERROR = 0x30,
2507 CHAR_CREATE_FAILED = 0x31,
2508 CHAR_CREATE_NAME_IN_USE = 0x32,
2509 CHAR_CREATE_DISABLED = 0x33,
2510 CHAR_CREATE_PVP_TEAMS_VIOLATION = 0x34,
2511 CHAR_CREATE_SERVER_LIMIT = 0x35,
2512 CHAR_CREATE_ACCOUNT_LIMIT = 0x36,
2513 CHAR_CREATE_SERVER_QUEUE = 0x37,
2514 CHAR_CREATE_ONLY_EXISTING = 0x38,
2515 CHAR_CREATE_EXPANSION = 0x39,
2516 CHAR_CREATE_EXPANSION_CLASS = 0x3A,
2517 CHAR_CREATE_LEVEL_REQUIREMENT = 0x3B,
2518 CHAR_CREATE_UNIQUE_CLASS_LIMIT = 0x3C,
2519 CHAR_CREATE_CHARACTER_IN_GUILD = 0x3D,
2520 CHAR_CREATE_RESTRICTED_RACECLASS = 0x3E,
2521 CHAR_CREATE_CHARACTER_CHOOSE_RACE = 0x3F,
2522 CHAR_CREATE_CHARACTER_ARENA_LEADER = 0x40,
2523 CHAR_CREATE_CHARACTER_DELETE_MAIL = 0x41,
2524 CHAR_CREATE_CHARACTER_SWAP_FACTION = 0x42,
2525 CHAR_CREATE_CHARACTER_RACE_ONLY = 0x43,
2526 CHAR_CREATE_CHARACTER_GOLD_LIMIT = 0x44,
2527 CHAR_CREATE_FORCE_LOGIN = 0x45,
2529 CHAR_DELETE_IN_PROGRESS = 0x46,
2530 CHAR_DELETE_SUCCESS = 0x47,
2531 CHAR_DELETE_FAILED = 0x48,
2532 CHAR_DELETE_FAILED_LOCKED_FOR_TRANSFER = 0x49,
2533 CHAR_DELETE_FAILED_GUILD_LEADER = 0x4A,
2534 CHAR_DELETE_FAILED_ARENA_CAPTAIN = 0x4B,
2536 CHAR_LOGIN_IN_PROGRESS = 0x4C,
2537 CHAR_LOGIN_SUCCESS = 0x4D,
2538 CHAR_LOGIN_NO_WORLD = 0x4E,
2539 CHAR_LOGIN_DUPLICATE_CHARACTER = 0x4F,
2540 CHAR_LOGIN_NO_INSTANCES = 0x50,
2541 CHAR_LOGIN_FAILED = 0x51,
2542 CHAR_LOGIN_DISABLED = 0x52,
2543 CHAR_LOGIN_NO_CHARACTER = 0x53,
2544 CHAR_LOGIN_LOCKED_FOR_TRANSFER = 0x54,
2545 CHAR_LOGIN_LOCKED_BY_BILLING = 0x55,
2547 CHAR_NAME_SUCCESS = 0x56,
2548 CHAR_NAME_FAILURE = 0x57,
2549 CHAR_NAME_NO_NAME = 0x58,
2550 CHAR_NAME_TOO_SHORT = 0x59,
2551 CHAR_NAME_TOO_LONG = 0x5A,
2552 CHAR_NAME_INVALID_CHARACTER = 0x5B,
2553 CHAR_NAME_MIXED_LANGUAGES = 0x5C,
2554 CHAR_NAME_PROFANE = 0x5D,
2555 CHAR_NAME_RESERVED = 0x5E,
2556 CHAR_NAME_INVALID_APOSTROPHE = 0x5F,
2557 CHAR_NAME_MULTIPLE_APOSTROPHES = 0x60,
2558 CHAR_NAME_THREE_CONSECUTIVE = 0x61,
2559 CHAR_NAME_INVALID_SPACE = 0x62,
2560 CHAR_NAME_CONSECUTIVE_SPACES = 0x63,
2561 CHAR_NAME_RUSSIAN_CONSECUTIVE_SILENT_CHARACTERS = 0x64,
2562 CHAR_NAME_RUSSIAN_SILENT_CHARACTER_AT_BEGINNING_OR_END = 0x65,
2563 CHAR_NAME_DECLENSION_DOESNT_MATCH_BASE_NAME = 0x66
2566 /// Ban function modes
2567 enum BanMode
2569 BAN_ACCOUNT,
2570 BAN_CHARACTER,
2571 BAN_IP
2574 /// Ban function return codes
2575 enum BanReturn
2577 BAN_SUCCESS,
2578 BAN_SYNTAX_ERROR,
2579 BAN_NOTFOUND
2582 // indexes of BattlemasterList.dbc
2583 enum BattleGroundTypeId
2585 BATTLEGROUND_TYPE_NONE = 0,
2586 BATTLEGROUND_AV = 1,
2587 BATTLEGROUND_WS = 2,
2588 BATTLEGROUND_AB = 3,
2589 BATTLEGROUND_NA = 4,
2590 BATTLEGROUND_BE = 5,
2591 BATTLEGROUND_AA = 6,
2592 BATTLEGROUND_EY = 7,
2593 BATTLEGROUND_RL = 8,
2594 BATTLEGROUND_SA = 9,
2595 BATTLEGROUND_DS = 10,
2596 BATTLEGROUND_RV = 11,
2597 BATTLEGROUND_IC = 30,
2598 BATTLEGROUND_ABG = 32
2600 #define MAX_BATTLEGROUND_TYPE_ID 33
2602 enum MailResponseType
2604 MAIL_SEND = 0,
2605 MAIL_MONEY_TAKEN = 1,
2606 MAIL_ITEM_TAKEN = 2,
2607 MAIL_RETURNED_TO_SENDER = 3,
2608 MAIL_DELETED = 4,
2609 MAIL_MADE_PERMANENT = 5
2612 enum MailResponseResult
2614 MAIL_OK = 0,
2615 MAIL_ERR_EQUIP_ERROR = 1,
2616 MAIL_ERR_CANNOT_SEND_TO_SELF = 2,
2617 MAIL_ERR_NOT_ENOUGH_MONEY = 3,
2618 MAIL_ERR_RECIPIENT_NOT_FOUND = 4,
2619 MAIL_ERR_NOT_YOUR_TEAM = 5,
2620 MAIL_ERR_INTERNAL_ERROR = 6,
2621 MAIL_ERR_DISABLED_FOR_TRIAL_ACC = 14,
2622 MAIL_ERR_RECIPIENT_CAP_REACHED = 15,
2623 MAIL_ERR_CANT_SEND_WRAPPED_COD = 16,
2624 MAIL_ERR_MAIL_AND_CHAT_SUSPENDED = 17,
2625 MAIL_ERR_TOO_MANY_ATTACHMENTS = 18,
2626 MAIL_ERR_MAIL_ATTACHMENT_INVALID = 19,
2627 MAIL_ERR_ITEM_HAS_EXPIRED = 21,
2630 // reasons for why pet tame may fail
2631 // in fact, these are also used elsewhere
2632 enum PetTameFailureReason
2634 PETTAME_INVALIDCREATURE = 1,
2635 PETTAME_TOOMANY = 2,
2636 PETTAME_CREATUREALREADYOWNED = 3,
2637 PETTAME_NOTTAMEABLE = 4,
2638 PETTAME_ANOTHERSUMMONACTIVE = 5,
2639 PETTAME_UNITSCANTTAME = 6,
2640 PETTAME_NOPETAVAILABLE = 7, // not used in taming
2641 PETTAME_INTERNALERROR = 8,
2642 PETTAME_TOOHIGHLEVEL = 9,
2643 PETTAME_DEAD = 10, // not used in taming
2644 PETTAME_NOTDEAD = 11, // not used in taming
2645 PETTAME_CANTCONTROLEXOTIC = 12, // 3.x
2646 PETTAME_UNKNOWNERROR = 13
2649 // we need to stick to 1 version or half of the stuff will work for someone
2650 // others will not and opposite
2651 // will only support WoW, WoW:TBC and WoW:WotLK 3.3.2 client build 11403...
2653 #define EXPECTED_MANGOSD_CLIENT_BUILD {11403, 0}
2655 // max supported expansion level in mangosd
2656 // NOTE: not set it more that supported by targeted client version with all expansions installed
2657 // account with expansion > client supported will rejected at connection by client
2658 // because if client receive unsupported expansion level it think
2659 // that it not have expansion installed and reject
2660 #define MAX_EXPANSION 2
2662 #endif