2 * Copyright (C) 2005-2008 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"
32 // Race value is index in ChrRaces.dbc
39 RACE_UNDEAD_PLAYER
= 5,
53 #define RACEMASK_ALL_PLAYABLE \
54 ((1<<(RACE_HUMAN-1)) |(1<<(RACE_ORC-1)) |(1<<(RACE_DWARF-1)) | \
55 (1<<(RACE_NIGHTELF-1))|(1<<(RACE_UNDEAD_PLAYER-1))|(1<<(RACE_TAUREN-1)) | \
56 (1<<(RACE_GNOME-1)) |(1<<(RACE_TROLL-1)) |(1<<(RACE_BLOODELF-1))| \
57 (1<<(RACE_DRAENEI-1)) )
59 // Class value is index in ChrClasses.dbc
67 CLASS_DEATH_KNIGHT
= 6,
71 // CLASS_UNK2 = 10,unused
76 #define CLASSMASK_ALL_PLAYABLE \
77 ((1<<(CLASS_WARRIOR-1))|(1<<(CLASS_PALADIN-1))|(1<<(CLASS_HUNTER-1))| \
78 (1<<(CLASS_ROGUE-1)) |(1<<(CLASS_PRIEST-1)) |(1<<(CLASS_SHAMAN-1))| \
79 (1<<(CLASS_MAGE-1)) |(1<<(CLASS_WARLOCK-1))|(1<<(CLASS_DRUID-1)) )
81 #define CLASSMASK_WAND_USERS ((1<<(CLASS_PRIEST-1))|(1<<(CLASS_MAGE-1))|(1<<(CLASS_WARLOCK-1)))
83 #define PLAYER_MAX_BATTLEGROUND_QUEUES 3
97 #define MIN_REPUTATION_RANK (REP_HATED)
98 #define MAX_REPUTATION_RANK 8
126 POWER_HEALTH
= 0xFFFFFFFE // (-2 as signed value)
129 #define MAX_POWERS 5 // not count POWER_RUNES for now
133 SPELL_SCHOOL_NORMAL
= 0,
134 SPELL_SCHOOL_HOLY
= 1,
135 SPELL_SCHOOL_FIRE
= 2,
136 SPELL_SCHOOL_NATURE
= 3,
137 SPELL_SCHOOL_FROST
= 4,
138 SPELL_SCHOOL_SHADOW
= 5,
139 SPELL_SCHOOL_ARCANE
= 6
142 #define MAX_SPELL_SCHOOL 7
146 SPELL_SCHOOL_MASK_NONE
= 0x00, // not exist
147 SPELL_SCHOOL_MASK_NORMAL
= (1 << SPELL_SCHOOL_NORMAL
), // PHYSICAL (Armor)
148 SPELL_SCHOOL_MASK_HOLY
= (1 << SPELL_SCHOOL_HOLY
),
149 SPELL_SCHOOL_MASK_FIRE
= (1 << SPELL_SCHOOL_FIRE
),
150 SPELL_SCHOOL_MASK_NATURE
= (1 << SPELL_SCHOOL_NATURE
),
151 SPELL_SCHOOL_MASK_FROST
= (1 << SPELL_SCHOOL_FROST
),
152 SPELL_SCHOOL_MASK_SHADOW
= (1 << SPELL_SCHOOL_SHADOW
),
153 SPELL_SCHOOL_MASK_ARCANE
= (1 << SPELL_SCHOOL_ARCANE
),
157 // 124, not include normal and holy damage
158 SPELL_SCHOOL_MASK_SPELL
= ( SPELL_SCHOOL_MASK_FIRE
|
159 SPELL_SCHOOL_MASK_NATURE
| SPELL_SCHOOL_MASK_FROST
|
160 SPELL_SCHOOL_MASK_SHADOW
| SPELL_SCHOOL_MASK_ARCANE
),
162 SPELL_SCHOOL_MASK_MAGIC
= ( SPELL_SCHOOL_MASK_HOLY
| SPELL_SCHOOL_MASK_SPELL
),
165 SPELL_SCHOOL_MASK_ALL
= ( SPELL_SCHOOL_MASK_NORMAL
| SPELL_SCHOOL_MASK_MAGIC
)
168 #define SPELL_SCHOOL_MASK_MAGIC \
169 ( SPELL_SCHOOL_MASK_HOLY | SPELL_SCHOOL_MASK_FIRE | SPELL_SCHOOL_MASK_NATURE | \
170 SPELL_SCHOOL_MASK_FROST | SPELL_SCHOOL_MASK_SHADOW | \
171 SPELL_SCHOOL_MASK_ARCANE )
173 inline SpellSchools
GetFirstSchoolInMask(SpellSchoolMask mask
)
175 for(int i
= 0; i
< MAX_SPELL_SCHOOL
; ++i
)
177 return SpellSchools(i
);
179 return SPELL_SCHOOL_NORMAL
;
184 ITEM_QUALITY_POOR
= 0, //GREY
185 ITEM_QUALITY_NORMAL
= 1, //WHITE
186 ITEM_QUALITY_UNCOMMON
= 2, //GREEN
187 ITEM_QUALITY_RARE
= 3, //BLUE
188 ITEM_QUALITY_EPIC
= 4, //PURPLE
189 ITEM_QUALITY_LEGENDARY
= 5, //ORANGE
190 ITEM_QUALITY_ARTIFACT
= 6 //LIGHT YELLOW
193 #define MAX_ITEM_QUALITY 7
195 // ***********************************
196 // Spell Attributes definitions
197 // ***********************************
199 #define SPELL_ATTR_UNK0 0x00000001 // 0
200 #define SPELL_ATTR_RANGED 0x00000002 // 1 All ranged abilites have this flag
201 #define SPELL_ATTR_ON_NEXT_SWING_1 0x00000004 // 2 on next swing
202 #define SPELL_ATTR_UNK3 0x00000008 // 3 not set in 2.4.2
203 #define SPELL_ATTR_UNK4 0x00000010 // 4
204 #define SPELL_ATTR_UNK5 0x00000020 // 5 trade spells?
205 #define SPELL_ATTR_PASSIVE 0x00000040 // 6 Passive spell
206 #define SPELL_ATTR_UNK7 0x00000080 // 7 visible?
207 #define SPELL_ATTR_UNK8 0x00000100 // 8
208 #define SPELL_ATTR_UNK9 0x00000200 // 9
209 #define SPELL_ATTR_ON_NEXT_SWING_2 0x00000400 // 10 on next swing 2
210 #define SPELL_ATTR_UNK11 0x00000800 // 11
211 #define SPELL_ATTR_DAYTIME_ONLY 0x00001000 // 12 only useable at daytime, not set in 2.4.2
212 #define SPELL_ATTR_NIGHT_ONLY 0x00002000 // 13 only useable at night, not set in 2.4.2
213 #define SPELL_ATTR_INDOORS_ONLY 0x00004000 // 14 only useable indoors, not set in 2.4.2
214 #define SPELL_ATTR_OUTDOORS_ONLY 0x00008000 // 15 Only useable outdoors.
215 #define SPELL_ATTR_NOT_SHAPESHIFT 0x00010000 // 16 Not while shapeshifted
216 #define SPELL_ATTR_ONLY_STEALTHED 0x00020000 // 17 Must be in stealth
217 #define SPELL_ATTR_UNK18 0x00040000 // 18
218 #define SPELL_ATTR_LEVEL_DAMAGE_CALCULATION 0x00080000 // 19 spelldamage depends on caster level
219 #define SPELL_ATTR_STOP_ATTACK_TARGET 0x00100000 // 20 Stop attack after use this spell (and not begin attack if use)
220 #define SPELL_ATTR_IMPOSSIBLE_DODGE_PARRY_BLOCK 0x00200000 // 21 Cannot be dodged/parried/blocked
221 #define SPELL_ATTR_UNK22 0x00400000 // 22
222 #define SPELL_ATTR_UNK23 0x00800000 // 23 castable while dead?
223 #define SPELL_ATTR_CASTABLE_WHILE_MOUNTED 0x01000000 // 24 castable while mounted
224 #define SPELL_ATTR_DISABLED_WHILE_ACTIVE 0x02000000 // 25 Activate and start cooldown after aura fade or remove summoned creature or go
225 #define SPELL_ATTR_UNK26 0x04000000 // 26
226 #define SPELL_ATTR_CASTABLE_WHILE_SITTING 0x08000000 // 27 castable while sitting
227 #define SPELL_ATTR_CANT_USED_IN_COMBAT 0x10000000 // 28 Cannot be used in combat
228 #define SPELL_ATTR_UNAFFECTED_BY_INVULNERABILITY 0x20000000 // 29 unaffected by invulnerability (hmm possible not...)
229 #define SPELL_ATTR_UNK30 0x40000000 // 30 breakable by damage?
230 #define SPELL_ATTR_CANT_CANCEL 0x80000000 // 31 positive aura can't be canceled
232 #define SPELL_ATTR_EX_UNK0 0x00000001 // 0
233 #define SPELL_ATTR_EX_DRAIN_ALL_POWER 0x00000002 // 1 use all power (Only paladin Lay of Hands and Bunyanize)
234 #define SPELL_ATTR_EX_CHANNELED_1 0x00000004 // 2 channeled 1
235 #define SPELL_ATTR_EX_UNK3 0x00000008 // 3
236 #define SPELL_ATTR_EX_UNK4 0x00000010 // 4
237 #define SPELL_ATTR_EX_NOT_BREAK_STEALTH 0x00000020 // 5 Not break stealth
238 #define SPELL_ATTR_EX_CHANNELED_2 0x00000040 // 6 channeled 2
239 #define SPELL_ATTR_EX_NEGATIVE 0x00000080 // 7
240 #define SPELL_ATTR_EX_NOT_IN_COMBAT_TARGET 0x00000100 // 8 Spell req target not to be in combat state
241 #define SPELL_ATTR_EX_UNK9 0x00000200 // 9
242 #define SPELL_ATTR_EX_UNK10 0x00000400 // 10
243 #define SPELL_ATTR_EX_UNK11 0x00000800 // 11
244 #define SPELL_ATTR_EX_UNK12 0x00001000 // 12
245 #define SPELL_ATTR_EX_UNK13 0x00002000 // 13
246 #define SPELL_ATTR_EX_UNK14 0x00004000 // 14
247 #define SPELL_ATTR_EX_DISPEL_AURAS_ON_IMMUNITY 0x00008000 // 15 remove auras on immunity
248 #define SPELL_ATTR_EX_UNAFFECTED_BY_SCHOOL_IMMUNE 0x00010000 // 16 unaffected by school immunity
249 #define SPELL_ATTR_EX_UNK17 0x00020000 // 17
250 #define SPELL_ATTR_EX_UNK18 0x00040000 // 18
251 #define SPELL_ATTR_EX_UNK19 0x00080000 // 19
252 #define SPELL_ATTR_EX_REQ_COMBO_POINTS1 0x00100000 // 20 Req combo points on target
253 #define SPELL_ATTR_EX_UNK21 0x00200000 // 21
254 #define SPELL_ATTR_EX_REQ_COMBO_POINTS2 0x00400000 // 22 Req combo points on target
255 #define SPELL_ATTR_EX_UNK23 0x00800000 // 23
256 #define SPELL_ATTR_EX_UNK24 0x01000000 // 24 Req fishing pole??
257 #define SPELL_ATTR_EX_UNK25 0x02000000 // 25 not set in 2.4.2
258 #define SPELL_ATTR_EX_UNK26 0x04000000 // 26
259 #define SPELL_ATTR_EX_UNK27 0x08000000 // 27
260 #define SPELL_ATTR_EX_UNK28 0x10000000 // 28
261 #define SPELL_ATTR_EX_UNK29 0x20000000 // 29
262 #define SPELL_ATTR_EX_UNK30 0x40000000 // 30 overpower
263 #define SPELL_ATTR_EX_UNK31 0x80000000 // 31
265 #define SPELL_ATTR_EX2_UNK0 0x00000001 // 0
266 #define SPELL_ATTR_EX2_UNK1 0x00000002 // 1
267 #define SPELL_ATTR_EX2_UNK2 0x00000004 // 2
268 #define SPELL_ATTR_EX2_UNK3 0x00000008 // 3
269 #define SPELL_ATTR_EX2_UNK4 0x00000010 // 4
270 #define SPELL_ATTR_EX2_UNK5 0x00000020 // 5
271 #define SPELL_ATTR_EX2_UNK6 0x00000040 // 6
272 #define SPELL_ATTR_EX2_UNK7 0x00000080 // 7
273 #define SPELL_ATTR_EX2_UNK8 0x00000100 // 8 not set in 2.4.2
274 #define SPELL_ATTR_EX2_UNK9 0x00000200 // 9
275 #define SPELL_ATTR_EX2_UNK10 0x00000400 // 10
276 #define SPELL_ATTR_EX2_HEALTH_FUNNEL 0x00000800 // 11
277 #define SPELL_ATTR_EX2_UNK12 0x00001000 // 12
278 #define SPELL_ATTR_EX2_UNK13 0x00002000 // 13
279 #define SPELL_ATTR_EX2_UNK14 0x00004000 // 14
280 #define SPELL_ATTR_EX2_UNK15 0x00008000 // 15 not set in 2.4.2
281 #define SPELL_ATTR_EX2_UNK16 0x00010000 // 16
282 #define SPELL_ATTR_EX2_UNK17 0x00020000 // 17 Hunters Shot and Stings only have this flag
283 #define SPELL_ATTR_EX2_UNK18 0x00040000 // 18 Only Revive pet - possible req dead pet
284 #define SPELL_ATTR_EX2_NOT_NEED_SHAPESHIFT 0x00080000 // 19 does not necessarly need shapeshift
285 #define SPELL_ATTR_EX2_UNK20 0x00100000 // 20
286 #define SPELL_ATTR_EX2_UNK21 0x00200000 // 21
287 #define SPELL_ATTR_EX2_UNK22 0x00400000 // 22
288 #define SPELL_ATTR_EX2_UNK23 0x00800000 // 23 Only mage Arcane Concentration have this flag
289 #define SPELL_ATTR_EX2_UNK24 0x01000000 // 24
290 #define SPELL_ATTR_EX2_UNK25 0x02000000 // 25
291 #define SPELL_ATTR_EX2_UNK26 0x04000000 // 26 unaffected by school immunity
292 #define SPELL_ATTR_EX2_UNK27 0x08000000 // 27
293 #define SPELL_ATTR_EX2_UNK28 0x10000000 // 28
294 #define SPELL_ATTR_EX2_CANT_CRIT 0x20000000 // 29 Spell can't crit
295 #define SPELL_ATTR_EX2_UNK30 0x40000000 // 30
296 #define SPELL_ATTR_EX2_UNK31 0x80000000 // 31
298 #define SPELL_ATTR_EX3_UNK0 0x00000001 // 0
299 #define SPELL_ATTR_EX3_UNK1 0x00000002 // 1
300 #define SPELL_ATTR_EX3_UNK2 0x00000004 // 2
301 #define SPELL_ATTR_EX3_UNK3 0x00000008 // 3
302 #define SPELL_ATTR_EX3_UNK4 0x00000010 // 4 Druid Rebirth only this spell have this flag
303 #define SPELL_ATTR_EX3_UNK5 0x00000020 // 5
304 #define SPELL_ATTR_EX3_UNK6 0x00000040 // 6
305 #define SPELL_ATTR_EX3_UNK7 0x00000080 // 7
306 #define SPELL_ATTR_EX3_UNK8 0x00000100 // 8
307 #define SPELL_ATTR_EX3_UNK9 0x00000200 // 9
308 #define SPELL_ATTR_EX3_MAIN_HAND 0x00000400 // 10 Main hand weapon required
309 #define SPELL_ATTR_EX3_BATTLEGROUND 0x00000800 // 11 Can casted only on battleground
310 #define SPELL_ATTR_EX3_UNK12 0x00001000 // 12
311 #define SPELL_ATTR_EX3_UNK13 0x00002000 // 13
312 #define SPELL_ATTR_EX3_UNK14 0x00004000 // 14 "Honorless Target" only this spells have this flag
313 #define SPELL_ATTR_EX3_UNK15 0x00008000 // 15 Auto Shoot, Shoot, Throw, - this is autoshot flag
314 #define SPELL_ATTR_EX3_UNK16 0x00010000 // 16
315 #define SPELL_ATTR_EX3_NO_INITIAL_AGGRO 0x00020000 // 17 no initial aggro
316 #define SPELL_ATTR_EX3_UNK18 0x00040000 // 18
317 #define SPELL_ATTR_EX3_UNK19 0x00080000 // 19
318 #define SPELL_ATTR_EX3_DEATH_PERSISTENT 0x00100000 // 20 Death persistent spells
319 #define SPELL_ATTR_EX3_UNK21 0x00200000 // 21
320 #define SPELL_ATTR_EX3_REQ_WAND 0x00400000 // 22 Req wand
321 #define SPELL_ATTR_EX3_UNK23 0x00800000 // 23
322 #define SPELL_ATTR_EX3_REQ_OFFHAND 0x01000000 // 24 Req offhand weapon
323 #define SPELL_ATTR_EX3_UNK25 0x02000000 // 25
324 #define SPELL_ATTR_EX3_UNK26 0x04000000 // 26
325 #define SPELL_ATTR_EX3_UNK27 0x08000000 // 27
326 #define SPELL_ATTR_EX3_UNK28 0x10000000 // 28
327 #define SPELL_ATTR_EX3_UNK29 0x20000000 // 29
328 #define SPELL_ATTR_EX3_UNK30 0x40000000 // 30
329 #define SPELL_ATTR_EX3_UNK31 0x80000000 // 31
331 #define SPELL_ATTR_EX4_UNK0 0x00000001 // 0
332 #define SPELL_ATTR_EX4_UNK1 0x00000002 // 1 proc on finishing move?
333 #define SPELL_ATTR_EX4_UNK2 0x00000004 // 2
334 #define SPELL_ATTR_EX4_UNK3 0x00000008 // 3
335 #define SPELL_ATTR_EX4_UNK4 0x00000010 // 4
336 #define SPELL_ATTR_EX4_UNK5 0x00000020 // 5
337 #define SPELL_ATTR_EX4_UNK6 0x00000040 // 6
338 #define SPELL_ATTR_EX4_UNK7 0x00000080 // 7
339 #define SPELL_ATTR_EX4_UNK8 0x00000100 // 8
340 #define SPELL_ATTR_EX4_UNK9 0x00000200 // 9
341 #define SPELL_ATTR_EX4_SPELL_VS_EXTEND_COST 0x00000400 // 10 Rogue Shiv have this flag
342 #define SPELL_ATTR_EX4_UNK11 0x00000800 // 11
343 #define SPELL_ATTR_EX4_UNK12 0x00001000 // 12
344 #define SPELL_ATTR_EX4_UNK13 0x00002000 // 13
345 #define SPELL_ATTR_EX4_UNK14 0x00004000 // 14
346 #define SPELL_ATTR_EX4_UNK15 0x00008000 // 15
347 #define SPELL_ATTR_EX4_NOT_USABLE_IN_ARENA 0x00010000 // 16 not usable in arena
348 #define SPELL_ATTR_EX4_USABLE_IN_ARENA 0x00020000 // 17 usable in arena
349 #define SPELL_ATTR_EX4_UNK18 0x00040000 // 18
350 #define SPELL_ATTR_EX4_UNK19 0x00080000 // 19
351 #define SPELL_ATTR_EX4_UNK20 0x00100000 // 20
352 #define SPELL_ATTR_EX4_UNK21 0x00200000 // 21
353 #define SPELL_ATTR_EX4_UNK22 0x00400000 // 22
354 #define SPELL_ATTR_EX4_UNK23 0x00800000 // 23
355 #define SPELL_ATTR_EX4_UNK24 0x01000000 // 24
356 #define SPELL_ATTR_EX4_UNK25 0x02000000 // 25 pet scaling auras
357 #define SPELL_ATTR_EX4_CAST_ONLY_IN_OUTLAND 0x04000000 // 26 Can only be used in Outland.
358 #define SPELL_ATTR_EX4_UNK27 0x08000000 // 27
359 #define SPELL_ATTR_EX4_UNK28 0x10000000 // 28
360 #define SPELL_ATTR_EX4_UNK29 0x20000000 // 29
361 #define SPELL_ATTR_EX4_UNK30 0x40000000 // 30
362 #define SPELL_ATTR_EX4_UNK31 0x80000000 // 31
364 #define SPELL_ATTR_EX5_UNK0 0x00000001 // 0
365 #define SPELL_ATTR_EX5_NO_REAGENT_WHILE_PREP 0x00000002 // 1 not need reagents if UNIT_FLAG_PREPARATION
366 #define SPELL_ATTR_EX5_UNK2 0x00000004 // 2
367 #define SPELL_ATTR_EX5_USABLE_WHILE_STUNNED 0x00000008 // 3 usable while stunned
368 #define SPELL_ATTR_EX5_UNK4 0x00000010 // 4
369 #define SPELL_ATTR_EX5_SINGLE_TARGET_SPELL 0x00000020 // 5 Only one target can be apply at a time
370 #define SPELL_ATTR_EX5_UNK6 0x00000040 // 6
371 #define SPELL_ATTR_EX5_UNK7 0x00000080 // 7
372 #define SPELL_ATTR_EX5_UNK8 0x00000100 // 8
373 #define SPELL_ATTR_EX5_UNK9 0x00000200 // 9
374 #define SPELL_ATTR_EX5_UNK10 0x00000400 // 10
375 #define SPELL_ATTR_EX5_UNK11 0x00000800 // 11
376 #define SPELL_ATTR_EX5_UNK12 0x00001000 // 12
377 #define SPELL_ATTR_EX5_UNK13 0x00002000 // 13
378 #define SPELL_ATTR_EX5_UNK14 0x00004000 // 14
379 #define SPELL_ATTR_EX5_UNK15 0x00008000 // 15
380 #define SPELL_ATTR_EX5_UNK16 0x00010000 // 16
381 #define SPELL_ATTR_EX5_USABLE_WHILE_FEARED 0x00020000 // 17 usable while feared
382 #define SPELL_ATTR_EX5_USABLE_WHILE_CONFUSED 0x00040000 // 18 usable while confused
383 #define SPELL_ATTR_EX5_UNK19 0x00080000 // 19
384 #define SPELL_ATTR_EX5_UNK20 0x00100000 // 20
385 #define SPELL_ATTR_EX5_UNK21 0x00200000 // 21
386 #define SPELL_ATTR_EX5_UNK22 0x00400000 // 22
387 #define SPELL_ATTR_EX5_UNK23 0x00800000 // 23
388 #define SPELL_ATTR_EX5_UNK24 0x01000000 // 24
389 #define SPELL_ATTR_EX5_UNK25 0x02000000 // 25
390 #define SPELL_ATTR_EX5_UNK26 0x04000000 // 26
391 #define SPELL_ATTR_EX5_UNK27 0x08000000 // 27
392 #define SPELL_ATTR_EX5_UNK28 0x10000000 // 28
393 #define SPELL_ATTR_EX5_UNK29 0x20000000 // 29
394 #define SPELL_ATTR_EX5_UNK30 0x40000000 // 30
395 #define SPELL_ATTR_EX5_UNK31 0x80000000 // 31 Forces all nearby enemies to focus attacks caster
397 #define SPELL_ATTR_EX6_UNK0 0x00000001 // 0 Only Move spell have this flag
398 #define SPELL_ATTR_EX6_UNK1 0x00000002 // 1 not set in 2.4.2
399 #define SPELL_ATTR_EX6_UNK2 0x00000004 // 2
400 #define SPELL_ATTR_EX6_UNK3 0x00000008 // 3
401 #define SPELL_ATTR_EX6_UNK4 0x00000010 // 4 not set in 2.4.2
402 #define SPELL_ATTR_EX6_UNK5 0x00000020 // 5
403 #define SPELL_ATTR_EX6_UNK6 0x00000040 // 6
404 #define SPELL_ATTR_EX6_UNK7 0x00000080 // 7
405 #define SPELL_ATTR_EX6_UNK8 0x00000100 // 8
406 #define SPELL_ATTR_EX6_UNK9 0x00000200 // 9 not set in 2.4.2
407 #define SPELL_ATTR_EX6_UNK10 0x00000400 // 10
408 #define SPELL_ATTR_EX6_UNK11 0x00000800 // 11
409 #define SPELL_ATTR_EX6_UNK12 0x00001000 // 12 not set in 2.4.2
410 #define SPELL_ATTR_EX6_UNK13 0x00002000 // 13 not set in 2.4.2
411 #define SPELL_ATTR_EX6_UNK14 0x00004000 // 14 not set in 2.4.2
412 #define SPELL_ATTR_EX6_UNK15 0x00008000 // 15 not set in 2.4.2
413 #define SPELL_ATTR_EX6_UNK16 0x00010000 // 16 not set in 2.4.2
414 #define SPELL_ATTR_EX6_UNK17 0x00020000 // 17 not set in 2.4.2
415 #define SPELL_ATTR_EX6_UNK18 0x00040000 // 18 not set in 2.4.2
416 #define SPELL_ATTR_EX6_UNK19 0x00080000 // 19 not set in 2.4.2
417 #define SPELL_ATTR_EX6_UNK20 0x00100000 // 20 not set in 2.4.2
418 #define SPELL_ATTR_EX6_UNK21 0x00200000 // 21 not set in 2.4.2
419 #define SPELL_ATTR_EX6_UNK22 0x00400000 // 22 not set in 2.4.2
420 #define SPELL_ATTR_EX6_UNK23 0x00800000 // 23 not set in 2.4.2
421 #define SPELL_ATTR_EX6_UNK24 0x01000000 // 24 not set in 2.4.2
422 #define SPELL_ATTR_EX6_UNK25 0x02000000 // 25 not set in 2.4.2
423 #define SPELL_ATTR_EX6_UNK26 0x04000000 // 26 not set in 2.4.2
424 #define SPELL_ATTR_EX6_UNK27 0x08000000 // 27 not set in 2.4.2
425 #define SPELL_ATTR_EX6_UNK28 0x10000000 // 28 not set in 2.4.2
426 #define SPELL_ATTR_EX6_UNK29 0x20000000 // 29 not set in 2.4.2
427 #define SPELL_ATTR_EX6_UNK30 0x40000000 // 30 not set in 2.4.2
428 #define SPELL_ATTR_EX6_UNK31 0x80000000 // 31 not set in 2.4.2
432 SHEATHETYPE_NONE
= 0,
433 SHEATHETYPE_MAINHAND
= 1,
434 SHEATHETYPE_OFFHAND
= 2,
435 SHEATHETYPE_LARGEWEAPONLEFT
= 3,
436 SHEATHETYPE_LARGEWEAPONRIGHT
= 4,
437 SHEATHETYPE_HIPWEAPONLEFT
= 5,
438 SHEATHETYPE_HIPWEAPONRIGHT
= 6,
439 SHEATHETYPE_SHIELD
= 7
442 #define MAX_SHEATHETYPE 8
478 LANG_THALASSIAN
= 10,
483 LANG_GUTTERSPEAK
= 33,
486 LANG_GNOMISH_BINARY
= 37,
487 LANG_GOBLIN_BINARY
= 38,
488 LANG_ADDON
= 0xFFFFFFFF // used by addons, in 2.4.0 not exit, replaced by messagetype?
491 #define LANGUAGES_COUNT 19
497 //TEAM_STEAMWHEEDLE_CARTEL = 169, // not used in code
498 //TEAM_ALLIANCE_FORCES = 891,
499 //TEAM_HORDE_FORCES = 892,
500 //TEAM_SANCTUARY = 936,
501 //TEAM_OUTLAND = 980,
502 //TEAM_OTHER = 0, // if ReputationListId > 0 && Flags != FACTION_FLAG_TEAM_HEADER
507 SPELL_EFFECT_INSTAKILL
= 1,
508 SPELL_EFFECT_SCHOOL_DAMAGE
= 2,
509 SPELL_EFFECT_DUMMY
= 3,
510 SPELL_EFFECT_PORTAL_TELEPORT
= 4,
511 SPELL_EFFECT_TELEPORT_UNITS
= 5,
512 SPELL_EFFECT_APPLY_AURA
= 6,
513 SPELL_EFFECT_ENVIRONMENTAL_DAMAGE
= 7,
514 SPELL_EFFECT_POWER_DRAIN
= 8,
515 SPELL_EFFECT_HEALTH_LEECH
= 9,
516 SPELL_EFFECT_HEAL
= 10,
517 SPELL_EFFECT_BIND
= 11,
518 SPELL_EFFECT_PORTAL
= 12,
519 SPELL_EFFECT_RITUAL_BASE
= 13,
520 SPELL_EFFECT_RITUAL_SPECIALIZE
= 14,
521 SPELL_EFFECT_RITUAL_ACTIVATE_PORTAL
= 15,
522 SPELL_EFFECT_QUEST_COMPLETE
= 16,
523 SPELL_EFFECT_WEAPON_DAMAGE_NOSCHOOL
= 17,
524 SPELL_EFFECT_RESURRECT
= 18,
525 SPELL_EFFECT_ADD_EXTRA_ATTACKS
= 19,
526 SPELL_EFFECT_DODGE
= 20,
527 SPELL_EFFECT_EVADE
= 21,
528 SPELL_EFFECT_PARRY
= 22,
529 SPELL_EFFECT_BLOCK
= 23,
530 SPELL_EFFECT_CREATE_ITEM
= 24,
531 SPELL_EFFECT_WEAPON
= 25,
532 SPELL_EFFECT_DEFENSE
= 26,
533 SPELL_EFFECT_PERSISTENT_AREA_AURA
= 27,
534 SPELL_EFFECT_SUMMON
= 28,
535 SPELL_EFFECT_LEAP
= 29,
536 SPELL_EFFECT_ENERGIZE
= 30,
537 SPELL_EFFECT_WEAPON_PERCENT_DAMAGE
= 31,
538 SPELL_EFFECT_TRIGGER_MISSILE
= 32,
539 SPELL_EFFECT_OPEN_LOCK
= 33,
540 SPELL_EFFECT_SUMMON_CHANGE_ITEM
= 34,
541 SPELL_EFFECT_APPLY_AREA_AURA_PARTY
= 35,
542 SPELL_EFFECT_LEARN_SPELL
= 36,
543 SPELL_EFFECT_SPELL_DEFENSE
= 37,
544 SPELL_EFFECT_DISPEL
= 38,
545 SPELL_EFFECT_LANGUAGE
= 39,
546 SPELL_EFFECT_DUAL_WIELD
= 40,
547 SPELL_EFFECT_SUMMON_WILD
= 41,
548 SPELL_EFFECT_SUMMON_GUARDIAN
= 42,
549 SPELL_EFFECT_TELEPORT_UNITS_FACE_CASTER
= 43,
550 SPELL_EFFECT_SKILL_STEP
= 44,
551 SPELL_EFFECT_UNDEFINED_45
= 45,
552 SPELL_EFFECT_SPAWN
= 46,
553 SPELL_EFFECT_TRADE_SKILL
= 47,
554 SPELL_EFFECT_STEALTH
= 48,
555 SPELL_EFFECT_DETECT
= 49,
556 SPELL_EFFECT_TRANS_DOOR
= 50,
557 SPELL_EFFECT_FORCE_CRITICAL_HIT
= 51,
558 SPELL_EFFECT_GUARANTEE_HIT
= 52,
559 SPELL_EFFECT_ENCHANT_ITEM
= 53,
560 SPELL_EFFECT_ENCHANT_ITEM_TEMPORARY
= 54,
561 SPELL_EFFECT_TAMECREATURE
= 55,
562 SPELL_EFFECT_SUMMON_PET
= 56,
563 SPELL_EFFECT_LEARN_PET_SPELL
= 57,
564 SPELL_EFFECT_WEAPON_DAMAGE
= 58,
565 SPELL_EFFECT_OPEN_LOCK_ITEM
= 59,
566 SPELL_EFFECT_PROFICIENCY
= 60,
567 SPELL_EFFECT_SEND_EVENT
= 61,
568 SPELL_EFFECT_POWER_BURN
= 62,
569 SPELL_EFFECT_THREAT
= 63,
570 SPELL_EFFECT_TRIGGER_SPELL
= 64,
571 SPELL_EFFECT_HEALTH_FUNNEL
= 65,
572 SPELL_EFFECT_POWER_FUNNEL
= 66,
573 SPELL_EFFECT_HEAL_MAX_HEALTH
= 67,
574 SPELL_EFFECT_INTERRUPT_CAST
= 68,
575 SPELL_EFFECT_DISTRACT
= 69,
576 SPELL_EFFECT_PULL
= 70,
577 SPELL_EFFECT_PICKPOCKET
= 71,
578 SPELL_EFFECT_ADD_FARSIGHT
= 72,
579 SPELL_EFFECT_SUMMON_POSSESSED
= 73,
580 SPELL_EFFECT_SUMMON_TOTEM
= 74,
581 SPELL_EFFECT_HEAL_MECHANICAL
= 75,
582 SPELL_EFFECT_SUMMON_OBJECT_WILD
= 76,
583 SPELL_EFFECT_SCRIPT_EFFECT
= 77,
584 SPELL_EFFECT_ATTACK
= 78,
585 SPELL_EFFECT_SANCTUARY
= 79,
586 SPELL_EFFECT_ADD_COMBO_POINTS
= 80,
587 SPELL_EFFECT_CREATE_HOUSE
= 81,
588 SPELL_EFFECT_BIND_SIGHT
= 82,
589 SPELL_EFFECT_DUEL
= 83,
590 SPELL_EFFECT_STUCK
= 84,
591 SPELL_EFFECT_SUMMON_PLAYER
= 85,
592 SPELL_EFFECT_ACTIVATE_OBJECT
= 86,
593 SPELL_EFFECT_SUMMON_TOTEM_SLOT1
= 87,
594 SPELL_EFFECT_SUMMON_TOTEM_SLOT2
= 88,
595 SPELL_EFFECT_SUMMON_TOTEM_SLOT3
= 89,
596 SPELL_EFFECT_SUMMON_TOTEM_SLOT4
= 90,
597 SPELL_EFFECT_THREAT_ALL
= 91,
598 SPELL_EFFECT_ENCHANT_HELD_ITEM
= 92,
599 SPELL_EFFECT_SUMMON_PHANTASM
= 93,
600 SPELL_EFFECT_SELF_RESURRECT
= 94,
601 SPELL_EFFECT_SKINNING
= 95,
602 SPELL_EFFECT_CHARGE
= 96,
603 SPELL_EFFECT_SUMMON_CRITTER
= 97,
604 SPELL_EFFECT_KNOCK_BACK
= 98,
605 SPELL_EFFECT_DISENCHANT
= 99,
606 SPELL_EFFECT_INEBRIATE
= 100,
607 SPELL_EFFECT_FEED_PET
= 101,
608 SPELL_EFFECT_DISMISS_PET
= 102,
609 SPELL_EFFECT_REPUTATION
= 103,
610 SPELL_EFFECT_SUMMON_OBJECT_SLOT1
= 104,
611 SPELL_EFFECT_SUMMON_OBJECT_SLOT2
= 105,
612 SPELL_EFFECT_SUMMON_OBJECT_SLOT3
= 106,
613 SPELL_EFFECT_SUMMON_OBJECT_SLOT4
= 107,
614 SPELL_EFFECT_DISPEL_MECHANIC
= 108,
615 SPELL_EFFECT_SUMMON_DEAD_PET
= 109,
616 SPELL_EFFECT_DESTROY_ALL_TOTEMS
= 110,
617 SPELL_EFFECT_DURABILITY_DAMAGE
= 111,
618 SPELL_EFFECT_SUMMON_DEMON
= 112,
619 SPELL_EFFECT_RESURRECT_NEW
= 113,
620 SPELL_EFFECT_ATTACK_ME
= 114,
621 SPELL_EFFECT_DURABILITY_DAMAGE_PCT
= 115,
622 SPELL_EFFECT_SKIN_PLAYER_CORPSE
= 116,
623 SPELL_EFFECT_SPIRIT_HEAL
= 117,
624 SPELL_EFFECT_SKILL
= 118,
625 SPELL_EFFECT_APPLY_AREA_AURA_PET
= 119,
626 SPELL_EFFECT_TELEPORT_GRAVEYARD
= 120,
627 SPELL_EFFECT_NORMALIZED_WEAPON_DMG
= 121,
628 SPELL_EFFECT_122
= 122,
629 SPELL_EFFECT_SEND_TAXI
= 123,
630 SPELL_EFFECT_PLAYER_PULL
= 124,
631 SPELL_EFFECT_MODIFY_THREAT_PERCENT
= 125,
632 SPELL_EFFECT_STEAL_BENEFICIAL_BUFF
= 126,
633 SPELL_EFFECT_PROSPECTING
= 127,
634 SPELL_EFFECT_APPLY_AREA_AURA_FRIEND
= 128,
635 SPELL_EFFECT_APPLY_AREA_AURA_ENEMY
= 129,
636 SPELL_EFFECT_REDIRECT_THREAT
= 130,
637 SPELL_EFFECT_131
= 131,
638 SPELL_EFFECT_132
= 132,
639 SPELL_EFFECT_UNLEARN_SPECIALIZATION
= 133,
640 SPELL_EFFECT_KILL_CREDIT
= 134,
641 SPELL_EFFECT_135
= 135,
642 SPELL_EFFECT_HEAL_PCT
= 136,
643 SPELL_EFFECT_ENERGIZE_PCT
= 137,
644 SPELL_EFFECT_138
= 138,
645 SPELL_EFFECT_139
= 139,
646 SPELL_EFFECT_FORCE_CAST
= 140,
647 SPELL_EFFECT_141
= 141,
648 SPELL_EFFECT_TRIGGER_SPELL_WITH_VALUE
= 142,
649 SPELL_EFFECT_APPLY_AREA_AURA_OWNER
= 143,
650 SPELL_EFFECT_144
= 144,
651 SPELL_EFFECT_145
= 145,
652 SPELL_EFFECT_146
= 146,
653 SPELL_EFFECT_QUEST_FAIL
= 147,
654 SPELL_EFFECT_148
= 148,
655 SPELL_EFFECT_149
= 149,
656 SPELL_EFFECT_150
= 150,
657 SPELL_EFFECT_TRIGGER_SPELL_2
= 151,
658 SPELL_EFFECT_152
= 152,
659 SPELL_EFFECT_153
= 153,
660 TOTAL_SPELL_EFFECTS
= 154
665 { // (C) used in caster aura state (T) used in target aura state
666 // (c) used in caster aura state-not (t) used in target aura state-not
667 AURA_STATE_DEFENSE
= 1, // C |
668 AURA_STATE_HEALTHLESS_20_PERCENT
= 2, // CcT |
669 AURA_STATE_BERSERKING
= 3, // C T |
670 //AURA_STATE_UNKNOWN4 = 4, // c t| some limitation to charge spells (?) and target test spells
671 AURA_STATE_JUDGEMENT
= 5, // C |
672 //AURA_STATE_UNKNOWN6 = 6, // | not used
673 AURA_STATE_HUNTER_PARRY
= 7, // C |
674 AURA_STATE_ROGUE_ATTACK_FROM_STEALTH
= 7, // C | FIX ME: not implemented yet!
675 //AURA_STATE_UNKNOWN7c = 7, // c | random/focused bursts spells (?)
676 //AURA_STATE_UNKNOWN8 = 8, // | not used
677 //AURA_STATE_UNKNOWN9 = 9, // | not used
678 AURA_STATE_WARRIOR_VICTORY_RUSH
= 10, // C | warrior victory rush
679 AURA_STATE_HUNTER_CRIT_STRIKE
= 10, // C | hunter crit strike
680 AURA_STATE_CRIT
= 11, // C |
681 AURA_STATE_FAERIE_FIRE
= 12, // c t|
682 AURA_STATE_HEALTHLESS_35_PERCENT
= 13, // C T |
683 AURA_STATE_IMMOLATE
= 14, // T |
684 AURA_STATE_SWIFTMEND
= 15, // T |
685 AURA_STATE_DEADLY_POISON
= 16, // T |
686 AURA_STATE_FORBEARANCE
= 17, // c t|
687 AURA_STATE_WEAKENED_SOUL
= 18, // t|
688 AURA_STATE_HYPOTHERMIA
= 19 // c |
696 MECHANIC_CONFUSED
= 2,
698 MECHANIC_DISTRACT
= 4,
702 MECHANIC_PACIFY
= 8, //0 spells use this mechanic
703 MECHANIC_SILENCE
= 9,
707 MECHANIC_FREEZE
= 13,
708 MECHANIC_KNOCKOUT
= 14,
710 MECHANIC_BANDAGE
= 16,
711 MECHANIC_POLYMORPH
= 17,
712 MECHANIC_BANISH
= 18,
713 MECHANIC_SHIELD
= 19,
714 MECHANIC_SHACKLE
= 20,
716 MECHANIC_PERSUADE
= 22, //0 spells use this mechanic
718 MECHANIC_HORROR
= 24,
719 MECHANIC_INVULNERABILITY
= 25,
720 MECHANIC_INTERRUPT
= 26,
722 MECHANIC_DISCOVERY
= 28,
723 MECHANIC_IMMUNE_SHIELD
= 29, // Divine (Blessing) Shield/Protection and Ice Block
727 // Used for spell 42292 Immune Movement Impairment and Loss of Control (0x49967da6)
728 #define IMMUNE_TO_MOVEMENT_IMPAIRMENT_AND_LOSS_CONTROL_MASK ( \
729 (1<<MECHANIC_CHARM )|(1<<MECHANIC_CONFUSED )|(1<<MECHANIC_FEAR )| \
730 (1<<MECHANIC_ROOT )|(1<<MECHANIC_PACIFY )|(1<<MECHANIC_SLEEP )| \
731 (1<<MECHANIC_SNARE )|(1<<MECHANIC_STUN )|(1<<MECHANIC_FREEZE)| \
732 (1<<MECHANIC_KNOCKOUT)|(1<<MECHANIC_POLYMORPH)|(1<<MECHANIC_BANISH)| \
733 (1<<MECHANIC_SHACKLE )|(1<<MECHANIC_TURN )|(1<<MECHANIC_HORROR)| \
734 (1<<MECHANIC_DAZE )|(1<<MECHANIC_SAPPED ) )
736 // Spell dispell type
745 DISPEL_INVISIBILITY
= 6,
747 DISPEL_SPE_NPC_ONLY
= 8,
749 DISPEL_ZG_TICKET
= 10
752 #define DISPEL_ALL_MASK ( (1<<DISPEL_MAGIC) | (1<<DISPEL_CURSE) | (1<<DISPEL_DISEASE) | (1<<DISPEL_POISON) )
754 //To all Immune system,if target has immunes,
755 //some spell that related to ImmuneToDispel or ImmuneToSchool or ImmuneToDamage type can't cast to it,
756 //some spell_effects that related to ImmuneToEffect<effect>(only this effect in the spell) can't cast to it,
757 //some aura(related to Mechanics or ImmuneToState<aura>) can't apply to it.
760 IMMUNITY_EFFECT
= 0, // enum SpellEffects
761 IMMUNITY_STATE
= 1, // enum AuraType
762 IMMUNITY_SCHOOL
= 2, // enum SpellSchoolMask
763 IMMUNITY_DAMAGE
= 3, // enum SpellSchoolMask
764 IMMUNITY_DISPEL
= 4, // enum DispelType
765 IMMUNITY_MECHANIC
= 5 // enum Mechanics
768 #define MAX_SPELL_IMMUNITY 6
773 TARGET_RANDOM_ENEMY_CHAIN_IN_AREA
= 2, // only one spell has that, but regardless, it's a target type after all
775 TARGET_CHAIN_DAMAGE
= 6,
776 TARGET_AREAEFFECT_CUSTOM
= 8,
777 TARGET_INNKEEPER_COORDINATES
= 9, // uses in teleport to innkeeper spells
778 TARGET_ALL_ENEMY_IN_AREA
= 15,
779 TARGET_ALL_ENEMY_IN_AREA_INSTANT
= 16,
780 TARGET_TABLE_X_Y_Z_COORDINATES
= 17, // uses in teleport spells and some other
781 TARGET_EFFECT_SELECT
= 18, // highly depends on the spell effect
782 TARGET_ALL_PARTY_AROUND_CASTER
= 20,
783 TARGET_SINGLE_FRIEND
= 21,
784 TARGET_ALL_AROUND_CASTER
= 22, // used only in TargetA, target selection dependent from TargetB
785 TARGET_GAMEOBJECT
= 23,
786 TARGET_IN_FRONT_OF_CASTER
= 24,
787 TARGET_DUELVSPLAYER
= 25,
788 TARGET_GAMEOBJECT_ITEM
= 26,
790 TARGET_ALL_ENEMY_IN_AREA_CHANNELED
= 28,
791 TARGET_ALL_FRIENDLY_UNITS_AROUND_CASTER
= 30, // in TargetB used only with TARGET_ALL_AROUND_CASTER and in self casting range in TargetA
792 TARGET_ALL_FRIENDLY_UNITS_IN_AREA
= 31,
794 TARGET_ALL_PARTY
= 33,
795 TARGET_ALL_PARTY_AROUND_CASTER_2
= 34, // used in Tranquility
796 TARGET_SINGLE_PARTY
= 35,
797 TARGET_AREAEFFECT_PARTY
= 37,
799 TARGET_SELF_FISHING
= 39,
800 TARGET_TOTEM_EARTH
= 41,
801 TARGET_TOTEM_WATER
= 42,
802 TARGET_TOTEM_AIR
= 43,
803 TARGET_TOTEM_FIRE
= 44,
804 TARGET_CHAIN_HEAL
= 45,
805 TARGET_SCRIPT_COORDINATES
= 46,
806 TARGET_DYNAMIC_OBJECT
= 47,
808 TARGET_AREAEFFECT_CUSTOM_2
= 52,
809 TARGET_CURRENT_ENEMY_COORDINATES
= 53, // set unit coordinates as dest, only 16 target B imlemented
810 TARGET_RANDOM_RAID_MEMBER
= 56,
811 TARGET_SINGLE_FRIEND_2
= 57,
812 TARGET_AREAEFFECT_PARTY_AND_CLASS
= 61,
813 TARGET_DUELVSPLAYER_COORDINATES
= 63,
814 TARGET_BEHIND_VICTIM
= 65, // uses in teleport behind spells
815 TARGET_SINGLE_ENEMY
= 77,
817 TARGET_NONCOMBAT_PET
= 90,
824 SPELL_MISS_RESIST
= 2,
825 SPELL_MISS_DODGE
= 3,
826 SPELL_MISS_PARRY
= 4,
827 SPELL_MISS_BLOCK
= 5,
828 SPELL_MISS_EVADE
= 6,
829 SPELL_MISS_IMMUNE
= 7,
830 SPELL_MISS_IMMUNE2
= 8,
831 SPELL_MISS_DEFLECT
= 9,
832 SPELL_MISS_ABSORB
= 10,
833 SPELL_MISS_REFLECT
= 11
838 SPELL_HIT_TYPE_UNK1
= 0x00001,
839 SPELL_HIT_TYPE_CRIT
= 0x00002,
840 SPELL_HIT_TYPE_UNK2
= 0x00004,
841 SPELL_HIT_TYPE_UNK3
= 0x00008,
842 SPELL_HIT_TYPE_UNK4
= 0x00020
847 SPELL_DAMAGE_CLASS_NONE
= 0,
848 SPELL_DAMAGE_CLASS_MAGIC
= 1,
849 SPELL_DAMAGE_CLASS_MELEE
= 2,
850 SPELL_DAMAGE_CLASS_RANGED
= 3
853 enum SpellPreventionType
855 SPELL_PREVENTION_TYPE_NONE
= 0,
856 SPELL_PREVENTION_TYPE_SILENCE
= 1,
857 SPELL_PREVENTION_TYPE_PACIFY
= 2
862 GAMEOBJECT_TYPE_DOOR
= 0,
863 GAMEOBJECT_TYPE_BUTTON
= 1,
864 GAMEOBJECT_TYPE_QUESTGIVER
= 2,
865 GAMEOBJECT_TYPE_CHEST
= 3,
866 GAMEOBJECT_TYPE_BINDER
= 4,
867 GAMEOBJECT_TYPE_GENERIC
= 5,
868 GAMEOBJECT_TYPE_TRAP
= 6,
869 GAMEOBJECT_TYPE_CHAIR
= 7,
870 GAMEOBJECT_TYPE_SPELL_FOCUS
= 8,
871 GAMEOBJECT_TYPE_TEXT
= 9,
872 GAMEOBJECT_TYPE_GOOBER
= 10,
873 GAMEOBJECT_TYPE_TRANSPORT
= 11,
874 GAMEOBJECT_TYPE_AREADAMAGE
= 12,
875 GAMEOBJECT_TYPE_CAMERA
= 13,
876 GAMEOBJECT_TYPE_MAP_OBJECT
= 14,
877 GAMEOBJECT_TYPE_MO_TRANSPORT
= 15,
878 GAMEOBJECT_TYPE_DUEL_ARBITER
= 16,
879 GAMEOBJECT_TYPE_FISHINGNODE
= 17,
880 GAMEOBJECT_TYPE_SUMMONING_RITUAL
= 18,
881 GAMEOBJECT_TYPE_MAILBOX
= 19,
882 GAMEOBJECT_TYPE_AUCTIONHOUSE
= 20,
883 GAMEOBJECT_TYPE_GUARDPOST
= 21,
884 GAMEOBJECT_TYPE_SPELLCASTER
= 22,
885 GAMEOBJECT_TYPE_MEETINGSTONE
= 23,
886 GAMEOBJECT_TYPE_FLAGSTAND
= 24,
887 GAMEOBJECT_TYPE_FISHINGHOLE
= 25,
888 GAMEOBJECT_TYPE_FLAGDROP
= 26,
889 GAMEOBJECT_TYPE_MINI_GAME
= 27,
890 GAMEOBJECT_TYPE_LOTTERY_KIOSK
= 28,
891 GAMEOBJECT_TYPE_CAPTURE_POINT
= 29,
892 GAMEOBJECT_TYPE_AURA_GENERATOR
= 30,
893 GAMEOBJECT_TYPE_DUNGEON_DIFFICULTY
= 31,
894 GAMEOBJECT_TYPE_BARBER_CHAIR
= 32,
895 GAMEOBJECT_TYPE_DESTRUCTIBLE_BUILDING
= 33,
896 GAMEOBJECT_TYPE_GUILD_BANK
= 34,
899 #define MAX_GAMEOBJECT_TYPE 35 // sending to client this or greater value can crash client.
901 #define GAMEOBJECT_FISHINGNODE_ENTRY 35591 // Better to define it somewhere instead of hardcoding everywhere
905 GO_FLAG_IN_USE
= 0x00000001, //disables interaction while animated
906 GO_FLAG_LOCKED
= 0x00000002, //require key, spell, event, etc to be opened. Makes "Locked" appear in tooltip
907 GO_FLAG_INTERACT_COND
= 0x00000004, //cannot interact (condition to interact)
908 GO_FLAG_TRANSPORT
= 0x00000008, //any kind of transport? Object can transport (elevator, boat, car)
909 GO_FLAG_UNK1
= 0x00000010, //
910 GO_FLAG_NODESPAWN
= 0x00000020, //never despawn, typically for doors, they just change state
911 GO_FLAG_TRIGGERED
= 0x00000040 //typically, summoned objects. Triggered by spell or other events
919 TEXTEMOTE_APOLOGIZE
= 4,
920 TEXTEMOTE_APPLAUD
= 5,
921 TEXTEMOTE_BASHFUL
= 6,
922 TEXTEMOTE_BECKON
= 7,
925 TEXTEMOTE_BLEED
= 10,
926 TEXTEMOTE_BLINK
= 11,
927 TEXTEMOTE_BLUSH
= 12,
929 TEXTEMOTE_BORED
= 14,
930 TEXTEMOTE_BOUNCE
= 15,
935 TEXTEMOTE_CACKLE
= 20,
936 TEXTEMOTE_CHEER
= 21,
937 TEXTEMOTE_CHICKEN
= 22,
938 TEXTEMOTE_CHUCKLE
= 23,
940 TEXTEMOTE_CONFUSED
= 25,
941 TEXTEMOTE_CONGRATULATE
= 26,
942 TEXTEMOTE_COUGH
= 27,
943 TEXTEMOTE_COWER
= 28,
944 TEXTEMOTE_CRACK
= 29,
945 TEXTEMOTE_CRINGE
= 30,
947 TEXTEMOTE_CURIOUS
= 32,
948 TEXTEMOTE_CURTSEY
= 33,
949 TEXTEMOTE_DANCE
= 34,
950 TEXTEMOTE_DRINK
= 35,
951 TEXTEMOTE_DROOL
= 36,
955 TEXTEMOTE_FIDGET
= 40,
957 TEXTEMOTE_FROWN
= 42,
960 TEXTEMOTE_GIGGLE
= 45,
961 TEXTEMOTE_GLARE
= 46,
962 TEXTEMOTE_GLOAT
= 47,
963 TEXTEMOTE_GREET
= 48,
965 TEXTEMOTE_GROAN
= 50,
966 TEXTEMOTE_GROVEL
= 51,
967 TEXTEMOTE_GUFFAW
= 52,
969 TEXTEMOTE_HAPPY
= 54,
970 TEXTEMOTE_HELLO
= 55,
972 TEXTEMOTE_HUNGRY
= 57,
974 TEXTEMOTE_KNEEL
= 59,
975 TEXTEMOTE_LAUGH
= 60,
976 TEXTEMOTE_LAYDOWN
= 61,
977 TEXTEMOTE_MESSAGE
= 62,
980 TEXTEMOTE_MOURN
= 65,
983 TEXTEMOTE_NOSEPICK
= 68,
984 TEXTEMOTE_PANIC
= 69,
986 TEXTEMOTE_PLEAD
= 71,
987 TEXTEMOTE_POINT
= 72,
993 TEXTEMOTE_SALUTE
= 78,
994 TEXTEMOTE_SCRATCH
= 79,
996 TEXTEMOTE_SHAKE
= 81,
997 TEXTEMOTE_SHOUT
= 82,
998 TEXTEMOTE_SHRUG
= 83,
1000 TEXTEMOTE_SIGH
= 85,
1002 TEXTEMOTE_SLEEP
= 87,
1003 TEXTEMOTE_SNARL
= 88,
1004 TEXTEMOTE_SPIT
= 89,
1005 TEXTEMOTE_STARE
= 90,
1006 TEXTEMOTE_SURPRISED
= 91,
1007 TEXTEMOTE_SURRENDER
= 92,
1008 TEXTEMOTE_TALK
= 93,
1009 TEXTEMOTE_TALKEX
= 94,
1010 TEXTEMOTE_TALKQ
= 95,
1012 TEXTEMOTE_THANK
= 97,
1013 TEXTEMOTE_THREATEN
= 98,
1014 TEXTEMOTE_TIRED
= 99,
1015 TEXTEMOTE_VICTORY
= 100,
1016 TEXTEMOTE_WAVE
= 101,
1017 TEXTEMOTE_WELCOME
= 102,
1018 TEXTEMOTE_WHINE
= 103,
1019 TEXTEMOTE_WHISTLE
= 104,
1020 TEXTEMOTE_WORK
= 105,
1021 TEXTEMOTE_YAWN
= 106,
1022 TEXTEMOTE_BOGGLE
= 107,
1023 TEXTEMOTE_CALM
= 108,
1024 TEXTEMOTE_COLD
= 109,
1025 TEXTEMOTE_COMFORT
= 110,
1026 TEXTEMOTE_CUDDLE
= 111,
1027 TEXTEMOTE_DUCK
= 112,
1028 TEXTEMOTE_INSULT
= 113,
1029 TEXTEMOTE_INTRODUCE
= 114,
1031 TEXTEMOTE_LICK
= 116,
1032 TEXTEMOTE_LISTEN
= 117,
1033 TEXTEMOTE_LOST
= 118,
1034 TEXTEMOTE_MOCK
= 119,
1035 TEXTEMOTE_PONDER
= 120,
1036 TEXTEMOTE_POUNCE
= 121,
1037 TEXTEMOTE_PRAISE
= 122,
1038 TEXTEMOTE_PURR
= 123,
1039 TEXTEMOTE_PUZZLE
= 124,
1040 TEXTEMOTE_RAISE
= 125,
1041 TEXTEMOTE_READY
= 126,
1042 TEXTEMOTE_SHIMMY
= 127,
1043 TEXTEMOTE_SHIVER
= 128,
1044 TEXTEMOTE_SHOO
= 129,
1045 TEXTEMOTE_SLAP
= 130,
1046 TEXTEMOTE_SMIRK
= 131,
1047 TEXTEMOTE_SNIFF
= 132,
1048 TEXTEMOTE_SNUB
= 133,
1049 TEXTEMOTE_SOOTHE
= 134,
1050 TEXTEMOTE_STINK
= 135,
1051 TEXTEMOTE_TAUNT
= 136,
1052 TEXTEMOTE_TEASE
= 137,
1053 TEXTEMOTE_THIRSTY
= 138,
1054 TEXTEMOTE_VETO
= 139,
1055 TEXTEMOTE_SNICKER
= 140,
1056 TEXTEMOTE_STAND
= 141,
1057 TEXTEMOTE_TICKLE
= 142,
1058 TEXTEMOTE_VIOLIN
= 143,
1059 TEXTEMOTE_SMILE
= 163,
1060 TEXTEMOTE_RASP
= 183,
1061 TEXTEMOTE_PITY
= 203,
1062 TEXTEMOTE_GROWL
= 204,
1063 TEXTEMOTE_BARK
= 205,
1064 TEXTEMOTE_SCARED
= 223,
1065 TEXTEMOTE_FLOP
= 224,
1066 TEXTEMOTE_LOVE
= 225,
1067 TEXTEMOTE_MOO
= 226,
1068 TEXTEMOTE_OPENFIRE
= 327,
1069 TEXTEMOTE_FLIRT
= 328,
1070 TEXTEMOTE_JOKE
= 329,
1071 TEXTEMOTE_COMMEND
= 243,
1072 TEXTEMOTE_WINK
= 363,
1073 TEXTEMOTE_PAT
= 364,
1074 TEXTEMOTE_SERIOUS
= 365,
1075 TEXTEMOTE_MOUNTSPECIAL
= 366,
1076 TEXTEMOTE_GOODLUCK
= 367,
1077 TEXTEMOTE_BLAME
= 368,
1078 TEXTEMOTE_BLANK
= 369,
1079 TEXTEMOTE_BRANDISH
= 370,
1080 TEXTEMOTE_BREATH
= 371,
1081 TEXTEMOTE_DISAGREE
= 372,
1082 TEXTEMOTE_DOUBT
= 373,
1083 TEXTEMOTE_EMBARRASS
= 374,
1084 TEXTEMOTE_ENCOURAGE
= 375,
1085 TEXTEMOTE_ENEMY
= 376,
1086 TEXTEMOTE_EYEBROW
= 377,
1087 TEXTEMOTE_TOAST
= 378
1092 EMOTE_ONESHOT_NONE
= 0,
1093 EMOTE_ONESHOT_TALK
= 1,
1094 EMOTE_ONESHOT_BOW
= 2,
1095 EMOTE_ONESHOT_WAVE
= 3,
1096 EMOTE_ONESHOT_CHEER
= 4,
1097 EMOTE_ONESHOT_EXCLAMATION
= 5,
1098 EMOTE_ONESHOT_QUESTION
= 6,
1099 EMOTE_ONESHOT_EAT
= 7,
1100 EMOTE_STATE_DANCE
= 10,
1101 EMOTE_ONESHOT_LAUGH
= 11,
1102 EMOTE_STATE_SLEEP
= 12,
1103 EMOTE_STATE_SIT
= 13,
1104 EMOTE_ONESHOT_RUDE
= 14,
1105 EMOTE_ONESHOT_ROAR
= 15,
1106 EMOTE_ONESHOT_KNEEL
= 16,
1107 EMOTE_ONESHOT_KISS
= 17,
1108 EMOTE_ONESHOT_CRY
= 18,
1109 EMOTE_ONESHOT_CHICKEN
= 19,
1110 EMOTE_ONESHOT_BEG
= 20,
1111 EMOTE_ONESHOT_APPLAUD
= 21,
1112 EMOTE_ONESHOT_SHOUT
= 22,
1113 EMOTE_ONESHOT_FLEX
= 23,
1114 EMOTE_ONESHOT_SHY
= 24,
1115 EMOTE_ONESHOT_POINT
= 25,
1116 EMOTE_STATE_STAND
= 26,
1117 EMOTE_STATE_READYUNARMED
= 27,
1118 EMOTE_STATE_WORK
= 28,
1119 EMOTE_STATE_POINT
= 29,
1120 EMOTE_STATE_NONE
= 30,
1121 EMOTE_ONESHOT_WOUND
= 33,
1122 EMOTE_ONESHOT_WOUNDCRITICAL
= 34,
1123 EMOTE_ONESHOT_ATTACKUNARMED
= 35,
1124 EMOTE_ONESHOT_ATTACK1H
= 36,
1125 EMOTE_ONESHOT_ATTACK2HTIGHT
= 37,
1126 EMOTE_ONESHOT_ATTACK2HLOOSE
= 38,
1127 EMOTE_ONESHOT_PARRYUNARMED
= 39,
1128 EMOTE_ONESHOT_PARRYSHIELD
= 43,
1129 EMOTE_ONESHOT_READYUNARMED
= 44,
1130 EMOTE_ONESHOT_READY1H
= 45,
1131 EMOTE_ONESHOT_READYBOW
= 48,
1132 EMOTE_ONESHOT_SPELLPRECAST
= 50,
1133 EMOTE_ONESHOT_SPELLCAST
= 51,
1134 EMOTE_ONESHOT_BATTLEROAR
= 53,
1135 EMOTE_ONESHOT_SPECIALATTACK1H
= 54,
1136 EMOTE_ONESHOT_KICK
= 60,
1137 EMOTE_ONESHOT_ATTACKTHROWN
= 61,
1138 EMOTE_STATE_STUN
= 64,
1139 EMOTE_STATE_DEAD
= 65,
1140 EMOTE_ONESHOT_SALUTE
= 66,
1141 EMOTE_STATE_KNEEL
= 68,
1142 EMOTE_STATE_USESTANDING
= 69,
1143 EMOTE_ONESHOT_WAVE_NOSHEATHE
= 70,
1144 EMOTE_ONESHOT_CHEER_NOSHEATHE
= 71,
1145 EMOTE_ONESHOT_EAT_NOSHEATHE
= 92,
1146 EMOTE_STATE_STUN_NOSHEATHE
= 93,
1147 EMOTE_ONESHOT_DANCE
= 94,
1148 EMOTE_ONESHOT_SALUTE_NOSHEATH
= 113,
1149 EMOTE_STATE_USESTANDING_NOSHEATHE
= 133,
1150 EMOTE_ONESHOT_LAUGH_NOSHEATHE
= 153,
1151 EMOTE_STATE_WORK_NOSHEATHE
= 173,
1152 EMOTE_STATE_SPELLPRECAST
= 193,
1153 EMOTE_ONESHOT_READYRIFLE
= 213,
1154 EMOTE_STATE_READYRIFLE
= 214,
1155 EMOTE_STATE_WORK_NOSHEATHE_MINING
= 233,
1156 EMOTE_STATE_WORK_NOSHEATHE_CHOPWOOD
= 234,
1157 EMOTE_zzOLDONESHOT_LIFTOFF
= 253,
1158 EMOTE_ONESHOT_LIFTOFF
= 254,
1159 EMOTE_ONESHOT_YES
= 273,
1160 EMOTE_ONESHOT_NO
= 274,
1161 EMOTE_ONESHOT_TRAIN
= 275,
1162 EMOTE_ONESHOT_LAND
= 293,
1163 EMOTE_STATE_AT_EASE
= 313,
1164 EMOTE_STATE_READY1H
= 333,
1165 EMOTE_STATE_SPELLKNEELSTART
= 353,
1166 EMOTE_STATE_SUBMERGED
= 373,
1167 EMOTE_ONESHOT_SUBMERGE
= 374,
1168 EMOTE_STATE_READY2H
= 375,
1169 EMOTE_STATE_READYBOW
= 376,
1170 EMOTE_ONESHOT_MOUNTSPECIAL
= 377,
1171 EMOTE_STATE_TALK
= 378,
1172 EMOTE_STATE_FISHING
= 379,
1173 EMOTE_ONESHOT_FISHING
= 380,
1174 EMOTE_ONESHOT_LOOT
= 381,
1175 EMOTE_STATE_WHIRLWIND
= 382,
1176 EMOTE_STATE_DROWNED
= 383,
1177 EMOTE_STATE_HOLD_BOW
= 384,
1178 EMOTE_STATE_HOLD_RIFLE
= 385,
1179 EMOTE_STATE_HOLD_THROWN
= 386,
1180 EMOTE_ONESHOT_DROWN
= 387,
1181 EMOTE_ONESHOT_STOMP
= 388,
1182 EMOTE_ONESHOT_ATTACKOFF
= 389,
1183 EMOTE_ONESHOT_ATTACKOFFPIERCE
= 390,
1184 EMOTE_STATE_ROAR
= 391,
1185 EMOTE_STATE_LAUGH
= 392,
1186 EMOTE_ONESHOT_CREATURE_SPECIAL
= 393,
1187 EMOTE_ONESHOT_JUMPLANDRUN
= 394,
1188 EMOTE_ONESHOT_JUMPEND
= 395,
1189 EMOTE_ONESHOT_TALK_NOSHEATHE
= 396,
1190 EMOTE_ONESHOT_POINT_NOSHEATHE
= 397,
1191 EMOTE_STATE_CANNIBALIZE
= 398,
1192 EMOTE_ONESHOT_JUMPSTART
= 399,
1193 EMOTE_STATE_DANCESPECIAL
= 400,
1194 EMOTE_ONESHOT_DANCESPECIAL
= 401,
1195 EMOTE_ONESHOT_CUSTOMSPELL01
= 402,
1196 EMOTE_ONESHOT_CUSTOMSPELL02
= 403,
1197 EMOTE_ONESHOT_CUSTOMSPELL03
= 404,
1198 EMOTE_ONESHOT_CUSTOMSPELL04
= 405,
1199 EMOTE_ONESHOT_CUSTOMSPELL05
= 406,
1200 EMOTE_ONESHOT_CUSTOMSPELL06
= 407,
1201 EMOTE_ONESHOT_CUSTOMSPELL07
= 408,
1202 EMOTE_ONESHOT_CUSTOMSPELL08
= 409,
1203 EMOTE_ONESHOT_CUSTOMSPELL09
= 410,
1204 EMOTE_ONESHOT_CUSTOMSPELL10
= 411,
1205 EMOTE_STATE_EXCLAIM
= 412,
1206 EMOTE_STATE_SIT_CHAIR_MED
= 415,
1207 EMOTE_STATE_SPELLEFFECT_HOLD
= 422
1220 ANIM_STANDWOUND
= 0x8,
1221 ANIM_COMBATWOUND
= 0x9,
1222 ANIM_COMBATCRITICAL
= 0xA,
1223 ANIM_SHUFFLE_LEFT
= 0xB,
1224 ANIM_SHUFFLE_RIGHT
= 0xC,
1225 ANIM_WALK_BACKWARDS
= 0xD,
1227 ANIM_HANDS_CLOSED
= 0xF,
1228 ANIM_ATTACKUNARMED
= 0x10,
1229 ANIM_ATTACK1H
= 0x11,
1230 ANIM_ATTACK2HTIGHT
= 0x12,
1231 ANIM_ATTACK2HLOOSE
= 0x13,
1232 ANIM_PARRYUNARMED
= 0x14,
1233 ANIM_PARRY1H
= 0x15,
1234 ANIM_PARRY2HTIGHT
= 0x16,
1235 ANIM_PARRY2HLOOSE
= 0x17,
1236 ANIM_PARRYSHIELD
= 0x18,
1237 ANIM_READYUNARMED
= 0x19,
1238 ANIM_READY1H
= 0x1A,
1239 ANIM_READY2HTIGHT
= 0x1B,
1240 ANIM_READY2HLOOSE
= 0x1C,
1241 ANIM_READYBOW
= 0x1D,
1243 ANIM_SPELLPRECAST
= 0x1F,
1244 ANIM_SPELLCAST
= 0x20,
1245 ANIM_SPELLCASTAREA
= 0x21,
1246 ANIM_NPCWELCOME
= 0x22,
1247 ANIM_NPCGOODBYE
= 0x23,
1249 ANIM_JUMPSTART
= 0x25,
1251 ANIM_JUMPEND
= 0x27,
1253 ANIM_SWIMIDLE
= 0x29,
1255 ANIM_SWIM_LEFT
= 0x2B,
1256 ANIM_SWIM_RIGHT
= 0x2C,
1257 ANIM_SWIM_BACKWARDS
= 0x2D,
1258 ANIM_ATTACKBOW
= 0x2E,
1259 ANIM_FIREBOW
= 0x2F,
1260 ANIM_READYRIFLE
= 0x30,
1261 ANIM_ATTACKRIFLE
= 0x31,
1263 ANIM_SPELL_PRECAST_DIRECTED
= 0x33,
1264 ANIM_SPELL_PRECAST_OMNI
= 0x34,
1265 ANIM_SPELL_CAST_DIRECTED
= 0x35,
1266 ANIM_SPELL_CAST_OMNI
= 0x36,
1267 ANIM_SPELL_BATTLEROAR
= 0x37,
1268 ANIM_SPELL_READYABILITY
= 0x38,
1269 ANIM_SPELL_SPECIAL1H
= 0x39,
1270 ANIM_SPELL_SPECIAL2H
= 0x3A,
1271 ANIM_SPELL_SHIELDBASH
= 0x3B,
1272 ANIM_EMOTE_TALK
= 0x3C,
1273 ANIM_EMOTE_EAT
= 0x3D,
1274 ANIM_EMOTE_WORK
= 0x3E,
1275 ANIM_EMOTE_USE_STANDING
= 0x3F,
1276 ANIM_EMOTE_EXCLAMATION
= 0x40,
1277 ANIM_EMOTE_QUESTION
= 0x41,
1278 ANIM_EMOTE_BOW
= 0x42,
1279 ANIM_EMOTE_WAVE
= 0x43,
1280 ANIM_EMOTE_CHEER
= 0x44,
1281 ANIM_EMOTE_DANCE
= 0x45,
1282 ANIM_EMOTE_LAUGH
= 0x46,
1283 ANIM_EMOTE_SLEEP
= 0x47,
1284 ANIM_EMOTE_SIT_GROUND
= 0x48,
1285 ANIM_EMOTE_RUDE
= 0x49,
1286 ANIM_EMOTE_ROAR
= 0x4A,
1287 ANIM_EMOTE_KNEEL
= 0x4B,
1288 ANIM_EMOTE_KISS
= 0x4C,
1289 ANIM_EMOTE_CRY
= 0x4D,
1290 ANIM_EMOTE_CHICKEN
= 0x4E,
1291 ANIM_EMOTE_BEG
= 0x4F,
1292 ANIM_EMOTE_APPLAUD
= 0x50,
1293 ANIM_EMOTE_SHOUT
= 0x51,
1294 ANIM_EMOTE_FLEX
= 0x52,
1295 ANIM_EMOTE_SHY
= 0x53,
1296 ANIM_EMOTE_POINT
= 0x54,
1297 ANIM_ATTACK1HPIERCE
= 0x55,
1298 ANIM_ATTACK2HLOOSEPIERCE
= 0x56,
1299 ANIM_ATTACKOFF
= 0x57,
1300 ANIM_ATTACKOFFPIERCE
= 0x58,
1301 ANIM_SHEATHE
= 0x59,
1302 ANIM_HIPSHEATHE
= 0x5A,
1304 ANIM_RUN_LEANRIGHT
= 0x5C,
1305 ANIM_RUN_LEANLEFT
= 0x5D,
1306 ANIM_MOUNT_SPECIAL
= 0x5E,
1308 ANIM_SITDOWN
= 0x60,
1309 ANIM_SITTING
= 0x61,
1311 ANIM_SLEEPDOWN
= 0x63,
1312 ANIM_SLEEPING
= 0x64,
1313 ANIM_SLEEPUP
= 0x65,
1314 ANIM_SITCHAIRLOW
= 0x66,
1315 ANIM_SITCHAIRMEDIUM
= 0x67,
1316 ANIM_SITCHAIRHIGH
= 0x68,
1317 ANIM_LOADBOW
= 0x69,
1318 ANIM_LOADRIFLE
= 0x6A,
1319 ANIM_ATTACKTHROWN
= 0x6B,
1320 ANIM_READYTHROWN
= 0x6C,
1321 ANIM_HOLDBOW
= 0x6D,
1322 ANIM_HOLDRIFLE
= 0x6E,
1323 ANIM_HOLDTHROWN
= 0x6F,
1324 ANIM_LOADTHROWN
= 0x70,
1325 ANIM_EMOTE_SALUTE
= 0x71,
1326 ANIM_KNEELDOWN
= 0x72,
1327 ANIM_KNEELING
= 0x73,
1328 ANIM_KNEELUP
= 0x74,
1329 ANIM_ATTACKUNARMEDOFF
= 0x75,
1330 ANIM_SPECIALUNARMED
= 0x76,
1331 ANIM_STEALTHWALK
= 0x77,
1332 ANIM_STEALTHSTAND
= 0x78,
1333 ANIM_KNOCKDOWN
= 0x79,
1335 ANIM_USESTANDINGLOOP
= 0x7B,
1336 ANIM_CHANNELCASTDIRECTED
= 0x7C,
1337 ANIM_CHANNELCASTOMNI
= 0x7D,
1338 ANIM_WHIRLWIND
= 0x7E,
1340 ANIM_USESTANDINGSTART
= 0x80,
1341 ANIM_USESTANDINGEND
= 0x81,
1344 ANIM_DROWNED
= 0x84,
1345 ANIM_FISHINGCAST
= 0x85,
1346 ANIM_FISHINGLOOP
= 0x86,
1348 ANIM_EMOTE_WORK_NO_SHEATHE
= 0x88,
1349 ANIM_EMOTE_STUN_NO_SHEATHE
= 0x89,
1350 ANIM_EMOTE_USE_STANDING_NO_SHEATHE
= 0x8A,
1351 ANIM_SPELL_SLEEP_DOWN
= 0x8B,
1352 ANIM_SPELL_KNEEL_START
= 0x8C,
1353 ANIM_SPELL_KNEEL_LOOP
= 0x8D,
1354 ANIM_SPELL_KNEEL_END
= 0x8E,
1356 ANIM_IN_FIGHT
= 0x90,
1358 ANIM_GAMEOBJ_SPAWN
= 145,
1359 ANIM_GAMEOBJ_CLOSE
= 146,
1360 ANIM_GAMEOBJ_CLOSED
= 147,
1361 ANIM_GAMEOBJ_OPEN
= 148,
1362 ANIM_GAMEOBJ_OPENED
= 149,
1363 ANIM_GAMEOBJ_DESTROY
= 150,
1364 ANIM_GAMEOBJ_DESTROYED
= 151,
1365 ANIM_GAMEOBJ_REBUILD
= 152,
1366 ANIM_GAMEOBJ_CUSTOM0
= 153,
1367 ANIM_GAMEOBJ_CUSTOM1
= 154,
1368 ANIM_GAMEOBJ_CUSTOM2
= 155,
1369 ANIM_GAMEOBJ_CUSTOM3
= 156,
1370 ANIM_GAMEOBJ_DESPAWN
= 157,
1374 ANIM_BOWRELEASE
= 161,
1375 ANIM_SHIPSTART
= 162,
1376 ANIM_SHIPMOVEING
= 163,
1377 ANIM_SHIPSTOP
= 164,
1378 ANIM_GROUPARROW
= 165,
1380 ANIM_CORPSEARROW
= 167,
1381 ANIM_GUIDEARROW
= 168,
1383 ANIM_DRUIDCATPOUNCE
= 170,
1384 ANIM_DRUIDCATRIP
= 171,
1385 ANIM_DRUIDCATRAKE
= 172,
1386 ANIM_DRUIDCATRAVAGE
= 173,
1387 ANIM_DRUIDCATCLAW
= 174,
1388 ANIM_DRUIDCATCOWER
= 175,
1389 ANIM_DRUIDBEARSWIPE
= 176,
1390 ANIM_DRUIDBEARBITE
= 177,
1391 ANIM_DRUIDBEARMAUL
= 178,
1392 ANIM_DRUIDBEARBASH
= 179,
1393 ANIM_DRAGONTAIL
= 180,
1394 ANIM_DRAGONSTOMP
= 181,
1395 ANIM_DRAGONSPIT
= 182,
1396 ANIM_DRAGONSPITHOVER
= 183,
1397 ANIM_DRAGONSPITFLY
= 184,
1398 ANIM_EMOTEYES
= 185,
1400 ANIM_JUMPLANDRUN
= 187,
1401 ANIM_LOOTHOLD
= 188,
1403 ANIM_STANDHIGH
= 190,
1407 ANIM_SUCCUBUSENTICE
= 194,
1408 ANIM_EMOTETRAIN
= 195,
1409 ANIM_EMOTEDEAD
= 196,
1410 ANIM_EMOTEDANCEONCE
= 197,
1412 ANIM_EMOTEEATNOSHEATHE
= 199,
1414 ANIM_SUBMERGE
= 201,
1415 ANIM_SUBMERGED
= 202,
1416 ANIM_CANNIBALIZE
= 203,
1417 ANIM_ARROWBIRTH
= 204,
1418 ANIM_GROURARROWBIRTH
= 205,
1419 ANIM_CORPSEARROWBIRTH
= 206,
1420 ANIM_GUIDEARROWBIRTH
= 207,
1421 ANIM_EMOTETALKNOSHEATHE
= 208,
1422 ANIM_EMOTEPOINTNOSHEATHE
= 209,
1423 ANIM_EMOTESALUTENOSHEATHE
= 210,
1424 ANIM_EMOTEDANCESPECIAL
= 211,
1425 ANIM_MUTILATE
= 212,
1426 ANIM_CUSTOMSPELL01
= 213,
1427 ANIM_CUSTOMSPELL02
= 214,
1428 ANIM_CUSTOMSPELL03
= 215,
1429 ANIM_CUSTOMSPELL04
= 216,
1430 ANIM_CUSTOMSPELL05
= 217,
1431 ANIM_CUSTOMSPELL06
= 218,
1432 ANIM_CUSTOMSPELL07
= 219,
1433 ANIM_CUSTOMSPELL08
= 220,
1434 ANIM_CUSTOMSPELL09
= 221,
1435 ANIM_CUSTOMSPELL10
= 222,
1436 ANIM_StealthRun
= 223
1448 LOCKTYPE_PICKLOCK
= 1,
1449 LOCKTYPE_HERBALISM
= 2,
1450 LOCKTYPE_MINING
= 3,
1451 LOCKTYPE_DISARM_TRAP
= 4,
1453 LOCKTYPE_TREASURE
= 6,
1454 LOCKTYPE_CALCIFIED_ELVEN_GEMS
= 7,
1456 LOCKTYPE_ARM_TRAP
= 9,
1457 LOCKTYPE_QUICK_OPEN
= 10,
1458 LOCKTYPE_QUICK_CLOSE
= 11,
1459 LOCKTYPE_OPEN_TINKERING
= 12,
1460 LOCKTYPE_OPEN_KNEELING
= 13,
1461 LOCKTYPE_OPEN_ATTACKING
= 14,
1462 LOCKTYPE_GAHZRIDIAN
= 15,
1463 LOCKTYPE_BLASTING
= 16,
1464 LOCKTYPE_SLOW_OPEN
= 17,
1465 LOCKTYPE_SLOW_CLOSE
= 18,
1466 LOCKTYPE_FISHING
= 19
1469 enum TrainerType
// this is important type for npcs!
1471 TRAINER_TYPE_CLASS
= 0,
1472 TRAINER_TYPE_MOUNTS
= 1, // on blizz it's 2
1473 TRAINER_TYPE_TRADESKILLS
= 2,
1474 TRAINER_TYPE_PETS
= 3
1477 #define MAX_TRAINER_TYPE 4
1481 CREATURE_TYPE_BEAST
= 1,
1482 CREATURE_TYPE_DRAGONKIN
= 2,
1483 CREATURE_TYPE_DEMON
= 3,
1484 CREATURE_TYPE_ELEMENTAL
= 4,
1485 CREATURE_TYPE_GIANT
= 5,
1486 CREATURE_TYPE_UNDEAD
= 6,
1487 CREATURE_TYPE_HUMANOID
= 7,
1488 CREATURE_TYPE_CRITTER
= 8,
1489 CREATURE_TYPE_MECHANICAL
= 9,
1490 CREATURE_TYPE_NOT_SPECIFIED
= 10,
1491 CREATURE_TYPE_TOTEM
= 11,
1492 CREATURE_TYPE_NON_COMBAT_PET
= 12,
1493 CREATURE_TYPE_GAS_CLOUD
= 13
1496 uint32
const CREATURE_TYPEMASK_HUMANOID_OR_UNDEAD
= (1 << (CREATURE_TYPE_HUMANOID
-1)) | (1 << (CREATURE_TYPE_UNDEAD
-1));
1500 CREATURE_FAMILY_WOLF
= 1,
1501 CREATURE_FAMILY_CAT
= 2,
1502 CREATURE_FAMILY_SPIDER
= 3,
1503 CREATURE_FAMILY_BEAR
= 4,
1504 CREATURE_FAMILY_BOAR
= 5,
1505 CREATURE_FAMILY_CROCOLISK
= 6,
1506 CREATURE_FAMILY_CARRION_BIRD
= 7,
1507 CREATURE_FAMILY_CRAB
= 8,
1508 CREATURE_FAMILY_GORILLA
= 9,
1509 CREATURE_FAMILY_RAPTOR
= 11,
1510 CREATURE_FAMILY_TALLSTRIDER
= 12,
1511 CREATURE_FAMILY_FELHUNTER
= 15,
1512 CREATURE_FAMILY_VOIDWALKER
= 16,
1513 CREATURE_FAMILY_SUCCUBUS
= 17,
1514 CREATURE_FAMILY_DOOMGUARD
= 19,
1515 CREATURE_FAMILY_SCORPID
= 20,
1516 CREATURE_FAMILY_TURTLE
= 21,
1517 CREATURE_FAMILY_IMP
= 23,
1518 CREATURE_FAMILY_BAT
= 24,
1519 CREATURE_FAMILY_HYENA
= 25,
1520 CREATURE_FAMILY_OWL
= 26,
1521 CREATURE_FAMILY_WIND_SERPENT
= 27,
1522 CREATURE_FAMILY_REMOTE_CONTROL
= 28,
1523 CREATURE_FAMILY_FELGUARD
= 29,
1524 CREATURE_FAMILY_DRAGONHAWK
= 30,
1525 CREATURE_FAMILY_RAVAGER
= 31,
1526 CREATURE_FAMILY_WARP_STALKER
= 32,
1527 CREATURE_FAMILY_SPOREBAT
= 33,
1528 CREATURE_FAMILY_NETHER_RAY
= 34,
1529 CREATURE_FAMILY_SERPENT
= 35,
1530 CREATURE_FAMILY_SEA_LION
= 36
1533 enum CreatureTypeFlags
1535 CREATURE_TYPEFLAGS_TAMEABLE
= 0x0001,
1536 CREATURE_TYPEFLAGS_HERBLOOT
= 0x0100,
1537 CREATURE_TYPEFLAGS_MININGLOOT
= 0x0200
1540 enum CreatureEliteType
1542 CREATURE_ELITE_NORMAL
= 0,
1543 CREATURE_ELITE_ELITE
= 1,
1544 CREATURE_ELITE_RAREELITE
= 2,
1545 CREATURE_ELITE_WORLDBOSS
= 3,
1546 CREATURE_ELITE_RARE
= 4,
1547 CREATURE_UNKNOWN
= 5 // found in 2.2.3 for 2 mobs
1550 // values based at QuestInfo.dbc
1553 QUEST_TYPE_ELITE
= 1,
1554 QUEST_TYPE_LIFE
= 21,
1555 QUEST_TYPE_PVP
= 41,
1556 QUEST_TYPE_RAID
= 62,
1557 QUEST_TYPE_DUNGEON
= 81,
1558 QUEST_TYPE_WORLD_EVENT
= 82,
1559 QUEST_TYPE_LEGENDARY
= 83,
1560 QUEST_TYPE_ESCORT
= 84,
1561 QUEST_TYPE_HEROIC
= 85,
1564 // values based at QuestSort.dbc
1567 QUEST_SORT_EPIC
= 1,
1568 QUEST_SORT_WAILING_CAVERNS_OLD
= 21,
1569 QUEST_SORT_SEASONAL
= 22,
1570 QUEST_SORT_UNDERCITY_OLD
= 23,
1571 QUEST_SORT_HERBALISM
= 24,
1572 QUEST_SORT_SCARLET_MONASTERY_OLD
= 25,
1573 QUEST_SORT_ULDAMN_OLD
= 41,
1574 QUEST_SORT_WARLOCK
= 61,
1575 QUEST_SORT_WARRIOR
= 81,
1576 QUEST_SORT_SHAMAN
= 82,
1577 QUEST_SORT_FISHING
= 101,
1578 QUEST_SORT_BLACKSMITHING
= 121,
1579 QUEST_SORT_PALADIN
= 141,
1580 QUEST_SORT_MAGE
= 161,
1581 QUEST_SORT_ROGUE
= 162,
1582 QUEST_SORT_ALCHEMY
= 181,
1583 QUEST_SORT_LEATHERWORKING
= 182,
1584 QUEST_SORT_ENGINERING
= 201,
1585 QUEST_SORT_TREASURE_MAP
= 221,
1586 QUEST_SORT_SUNKEN_TEMPLE_OLD
= 241,
1587 QUEST_SORT_HUNTER
= 261,
1588 QUEST_SORT_PRIEST
= 262,
1589 QUEST_SORT_DRUID
= 263,
1590 QUEST_SORT_TAILORING
= 264,
1591 QUEST_SORT_SPECIAL
= 284,
1592 QUEST_SORT_COOKING
= 304,
1593 QUEST_SORT_FIRST_AID
= 324,
1594 QUEST_SORT_LEGENDARY
= 344,
1595 QUEST_SORT_DARKMOON_FAIRE
= 364,
1596 QUEST_SORT_AHN_QIRAJ_WAR
= 365,
1597 QUEST_SORT_LUNAR_FESTIVAL
= 366,
1598 QUEST_SORT_REPUTATION
= 367,
1599 QUEST_SORT_INVASION
= 368,
1600 QUEST_SORT_MIDSUMMER
= 369,
1601 QUEST_SORT_BREWFEST
= 370
1604 inline uint8
ClassByQuestSort(int32 QuestSort
)
1608 case QUEST_SORT_WARLOCK
: return CLASS_WARLOCK
;
1609 case QUEST_SORT_WARRIOR
: return CLASS_WARRIOR
;
1610 case QUEST_SORT_SHAMAN
: return CLASS_SHAMAN
;
1611 case QUEST_SORT_PALADIN
: return CLASS_PALADIN
;
1612 case QUEST_SORT_MAGE
: return CLASS_MAGE
;
1613 case QUEST_SORT_ROGUE
: return CLASS_ROGUE
;
1614 case QUEST_SORT_HUNTER
: return CLASS_HUNTER
;
1615 case QUEST_SORT_PRIEST
: return CLASS_PRIEST
;
1616 case QUEST_SORT_DRUID
: return CLASS_DRUID
;
1627 SKILL_SUBTLETY
= 39,
1633 SKILL_BEAST_MASTERY
= 50,
1634 SKILL_SURVIVAL
= 51,
1637 SKILL_2H_SWORDS
= 55,
1640 SKILL_LANG_COMMON
= 98,
1641 SKILL_RACIAL_DWARVEN
= 101,
1642 SKILL_LANG_ORCISH
= 109,
1643 SKILL_LANG_DWARVEN
= 111,
1644 SKILL_LANG_DARNASSIAN
= 113,
1645 SKILL_LANG_TAURAHE
= 115,
1646 SKILL_DUAL_WIELD
= 118,
1647 SKILL_RACIAL_TAUREN
= 124,
1648 SKILL_ORC_RACIAL
= 125,
1649 SKILL_RACIAL_NIGHT_ELF
= 126,
1650 SKILL_FIRST_AID
= 129,
1651 SKILL_FERAL_COMBAT
= 134,
1653 SKILL_LANG_THALASSIAN
= 137,
1654 SKILL_LANG_DRACONIC
= 138,
1655 SKILL_LANG_DEMON_TONGUE
= 139,
1656 SKILL_LANG_TITAN
= 140,
1657 SKILL_LANG_OLD_TONGUE
= 141,
1658 SKILL_SURVIVAL2
= 142,
1659 SKILL_RIDING_HORSE
= 148,
1660 SKILL_RIDING_WOLF
= 149,
1661 SKILL_RIDING_RAM
= 152,
1662 SKILL_RIDING_TIGER
= 150,
1663 SKILL_SWIMING
= 155,
1664 SKILL_2H_MACES
= 160,
1665 SKILL_UNARMED
= 162,
1666 SKILL_MARKSMANSHIP
= 163,
1667 SKILL_BLACKSMITHING
= 164,
1668 SKILL_LEATHERWORKING
= 165,
1669 SKILL_ALCHEMY
= 171,
1670 SKILL_2H_AXES
= 172,
1671 SKILL_DAGGERS
= 173,
1673 SKILL_HERBALISM
= 182,
1674 SKILL_GENERIC_DND
= 183,
1675 SKILL_RETRIBUTION
= 184,
1676 SKILL_COOKING
= 185,
1678 SKILL_PET_IMP
= 188,
1679 SKILL_PET_FELHUNTER
= 189,
1680 SKILL_TAILORING
= 197,
1681 SKILL_ENGINERING
= 202,
1682 SKILL_PET_SPIDER
= 203,
1683 SKILL_PET_VOIDWALKER
= 204,
1684 SKILL_PET_SUCCUBUS
= 205,
1685 SKILL_PET_INFERNAL
= 206,
1686 SKILL_PET_DOOMGUARD
= 207,
1687 SKILL_PET_WOLF
= 208,
1688 SKILL_PET_CAT
= 209,
1689 SKILL_PET_BEAR
= 210,
1690 SKILL_PET_BOAR
= 211,
1691 SKILL_PET_CROCILISK
= 212,
1692 SKILL_PET_CARRION_BIRD
= 213,
1693 SKILL_PET_GORILLA
= 215,
1694 SKILL_PET_CRAB
= 214,
1695 SKILL_PET_RAPTOR
= 217,
1696 SKILL_PET_TALLSTRIDER
= 218,
1697 SKILL_RACIAL_UNDED
= 220,
1698 SKILL_WEAPON_TALENTS
= 222,
1699 SKILL_CROSSBOWS
= 226,
1702 SKILL_POLEARMS
= 229,
1703 SKILL_PET_SCORPID
= 236,
1705 SKILL_OPEN_LOCK
= 242,
1706 SKILL_PET_TURTLE
= 251,
1707 SKILL_ASSASSINATION
= 253,
1709 SKILL_PROTECTION
= 257,
1710 SKILL_BEAST_TRAINING
= 261,
1711 SKILL_PROTECTION2
= 267,
1712 SKILL_PET_TALENTS
= 270,
1713 SKILL_PLATE_MAIL
= 293,
1714 SKILL_LANG_GNOMISH
= 313,
1715 SKILL_LANG_TROLL
= 315,
1716 SKILL_ENCHANTING
= 333,
1717 SKILL_DEMONOLOGY
= 354,
1718 SKILL_AFFLICTION
= 355,
1719 SKILL_FISHING
= 356,
1720 SKILL_ENHANCEMENT
= 373,
1721 SKILL_RESTORATION
= 374,
1722 SKILL_ELEMENTAL_COMBAT
= 375,
1723 SKILL_SKINNING
= 393,
1725 SKILL_LEATHER
= 414,
1728 SKILL_FIST_WEAPONS
= 473,
1729 SKILL_RIDING_RAPTOR
= 533,
1730 SKILL_RIDING_MECHANOSTRIDER
= 553,
1731 SKILL_RIDING_UNDEAD_HORSE
= 554,
1732 SKILL_RESTORATION2
= 573,
1733 SKILL_BALANCE
= 574,
1734 SKILL_DESTRUCTION
= 593,
1736 SKILL_DISCIPLINE
= 613,
1737 SKILL_LOCKPICKING
= 633,
1738 SKILL_PET_BAT
= 653,
1739 SKILL_PET_HYENA
= 654,
1740 SKILL_PET_OWL
= 655,
1741 SKILL_PET_WIND_SERPENT
= 656,
1742 SKILL_LANG_GUTTERSPEAK
= 673,
1743 SKILL_RIDING_KODO
= 713,
1744 SKILL_RACIAL_TROLL
= 733,
1745 SKILL_RACIAL_GNOME
= 753,
1746 SKILL_RACIAL_HUMAN
= 754,
1747 SKILL_JEWELCRAFTING
= 755,
1748 SKILL_RACIAL_BLOODELF
= 756,
1749 SKILL_PET_EVENT_RC
= 758,
1750 SKILL_LANG_DRAENEI
= 759,
1751 SKILL_RACIAL_DRAENEI
= 760,
1752 SKILL_PET_FELGUARD
= 761,
1754 SKILL_PET_DRAGONHAWK
= 763,
1755 SKILL_PET_NETHER_RAY
= 764,
1756 SKILL_PET_SPOREBAT
= 765,
1757 SKILL_PET_WARP_STALKER
= 766,
1758 SKILL_PET_RAVAGER
= 767,
1759 SKILL_PET_SERPENT
= 768,
1760 SKILL_INTERNAL
= 769
1763 #define MAX_SKILL_TYPE 770
1765 inline uint32
SkillByQuestSort(int32 QuestSort
)
1769 case QUEST_SORT_HERBALISM
: return SKILL_HERBALISM
;
1770 case QUEST_SORT_FISHING
: return SKILL_FISHING
;
1771 case QUEST_SORT_BLACKSMITHING
: return SKILL_BLACKSMITHING
;
1772 case QUEST_SORT_ALCHEMY
: return SKILL_ALCHEMY
;
1773 case QUEST_SORT_LEATHERWORKING
: return SKILL_LEATHERWORKING
;
1774 case QUEST_SORT_ENGINERING
: return SKILL_ENGINERING
;
1775 case QUEST_SORT_TAILORING
: return SKILL_TAILORING
;
1776 case QUEST_SORT_COOKING
: return SKILL_COOKING
;
1777 case QUEST_SORT_FIRST_AID
: return SKILL_FIRST_AID
;
1784 SKILL_CATEGORY_ATTRIBUTES
= 5,
1785 SKILL_CATEGORY_WEAPON
= 6,
1786 SKILL_CATEGORY_CLASS
= 7,
1787 SKILL_CATEGORY_ARMOR
= 8,
1788 SKILL_CATEGORY_SECONDARY
= 9, // secondary professions
1789 SKILL_CATEGORY_LANGUAGES
= 10,
1790 SKILL_CATEGORY_PROFESSION
= 11, // primary professions
1791 SKILL_CATEGORY_NOT_DISPLAYED
= 12
1796 TC_SKINNING_SKIFE
= 1,
1804 TC_TRUESILVER_ROD
= 9,
1805 TC_ARCANITE_ROD
= 10,
1806 TC_MINING_PICK
= 11,
1807 TC_PHILOSOPHERS_STONE
= 12,
1808 TC_BLACKSMITH_HAMMER
= 13,
1809 TC_ARCLIGHT_SPANNER
= 14,
1810 TC_GYROMATIC_MA
= 15,
1811 TC_MASTER_TOTEM
= 21,
1812 TC_FEL_IRON_ROD
= 41,
1813 TC_ADAMANTITE_ROD
= 62,
1814 TC_ETERNIUM_ROD
= 63
1819 UNIT_DYNFLAG_LOOTABLE
= 0x0001,
1820 UNIT_DYNFLAG_TRACK_UNIT
= 0x0002,
1821 UNIT_DYNFLAG_OTHER_TAGGER
= 0x0004,
1822 UNIT_DYNFLAG_ROOTED
= 0x0008,
1823 UNIT_DYNFLAG_SPECIALINFO
= 0x0010,
1824 UNIT_DYNFLAG_DEAD
= 0x0020
1829 CORPSE_DYNFLAG_LOOTABLE
= 0x0001
1832 // Passive Spell codes explicit used in code
1833 #define SPELL_ID_GENERIC_LEARN 483
1834 #define SPELL_ID_PASSIVE_BATTLE_STANCE 2457
1835 #define SPELL_ID_PASSIVE_RESURRECTION_SICKNESS 15007
1836 #define SPELL_ID_WEAPON_SWITCH_COOLDOWN_1_5s 6119
1837 #define SPELL_ID_WEAPON_SWITCH_COOLDOWN_1_0s 6123
1841 WEATHER_TYPE_FINE
= 0,
1842 WEATHER_TYPE_RAIN
= 1,
1843 WEATHER_TYPE_SNOW
= 2,
1844 WEATHER_TYPE_STORM
= 3,
1845 WEATHER_TYPE_THUNDERS
= 86,
1846 WEATHER_TYPE_BLACKRAIN
= 90
1849 #define MAX_WEATHER_TYPE 4
1853 CHAT_MSG_ADDON
= 0xFFFFFFFF,
1854 CHAT_MSG_SYSTEM
= 0x00,
1855 CHAT_MSG_SAY
= 0x01,
1856 CHAT_MSG_PARTY
= 0x02,
1857 CHAT_MSG_RAID
= 0x03,
1858 CHAT_MSG_GUILD
= 0x04,
1859 CHAT_MSG_OFFICER
= 0x05,
1860 CHAT_MSG_YELL
= 0x06,
1861 CHAT_MSG_WHISPER
= 0x07,
1862 CHAT_MSG_WHISPER_INFORM
= 0x08,
1863 CHAT_MSG_REPLY
= 0x09,
1864 CHAT_MSG_EMOTE
= 0x0A,
1865 CHAT_MSG_TEXT_EMOTE
= 0x0B,
1866 CHAT_MSG_MONSTER_SAY
= 0x0C,
1867 CHAT_MSG_MONSTER_PARTY
= 0x0D,
1868 CHAT_MSG_MONSTER_YELL
= 0x0E,
1869 CHAT_MSG_MONSTER_WHISPER
= 0x0F,
1870 CHAT_MSG_MONSTER_EMOTE
= 0x10,
1871 CHAT_MSG_CHANNEL
= 0x11,
1872 CHAT_MSG_CHANNEL_JOIN
= 0x12,
1873 CHAT_MSG_CHANNEL_LEAVE
= 0x13,
1874 CHAT_MSG_CHANNEL_LIST
= 0x14,
1875 CHAT_MSG_CHANNEL_NOTICE
= 0x15,
1876 CHAT_MSG_CHANNEL_NOTICE_USER
= 0x16,
1877 CHAT_MSG_AFK
= 0x17,
1878 CHAT_MSG_DND
= 0x18,
1879 CHAT_MSG_IGNORED
= 0x19,
1880 CHAT_MSG_SKILL
= 0x1A,
1881 CHAT_MSG_LOOT
= 0x1B,
1882 CHAT_MSG_MONEY
= 0x1C,
1883 CHAT_MSG_OPENING
= 0x1D,
1884 CHAT_MSG_TRADESKILLS
= 0x1E,
1885 CHAT_MSG_PET_INFO
= 0x1F,
1886 CHAT_MSG_COMBAT_MISC_INFO
= 0x20,
1887 CHAT_MSG_COMBAT_XP_GAIN
= 0x21,
1888 CHAT_MSG_COMBAT_HONOR_GAIN
= 0x22,
1889 CHAT_MSG_COMBAT_FACTION_CHANGE
= 0x23,
1890 CHAT_MSG_BG_SYSTEM_NEUTRAL
= 0x24,
1891 CHAT_MSG_BG_SYSTEM_ALLIANCE
= 0x25,
1892 CHAT_MSG_BG_SYSTEM_HORDE
= 0x26,
1893 CHAT_MSG_RAID_LEADER
= 0x27,
1894 CHAT_MSG_RAID_WARNING
= 0x28,
1895 CHAT_MSG_RAID_BOSS_WHISPER
= 0x29,
1896 CHAT_MSG_RAID_BOSS_EMOTE
= 0x2A,
1897 CHAT_MSG_FILTERED
= 0x2B,
1898 CHAT_MSG_BATTLEGROUND
= 0x2C,
1899 CHAT_MSG_BATTLEGROUND_LEADER
= 0x2D,
1900 CHAT_MSG_RESTRICTED
= 0x2E,
1903 #define MAX_CHAT_MSG_TYPE 0x2F
1905 // Values from ItemPetFood (power of (value-1) used for compare with CreatureFamilyEntry.petDietMask
1910 PET_DIET_CHEESE
= 3,
1912 PET_DIET_FUNGAS
= 5,
1914 PET_DIET_RAW_MEAT
= 7,
1915 PET_DIET_RAW_FISH
= 8
1918 #define MAX_PET_DIET 9
1920 #define CHAIN_SPELL_JUMP_RADIUS 10
1922 // Max values for Guild & Guild Bank
1923 #define GUILD_BANK_MAX_TABS 6
1924 #define GUILD_BANK_MAX_SLOTS 98
1925 #define GUILD_BANK_MAX_LOGS 24
1926 #define GUILD_EVENTLOG_MAX_ENTRIES 100
1927 #define GUILD_MAX_RANKS 10
1931 AI_REACTION_UNK1
= 1,
1932 AI_REACTION_AGGRO
= 2,
1933 AI_REACTION_UNK3
= 3,
1934 AI_REACTION_UNK4
= 4
1937 // Diminishing Returns Types
1938 enum DiminishingReturnsType
1940 DRTYPE_NONE
= 0, // this spell is not diminished, but may have limited it's duration to 10s
1941 DRTYPE_PLAYER
= 1, // this spell is diminished only when applied on players
1942 DRTYPE_ALL
= 2 // this spell is diminished in every case
1945 // Diminishing Return Groups
1946 enum DiminishingGroup
1950 DIMINISHING_CONTROL_STUN
, // Player Controlled stuns
1951 DIMINISHING_TRIGGER_STUN
, // By aura proced stuns, usualy chance on hit talents
1953 DIMINISHING_CONTROL_ROOT
, // Immobilizing effects from casted spells
1954 DIMINISHING_TRIGGER_ROOT
, // Immobilizing effects from triggered spells like Frostbite
1955 DIMINISHING_FEAR
, // Non-warlock fears
1958 DIMINISHING_POLYMORPH
,
1960 DIMINISHING_KIDNEYSHOT
, // Kidney Shot is not diminished with Cheap Shot
1962 DIMINISHING_DEATHCOIL
, // Death Coil Diminish only with another Death Coil
1963 DIMINISHING_WARLOCK_FEAR
, // Also with Sedduction
1964 // Shared Class Specific
1965 DIMINISHING_BLIND_CYCLONE
, // From 2.3.0
1966 DIMINISHING_DISARM
, // From 2.3.0
1967 DIMINISHING_SILENCE
, // From 2.3.0
1968 DIMINISHING_FREEZE
, // Hunter's Freezing Trap
1969 DIMINISHING_KNOCKOUT
, // Also with Sap, all Knockout mechanics are here
1972 // Don't Diminish, but limit duration to 10s
1973 DIMINISHING_LIMITONLY
1976 enum DungeonDifficulties
1978 DIFFICULTY_NORMAL
= 0,
1979 DIFFICULTY_HEROIC
= 1,
1985 SUMMON_TYPE_CRITTER
= 41,
1986 SUMMON_TYPE_GUARDIAN
= 61,
1987 SUMMON_TYPE_TOTEM_SLOT1
= 63,
1988 SUMMON_TYPE_WILD
= 64,
1989 SUMMON_TYPE_POSESSED
= 65,
1990 SUMMON_TYPE_DEMON
= 66,
1991 SUMMON_TYPE_SUMMON
= 67,
1992 SUMMON_TYPE_TOTEM_SLOT2
= 81,
1993 SUMMON_TYPE_TOTEM_SLOT3
= 82,
1994 SUMMON_TYPE_TOTEM_SLOT4
= 83,
1995 SUMMON_TYPE_TOTEM
= 121,
1996 SUMMON_TYPE_UNKNOWN3
= 181,
1997 SUMMON_TYPE_UNKNOWN4
= 187,
1998 SUMMON_TYPE_UNKNOWN1
= 247,
1999 SUMMON_TYPE_CRITTER2
= 407,
2000 SUMMON_TYPE_CRITTER3
= 307,
2001 SUMMON_TYPE_UNKNOWN5
= 409,
2002 SUMMON_TYPE_UNKNOWN2
= 427,
2003 SUMMON_TYPE_POSESSED2
= 428
2008 RESPONSE_SUCCESS
= 0x00,
2009 RESPONSE_FAILURE
= 0x01,
2010 RESPONSE_CANCELLED
= 0x02,
2011 RESPONSE_DISCONNECTED
= 0x03,
2012 RESPONSE_FAILED_TO_CONNECT
= 0x04,
2013 RESPONSE_CONNECTED
= 0x05,
2014 RESPONSE_VERSION_MISMATCH
= 0x06,
2016 CSTATUS_CONNECTING
= 0x07,
2017 CSTATUS_NEGOTIATING_SECURITY
= 0x08,
2018 CSTATUS_NEGOTIATION_COMPLETE
= 0x09,
2019 CSTATUS_NEGOTIATION_FAILED
= 0x0A,
2020 CSTATUS_AUTHENTICATING
= 0x0B,
2025 AUTH_BAD_SERVER_PROOF
= 0x0F,
2026 AUTH_UNAVAILABLE
= 0x10,
2027 AUTH_SYSTEM_ERROR
= 0x11,
2028 AUTH_BILLING_ERROR
= 0x12,
2029 AUTH_BILLING_EXPIRED
= 0x13,
2030 AUTH_VERSION_MISMATCH
= 0x14,
2031 AUTH_UNKNOWN_ACCOUNT
= 0x15,
2032 AUTH_INCORRECT_PASSWORD
= 0x16,
2033 AUTH_SESSION_EXPIRED
= 0x17,
2034 AUTH_SERVER_SHUTTING_DOWN
= 0x18,
2035 AUTH_ALREADY_LOGGING_IN
= 0x19,
2036 AUTH_LOGIN_SERVER_NOT_FOUND
= 0x1A,
2037 AUTH_WAIT_QUEUE
= 0x1B,
2039 AUTH_ALREADY_ONLINE
= 0x1D,
2040 AUTH_NO_TIME
= 0x1E,
2041 AUTH_DB_BUSY
= 0x1F,
2042 AUTH_SUSPENDED
= 0x20,
2043 AUTH_PARENTAL_CONTROL
= 0x21,
2044 AUTH_LOCKED_ENFORCED
= 0x22,
2046 REALM_LIST_IN_PROGRESS
= 0x23,
2047 REALM_LIST_SUCCESS
= 0x24,
2048 REALM_LIST_FAILED
= 0x25,
2049 REALM_LIST_INVALID
= 0x26,
2050 REALM_LIST_REALM_NOT_FOUND
= 0x27,
2052 ACCOUNT_CREATE_IN_PROGRESS
= 0x28,
2053 ACCOUNT_CREATE_SUCCESS
= 0x29,
2054 ACCOUNT_CREATE_FAILED
= 0x2A,
2056 CHAR_LIST_RETRIEVING
= 0x2B,
2057 CHAR_LIST_RETRIEVED
= 0x2C,
2058 CHAR_LIST_FAILED
= 0x2D,
2060 CHAR_CREATE_IN_PROGRESS
= 0x2E,
2061 CHAR_CREATE_SUCCESS
= 0x2F,
2062 CHAR_CREATE_ERROR
= 0x30,
2063 CHAR_CREATE_FAILED
= 0x31,
2064 CHAR_CREATE_NAME_IN_USE
= 0x32,
2065 CHAR_CREATE_DISABLED
= 0x33,
2066 CHAR_CREATE_PVP_TEAMS_VIOLATION
= 0x34,
2067 CHAR_CREATE_SERVER_LIMIT
= 0x35,
2068 CHAR_CREATE_ACCOUNT_LIMIT
= 0x36,
2069 CHAR_CREATE_SERVER_QUEUE
= 0x37,
2070 CHAR_CREATE_ONLY_EXISTING
= 0x38,
2071 CHAR_CREATE_EXPANSION
= 0x39,
2073 CHAR_DELETE_IN_PROGRESS
= 0x3A,
2074 CHAR_DELETE_SUCCESS
= 0x3B,
2075 CHAR_DELETE_FAILED
= 0x3C,
2076 CHAR_DELETE_FAILED_LOCKED_FOR_TRANSFER
= 0x3D,
2077 CHAR_DELETE_FAILED_GUILD_LEADER
= 0x3E,
2078 CHAR_DELETE_FAILED_ARENA_CAPTAIN
= 0x3F,
2080 CHAR_LOGIN_IN_PROGRESS
= 0x40,
2081 CHAR_LOGIN_SUCCESS
= 0x41,
2082 CHAR_LOGIN_NO_WORLD
= 0x42,
2083 CHAR_LOGIN_DUPLICATE_CHARACTER
= 0x43,
2084 CHAR_LOGIN_NO_INSTANCES
= 0x44,
2085 CHAR_LOGIN_FAILED
= 0x45,
2086 CHAR_LOGIN_DISABLED
= 0x46,
2087 CHAR_LOGIN_NO_CHARACTER
= 0x47,
2088 CHAR_LOGIN_LOCKED_FOR_TRANSFER
= 0x48,
2089 CHAR_LOGIN_LOCKED_BY_BILLING
= 0x49,
2091 CHAR_NAME_SUCCESS
= 0x4A,
2092 CHAR_NAME_FAILURE
= 0x4B,
2093 CHAR_NAME_NO_NAME
= 0x4C,
2094 CHAR_NAME_TOO_SHORT
= 0x4D,
2095 CHAR_NAME_TOO_LONG
= 0x4E,
2096 CHAR_NAME_INVALID_CHARACTER
= 0x4F,
2097 CHAR_NAME_MIXED_LANGUAGES
= 0x50,
2098 CHAR_NAME_PROFANE
= 0x51,
2099 CHAR_NAME_RESERVED
= 0x52,
2100 CHAR_NAME_INVALID_APOSTROPHE
= 0x53,
2101 CHAR_NAME_MULTIPLE_APOSTROPHES
= 0x54,
2102 CHAR_NAME_THREE_CONSECUTIVE
= 0x55,
2103 CHAR_NAME_INVALID_SPACE
= 0x56,
2104 CHAR_NAME_CONSECUTIVE_SPACES
= 0x57,
2105 CHAR_NAME_RUSSIAN_CONSECUTIVE_SILENT_CHARACTERS
= 0x58,
2106 CHAR_NAME_RUSSIAN_SILENT_CHARACTER_AT_BEGINNING_OR_END
= 0x59,
2107 CHAR_NAME_DECLENSION_DOESNT_MATCH_BASE_NAME
= 0x5A,
2110 /// Ban function modes
2118 /// Ban function return codes