MISC: различия между версиями
Перейти к навигации
Перейти к поиску
User1 (обсуждение | вклад) (Новая страница: « // Race value is index in ChrRaces.dbc enum Races { RACE_NONE = 0, // 0 RACE_HUMAN = 1, // 1 RACE_ORC…») |
User1 (обсуждение | вклад) (→RACES:) |
||
| (не показано 29 промежуточных версий этого же участника) | |||
| Строка 1: | Строка 1: | ||
==== RACES: ==== | |||
// Race value is index in ChrRaces.dbc | |||
#if CURRENT_EXPANSION == EXPANSION_LEGION //на легионе рисовки расс на старых id из-за клиента | |||
RACE_NONE = 0, // 0 | RACE_NONE = 0, // 0 | ||
RACE_HUMAN = 1, // 1 | RACE_HUMAN = 1, // 1 | ||
| Строка 16: | Строка 17: | ||
RACE_BLOODELF = 10, // 512 | RACE_BLOODELF = 10, // 512 | ||
RACE_DRAENEI = 11, // 1024 | RACE_DRAENEI = 11, // 1024 | ||
RACE_HARRONIR_HORDE = 12, // 2048 | |||
//RACE_NAGA = 13, // 4096 | |||
//RACE_BROKEN = 14, // 8192 | |||
RACE_VULPERA = 15, // 16384 | |||
//RACE_VRYKUL = 16, // 32768 | |||
RACE_DARK_IRON_DWARF = 17, // 65536 | |||
RACE_KUL_TIRAN = 18, // 131072 | |||
//RACE_TAUNKA = 19, // 262144 | |||
RACE_MAGHAR_ORC = 20, // 524288 | |||
RACE_ZANDALARI_TROLL = 21, // 1048576 | |||
RACE_WORGEN = 22, // 2097152 | RACE_WORGEN = 22, // 2097152 | ||
//RACE_GILNEAN = 23 // 4194304 | |||
RACE_PANDAREN_NEUTRAL = 24, // 8388608 | RACE_PANDAREN_NEUTRAL = 24, // 8388608 | ||
RACE_PANDAREN_ALLIANCE = 25, // 16777216 | RACE_PANDAREN_ALLIANCE = 25, // 16777216 | ||
| Строка 24: | Строка 36: | ||
RACE_VOID_ELF = 29, // 268435456 | RACE_VOID_ELF = 29, // 268435456 | ||
RACE_LIGHTFORGED_DRAENEI = 30, // 536870912 | RACE_LIGHTFORGED_DRAENEI = 30, // 536870912 | ||
//RACE_THIN_HUMAN = 33, | |||
RACE_MECHAGNOME = 37, // RaceMask bit 14 | |||
//< just for compile | |||
RACE_DRACTHYR_ALLIANCE, | |||
RACE_DRACTHYR_HORDE, | |||
RACE_EARTHEN_DWARF_HORDE, | |||
RACE_EARTHEN_DWARF_ALLIANCE, | |||
RACE_HARRONIR_ALLIANCE, | |||
#else | |||
RACE_NONE = 0, // 0 | |||
RACE_HUMAN = 1, // 1 | |||
RACE_ORC = 2, // 2 | |||
RACE_DWARF = 3, // 4 | |||
RACE_NIGHTELF = 4, // 8 | |||
RACE_UNDEAD_PLAYER = 5, // 16 | |||
RACE_TAUREN = 6, // 32 | |||
RACE_GNOME = 7, // 64 | |||
RACE_TROLL = 8, // 128 | |||
RACE_GOBLIN = 9, // 256 | |||
RACE_BLOODELF = 10, // 512 | |||
RACE_DRAENEI = 11, // 1024 | |||
//RACE_HARRONIR_HORDE = 12, // 2048 | |||
//RACE_NAGA = 13, // 4096 | |||
//RACE_BROKEN = 14, // 8192 | |||
//RACE_SKELETON = 15, // 16384 | |||
//RACE_VRYKUL = 16, // 32768 | |||
//RACE_TUSKARR = 17, // 65536 | |||
//RACE_FOREST_TROLL = 18, // 131072 | |||
//RACE_TAUNKA = 19, // 262144 | |||
//RACE_NORTHREND_SKELETON = 20, // 524288 | |||
//RACE_ICE_TROLL = 21, // 1048576 | |||
RACE_WORGEN = 22, // 2097152 | |||
//RACE_GILNEAN = 23 // 4194304 | |||
RACE_PANDAREN_NEUTRAL = 24, // 8388608 | |||
RACE_PANDAREN_ALLIANCE = 25, // 16777216 | |||
RACE_PANDAREN_HORDE = 26, // 33554432 | |||
RACE_NIGHTBORNE = 27, // 67108864 | |||
RACE_HIGHMOUNTAIN_TAUREN = 28, // 134217728 | |||
RACE_VOID_ELF = 29, // 268435456 | |||
RACE_LIGHTFORGED_DRAENEI = 30, // 536870912 | |||
RACE_ZANDALARI_TROLL = 31, | |||
RACE_KUL_TIRAN = 32, | |||
//RACE_THIN_HUMAN = 33, | |||
RACE_DARK_IRON_DWARF = 34, // RaceMask bit 11 | |||
RACE_VULPERA = 35, // RaceMask bit 12 | |||
RACE_MAGHAR_ORC = 36, // RaceMask bit 13 | |||
RACE_MECHAGNOME = 37, // RaceMask bit 14 | |||
RACE_DRACTHYR_ALLIANCE = 52, // RaceMask bit 16 | |||
RACE_DRACTHYR_HORDE = 70, // RaceMask bit 15 | |||
//RACE_COMPANION_DRAKE = 71, | |||
//RACE_COMPANION_PROTO_DRAGON = 72, | |||
//RACE_COMPANION_SERPENT = 73, | |||
//RACE_COMPANION_WYVERN = 74, | |||
//RACE_DRACTHYR_VISAGE_ALLIANCE = 75, | |||
//RACE_DRACTHYR_VISAGE_HORDE = 76, | |||
//RACE_COMPANION_PTERRODAX = 77, | |||
//RACE_COMPANION_NETHERWING_DRAKE = 80, | |||
//RACE_ROSTRUM_STORM_GRYPHON = 82, | |||
//RACE_ROSTRUM_FAERIE_DRAGON = 83, | |||
RACE_EARTHEN_DWARF_HORDE = 84, | |||
RACE_EARTHEN_DWARF_ALLIANCE = 85, | |||
RACE_HARRONIR_ALLIANCE = 86, | |||
//RACE_ROSTRUM_AIRSHIP = 87, | |||
RACE_HARRONIR_HORDE = 91, | |||
#endif | |||
ALL ALLIANCE RACES MASK | |||
824181837 | |||
ALL HORDE RACES MASK | |||
234881970 | |||
==== CLASSES: ==== | |||
CLASS_NONE = 0, | |||
CLASS_WARRIOR = 1, // 1 | |||
CLASS_PALADIN = 2, // 2 | |||
CLASS_HUNTER = 3, // 4 | |||
CLASS_ROGUE = 4, // 8 | |||
CLASS_PRIEST = 5, // 16 | |||
CLASS_DEATH_KNIGHT = 6, // 32 | |||
CLASS_SHAMAN = 7, // 64 | |||
CLASS_MAGE = 8, // 128 | |||
CLASS_WARLOCK = 9, // 256 | |||
CLASS_MONK = 10, // 512 | |||
CLASS_DRUID = 11, // 1024 | |||
CLASS_DEMON_HUNTER = 12, // 2048 | |||
==== LOOT|DIFFICULTY MODES: ==== | |||
case DIFFICULTY_NONE: | |||
case DIFFICULTY_NORMAL: | |||
case DIFFICULTY_10_N: | |||
case DIFFICULTY_40: | |||
case DIFFICULTY_N_SCENARIO: | |||
case DIFFICULTY_NORMAL_RAID: | |||
case DIFFICULTY_EVENT_RAID: | |||
case DIFFICULTY_EVENT_DUNGEON: | |||
case DIFFICULTY_EVENT_SCENARIO: | |||
return 0; //1 | |||
case DIFFICULTY_HEROIC: | |||
case DIFFICULTY_25_N: | |||
case DIFFICULTY_HC_SCENARIO: | |||
case DIFFICULTY_HEROIC_RAID: | |||
return 1; //2 | |||
case DIFFICULTY_10_HC: | |||
case DIFFICULTY_MYTHIC_RAID: | |||
case DIFFICULTY_MYTHIC_DUNGEON: | |||
case DIFFICULTY_MYTHIC_KEYSTONE: //ToDo move to | |||
return 2; //4 | |||
case DIFFICULTY_25_HC: | |||
case DIFFICULTY_TIMEWALKING: | |||
return 3; //8 | |||
case DIFFICULTY_LFR: | |||
case DIFFICULTY_LFR_RAID: | |||
return 4; //16 | |||
case DIFFICULTY_TIMEWALKING_RAID: | |||
return 5; //32 | |||
==== MOVEMENT_TYPES ==== | |||
IDLE_MOTION_TYPE = 0, // IdleMovementGenerator.h | |||
RANDOM_MOTION_TYPE = 1, // RandomMovementGenerator.h | |||
WAYPOINT_MOTION_TYPE = 2, // WaypointMovementGenerator.h | |||
MAX_DB_MOTION_TYPE = 3, // *** this and below motion types can't be set in DB. | |||
ANIMAL_RANDOM_MOTION_TYPE = MAX_DB_MOTION_TYPE, // AnimalRandomMovementGenerator.h | |||
CONFUSED_MOTION_TYPE = 4, // ConfusedMovementGenerator.h | |||
CHASE_MOTION_TYPE = 5, // TargetedMovementGenerator.h | |||
HOME_MOTION_TYPE = 6, // HomeMovementGenerator.h | |||
FLIGHT_MOTION_TYPE = 7, // WaypointMovementGenerator.h | |||
POINT_MOTION_TYPE = 8, // PointMovementGenerator.h | |||
FLEEING_MOTION_TYPE = 9, // FleeingMovementGenerator.h | |||
DISTRACT_MOTION_TYPE = 10, // IdleMovementGenerator.h | |||
ASSISTANCE_MOTION_TYPE= 11, // PointMovementGenerator.h (first part of flee for assistance) | |||
ASSISTANCE_DISTRACT_MOTION_TYPE = 12, // IdleMovementGenerator.h (second part of flee for assistance) | |||
TIMED_FLEEING_MOTION_TYPE = 13, // FleeingMovementGenerator.h (alt.second part of flee for assistance) | |||
FOLLOW_MOTION_TYPE = 14, | |||
FETCH_MOTION_TYPE = 15, | |||
ROTATE_MOTION_TYPE = 16, | |||
EFFECT_MOTION_TYPE = 17, | |||
NULL_MOTION_TYPE = 18, | |||
MAX_MOTION_TYPE, | |||
==== JoinType ==== | |||
{ | |||
enum : uint8 | |||
{ | |||
None = 0, | |||
Arena1v1 = 1, | |||
Arena2v2 = 2, | |||
Arena3v3 = 3, | |||
Skirmish2v2 = 4, | |||
Skirmish3v3 = 5, | |||
Brawl = 6, | |||
Arena5v5 = 8, | |||
RatedBG = 10, | |||
//< custom | |||
// ArenaSoloQ2v2 = 13, | |||
ArenaSoloQ3v3 = 13, | |||
// ArenaSoloQ5v5 = 15, | |||
}; | |||
} | |||
==== SpawnMask ==== | |||
DIFFICULTY_NONE = 0, // 1 | |||
DIFFICULTY_NORMAL = 1, // 2 | |||
DIFFICULTY_HEROIC = 2, // 4 | |||
DIFFICULTY_10_N = 3, // 8 | |||
DIFFICULTY_25_N = 4, // 16 | |||
DIFFICULTY_10_HC = 5, // 32 | |||
DIFFICULTY_25_HC = 6, // 64 | |||
DIFFICULTY_LFR = 7, // 128 | |||
DIFFICULTY_MYTHIC_KEYSTONE = 8, // 256 | |||
DIFFICULTY_40 = 9, // 512 | |||
DIFFICULTY_HC_SCENARIO = 11, // 2048 | |||
DIFFICULTY_N_SCENARIO = 12, // 4096 | |||
DIFFICULTY_NORMAL_RAID = 14, // 16384 | |||
DIFFICULTY_HEROIC_RAID = 15, // 32768 | |||
DIFFICULTY_MYTHIC_RAID = 16, // 65536 | |||
DIFFICULTY_LFR_RAID = 17, // 131072 | |||
DIFFICULTY_EVENT_RAID = 18, // 262144 | |||
DIFFICULTY_EVENT_DUNGEON = 19, // 524288 | |||
DIFFICULTY_EVENT_SCENARIO = 20, // 1048576 | |||
DIFFICULTY_MYTHIC_DUNGEON = 23, // 8388608 | |||
DIFFICULTY_TIMEWALKING = 24, // 16777216 | |||
DIFFICULTY_WORLD_PVP_SCENARIO = 25, // 33554432 - Ashran | |||
DIFFICULTY_PVEVP_SCENARIO = 29, // 536870912 | |||
DIFFICULTY_EVENT_SCENARIO_6 = 30, // 1073741824 | |||
DIFFICULTY_WORLD_PVP_SCENARIO_2 = 32, // 4294967296 | |||
DIFFICULTY_TIMEWALKING_RAID = 33, // 8589934592 | |||
DIFFICULTY_PVP = 34, // 17179869184 | |||
=== Bracket Types === | |||
Arena2v2 = 0, | |||
Arena3v3 = 1, | |||
Arena5v5 = 2, | |||
RatedBattleground = 3, | |||
Skirmish2v2 = 4, | |||
Skirmish3v3 = 5, | |||
Brawl = 6, | |||
Arena1v1 = 7, | |||
ArenaSoloQ3v3 = 8, | |||
=== BG types === | |||
case BattlegroundTypeId::ArenaBladesEdgeArena_844: | |||
case BattlegroundTypeId::ArenaNagrandArena_809: | |||
case BattlegroundTypeId::ArenaDalaranSewers_10: | |||
case BattlegroundTypeId::ArenaRuinsofLordaeron_8: | |||
case BattlegroundTypeId::ArenaTheTigersPeak_757: | |||
case BattlegroundTypeId::ArenaBlackRookHoldArena_808: | |||
case BattlegroundTypeId::ArenaAshamanesFall_816: | |||
case BattlegroundTypeId::ArenaTolVironArena_719: | |||
case BattlegroundTypeId::ArenaHookPoint_897: | |||
case BattlegroundTypeId::ArenaMugambala_903: | |||
case BattlegroundTypeId::ArenaTheRobodrome_1025: | |||
case BattlegroundTypeId::ArenaEmpyreanDomain_1041: | |||
=== behavior_flag (creature_formations) === | |||
None = 0, | |||
MembersAssistsLeader = 1, | |||
LeaderAssistsMembers = 2, | |||
MembersFollowLeader = 4, | |||
FormationCompacting = 8, | |||
FollowersIgnoringCollisions = 16, | |||
LeaderAlwaysMoving = 32, | |||
CanAssistInPassiveState = 64, | |||
=== UnitStandStateType === | |||
UNIT_STAND_STATE_STAND = 0, | |||
UNIT_STAND_STATE_SIT = 1, | |||
UNIT_STAND_STATE_SIT_CHAIR = 2, | |||
UNIT_STAND_STATE_SLEEP = 3, | |||
UNIT_STAND_STATE_SIT_LOW_CHAIR = 4, | |||
UNIT_STAND_STATE_SIT_MEDIUM_CHAIR = 5, | |||
UNIT_STAND_STATE_SIT_HIGH_CHAIR = 6, | |||
UNIT_STAND_STATE_DEAD = 7, | |||
UNIT_STAND_STATE_KNEEL = 8, | |||
UNIT_STAND_STATE_SUBMERGED = 9 | |||
=== AnimTier === | |||
Ground = 0, // plays ground tier animations | |||
Swim = 1, // falls back to ground tier animations, not handled by the client, should never appear in sniffs, will prevent tier change animations from playing correctly if used | |||
Hover = 2, // plays flying tier animations or falls back to ground tier animations, automatically enables hover clientside when entering visibility with this value | |||
Fly = 3, // plays flying tier animations | |||
Submerged = 4, | |||
=== SheathState === | |||
SHEATH_STATE_UNARMED = 0, // non prepared weapon | |||
SHEATH_STATE_MELEE = 1, // prepared melee weapon | |||
SHEATH_STATE_RANGED = 2, // prepared ranged weapon | |||
=== UnitState === | |||
UNIT_STATE_DIED = 0x00000001, // player has fake death aura | |||
UNIT_STATE_MELEE_ATTACKING = 0x00000002, // player is melee attacking someone | |||
//UNIT_STATE_MELEE_ATTACK_BY = 0x00000004, // player is melee attack by someone | |||
UNIT_STATE_STUNNED = 0x00000008, | |||
UNIT_STATE_ROAMING = 0x00000010, | |||
UNIT_STATE_CHASE = 0x00000020, | |||
UNIT_STATE_NO_ENVIRONMENT_UPD = 0x00000040, | |||
UNIT_STATE_FLEEING = 0x00000080, | |||
UNIT_STATE_IN_FLIGHT = 0x00000100, // player is in flight mode | |||
UNIT_STATE_FOLLOW = 0x00000200, | |||
UNIT_STATE_ROOT = 0x00000400, | |||
UNIT_STATE_CONFUSED = 0x00000800, | |||
UNIT_STATE_DISTRACTED = 0x00001000, | |||
UNIT_STATE_ISOLATED = 0x00002000, // area auras do not affect other players | |||
UNIT_STATE_ATTACK_PLAYER = 0x00004000, | |||
UNIT_STATE_CASTING = 0x00008000, | |||
UNIT_STATE_POSSESSED = 0x00010000, | |||
UNIT_STATE_CHARGING = 0x00020000, | |||
UNIT_STATE_JUMPING = 0x00040000, | |||
UNIT_STATE_ONVEHICLE = 0x00080000, | |||
UNIT_STATE_MOVE = 0x00100000, | |||
UNIT_STATE_ROTATING_DISABLED = 0x00200000, | |||
UNIT_STATE_EVADE = 0x00400000, | |||
UNIT_STATE_ROAMING_MOVE = 0x00800000, | |||
UNIT_STATE_CONFUSED_MOVE = 0x01000000, | |||
UNIT_STATE_FLEEING_MOVE = 0x02000000, | |||
UNIT_STATE_CHASE_MOVE = 0x04000000, | |||
UNIT_STATE_FOLLOW_MOVE = 0x08000000, | |||
UNIT_STATE_IGNORE_PATHFINDING = 0x10000000, // do not use pathfinding in any MovementGenerator | |||
UNIT_STATE_WAYPOINT_PROGRESS = 0x20000000, | |||
UNIT_STATE_LONG_JUMP = 0x40000000, | |||
UNIT_STATE_HEXED = 0x80000000, | |||
UNIT_STATE_UNATTACKABLE = UNIT_STATE_IN_FLIGHT | UNIT_STATE_ONVEHICLE, | |||
// for real move using movegen check and stop (except unstoppable flight) | |||
UNIT_STATE_MOVING = UNIT_STATE_ROAMING_MOVE | UNIT_STATE_CONFUSED_MOVE | UNIT_STATE_FLEEING_MOVE | UNIT_STATE_CHASE_MOVE | UNIT_STATE_FOLLOW_MOVE , | |||
UNIT_STATE_CONTROLLED = UNIT_STATE_CONFUSED | UNIT_STATE_STUNNED | UNIT_STATE_FLEEING, | |||
UNIT_STATE_LOST_CONTROL = UNIT_STATE_CONTROLLED | UNIT_STATE_JUMPING | UNIT_STATE_CHARGING, | |||
UNIT_STATE_SIGHTLESS = UNIT_STATE_LOST_CONTROL | UNIT_STATE_EVADE, | |||
UNIT_STATE_CANNOT_AUTOATTACK = UNIT_STATE_LOST_CONTROL | UNIT_STATE_CASTING, | |||
UNIT_STATE_CANNOT_TURN = UNIT_STATE_LOST_CONTROL | UNIT_STATE_ROTATING_DISABLED, | |||
// stay by different reasons | |||
UNIT_STATE_NOT_MOVE = UNIT_STATE_ROOT | UNIT_STATE_STUNNED | UNIT_STATE_DIED | UNIT_STATE_DISTRACTED, | |||
UNIT_STATE_NO_FREE_MOVE = UNIT_STATE_ROOT | UNIT_STATE_STUNNED | UNIT_STATE_DIED | UNIT_STATE_DISTRACTED | UNIT_STATE_IN_FLIGHT | UNIT_STATE_CONFUSED | UNIT_STATE_FLEEING, | |||
UNIT_STATE_ALL_STATE = 0xffffffff //(UNIT_STATE_STOPPED | UNIT_STATE_MOVING | UNIT_STATE_IN_COMBAT | UNIT_STATE_IN_FLIGHT) | |||
=== AuraRemoveMode === | |||
AURA_REMOVE_NONE = 0, | |||
AURA_REMOVE_BY_DEFAULT = 1, // scripted remove, remove by stack with aura with different ids and sc aura remove | |||
AURA_REMOVE_BY_CANCEL = 2, | |||
AURA_REMOVE_BY_ENEMY_SPELL = 3, // dispel and absorb aura destroy | |||
AURA_REMOVE_BY_EXPIRE = 4, // aura duration has ended | |||
AURA_REMOVE_BY_DEATH = 5, | |||
AURA_REMOVE_BY_MECHANIC = 6, | |||
AURA_REMOVE_BY_DROP_CHARGERS = 7, // aura remove by drop charges | |||
AURA_REMOVE_BY_INTERRUPT = 8, | |||
Текущая версия от 17:09, 3 мая 2026
RACES:
// Race value is index in ChrRaces.dbc #if CURRENT_EXPANSION == EXPANSION_LEGION //на легионе рисовки расс на старых id из-за клиента
RACE_NONE = 0, // 0 RACE_HUMAN = 1, // 1 RACE_ORC = 2, // 2 RACE_DWARF = 3, // 4 RACE_NIGHTELF = 4, // 8 RACE_UNDEAD_PLAYER = 5, // 16 RACE_TAUREN = 6, // 32 RACE_GNOME = 7, // 64 RACE_TROLL = 8, // 128 RACE_GOBLIN = 9, // 256 RACE_BLOODELF = 10, // 512 RACE_DRAENEI = 11, // 1024 RACE_HARRONIR_HORDE = 12, // 2048 //RACE_NAGA = 13, // 4096 //RACE_BROKEN = 14, // 8192 RACE_VULPERA = 15, // 16384 //RACE_VRYKUL = 16, // 32768 RACE_DARK_IRON_DWARF = 17, // 65536 RACE_KUL_TIRAN = 18, // 131072 //RACE_TAUNKA = 19, // 262144 RACE_MAGHAR_ORC = 20, // 524288 RACE_ZANDALARI_TROLL = 21, // 1048576 RACE_WORGEN = 22, // 2097152 //RACE_GILNEAN = 23 // 4194304 RACE_PANDAREN_NEUTRAL = 24, // 8388608 RACE_PANDAREN_ALLIANCE = 25, // 16777216 RACE_PANDAREN_HORDE = 26, // 33554432 RACE_NIGHTBORNE = 27, // 67108864 RACE_HIGHMOUNTAIN_TAUREN = 28, // 134217728 RACE_VOID_ELF = 29, // 268435456 RACE_LIGHTFORGED_DRAENEI = 30, // 536870912 //RACE_THIN_HUMAN = 33, RACE_MECHAGNOME = 37, // RaceMask bit 14 //< just for compile RACE_DRACTHYR_ALLIANCE, RACE_DRACTHYR_HORDE, RACE_EARTHEN_DWARF_HORDE, RACE_EARTHEN_DWARF_ALLIANCE, RACE_HARRONIR_ALLIANCE,
#else
RACE_NONE = 0, // 0 RACE_HUMAN = 1, // 1 RACE_ORC = 2, // 2 RACE_DWARF = 3, // 4 RACE_NIGHTELF = 4, // 8 RACE_UNDEAD_PLAYER = 5, // 16 RACE_TAUREN = 6, // 32 RACE_GNOME = 7, // 64 RACE_TROLL = 8, // 128 RACE_GOBLIN = 9, // 256 RACE_BLOODELF = 10, // 512 RACE_DRAENEI = 11, // 1024 //RACE_HARRONIR_HORDE = 12, // 2048 //RACE_NAGA = 13, // 4096 //RACE_BROKEN = 14, // 8192 //RACE_SKELETON = 15, // 16384 //RACE_VRYKUL = 16, // 32768 //RACE_TUSKARR = 17, // 65536 //RACE_FOREST_TROLL = 18, // 131072 //RACE_TAUNKA = 19, // 262144 //RACE_NORTHREND_SKELETON = 20, // 524288 //RACE_ICE_TROLL = 21, // 1048576 RACE_WORGEN = 22, // 2097152 //RACE_GILNEAN = 23 // 4194304 RACE_PANDAREN_NEUTRAL = 24, // 8388608 RACE_PANDAREN_ALLIANCE = 25, // 16777216 RACE_PANDAREN_HORDE = 26, // 33554432 RACE_NIGHTBORNE = 27, // 67108864 RACE_HIGHMOUNTAIN_TAUREN = 28, // 134217728 RACE_VOID_ELF = 29, // 268435456 RACE_LIGHTFORGED_DRAENEI = 30, // 536870912 RACE_ZANDALARI_TROLL = 31, RACE_KUL_TIRAN = 32, //RACE_THIN_HUMAN = 33, RACE_DARK_IRON_DWARF = 34, // RaceMask bit 11 RACE_VULPERA = 35, // RaceMask bit 12 RACE_MAGHAR_ORC = 36, // RaceMask bit 13 RACE_MECHAGNOME = 37, // RaceMask bit 14 RACE_DRACTHYR_ALLIANCE = 52, // RaceMask bit 16 RACE_DRACTHYR_HORDE = 70, // RaceMask bit 15 //RACE_COMPANION_DRAKE = 71, //RACE_COMPANION_PROTO_DRAGON = 72, //RACE_COMPANION_SERPENT = 73, //RACE_COMPANION_WYVERN = 74, //RACE_DRACTHYR_VISAGE_ALLIANCE = 75, //RACE_DRACTHYR_VISAGE_HORDE = 76, //RACE_COMPANION_PTERRODAX = 77, //RACE_COMPANION_NETHERWING_DRAKE = 80, //RACE_ROSTRUM_STORM_GRYPHON = 82, //RACE_ROSTRUM_FAERIE_DRAGON = 83, RACE_EARTHEN_DWARF_HORDE = 84, RACE_EARTHEN_DWARF_ALLIANCE = 85, RACE_HARRONIR_ALLIANCE = 86, //RACE_ROSTRUM_AIRSHIP = 87, RACE_HARRONIR_HORDE = 91,
#endif
ALL ALLIANCE RACES MASK 824181837 ALL HORDE RACES MASK 234881970
CLASSES:
CLASS_NONE = 0, CLASS_WARRIOR = 1, // 1 CLASS_PALADIN = 2, // 2 CLASS_HUNTER = 3, // 4 CLASS_ROGUE = 4, // 8 CLASS_PRIEST = 5, // 16 CLASS_DEATH_KNIGHT = 6, // 32 CLASS_SHAMAN = 7, // 64 CLASS_MAGE = 8, // 128 CLASS_WARLOCK = 9, // 256 CLASS_MONK = 10, // 512 CLASS_DRUID = 11, // 1024 CLASS_DEMON_HUNTER = 12, // 2048
LOOT|DIFFICULTY MODES:
case DIFFICULTY_NONE:
case DIFFICULTY_NORMAL:
case DIFFICULTY_10_N:
case DIFFICULTY_40:
case DIFFICULTY_N_SCENARIO:
case DIFFICULTY_NORMAL_RAID:
case DIFFICULTY_EVENT_RAID:
case DIFFICULTY_EVENT_DUNGEON:
case DIFFICULTY_EVENT_SCENARIO:
return 0; //1
case DIFFICULTY_HEROIC:
case DIFFICULTY_25_N:
case DIFFICULTY_HC_SCENARIO:
case DIFFICULTY_HEROIC_RAID:
return 1; //2
case DIFFICULTY_10_HC:
case DIFFICULTY_MYTHIC_RAID:
case DIFFICULTY_MYTHIC_DUNGEON:
case DIFFICULTY_MYTHIC_KEYSTONE: //ToDo move to
return 2; //4
case DIFFICULTY_25_HC:
case DIFFICULTY_TIMEWALKING:
return 3; //8
case DIFFICULTY_LFR:
case DIFFICULTY_LFR_RAID:
return 4; //16
case DIFFICULTY_TIMEWALKING_RAID:
return 5; //32
MOVEMENT_TYPES
IDLE_MOTION_TYPE = 0, // IdleMovementGenerator.h RANDOM_MOTION_TYPE = 1, // RandomMovementGenerator.h WAYPOINT_MOTION_TYPE = 2, // WaypointMovementGenerator.h MAX_DB_MOTION_TYPE = 3, // *** this and below motion types can't be set in DB. ANIMAL_RANDOM_MOTION_TYPE = MAX_DB_MOTION_TYPE, // AnimalRandomMovementGenerator.h CONFUSED_MOTION_TYPE = 4, // ConfusedMovementGenerator.h CHASE_MOTION_TYPE = 5, // TargetedMovementGenerator.h HOME_MOTION_TYPE = 6, // HomeMovementGenerator.h FLIGHT_MOTION_TYPE = 7, // WaypointMovementGenerator.h POINT_MOTION_TYPE = 8, // PointMovementGenerator.h FLEEING_MOTION_TYPE = 9, // FleeingMovementGenerator.h DISTRACT_MOTION_TYPE = 10, // IdleMovementGenerator.h ASSISTANCE_MOTION_TYPE= 11, // PointMovementGenerator.h (first part of flee for assistance) ASSISTANCE_DISTRACT_MOTION_TYPE = 12, // IdleMovementGenerator.h (second part of flee for assistance) TIMED_FLEEING_MOTION_TYPE = 13, // FleeingMovementGenerator.h (alt.second part of flee for assistance) FOLLOW_MOTION_TYPE = 14, FETCH_MOTION_TYPE = 15, ROTATE_MOTION_TYPE = 16, EFFECT_MOTION_TYPE = 17, NULL_MOTION_TYPE = 18, MAX_MOTION_TYPE,
JoinType
{
enum : uint8
{
None = 0,
Arena1v1 = 1,
Arena2v2 = 2,
Arena3v3 = 3,
Skirmish2v2 = 4,
Skirmish3v3 = 5,
Brawl = 6,
Arena5v5 = 8,
RatedBG = 10,
//< custom
// ArenaSoloQ2v2 = 13,
ArenaSoloQ3v3 = 13,
// ArenaSoloQ5v5 = 15,
};
}
SpawnMask
DIFFICULTY_NONE = 0, // 1 DIFFICULTY_NORMAL = 1, // 2 DIFFICULTY_HEROIC = 2, // 4 DIFFICULTY_10_N = 3, // 8 DIFFICULTY_25_N = 4, // 16 DIFFICULTY_10_HC = 5, // 32 DIFFICULTY_25_HC = 6, // 64 DIFFICULTY_LFR = 7, // 128 DIFFICULTY_MYTHIC_KEYSTONE = 8, // 256 DIFFICULTY_40 = 9, // 512 DIFFICULTY_HC_SCENARIO = 11, // 2048 DIFFICULTY_N_SCENARIO = 12, // 4096 DIFFICULTY_NORMAL_RAID = 14, // 16384 DIFFICULTY_HEROIC_RAID = 15, // 32768 DIFFICULTY_MYTHIC_RAID = 16, // 65536 DIFFICULTY_LFR_RAID = 17, // 131072 DIFFICULTY_EVENT_RAID = 18, // 262144 DIFFICULTY_EVENT_DUNGEON = 19, // 524288 DIFFICULTY_EVENT_SCENARIO = 20, // 1048576 DIFFICULTY_MYTHIC_DUNGEON = 23, // 8388608 DIFFICULTY_TIMEWALKING = 24, // 16777216 DIFFICULTY_WORLD_PVP_SCENARIO = 25, // 33554432 - Ashran DIFFICULTY_PVEVP_SCENARIO = 29, // 536870912 DIFFICULTY_EVENT_SCENARIO_6 = 30, // 1073741824 DIFFICULTY_WORLD_PVP_SCENARIO_2 = 32, // 4294967296 DIFFICULTY_TIMEWALKING_RAID = 33, // 8589934592 DIFFICULTY_PVP = 34, // 17179869184
Bracket Types
Arena2v2 = 0,
Arena3v3 = 1,
Arena5v5 = 2,
RatedBattleground = 3,
Skirmish2v2 = 4,
Skirmish3v3 = 5,
Brawl = 6,
Arena1v1 = 7,
ArenaSoloQ3v3 = 8,
BG types
case BattlegroundTypeId::ArenaBladesEdgeArena_844:
case BattlegroundTypeId::ArenaNagrandArena_809:
case BattlegroundTypeId::ArenaDalaranSewers_10:
case BattlegroundTypeId::ArenaRuinsofLordaeron_8:
case BattlegroundTypeId::ArenaTheTigersPeak_757:
case BattlegroundTypeId::ArenaBlackRookHoldArena_808:
case BattlegroundTypeId::ArenaAshamanesFall_816:
case BattlegroundTypeId::ArenaTolVironArena_719:
case BattlegroundTypeId::ArenaHookPoint_897:
case BattlegroundTypeId::ArenaMugambala_903:
case BattlegroundTypeId::ArenaTheRobodrome_1025:
case BattlegroundTypeId::ArenaEmpyreanDomain_1041:
behavior_flag (creature_formations)
None = 0, MembersAssistsLeader = 1, LeaderAssistsMembers = 2, MembersFollowLeader = 4, FormationCompacting = 8, FollowersIgnoringCollisions = 16, LeaderAlwaysMoving = 32, CanAssistInPassiveState = 64,
UnitStandStateType
UNIT_STAND_STATE_STAND = 0, UNIT_STAND_STATE_SIT = 1, UNIT_STAND_STATE_SIT_CHAIR = 2, UNIT_STAND_STATE_SLEEP = 3, UNIT_STAND_STATE_SIT_LOW_CHAIR = 4, UNIT_STAND_STATE_SIT_MEDIUM_CHAIR = 5, UNIT_STAND_STATE_SIT_HIGH_CHAIR = 6, UNIT_STAND_STATE_DEAD = 7, UNIT_STAND_STATE_KNEEL = 8, UNIT_STAND_STATE_SUBMERGED = 9
AnimTier
Ground = 0, // plays ground tier animations Swim = 1, // falls back to ground tier animations, not handled by the client, should never appear in sniffs, will prevent tier change animations from playing correctly if used Hover = 2, // plays flying tier animations or falls back to ground tier animations, automatically enables hover clientside when entering visibility with this value Fly = 3, // plays flying tier animations Submerged = 4,
SheathState
SHEATH_STATE_UNARMED = 0, // non prepared weapon SHEATH_STATE_MELEE = 1, // prepared melee weapon SHEATH_STATE_RANGED = 2, // prepared ranged weapon
UnitState
UNIT_STATE_DIED = 0x00000001, // player has fake death aura UNIT_STATE_MELEE_ATTACKING = 0x00000002, // player is melee attacking someone //UNIT_STATE_MELEE_ATTACK_BY = 0x00000004, // player is melee attack by someone UNIT_STATE_STUNNED = 0x00000008, UNIT_STATE_ROAMING = 0x00000010, UNIT_STATE_CHASE = 0x00000020, UNIT_STATE_NO_ENVIRONMENT_UPD = 0x00000040, UNIT_STATE_FLEEING = 0x00000080, UNIT_STATE_IN_FLIGHT = 0x00000100, // player is in flight mode UNIT_STATE_FOLLOW = 0x00000200, UNIT_STATE_ROOT = 0x00000400, UNIT_STATE_CONFUSED = 0x00000800, UNIT_STATE_DISTRACTED = 0x00001000, UNIT_STATE_ISOLATED = 0x00002000, // area auras do not affect other players UNIT_STATE_ATTACK_PLAYER = 0x00004000, UNIT_STATE_CASTING = 0x00008000, UNIT_STATE_POSSESSED = 0x00010000, UNIT_STATE_CHARGING = 0x00020000, UNIT_STATE_JUMPING = 0x00040000, UNIT_STATE_ONVEHICLE = 0x00080000, UNIT_STATE_MOVE = 0x00100000, UNIT_STATE_ROTATING_DISABLED = 0x00200000, UNIT_STATE_EVADE = 0x00400000, UNIT_STATE_ROAMING_MOVE = 0x00800000, UNIT_STATE_CONFUSED_MOVE = 0x01000000, UNIT_STATE_FLEEING_MOVE = 0x02000000, UNIT_STATE_CHASE_MOVE = 0x04000000, UNIT_STATE_FOLLOW_MOVE = 0x08000000, UNIT_STATE_IGNORE_PATHFINDING = 0x10000000, // do not use pathfinding in any MovementGenerator UNIT_STATE_WAYPOINT_PROGRESS = 0x20000000, UNIT_STATE_LONG_JUMP = 0x40000000, UNIT_STATE_HEXED = 0x80000000, UNIT_STATE_UNATTACKABLE = UNIT_STATE_IN_FLIGHT | UNIT_STATE_ONVEHICLE, // for real move using movegen check and stop (except unstoppable flight) UNIT_STATE_MOVING = UNIT_STATE_ROAMING_MOVE | UNIT_STATE_CONFUSED_MOVE | UNIT_STATE_FLEEING_MOVE | UNIT_STATE_CHASE_MOVE | UNIT_STATE_FOLLOW_MOVE , UNIT_STATE_CONTROLLED = UNIT_STATE_CONFUSED | UNIT_STATE_STUNNED | UNIT_STATE_FLEEING, UNIT_STATE_LOST_CONTROL = UNIT_STATE_CONTROLLED | UNIT_STATE_JUMPING | UNIT_STATE_CHARGING, UNIT_STATE_SIGHTLESS = UNIT_STATE_LOST_CONTROL | UNIT_STATE_EVADE, UNIT_STATE_CANNOT_AUTOATTACK = UNIT_STATE_LOST_CONTROL | UNIT_STATE_CASTING, UNIT_STATE_CANNOT_TURN = UNIT_STATE_LOST_CONTROL | UNIT_STATE_ROTATING_DISABLED, // stay by different reasons UNIT_STATE_NOT_MOVE = UNIT_STATE_ROOT | UNIT_STATE_STUNNED | UNIT_STATE_DIED | UNIT_STATE_DISTRACTED, UNIT_STATE_NO_FREE_MOVE = UNIT_STATE_ROOT | UNIT_STATE_STUNNED | UNIT_STATE_DIED | UNIT_STATE_DISTRACTED | UNIT_STATE_IN_FLIGHT | UNIT_STATE_CONFUSED | UNIT_STATE_FLEEING, UNIT_STATE_ALL_STATE = 0xffffffff //(UNIT_STATE_STOPPED | UNIT_STATE_MOVING | UNIT_STATE_IN_COMBAT | UNIT_STATE_IN_FLIGHT)
AuraRemoveMode
AURA_REMOVE_NONE = 0, AURA_REMOVE_BY_DEFAULT = 1, // scripted remove, remove by stack with aura with different ids and sc aura remove AURA_REMOVE_BY_CANCEL = 2, AURA_REMOVE_BY_ENEMY_SPELL = 3, // dispel and absorb aura destroy AURA_REMOVE_BY_EXPIRE = 4, // aura duration has ended AURA_REMOVE_BY_DEATH = 5, AURA_REMOVE_BY_MECHANIC = 6, AURA_REMOVE_BY_DROP_CHARGERS = 7, // aura remove by drop charges AURA_REMOVE_BY_INTERRUPT = 8,