diff options
| author | Stefano Borzì <stefanoborzi32@gmail.com> | 2019-04-10 19:54:18 +0200 |
|---|---|---|
| committer | Francesco Borzì <borzifrancesco@gmail.com> | 2019-04-10 19:54:18 +0200 |
| commit | c4f651c1152568d1eb3829ae5004db953191755d (patch) | |
| tree | bdd1f33d8907f38bc3c3a8d88bd7d43496ce1a58 /docs | |
| parent | 820fe33f93ec9fbc06b8169053be82f41918506e (diff) | |
| download | wiki-c4f651c1152568d1eb3829ae5004db953191755d.tar.gz wiki-c4f651c1152568d1eb3829ae5004db953191755d.tar.bz2 wiki-c4f651c1152568d1eb3829ae5004db953191755d.zip | |
Update creature_template.md (#33)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/creature_template.md | 1129 |
1 files changed, 315 insertions, 814 deletions
diff --git a/docs/creature_template.md b/docs/creature_template.md index b84d99b..66c04b9 100644 --- a/docs/creature_template.md +++ b/docs/creature_template.md @@ -2,87 +2,86 @@ This table contains the description of creatures. Each spawned creature is an instance of a template present in this table, this means every creature MUST be defined in this table. -| Field | Type | Null | Key | Default | Extra | Comment | -|----------------------------------------------------------------------|-----------------------|------|-----|---------|-------|--------------------------------------| -| [entry](#creature_template-entry) | mediumint(8) unsigned | NO | PRI | 0 | | | -| [difficulty\_entry\_1](#creature_template-difficulty_entry) | mediumint(8) unsigned | NO | | 0 | | | -| [difficulty\_entry\_2](#creature_template-difficulty_entry) | mediumint(8) unsigned | NO | | 0 | | | -| [difficulty\_entry\_3](#creature_template-difficulty_entry) | mediumint(8) unsigned | NO | | 0 | | | -| [KillCredit1](#creature_template-KillCredit1) | int(10) unsigned | NO | | 0 | | | -| [KillCredit2](#creature_template-KillCredit2) | int(10) unsigned | NO | | 0 | | | -| [modelid1](#creature_template-modelid) | mediumint(8) unsigned | NO | | 0 | | | -| [modelid2](#creature_template-modelid) | mediumint(8) unsigned | NO | | 0 | | | -| [modelid3](#creature_template-modelid) | mediumint(8) unsigned | NO | | 0 | | | -| [modelid4](#creature_template-modelid) | mediumint(8) unsigned | NO | | 0 | | | -| [name](#creature_template-name) | char(100) | NO | MUL | 0 | | | -| [subname](#creature_template-subname) | char(100) | YES | | (NULL) | | | -| [IconName](#creature_template-IconName) | char(100) | YES | | (NULL) | | | -| [gossip\_menu\_id](#creature_template-gossip_menu_id) | mediumint(8) unsigned | NO | | 0 | | | -| [minlevel](#creature_template-minlevel) | tinyint(3) unsigned | NO | | 1 | | | -| [maxlevel](#creature_template-maxlevel) | tinyint(3) unsigned | NO | | 1 | | | -| [exp](#creature_template-exp) | smallint(6) | NO | | 0 | | | -| [faction](#creature_template-faction) | smallint(5) unsigned | NO | | 0 | | | -| [npcflag](#creature_template-npcflag) | int(10) unsigned | NO | | 0 | | | -| [speed\_walk](#creature_template-speed_walk) | float | NO | | 1 | | Result of 2.5/2.5, most common value | -| [speed\_run](#creature_template-speed_run) | float | NO | | 1.14286 | | Result of 8.0/7.0, most common value | -| [scale](#creature_template-scale) | float | NO | | 1 | | | -| [rank](#creature_template-rank) | tinyint(3) unsigned | NO | | 0 | | | -| [dmgschool](#creature_template-dmgschool) | tinyint(4) | NO | | 0 | | | -| [BaseAttackTime](#creature_template-BaseAttackTime) | int(10) unsigned | NO | | 0 | | | -| [RangeAttackTime](#creature_template-RangeAttackTime) | int(10) unsigned | NO | | 0 | | | -| [BaseVariance](#creature_template-BaseVariance) | float | NO | | 1 | | | -| [RangeVariance](#creature_template-RangeVariance) | float | NO | | 1 | | | -| [unit\_class](#creature_template-unit_class) | tinyint(3) unsigned | NO | | 0 | | | -| [unit\_flags](#creature_template-unit_flags) | int(10) unsigned | NO | | 0 | | | -| [unit\_flags2](#creature_template-unit_flags2) | int(10) unsigned | NO | | 0 | | | -| [dynamicflags](#creature_template-dynamicflags) | int(10) unsigned | NO | | 0 | | | -| [family](#creature_template-family) | tinyint(4) | NO | | 0 | | | -| [trainer\_type](#creature_template-trainer_type) | tinyint(4) | NO | | 0 | | | -| [trainer\_spell](#creature_template-trainer_spell) | mediumint(8) unsigned | NO | | 0 | | | -| [trainer\_class](#creature_template-trainer_class) | tinyint(3) unsigned | NO | | 0 | | | -| [trainer\_race](#creature_template-trainer_race) | tinyint(3) unsigned | NO | | 0 | | | -| [type](#creature_template-type) | tinyint(3) unsigned | NO | | 0 | | | -| [type\_flags](#creature_template-type_flags) | int(10) unsigned | NO | | 0 | | | -| [lootid](#creature_template-lootid) | mediumint(8) unsigned | NO | | 0 | | | -| [pickpocketloot](#creature_template-pickpocketloot) | mediumint(8) unsigned | NO | | 0 | | | -| [skinloot](#creature_template-skinl) | mediumint(8) unsigned | NO | | 0 | | | -| [resistance1](#creature_template-resistance) | smallint(6) | NO | | 0 | | | -| [resistance2](#creature_template-resistance) | smallint(6) | NO | | 0 | | | -| [resistance3](#creature_template-resistance) | smallint(6) | NO | | 0 | | | -| [resistance4](#creature_template-resistance) | smallint(6) | NO | | 0 | | | -| [resistance5](#creature_template-resistance) | smallint(6) | NO | | 0 | | | -| [resistance6](#creature_template-resistance) | smallint(6) | NO | | 0 | | | -| [spell1](#creature_template-spell) | mediumint(8) unsigned | NO | | 0 | | | -| [spell2](#creature_template-spell) | mediumint(8) unsigned | NO | | 0 | | | -| [spell3](#creature_template-spell) | mediumint(8) unsigned | NO | | 0 | | | -| [spell4](#creature_template-spell) | mediumint(8) unsigned | NO | | 0 | | | -| [spell5](#creature_template-spell) | mediumint(8) unsigned | NO | | 0 | | | -| [spell6](#creature_template-spell) | mediumint(8) unsigned | NO | | 0 | | | -| [spell7](#creature_template-spell) | mediumint(8) unsigned | NO | | 0 | | | -| [spell8](#creature_template-spell) | mediumint(8) unsigned | NO | | 0 | | | -| [PetSpellDataId](#creature_template-PetSpellDataId) | mediumint(8) unsigned | NO | | 0 | | | -| [VehicleId](#creature_template-VehicleId) | mediumint(8) unsigned | NO | | 0 | | | -| [mingold](#creature_template-mingold) | mediumint(8) unsigned | NO | | 0 | | | -| [maxgold](#creature_template-maxgold) | mediumint(8) unsigned | NO | | 0 | | | -| [AIName](#creature_template-AIName) | char(64) | NO | | | | | -| [MovementType](#creature_template-MovementType) | tinyint(3) unsigned | NO | | 0 | | | -| [InhabitType](#creature_template-InhabitType) | tinyint(3) unsigned | NO | | 3 | | | -| [HoverHeight](#creature_template-HoverHeight) | float | NO | | 1 | | | -| [HealthModifier](#creature_template-HealthModifier) | float | NO | | 1 | | | -| [ManaModifier](#creature_template-ManaModifier) | float | NO | | 1 | | | -| [ArmorModifier](#creature_template-ArmorModifier) | float | NO | | 1 | | | -| [DamageModifier](#creature_template-DamageModifier) | float | NO | | 1 | | | -| [ExperienceModifier](#creature_template-ExperienceModifier) | float | NO | | 1 | | | -| [RacialLeader](#creature_template-RacialLeader) | tinyint(3) unsigned | NO | | 0 | | | -| [movementId](#creature_template-movementId) | int(11) unsigned | NO | | 0 | | | -| [RegenHealth](#creature_template-RegenHealth) | tinyint(3) unsigned | NO | | 1 | | | -| [mechanic\_immune\_mask](#creature_template-mechanic_immune_mask) | int(10) unsigned | NO | | 0 | | | -| [flags\_extra](#creature_template-flags_extra) | int(10) unsigned | NO | | 0 | | | -| [ScriptName](#creature_template-ScriptName) | char(64) | NO | | | | | -| [VerifiedBuild](#creature_template-VerifiedBuild) | smallint(5) | YES | | 0 | | | - -** -** +| Field | Type | Null | Key | Default | Extra | Comment | +|-------------------------------------------------------------------|-----------------------|------|-----|---------|-------|--------------------------------------| +| [entry](#creature_template-entry) | mediumint(8) unsigned | NO | PRI | 0 | | | +| [difficulty\_entry\_1](#creature_template-difficulty_entry) | mediumint(8) unsigned | NO | | 0 | | | +| [difficulty\_entry\_2](#creature_template-difficulty_entry) | mediumint(8) unsigned | NO | | 0 | | | +| [difficulty\_entry\_3](#creature_template-difficulty_entry) | mediumint(8) unsigned | NO | | 0 | | | +| [KillCredit1](#creature_template-KillCredit1) | int(10) unsigned | NO | | 0 | | | +| [KillCredit2](#creature_template-KillCredit2) | int(10) unsigned | NO | | 0 | | | +| [modelid1](#creature_template-modelid) | mediumint(8) unsigned | NO | | 0 | | | +| [modelid2](#creature_template-modelid) | mediumint(8) unsigned | NO | | 0 | | | +| [modelid3](#creature_template-modelid) | mediumint(8) unsigned | NO | | 0 | | | +| [modelid4](#creature_template-modelid) | mediumint(8) unsigned | NO | | 0 | | | +| [name](#creature_template-name) | char(100) | NO | MUL | 0 | | | +| [subname](#creature_template-subname) | char(100) | YES | | (NULL) | | | +| [IconName](#creature_template-IconName) | char(100) | YES | | (NULL) | | | +| [gossip\_menu\_id](#creature_template-gossip_menu_id) | mediumint(8) unsigned | NO | | 0 | | | +| [minlevel](#creature_template-minlevel) | tinyint(3) unsigned | NO | | 1 | | | +| [maxlevel](#creature_template-maxlevel) | tinyint(3) unsigned | NO | | 1 | | | +| [exp](#creature_template-exp) | smallint(6) | NO | | 0 | | | +| [faction](#creature_template-faction) | smallint(5) unsigned | NO | | 0 | | | +| [npcflag](#creature_template-npcflag) | int(10) unsigned | NO | | 0 | | | +| [speed\_walk](#creature_template-speed_walk) | float | NO | | 1 | | Result of 2.5/2.5, most common value | +| [speed\_run](#creature_template-speed_run) | float | NO | | 1.14286 | | Result of 8.0/7.0, most common value | +| [scale](#creature_template-scale) | float | NO | | 1 | | | +| [rank](#creature_template-rank) | tinyint(3) unsigned | NO | | 0 | | | +| [dmgschool](#creature_template-dmgschool) | tinyint(4) | NO | | 0 | | | +| [BaseAttackTime](#creature_template-BaseAttackTime) | int(10) unsigned | NO | | 0 | | | +| [RangeAttackTime](#creature_template-RangeAttackTime) | int(10) unsigned | NO | | 0 | | | +| [BaseVariance](#creature_template-BaseVariance) | float | NO | | 1 | | | +| [RangeVariance](#creature_template-RangeVariance) | float | NO | | 1 | | | +| [unit\_class](#creature_template-unit_class) | tinyint(3) unsigned | NO | | 0 | | | +| [unit\_flags](#creature_template-unit_flags) | int(10) unsigned | NO | | 0 | | | +| [unit\_flags2](#creature_template-unit_flags2) | int(10) unsigned | NO | | 0 | | | +| [dynamicflags](#creature_template-dynamicflags) | int(10) unsigned | NO | | 0 | | | +| [family](#creature_template-family) | tinyint(4) | NO | | 0 | | | +| [trainer\_type](#creature_template-trainer_type) | tinyint(4) | NO | | 0 | | | +| [trainer\_spell](#creature_template-trainer_spell) | mediumint(8) unsigned | NO | | 0 | | | +| [trainer\_class](#creature_template-trainer_class) | tinyint(3) unsigned | NO | | 0 | | | +| [trainer\_race](#creature_template-trainer_race) | tinyint(3) unsigned | NO | | 0 | | | +| [type](#creature_template-type) | tinyint(3) unsigned | NO | | 0 | | | +| [type\_flags](#creature_template-type_flags) | int(10) unsigned | NO | | 0 | | | +| [lootid](#creature_template-lootid) | mediumint(8) unsigned | NO | | 0 | | | +| [pickpocketloot](#creature_template-pickpocketloot) | mediumint(8) unsigned | NO | | 0 | | | +| [skinloot](#creature_template-skinl) | mediumint(8) unsigned | NO | | 0 | | | +| [resistance1](#creature_template-resistance) | smallint(6) | NO | | 0 | | | +| [resistance2](#creature_template-resistance) | smallint(6) | NO | | 0 | | | +| [resistance3](#creature_template-resistance) | smallint(6) | NO | | 0 | | | +| [resistance4](#creature_template-resistance) | smallint(6) | NO | | 0 | | | +| [resistance5](#creature_template-resistance) | smallint(6) | NO | | 0 | | | +| [resistance6](#creature_template-resistance) | smallint(6) | NO | | 0 | | | +| [spell1](#creature_template-spell) | mediumint(8) unsigned | NO | | 0 | | | +| [spell2](#creature_template-spell) | mediumint(8) unsigned | NO | | 0 | | | +| [spell3](#creature_template-spell) | mediumint(8) unsigned | NO | | 0 | | | +| [spell4](#creature_template-spell) | mediumint(8) unsigned | NO | | 0 | | | +| [spell5](#creature_template-spell) | mediumint(8) unsigned | NO | | 0 | | | +| [spell6](#creature_template-spell) | mediumint(8) unsigned | NO | | 0 | | | +| [spell7](#creature_template-spell) | mediumint(8) unsigned | NO | | 0 | | | +| [spell8](#creature_template-spell) | mediumint(8) unsigned | NO | | 0 | | | +| [PetSpellDataId](#creature_template-PetSpellDataId) | mediumint(8) unsigned | NO | | 0 | | | +| [VehicleId](#creature_template-VehicleId) | mediumint(8) unsigned | NO | | 0 | | | +| [mingold](#creature_template-mingold) | mediumint(8) unsigned | NO | | 0 | | | +| [maxgold](#creature_template-maxgold) | mediumint(8) unsigned | NO | | 0 | | | +| [AIName](#creature_template-AIName) | char(64) | NO | | | | | +| [MovementType](#creature_template-MovementType) | tinyint(3) unsigned | NO | | 0 | | | +| [InhabitType](#creature_template-InhabitType) | tinyint(3) unsigned | NO | | 3 | | | +| [HoverHeight](#creature_template-HoverHeight) | float | NO | | 1 | | | +| [HealthModifier](#creature_template-HealthModifier) | float | NO | | 1 | | | +| [ManaModifier](#creature_template-ManaModifier) | float | NO | | 1 | | | +| [ArmorModifier](#creature_template-ArmorModifier) | float | NO | | 1 | | | +| [DamageModifier](#creature_template-DamageModifier) | float | NO | | 1 | | | +| [ExperienceModifier](#creature_template-ExperienceModifier) | float | NO | | 1 | | | +| [RacialLeader](#creature_template-RacialLeader) | tinyint(3) unsigned | NO | | 0 | | | +| [movementId](#creature_template-movementId) | int(11) unsigned | NO | | 0 | | | +| [RegenHealth](#creature_template-RegenHealth) | tinyint(3) unsigned | NO | | 1 | | | +| [mechanic\_immune\_mask](#creature_template-mechanic_immune_mask) | int(10) unsigned | NO | | 0 | | | +| [flags\_extra](#creature_template-flags_extra) | int(10) unsigned | NO | | 0 | | | +| [ScriptName](#creature_template-ScriptName) | char(64) | NO | | | | | +| [VerifiedBuild](#creature_template-VerifiedBuild) | smallint(5) | YES | | 0 | | | + +--- **Description of the fields** @@ -148,7 +147,7 @@ Used to tell the player what kind of NPC this creature is. | **Taxi** | Shows a boot with wings icon identifying this NPC as a taxi. | | **Repair** | Shows a anvil icon identifying that this NPC can repair. | | **LootAll** | Shows a multiple brown bag icon (same as holding shift before looting a creature). | -| **Quest** | Unused or unknown (see entry 32870 "The Real Ronakada"). | +| **Quest** | Unused or unknown (see entry 32870 "The Real Ronakada"). | | **PVP** | Unused or Unknown (see entry 29387 "Arena Master: Dalaran Arena"). | **Attention!** This is not required to make the NPC function unless you are using scripts or gossip options. Names are case sensitive, If in doubt use an example above. @@ -185,101 +184,34 @@ Note: This field also controls the creature family assistance mechanic. Only cre A bitmask that represents what NPC flags the creature has. Each bit controls a different flag and to combine flags, you can add each flag that you want, in effect activating the respective bits. -# **npcflag** - -Decimal -Hexadecimal -Name -Comment -1 -0x0000 0001 -Gossip -If creature has more gossip options, add this flag to bring up a menu. -2 -0x0000 0002 -Quest Giver -Any creature giving or taking quests needs to have this flag. -16 -0x0000 0010 -Trainer -Allows the creature to have a trainer list to teach spells -32 -0x0000 0020 -Class Trainer -64 -0x0000 0040 -Profession Trainer -128 -0x0000 0080 -Vendor -Any creature selling items needs to have this flag. -256 -0x0000 0100 -Vendor Ammo -512 -0x0000 0200 -Vendor Food -1024 -0x0000 0400 -Vendor Poison -2048 -0x0000 0800 -Vendor Reagent -4096 -0x0000 1000 -Repairer -Creatures with this flag can repair items. -8192 -0x0000 2000 -Flight Master -Any creature serving as flight master has this. -16384 -0x0000 4000 -Spirit Healer -Makes the creature invisible to alive characters and has the resurrect function. -32768 -0x0000 8000 -Spirit Guide -65536 -0x0001 0000 -Innkeeper -Creatures with this flag can set hearthstone locations. -131072 -0x0002 0000 -Banker -Creatures with this flag can show the bank -262144 -0x0004 0000 -Petitioner -524288 -0x0008 0000 -Tabard Designer -Allows the designing of guild tabards. -1048576 -0x0010 0000 -Battlemaster -Creatures with this flag port players to battlegrounds. -2097152 -0x0020 0000 -Auctioneer -Allows creature to display auction list. -4194304 -0x0040 0000 -Stable Master -Has the option to stable pets for hunters. -8388608 -0x0080 0000 -Guild Banker -16777216 -0x0100 0000 -Spellclick -Needs data on npc\_spellclick\_spells table -67108864 -0x0400 0000 -Mailbox -NPC will act like a mailbox (opens mailbox with right-click) - -So if you want a NPC that is a quest giver(2), a vendor(128) and can repair(4096) you just add specific flags together: 2+128+4096=4226 +| Flag | | Name | Comment | +|----------|------------|--------------------|----------------------------------------------------------------------------------| +| 1 | 0x00000001 | Gossip | If creature has more gossip options, add this flag to bring up a menu. | +| 2 | 0x00000002 | Quest Giver | Any creature giving or taking quests needs to have this flag. | +| 16 | 0x00000010 | Trainer | Allows the creature to have a trainer list to teach spells | +| 32 | 0x00000020 | Class Trainer | | +| 64 | 0x00000040 | Profession Trainer | | +| 128 | 0x00000080 | Vendor | Any creature selling items needs to have this flag. | +| 256 | 0x00000100 | Vendor Ammo | | +| 512 | 0x00000200 | Vendor Food | | +| 1024 | 0x00000400 | Vendor Poison | | +| 2048 | 0x00000800 | Vendor Reagent | | +| 4096 | 0x00001000 | Repairer | Creatures with this flag can repair items. | +| 8192 | 0x00002000 | Flight Master | Any creature serving as flight master has this. | +| 16384 | 0x00004000 | Spirit Healer | Makes the creature invisible to alive characters and has the resurrect function. | +| 32768 | 0x00008000 | Spirit Guide | | +| 65536 | 0x00010000 | Innkeeper | Creatures with this flag can set hearthstone locations. | +| 131072 | 0x00020000 | Banker | Creatures with this flag can show the bank | +| 262144 | 0x00040000 | Petitioner | | +| 524288 | 0x00080000 | Tabard Designer | Allows the designing of guild tabards. | +| 1048576 | 0x00100000 | Battlemaster | Creatures with this flag port players to battlegrounds. | +| 2097152 | 0x00200000 | Auctioneer | Allows creature to display auction list. | +| 4194304 | 0x00400000 | Stable Master | Has the option to stable pets for hunters. | +| 8388608 | 0x00800000 | Guild Banker | | +| 16777216 | 0x01000000 | Spellclick | Needs data on npc_spellclick_spells table | +| 67108864 | 0x04000000 | Mailbox | NPC will act like a mailbox (opens mailbox with right-click) | + +So if you want a NPC that is a quest giver(2), a vendor(128) and can repair(4096) you just add specific flags together: 2+128+4096=4226 #### speed\_walk @@ -297,16 +229,13 @@ If non-zero, this field defines the size of how the model of the creature appear The rank of the creature: -| Rank | Name | Default Respawn Time - [Creature.spawntimesecs](http://archive.trinitycore.info/Creature_tc2#spawntimesecs "Creature tc2") | Corpse Decay Time - Worldserver.conf (Corpse.Decay) | Total Default Respawn - [spawntimesecs](http://archive.trinitycore.info/Creature_tc2#spawntimesecs "Creature tc2") + Corpse.Decay | -|------|------------|-----------------------------------------------------------------------------------------------------|---------------------------------|-----------------------------------------------------------------------------------------------------------| -| 0 | Normal | 5 min | 60 sec | 6 min | -| 1 | Elite | 5 min | 5 min | 10 min | -| 2 | Rare Elite | 5 min | 5 min | 10 min | -| 3 | Boss | 5 min | 1 hour | 1 hour, 5 min | -| 4 | Rare | 5 min | 5 min | 10 min | +| Rank | Name | Default Respawn Time Creature.spawntimesecs | Corpse Decay Time Worldserver.conf (Corpse.Decay) | Total Default Respawn spawntimesecs + Corpse.Decay | +|------|------------|---------------------------------------------|---------------------------------------------------|----------------------------------------------------| +| 0 | Normal | 5 min | 60 sec | 6 min | +| 1 | Elite | 5 min | 5 min | 10 min | +| 2 | Rare Elite | 5 min | 5 min | 10 min | +| 3 | Boss | 5 min | 1 hour | 1 hour, 5 min | +| 4 | Rare | 5 min | 5 min | 10 min | **Note 1:** An NPC's rank is mostly visual (which also requires your Cache to be cleared to see changes). Changing this value will not change its health, damage, or loot. However, it will change the respawn time of the creature. @@ -318,15 +247,15 @@ The rank of the creature: Creature's melee damage school. -| ID | Name | -|-----|-----------------------| -| 0 | SPELL\_SCHOOL\_NORMAL | -| 1 | SPELL\_SCHOOL\_HOLY | -| 2 | SPELL\_SCHOOL\_FIRE | -| 3 | SPELL\_SCHOOL\_NATURE | -| 4 | SPELL\_SCHOOL\_FROST | -| 5 | SPELL\_SCHOOL\_SHADOW | -| 6 | SPELL\_SCHOOL\_ARCANE | +| ID | Name | +|----|-----------------------| +| 0 | SPELL\_SCHOOL\_NORMAL | +| 1 | SPELL\_SCHOOL\_HOLY | +| 2 | SPELL\_SCHOOL\_FIRE | +| 3 | SPELL\_SCHOOL\_NATURE | +| 4 | SPELL\_SCHOOL\_FROST | +| 5 | SPELL\_SCHOOL\_SHADOW | +| 6 | SPELL\_SCHOOL\_ARCANE | #### BaseAttackTime @@ -351,207 +280,66 @@ This is the creature's class, and it dictates levels of health and mana. Also no Allows the manual application of unit flags to creatures. Again this is a bitmask field and to apply more than one flag, just add the different numbers. Some possible flags are: -# unit\_flags - -Decimal -Hexadecimal -Name -Comments -1 -0x0000 0001 -UNIT\_FLAG\_SERVER\_CONTROLLED -2 -0x0000 0002 -UNIT\_FLAG\_NON\_ATTACKABLE -4 -0x0000 0004 -UNIT\_FLAG\_REMOVE\_CLIENT\_CONTROL -8 -0x0000 0008 -UNIT\_FLAG\_PVP\_ATTACKABLE -Allows to apply PvP rules to attackable state in addition to faction dependent state -16 -0x0000 0010 -UNIT\_FLAG\_RENAME -32 -0x0000 0020 -UNIT\_FLAG\_PREPARATION -Don't take reagents for spells with SPELL\_ATTR\_EX5\_NO\_REAGENT\_WHILE\_PREP -64 -0x0000 0040 -UNIT\_FLAG\_UNK\_6 -not sure what it does, but it is needed to cast nontriggered spells in smart\_scripts -128 -0x0000 0080 -UNIT\_FLAG\_NOT\_ATTACKABLE\_1 -UNIT\_FLAG\_PVP\_ATTACKABLE| UNIT\_FLAG\_NOT\_ATTACKABLE\_1 is NON\_PVP\_ATTACKABLE -256 -0x0000 0100 -UNIT\_FLAG\_IMMUNE\_TO\_PC -disables combat/assistance with PlayerCharacters (PC) -512 -0x0000 0200 -UNIT\_FLAG\_IMMUNE\_TO\_NPC -disables combat/assistance with NonPlayerCharacters (NPC) -1024 -0x0000 0400 -UNIT\_FLAG\_LOOTING -Loot animation -2048 -0x0000 0800 -UNIT\_FLAG\_PET\_IN\_COMBAT -In combat? 2.0.8 -4096 -0x0000 1000 -UNIT\_FLAG\_PVP -Changed in 3.0.3 -8192 -0x0000 2000 -UNIT\_FLAG\_SILENCED -Can't cast spells -16384 -0x0000 4000 -UNIT\_FLAG\_CANNOT\_SWIM -2.0.8 -32768 -0x0000 8000 -UNIT\_FLAG\_UNK\_15 -Only Swim (['OnlySwim' from UnitFlags.cs in WPP](https://github.com/TrinityCore/WowPacketParser/blob/master/WowPacketParser/Enums/UnitFlags.cs)) -65536 -0x0001 0000 -UNIT\_FLAG\_UNK\_16 -No Attack 2 (['NoAttack2' from UnitFlags.cs in WPP](https://github.com/TrinityCore/WowPacketParser/blob/master/WowPacketParser/Enums/UnitFlags.cs)) -131072 -0x0002 0000 -UNIT\_FLAG\_PACIFIED -Creature will not attack -262144 -0x0004 0000 -UNIT\_FLAG\_STUNNED -3.0.3 ok -524288 -0x0008 0000 -UNIT\_FLAG\_IN\_COMBAT -('AffectingCombat'[from UnitFlags.cs in WPP](https://github.com/TrinityCore/WowPacketParser/blob/master/WowPacketParser/Enums/UnitFlags.cs)) -1048576 -0x0010 0000 -UNIT\_FLAG\_TAXI\_FLIGHT -Disable casting at client side spell not allowed by taxi flight (mounted?), probably used with 0x4 flag -2097152 -0x0020 0000 -UNIT\_FLAG\_DISARMED -3.0.3, disable melee spells casting..., "Required melee weapon" added to melee spells tooltip. -4194304 -0x0040 0000 -UNIT\_FLAG\_CONFUSED -Confused. -8388608 -0x0080 0000 -UNIT\_FLAG\_FLEEING -(['Feared' from UnitFlags.cs in WPP](https://github.com/TrinityCore/WowPacketParser/blob/master/WowPacketParser/Enums/UnitFlags.cs)) -16777216 -0x0100 0000 -UNIT\_FLAG\_PLAYER\_CONTROLLED -Used in spell Eyes of the Beast for pet... let attack by controlled creature. Also used by Vehicles (PCV). -54432 -0x0200 0000 -UNIT\_FLAG\_NOT\_SELECTABLE -Can't be selected by mouse or with /target {name} command. -67108864 -0x0400 0000 -UNIT\_FLAG\_SKINNABLE -Skinnable -134217728 -0x0800 0000 -UNIT\_FLAG\_MOUNT -The client seems to handle it perfectly. Also used when making custom mounts. -268435456 -0x1000 0000 -UNIT\_FLAG\_UNK\_28 -([PreventKneelingWhenLooting from UnitFlags.cs in WPP](https://github.com/TrinityCore/WowPacketParser/blob/master/WowPacketParser/Enums/UnitFlags.cs)) -536870912 -0x2000 0000 -UNIT\_FLAG\_UNK\_29 -Used in Feign Death spell or NPC will play dead. ([PreventEmotes](https://github.com/TrinityCore/WowPacketParser/blob/master/WowPacketParser/Enums/UnitFlags.cs)) -1073741824 -0x4000 0000 -UNIT\_FLAG\_SHEATHE -2147483648 -0x8000 0000 -UNIT\_FLAG\_UNK\_31 +| Flag | | Name | Comments | +|------------|------------|---------------------------------|------------------------------------------------------------------------------------------------------------| +| 1 | 0x00000001 | UNIT_FLAG_SERVER_CONTROLLED | | +| 2 | 0x00000002 | UNIT_FLAG_NON_ATTACKABLE | | +| 4 | 0x00000004 | UNIT_FLAG_REMOVE_CLIENT_CONTROL | | +| 8 | 0x00000008 | UNIT_FLAG_PVP_ATTACKABLE | Allows to apply PvP rules to attackable state in addition to faction dependent state | +| 16 | 0x00000010 | UNIT_FLAG_RENAME | | +| 32 | 0x00000020 | UNIT_FLAG_PREPARATION | Don't take reagents for spells with SPELL_ATTR_EX5_NO_REAGENT_WHILE_PREP | +| 64 | 0x00000040 | UNIT_FLAG_UNK_6 | not sure what it does, but it is needed to cast nontriggered spells in smart_scripts | +| 128 | 0x00000080 | UNIT_FLAG_NOT_ATTACKABLE_1 | UNIT_FLAG_PVP_ATTACKABLE|UNIT_FLAG_NOT_ATTACKABLE_1 is NON_PVP_ATTACKABLE | +| 256 | 0x00000100 | UNIT_FLAG_IMMUNE_TO_PC | disables combat/assistance with PlayerCharacters (PC) | +| 512 | 0x00000200 | UNIT_FLAG_IMMUNE_TO_NPC | disables combat/assistance with NonPlayerCharacters (NPC) | +| 1024 | 0x00000400 | UNIT_FLAG_LOOTING | Loot animation | +| 2048 | 0x00000800 | UNIT_FLAG_PET_IN_COMBAT | In combat? 2.0.8 | +| 4096 | 0x00001000 | UNIT_FLAG_PVP | Changed in 3.0.3 | +| 8192 | 0x00002000 | UNIT_FLAG_SILENCED | Can't cast spells | +| 16384 | 0x00004000 | UNIT_FLAG_CANNOT_SWIM | 2.0.8 | +| 32768 | 0x00008000 | UNIT_FLAG_UNK_15 | Only Swim ('OnlySwim' from UnitFlags.cs in WPP) | +| 65536 | 0x00010000 | UNIT_FLAG_UNK_16 | No Attack 2 ('NoAttack2' from UnitFlags.cs in WPP) | +| 131072 | 0x00020000 | UNIT_FLAG_PACIFIED | Creature will not attack | +| 262144 | 0x00040000 | UNIT_FLAG_STUNNED | 3.0.3 ok | +| 524288 | 0x00080000 | UNIT_FLAG_IN_COMBAT | ('AffectingCombat' from UnitFlags.cs in WPP) | +| 1048576 | 0x00100000 | UNIT_FLAG_TAXI_FLIGHT | Disable casting at client side spell not allowed by taxi flight (mounted?), probably used with 0x4 flag | +| 2097152 | 0x00200000 | UNIT_FLAG_DISARMED | 3.0.3, disable melee spells casting..., "Required melee weapon" added to melee spells tooltip. | +| 4194304 | 0x00400000 | UNIT_FLAG_CONFUSED | Confused. | +| 8388608 | 0x00800000 | UNIT_FLAG_FLEEING | ('Feared' from UnitFlags.cs in WPP) | +| 16777216 | 0x01000000 | UNIT_FLAG_PLAYER_CONTROLLED | Used in spell Eyes of the Beast for pet... let attack by controlled creature. Also used by Vehicles (PCV). | +| 33554432 | 0x02000000 | UNIT_FLAG_NOT_SELECTABLE | Can't be selected by mouse or with /target {name} command. | +| 67108864 | 0x04000000 | UNIT_FLAG_SKINNABLE | Skinnable | +| 134217728 | 0x08000000 | UNIT_FLAG_MOUNT | The client seems to handle it perfectly. Also used when making custom mounts. | +| 268435456 | 0x10000000 | UNIT_FLAG_UNK_28 | (PreventKneelingWhenLooting from UnitFlags.cs in WPP) | +| 536870912 | 0x20000000 | UNIT_FLAG_UNK_29 | Used in Feign Death spell or NPC will play dead. (PreventEmotes) | +| 1073741824 | 0x40000000 | UNIT_FLAG_SHEATHE | |
