summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/creature_template.md505
1 files changed, 260 insertions, 245 deletions
diff --git a/docs/creature_template.md b/docs/creature_template.md
index b445c32..6e5430d 100644
--- a/docs/creature_template.md
+++ b/docs/creature_template.md
@@ -2,72 +2,72 @@
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](#entry) | MEDIUMINT UNSIGNED | NO | PRI | 0 | | |
-| [difficulty_entry_1](#difficulty_entry_x) | MEDIUMINT UNSIGNED | NO | | 0 | | |
-| [difficulty_entry_2](#difficulty_entry_x) | MEDIUMINT UNSIGNED | NO | | 0 | | |
-| [difficulty_entry_3](#difficulty_entry_x) | MEDIUMINT UNSIGNED | NO | | 0 | | |
-| [KillCredit1](#killcredit1) | INT UNSIGNED | NO | | 0 | | |
-| [KillCredit2](#killcredit2) | INT UNSIGNED | NO | | 0 | | |
-| [modelid1](#modelidx) | MEDIUMINT UNSIGNED | NO | | 0 | | |
-| [modelid2](#modelidx) | MEDIUMINT UNSIGNED | NO | | 0 | | |
-| [modelid3](#modelidx) | MEDIUMINT UNSIGNED | NO | | 0 | | |
-| [modelid4](#modelidx) | MEDIUMINT UNSIGNED | NO | | 0 | | |
-| [name](#name) | char(100) | NO | MUL | 0 | | |
-| [subname](#subname) | char(100) | YES | | (NULL) | | |
-| [IconName](#iconname) | char(100) | YES | | (NULL) | | |
-| [gossip_menu_id](#gossip_menu_id) | MEDIUMINT UNSIGNED | NO | | 0 | | |
-| [minlevel](#minlevel) | TINYINT UNSIGNED | NO | | 1 | | |
-| [maxlevel](#maxlevel) | TINYINT UNSIGNED | NO | | 1 | | |
-| [exp](#exp) | SMALLINT | NO | | 0 | | |
-| [faction](#faction) | SMALLINT UNSIGNED | NO | | 0 | | |
-| [npcflag](#npcflag) | INT UNSIGNED | NO | | 0 | | |
-| [speed_walk](#speed_walk) | FLOAT | NO | | 1 | | Result of 2.5/2.5, most common value |
-| [speed_run](#speed_run) | FLOAT | NO | | 1.14286 | | Result of 8.0/7.0, most common value |
-| [detection_range](#detection_range) | FLOAT | NO | | 20 | | |
-| [scale](#scale) | FLOAT | NO | | 1 | | |
-| [rank](#rank) | TINYINT UNSIGNED | NO | | 0 | | |
-| [dmgschool](#dmgschool) | TINYINT | NO | | 0 | | |
-| [BaseAttackTime](#baseattacktime) | INT UNSIGNED | NO | | 0 | | |
-| [RangeAttackTime](#rangeattacktime) | INT UNSIGNED | NO | | 0 | | |
-| [BaseVariance](#basevariance) | FLOAT | NO | | 1 | | |
-| [RangeVariance](#rangevariance) | FLOAT | NO | | 1 | | |
-| [unit_class](#unit_class) | TINYINT UNSIGNED | NO | | 0 | | |
-| [unit_flags](#unit_flags) | INT UNSIGNED | NO | | 0 | | |
-| [unit_flags2](#unit_flags2) | INT UNSIGNED | NO | | 0 | | |
-| [dynamicflags](#dynamicflags) | INT UNSIGNED | NO | | 0 | | |
-| [family](#family) | TINYINT | NO | | 0 | | |
-| [trainer_type](#trainer_type) | TINYINT | NO | | 0 | | |
-| [trainer_spell](#trainer_spell) | MEDIUMINT UNSIGNED | NO | | 0 | | |
-| [trainer_class](#trainer_class) | TINYINT UNSIGNED | NO | | 0 | | |
-| [trainer_race](#trainer_race) | TINYINT UNSIGNED | NO | | 0 | | |
-| [type](#type) | TINYINT UNSIGNED | NO | | 0 | | |
-| [type_flags](#type_flags) | INT UNSIGNED | NO | | 0 | | |
-| [lootid](#lootid) | MEDIUMINT UNSIGNED | NO | | 0 | | |
-| [pickpocketloot](#pickpocketloot) | MEDIUMINT UNSIGNED | NO | | 0 | | |
+| Field | Type | Null | Key | Default | Extra | Comment |
+| -------------------------------------------------- | ------------------ | ---- | --- | ------- | ----- | ------------------------------------ |
+| [entry](#entry) | MEDIUMINT UNSIGNED | NO | PRI | 0 | | |
+| [difficulty_entry_1](#difficulty_entry_x) | MEDIUMINT UNSIGNED | NO | | 0 | | |
+| [difficulty_entry_2](#difficulty_entry_x) | MEDIUMINT UNSIGNED | NO | | 0 | | |
+| [difficulty_entry_3](#difficulty_entry_x) | MEDIUMINT UNSIGNED | NO | | 0 | | |
+| [KillCredit1](#killcredit1) | INT UNSIGNED | NO | | 0 | | |
+| [KillCredit2](#killcredit2) | INT UNSIGNED | NO | | 0 | | |
+| [modelid1](#modelidx) | MEDIUMINT UNSIGNED | NO | | 0 | | |
+| [modelid2](#modelidx) | MEDIUMINT UNSIGNED | NO | | 0 | | |
+| [modelid3](#modelidx) | MEDIUMINT UNSIGNED | NO | | 0 | | |
+| [modelid4](#modelidx) | MEDIUMINT UNSIGNED | NO | | 0 | | |
+| [name](#name) | char(100) | NO | MUL | 0 | | |
+| [subname](#subname) | char(100) | YES | | (NULL) | | |
+| [IconName](#iconname) | char(100) | YES | | (NULL) | | |
+| [gossip_menu_id](#gossip_menu_id) | MEDIUMINT UNSIGNED | NO | | 0 | | |
+| [minlevel](#minlevel) | TINYINT UNSIGNED | NO | | 1 | | |
+| [maxlevel](#maxlevel) | TINYINT UNSIGNED | NO | | 1 | | |
+| [exp](#exp) | SMALLINT | NO | | 0 | | |
+| [faction](#faction) | SMALLINT UNSIGNED | NO | | 0 | | |
+| [npcflag](#npcflag) | INT UNSIGNED | NO | | 0 | | |
+| [speed_walk](#speed_walk) | FLOAT | NO | | 1 | | Result of 2.5/2.5, most common value |
+| [speed_run](#speed_run) | FLOAT | NO | | 1.14286 | | Result of 8.0/7.0, most common value |
+| [detection_range](#detection_range) | FLOAT | NO | | 20 | | |
+| [scale](#scale) | FLOAT | NO | | 1 | | |
+| [rank](#rank) | TINYINT UNSIGNED | NO | | 0 | | |
+| [dmgschool](#dmgschool) | TINYINT | NO | | 0 | | |
+| [BaseAttackTime](#baseattacktime) | INT UNSIGNED | NO | | 0 | | |
+| [RangeAttackTime](#rangeattacktime) | INT UNSIGNED | NO | | 0 | | |
+| [BaseVariance](#basevariance) | FLOAT | NO | | 1 | | |
+| [RangeVariance](#rangevariance) | FLOAT | NO | | 1 | | |
+| [unit_class](#unit_class) | TINYINT UNSIGNED | NO | | 0 | | |
+| [unit_flags](#unit_flags) | INT UNSIGNED | NO | | 0 | | |
+| [unit_flags2](#unit_flags2) | INT UNSIGNED | NO | | 0 | | |
+| [dynamicflags](#dynamicflags) | INT UNSIGNED | NO | | 0 | | |
+| [family](#family) | TINYINT | NO | | 0 | | |
+| [trainer_type](#trainer_type) | TINYINT | NO | | 0 | | |
+| [trainer_spell](#trainer_spell) | MEDIUMINT UNSIGNED | NO | | 0 | | |
+| [trainer_class](#trainer_class) | TINYINT UNSIGNED | NO | | 0 | | |
+| [trainer_race](#trainer_race) | TINYINT UNSIGNED | NO | | 0 | | |
+| [type](#type) | TINYINT UNSIGNED | NO | | 0 | | |
+| [type_flags](#type_flags) | INT UNSIGNED | NO | | 0 | | |
+| [lootid](#lootid) | MEDIUMINT UNSIGNED | NO | | 0 | | |
+| [pickpocketloot](#pickpocketloot) | MEDIUMINT UNSIGNED | NO | | 0 | | |
| [skinloot](#skinloot) | MEDIUMINT UNSIGNED | NO | | 0 | | |
-| [PetSpellDataId](#petspelldataid) | MEDIUMINT UNSIGNED | NO | | 0 | | |
-| [VehicleId](#vehicleid) | MEDIUMINT UNSIGNED | NO | | 0 | | |
-| [mingold](#mingold) | MEDIUMINT UNSIGNED | NO | | 0 | | |
-| [maxgold](#maxgold) | MEDIUMINT UNSIGNED | NO | | 0 | | |
-| [AIName](#ainame) | char(64) | NO | | | | |
-| [MovementType](#movementtype) | TINYINT UNSIGNED | NO | | 0 | | |
-| [InhabitType](#inhabittype) | TINYINT UNSIGNED | NO | | 3 | | |
-| [HoverHeight](#hoverheight) | FLOAT | NO | | 1 | | |
-| [HealthModifier](#healthmodifier) | FLOAT | NO | | 1 | | |
-| [ManaModifier](#manamodifier) | FLOAT | NO | | 1 | | |
-| [ArmorModifier](#armormodifier) | FLOAT | NO | | 1 | | |
-| [DamageModifier](#damagemodifier) | FLOAT | NO | | 1 | | |
-| [ExperienceModifier](#experiencemodifier) | FLOAT | NO | | 1 | | |
-| [RacialLeader](#racialleader) | TINYINT UNSIGNED | NO | | 0 | | |
-| [movementId](#movementid) | INT UNSIGNED | NO | | 0 | | |
-| [RegenHealth](#regenhealth) | TINYINT UNSIGNED | NO | | 1 | | |
-| [mechanic_immune_mask](#mechanicimmunemask) | INT UNSIGNED | NO | | 0 | | |
-| [spell_school_immune_mask](#spellschoolimmunemask) | INT UNSIGNED | NO | | 0
-| [flags_extra](#flags_extra) | INT UNSIGNED | NO | | 0 | | |
-| [ScriptName](#scriptname) | char(64) | NO | | | | |
-| [VerifiedBuild](#verifiedbuild) | SMALLINT | YES | | 0 | | |
+| [PetSpellDataId](#petspelldataid) | MEDIUMINT UNSIGNED | NO | | 0 | | |
+| [VehicleId](#vehicleid) | MEDIUMINT UNSIGNED | NO | | 0 | | |
+| [mingold](#mingold) | MEDIUMINT UNSIGNED | NO | | 0 | | |
+| [maxgold](#maxgold) | MEDIUMINT UNSIGNED | NO | | 0 | | |
+| [AIName](#ainame) | char(64) | NO | | | | |
+| [MovementType](#movementtype) | TINYINT UNSIGNED | NO | | 0 | | |
+| [InhabitType](#inhabittype) | TINYINT UNSIGNED | NO | | 3 | | |
+| [HoverHeight](#hoverheight) | FLOAT | NO | | 1 | | |
+| [HealthModifier](#healthmodifier) | FLOAT | NO | | 1 | | |
+| [ManaModifier](#manamodifier) | FLOAT | NO | | 1 | | |
+| [ArmorModifier](#armormodifier) | FLOAT | NO | | 1 | | |
+| [DamageModifier](#damagemodifier) | FLOAT | NO | | 1 | | |
+| [ExperienceModifier](#experiencemodifier) | FLOAT | NO | | 1 | | |
+| [RacialLeader](#racialleader) | TINYINT UNSIGNED | NO | | 0 | | |
+| [movementId](#movementid) | INT UNSIGNED | NO | | 0 | | |
+| [RegenHealth](#regenhealth) | TINYINT UNSIGNED | NO | | 1 | | |
+| [mechanic_immune_mask](#mechanicimmunemask) | INT UNSIGNED | NO | | 0 | | |
+| [spell_school_immune_mask](#spellschoolimmunemask) | INT UNSIGNED | NO | | 0 | | |
+| [flags_extra](#flags_extra) | INT UNSIGNED | NO | | 0 | | |
+| [ScriptName](#scriptname) | char(64) | NO | | | | |
+| [VerifiedBuild](#verifiedbuild) | SMALLINT | YES | | 0 | | |
---
@@ -80,9 +80,9 @@ Creature's unique id.
#### difficulty_entry_x
| name | entry | difficulty_entry_1 | difficulty_entry_2 | difficulty_entry_3 |
-|-----------------------------------------------------------|-------|----------------------|----------------------|----------------------|
-| [Anomalus](http://www.wowhead.com/npc=26763/anomalus) | 26763 | 30529 | 0 | 0 |
-| [Sindragosa](http://www.wowhead.com/npc=36853/sindragosa) | 36853 | 38265 | 38266 | 38267 |
+| --------------------------------------------------------- | ----- | ------------------ | ------------------ | ------------------ |
+| [Anomalus](http://www.wowhead.com/npc=26763/anomalus) | 26763 | 30529 | 0 | 0 |
+| [Sindragosa](http://www.wowhead.com/npc=36853/sindragosa) | 36853 | 38265 | 38266 | 38267 |
Anomalus is a 5 man boss located in The Nexus. You can fight him on two types of difficulties (normal dungeon and heroic dungeon). Depending on the type of difficulty, bosses have different statistics like health and damage. In case of Anomalus information from entry 26763 is used when you fight him at normal difficulty and entry 30529 is used when you fight him at heroic difficulty.
@@ -93,11 +93,11 @@ Here is a special case with the Alterac Valley battleground. There are 4 level b
If you look at the database you will notice a very characteristic pattern which is summarized in table below:
| name | entry | difficulty_entry_1 | difficulty_entry_2 | difficulty_entry_3 |
-|------------------|-------------------|----------------------|----------------------|----------------------|
-| Normal Creature | Different than 0 | 0 | 0 | 0 |
-| Dungeon Creature | Normal Dungeon | Heroic Dungeon | 0 | 0 |
-| Raid Creature | 10man Normal Raid | 25man Normal Raid | 10man Heroic Raid | 25man Heroic Raid |
-| Battleground | 51- 59 | 60-69 | 70-79 | 80 |
+| ---------------- | ----------------- | ------------------ | ------------------ | ------------------ |
+| Normal Creature | Different than 0 | 0 | 0 | 0 |
+| Dungeon Creature | Normal Dungeon | Heroic Dungeon | 0 | 0 |
+| Raid Creature | 10man Normal Raid | 25man Normal Raid | 10man Heroic Raid | 25man Heroic Raid |
+| Battleground | 51- 59 | 60-69 | 70-79 | 80 |
#### KillCredit1
@@ -124,7 +124,7 @@ The subname of the creature that appears in <> below the creature's name.
Used to tell the player what kind of NPC this creature is.
| IconName | description |
-|--------------------|------------------------------------------------------------------------------------|
+| ------------------ | ---------------------------------------------------------------------------------- |
| **Directions** | Used for guards and teleporter NPC's. |
| **Gunner** | Indicator of a turret NPC/Player Controlled. |
| **vehichleCursor** | Indicator that this is a PCV (Player Controlled Vehicle) |
@@ -160,7 +160,7 @@ The maximum level of the creature if the creature has a level range. When added
The expansion table the creatures health value is taken from. Values are from 0 to 2. See creature_classlevelstats.
| exp | name |
-|-----|------------------------|
+| --- | ---------------------- |
| 0 | Classic |
| 1 | The Burning Crusade |
| 2 | Wrath of The Lich King |
@@ -176,29 +176,29 @@ 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.
| 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 | |
+| 32 | 0x00000020 | Class Trainer | Is class trainer |
+| 64 | 0x00000040 | Profession Trainer | Is profession trainer |
+| 128 | 0x00000080 | Vendor | Is vendor (generic) Any creature selling items needs to have this flag. |
+| 256 | 0x00000100 | Vendor Ammo | Is vendor (ammo) |
+| 512 | 0x00000200 | Vendor Food | Is vendor (food) |
+| 1024 | 0x00000400 | Vendor Poison | Is vendor (poison) |
+| 2048 | 0x00000800 | Vendor Reagent | Is 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 | |
+| 32768 | 0x00008000 | Spirit Guide | Is 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 | |
+| 262144 | 0x00040000 | Petitioner | Handles guild/arena petitions |
| 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 | |
+| 8388608 | 0x00800000 | Guild Banker | Is 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) |
@@ -225,7 +225,7 @@ 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 | 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 |
@@ -242,15 +242,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
@@ -276,8 +276,8 @@ Non-custom creatures should always leave this at 1.
This is the creature's class, and it dictates levels of health and mana. Also note that health and mana will change according to [exp](#exp), [HealthModifier](#healthmodifier), and [ManaModifier](#manamodifier). Not setting this value will report a minor warning in the "DB_Errors.log".
-| Value | Name | Power Shown |
-|-------|----------------|--------------------------------------------------------|
+| Value | Name | Power Shown |
+| ----- | ------------- | ------------------------------------------------------ |
| 1 | CLASS_WARRIOR | health only (equal to rogue) |
| 2 | CLASS_PALADIN | health & mana (more health than mage but less mana) |
| 4 | CLASS_ROGUE | Health only (equal to warrior) |
@@ -287,40 +287,40 @@ 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:
-| 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 | |
-| 2147483648 | 0x80000000 | UNIT_FLAG_UNK_31 | |
+| Flag | | Name | Comments |
+| ---------- | ---------- | --------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| 1 | 0x00000001 | UNIT_FLAG_SERVER_CONTROLLED | set only when unit movement is controlled by server - by SPLINE/MONSTER_MOVE packets, together with UNIT_FLAG_STUNNED; only set to units controlled by client; client function CGUnit_C::IsClientControlled returns false when set for owner |
+| 2 | 0x00000002 | UNIT_FLAG_NON_ATTACKABLE | Not attackable |
+| 4 | 0x00000004 | UNIT_FLAG_DISABLE_MOVE | |
+| 8 | 0x00000008 | UNIT_FLAG_PLAYER_CONTROLLED | Controlled by player, use _IMMUNE_TO_PC instead of _IMMUNE_TO_NPC |
+| 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_PLAYER_CONTROLLED |
+| 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_SWIMMING | Shows swim animation in water |
+| 65536 | 0x00010000 | UNIT_FLAG_NON_ATTACKABLE_2 | Removes attackable icon, if on yourself, cannot assist self but can cast TARGET_SELF spells - added by SPELL_AURA_MOD_UNATTACKABLE |
+| 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_POSSESSED | Under direct client control by a player (possess or vehicle) |
+| 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_PREVENT_EMOTES_FROM_CHAT_TEXT | Prevent automatically playing emotes from parsing chat text, for example "lol" in /say, ending message with ? or !, or using /yell |
+| 1073741824 | 0x40000000 | UNIT_FLAG_SHEATHE | |
+| 2147483648 | 0x80000000 | UNIT_FLAG_IMMUNE | Immune to damage |
#### unit_flags2
@@ -328,13 +328,13 @@ Allows additional application of unit flags to creatures. Again, this is a bitma
| Flag | | Name | Comments |
-|--------|------------|---------------------------------------|-----------------------------------------------------------------------------|
+| ------ | ---------- | ------------------------------------- | --------------------------------------------------------------------------- |
| 1 | 0x00000001 | UNIT_FLAG2_FEIGN_DEATH | |
-| 2 | 0x00000002 | UNIT_FLAG2_UNK1 | Hide unit model (show only player equip) |
+| 2 | 0x00000002 | UNIT_FLAG2_HIDE_BODY | Hide unit model (show only player equip) |
| 4 | 0x00000004 | UNIT_FLAG2_IGNORE_REPUTATION | |
| 8 | 0x00000008 | UNIT_FLAG2_COMPREHEND_LANG | |
| 16 | 0x00000010 | UNIT_FLAG2_MIRROR_IMAGE | |
-| 32 | 0x00000020 | UNIT_FLAG2_INSTANTLY_APPEAR_MODEL | Unit model instantly appears when summoned (does not fade in) |
+| 32 | 0x00000020 | UNIT_FLAG2_DO_NOT_FADE_IN | Unit model instantly appears when summoned (does not fade in) |
| 64 | 0x00000040 | UNIT_FLAG2_FORCE_MOVEMENT | |
| 128 | 0x00000080 | UNIT_FLAG2_DISARM_OFFHAND | |
| 256 | 0x00000100 | UNIT_FLAG2_DISABLE_PRED_STATS | Player has disabled predicted stats (Used by raid frames) |
@@ -343,7 +343,7 @@ Allows additional application of unit flags to creatures. Again, this is a bitma
| 4096 | 0x00001000 | UNIT_FLAG2_RESTRICT_PARTY_INTERACTION | Restrict interaction to party or raid |
| 8192 | 0x00002000 | UNIT_FLAG2_PREVENT_SPELL_CLICK | Prevent spellclick |
| 16384 | 0x00004000 | UNIT_FLAG2_ALLOW_ENEMY_INTERACT | |
-| 32768 | 0x00008000 | UNIT_FLAG2_DISABLE_TURN | |
+| 32768 | 0x00008000 | UNIT_FLAG2_CANNOT_TURN | |
| 65536 | 0x00010000 | UNIT_FLAG2_UNK2 | |
| 131072 | 0x00020000 | UNIT_FLAG2_PLAY_DEATH_ANIM | Plays special death animation upon death |
| 262144 | 0x00040000 | UNIT_FLAG2_ALLOW_CHEAT_SPELLS | allows casting spells with AttributesEx7 & SPELL_ATTR7_IS_CHEAT_SPELL |
@@ -356,7 +356,7 @@ A few known flags and their use are:
| Flag | | Name | Comments |
-|------|------|----------------------------------------|-----------------------------------------------------------------------------------------------------|
+| ---- | ---- | -------------------------------------- | --------------------------------------------------------------------------------------------------- |
| 0 | 0x00 | UNIT_DYNFLAG_NONE | |
| 1 | 0x01 | UNIT_DYNFLAG_LOOTABLE