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