Skip to content
Flowy edited this page Jul 10, 2014 · 1 revision

UNIT_FLAG_UNK_0 = 0×00000001,
UNIT_FLAG_NON_ATTACKABLE = 0×00000002, // not attackable
UNIT_FLAG_DISABLE_MOVE = 0×00000004,
UNIT_FLAG_PVP_ATTACKABLE = 0×00000008, // allow apply pvp rules to attackable state in addition to faction dependent state
UNIT_FLAG_RENAME = 0×00000010,
UNIT_FLAG_PREPARATION = 0×00000020, // don’t take reagents for spells with SPELL_ATTR_EX5_NO_REAGENT_WHILE_PREP
UNIT_FLAG_UNK_6 = 0×00000040,
UNIT_FLAG_NOT_ATTACKABLE_1 = 0×00000080, // ?? (UNIT_FLAG_PVP_ATTACKABLE | UNIT_FLAG_NOT_ATTACKABLE_1) is NON_PVP_ATTACKABLE
UNIT_FLAG_OOC_NOT_ATTACKABLE = 0×00000100, // 2.0.8 – (OOC Out Of Combat) Can not be attacked when not in combat. Removed if unit for some reason enter combat (flag probably removed for the attacked and it’s party/group only)
UNIT_FLAG_PASSIVE = 0×00000200, // makes you unable to attack everything. Almost identical to our “civilian”-term. Will ignore it’s surroundings and not engage in combat unless “called upon” or engaged by another unit.
UNIT_FLAG_LOOTING = 0×00000400, // loot animation
UNIT_FLAG_PET_IN_COMBAT = 0×00000800, // in combat?, 2.0.8
UNIT_FLAG_PVP = 0×00001000,
UNIT_FLAG_SILENCED = 0×00002000, // silenced, 2.1.1
UNIT_FLAG_UNK_14 = 0×00004000, // 2.0.8
UNIT_FLAG_UNK_15 = 0×00008000,
UNIT_FLAG_UNK_16 = 0×00010000, // removes attackable icon
UNIT_FLAG_PACIFIED = 0×00020000,
UNIT_FLAG_STUNNED = 0×00040000, // stunned, 2.1.1
UNIT_FLAG_IN_COMBAT = 0×00080000,
UNIT_FLAG_TAXI_FLIGHT = 0×00100000, // disable casting at client side spell not allowed by taxi flight (mounted?), probably used with 0×4 flag
UNIT_FLAG_DISARMED = 0×00200000, // disable melee spells casting…, “Required melee weapon” added to melee spells tooltip.
UNIT_FLAG_CONFUSED = 0×00400000,
UNIT_FLAG_FLEEING = 0×00800000,
UNIT_FLAG_PLAYER_CONTROLLED = 0×01000000, // used in spell Eyes of the Beast for pet… let attack by controlled creature
UNIT_FLAG_NOT_SELECTABLE = 0×02000000,
UNIT_FLAG_SKINNABLE = 0×04000000,
UNIT_FLAG_MOUNT = 0×08000000,
UNIT_FLAG_UNK_28 = 0×10000000,
UNIT_FLAG_FEIGN_DEATH = 0×20000000, // used in Feing Death spell
UNIT_FLAG_SHEATHE = 0×40000000,
UNIT_FLAG_IMMUNE = 0×80000000, // used in immunity spells (Divine Shield), prevents use some gameobjects like chests, bg banners,..
// UNIT_FLAG_UNK_31 = 0×80000000 // no affect in 2.4.3
};

// Value masks for UNIT_FIELD_FLAGS_2
enum UnitFlags2
{
UNIT_FLAG2_FEIGN_DEATH = 0×00000001,
UNIT_FLAG2_UNK1 = 0×00000002, // Hides body and body armor. Weapons and shoulder and head armor still visible
UNIT_FLAG2_UNK2 = 0×00000004,
UNIT_FLAG2_COMPREHEND_LANG = 0×00000008,
UNIT_FLAG2_CLONED = 0×00000010, // Used in SPELL_AURA_MIRROR_IMAGE
UNIT_FLAG2_UNK5 = 0×00000020,
UNIT_FLAG2_FORCE_MOVE = 0×00000040,
// UNIT_FLAG2_DISARM_OFFHAND = 0×00000080, // also shield case – added in 3.x, possible all later not used in pre-3.x
// UNIT_FLAG2_UNK8 = 0×00000100,
// UNIT_FLAG2_UNK9 = 0×00000200,
// UNIT_FLAG2_DISARM_RANGED = 0×00000400, // added in 3.x
// UNIT_FLAG2_REGENERATE_POWER = 0×00000800, // added in 3.x
};

/// Non Player Character flags
enum NPCFlags
{
UNIT_NPC_FLAG_NONE = 0×00000000,
UNIT_NPC_FLAG_GOSSIP = 0×00000001, // 100%
UNIT_NPC_FLAG_QUESTGIVER = 0×00000002, // guessed, probably ok
UNIT_NPC_FLAG_UNK1 = 0×00000004,
UNIT_NPC_FLAG_UNK2 = 0×00000008,
UNIT_NPC_FLAG_TRAINER = 0×00000010, // 100%
UNIT_NPC_FLAG_TRAINER_CLASS = 0×00000020, // 100%
UNIT_NPC_FLAG_TRAINER_PROFESSION = 0×00000040, // 100%
UNIT_NPC_FLAG_VENDOR = 0×00000080, // 100%
UNIT_NPC_FLAG_VENDOR_AMMO = 0×00000100, // 100%, general goods vendor
UNIT_NPC_FLAG_VENDOR_FOOD = 0×00000200, // 100%
UNIT_NPC_FLAG_VENDOR_POISON = 0×00000400, // guessed
UNIT_NPC_FLAG_VENDOR_REAGENT = 0×00000800, // 100%
UNIT_NPC_FLAG_REPAIR = 0×00001000, // 100%
UNIT_NPC_FLAG_FLIGHTMASTER = 0×00002000, // 100%
UNIT_NPC_FLAG_SPIRITHEALER = 0×00004000, // guessed
UNIT_NPC_FLAG_SPIRITGUIDE = 0×00008000, // guessed
UNIT_NPC_FLAG_INNKEEPER = 0×00010000, // 100%
UNIT_NPC_FLAG_BANKER = 0×00020000, // 100%
UNIT_NPC_FLAG_PETITIONER = 0×00040000, // 100% 0xC0000 = guild petitions, 0×40000 = arena team petitions
UNIT_NPC_FLAG_TABARDDESIGNER = 0×00080000, // 100%
UNIT_NPC_FLAG_BATTLEMASTER = 0×00100000, // 100%
UNIT_NPC_FLAG_AUCTIONEER = 0×00200000, // 100%
UNIT_NPC_FLAG_STABLEMASTER = 0×00400000, // 100%
UNIT_NPC_FLAG_GUILD_BANKER = 0×00800000, // cause client to send 997 opcode
UNIT_NPC_FLAG_SPELLCLICK = 0×01000000, // cause client to send 1015 opcode (spell click), dynamic, set at loading and don’t must be set in DB
UNIT_NPC_FLAG_GUARD = 0×10000000 // custom flag for guards

Clone this wiki locally