creature_template_addon - vanrhy/linguister GitHub Wiki
Back to world database list of tables.
The creature_addon and creature_template_addon tables define different things that are applied on creatures when they are loaded. These "different things" can be for example to have the creature be mounted, to have it emote something, to have it display an aura effect, etc. Through the use of the fields in this table, many things can be changed about the outward visual appearance of the creature. The creature_template_addon table affects all creatures with that creature template ID while the creature_addon table affects individually spawned creatures (so that two creatures using the same template can look different).
NOTE: A creature_addon record will override a creature_template_addon record should they overlap on the same creature.
NOTICE: The data for this table is largely incomplete and is mostly just a regurgitation of what the client receives from the server. This article is a WIP as to what all the possible values are.
Field | Type | Null | Key | Default | Extra |
entry/guid | mediumint(8) unsigned | NO | PRI | 0 | |
mount | mediumint(8) unsigned | NO | 0 | ||
bytes1 | int(10) unsigned | NO | 0 | ||
b2_0_sheath | tinyint(3) unsigned | NO | 0 | ||
b2_1_pvp_state | tinyint(3) unsigned | NO | 0 | ||
emote | mediumint(8) unsigned | NO | 0 | ||
moveflags | int(10) unsigned | NO | 0 | ||
auras | text | YES |
For creature_template_addon, this field signifies the creature template ID. It will affect all spawned creatures using that template ID. For creature_addon, this field signifies a unique creature guid. It will affect just that creature whose GUID matches the one specified here.
The model ID of the mount to be used to make the creature appear mounted. The value here overrides the value for the creatureโs unit field UNIT_FIELD_MOUNTDISPLAYID. List of known values and what their visual effects on the creature
UNIT_BYTE1_FLAG_ALWAYS_STAND = 0ร01,
UNIT_BYTE1_FLAG_UNK_2 = 0ร02, // Creature that can fly and are not on the ground appear to have this flag. If they are on the ground, flag is not present.
UNIT_BYTE1_FLAG_UNTRACKABLE = 0ร04,
UNIT_BYTE1_UNK = 0ร1 // Makes NPC Kneel
UNIT_BYTE1_UNK = 0ร3 // Makes NPC Laydown
UNIT_BYTE1_FLAG_ALL = 0xFF
SheathState.
0 = All Weapons Sheathed by Default
1 = Melee Weapon NOT Sheathed by Default (Melee Weapon In Hand)
2 = Ranged Weapon NOT Sheathed by Default (Ranged Weapon In Hand)
UnitPVPStateFlags
UNIT_BYTE2_FLAG_PVP = 0ร01,
UNIT_BYTE2_FLAG_UNK1 = 0ร02,
UNIT_BYTE2_FLAG_FFA_PVP = 0ร04,
UNIT_BYTE2_FLAG_SANCTUARY = 0ร08,
UNIT_BYTE2_FLAG_UNK4 = 0ร10,
UNIT_BYTE2_FLAG_UNK5 = 0ร20,
UNIT_BYTE2_FLAG_UNK6 = 0ร40,
UNIT_BYTE2_FLAG_UNK7 = 0ร80
Emote ID that the creature should continually perform.
COMPLETE LIST OF EMOTES CAN BE FOUND IN: Emotes.dbc
(They Are Different Between Client Versions)
Flags controlling how the creature will behave animation-wise while moving. This table is 100% wrong as of 3.1. It is still here for a period of time for reference and to convert values in DB.
See the proper table under this one
Bit | Name | Comment |
---|---|---|
0 | MOVEMENTFLAG_NONE | |
1 | MOVEMENTFLAG_FORWARD | instantly teleport creature, then creature move forward animation but no real movement |
2 | MOVEMENTFLAG_BACKWARD | instantly teleport creature, then creature move back animation but no real movement |
4 | MOVEMENTFLAG_STRAFE_LEFT | instantly teleport creature, then creature move left animation but no real movement |
8 | MOVEMENTFLAG_STRAFE_RIGHT | instantly teleport creature, then creature move right animation but no real movement |
16 | MOVEMENTFLAG_LEFT | creature spin left animation |
32 | MOVEMENTFLAG_RIGHT | then creature spin right animation |
64 | MOVEMENTFLAG_PITCH_UP | no effect on creature |
128 | MOVEMENTFLAG_PITCH_DOWN | no effect on creature |
256 | MOVEMENTFLAG_RUN_MODE | If flag set then player runs |
512 | MOVEMENTFLAG_ONTRANSPORT | causes creatures to fly while moving (not include standing) |
1024 | MOVEMENTFLAG_HOVERING | hovering animation at stand (not include moving) |
2048 | MOVEMENTFLAG_FLY_UNK1 | |
4096 | MOVEMENTFLAG_JUMPING | Jump animation |
8192 | MOVEMENTFLAG_UNK1 | |
16384 | MOVEMENTFLAG_FALLING | Falling |
32768 | MOVEMENTFLAG_UNK2 | |
65536 | MOVEMENTFLAG_UNK3 | |
131072 | MOVEMENTFLAG_UNK4 | |
262144 | MOVEMENTFLAG_UNK5 | |
524288 | MOVEMENTFLAG_UNK6 | |
1048576 | MOVEMENTFLAG_UNK7 | Causes creature to instantly appear at new position |
2097152 | MOVEMENTFLAG_SWIMMING | appears with fly flag also (causes creatures to fall to ground at stand state) |
4194304 | MOVEMENTFLAG_FLY_UP | no effect on creature |
8388608 | MOVEMENTFLAG_CAN_FLY | no effect on creature |
16777216 | MOVEMENTFLAG_FLYING | no effect on creature |
33554432 | MOVEMENTFLAG_UNK8 | Creature flying (not hover at stop moving) |
67108864 | MOVEMENTFLAG_SPLINE | probably wrong name (no effect on creature) |
134217728 | MOVEMENTFLAG_SPLINE2 | no effect on creature |
268435456 | MOVEMENTFLAG_WATERWALKING | also prevent creature from falling under water |
536870912 | MOVEMENTFLAG_SAFE_FALL | active rogue safe fall spell (passive) (no effect on creature) |
1073741824 | MOVEMENTFLAG_UNK9 | Causes creature to hover at stand state (not include moving) |
2147483648 | MOVEMENTFLAG_UNK10 | Causes creature to roll to strange angle |
Proper table as of 3.1
Bit | Name | Comment |
---|---|---|
0 | MONSTER_MOVE_NONE | InhabitType]] and MovementType |
1 | MONSTER_MOVE_FORWARD | Instantly teleport creature, then creature move forward animation but no real movement |
2 | MONSTER_MOVE_BACKWARD | Instantly teleport creature, then creature move back animation but no real movement |
4 | MONSTER_MOVE_STRAFE_LEFT | Instantly teleport creature, then creature move left animation but no real movement |
8 | MONSTER_MOVE_STRAFE_RIGHT | Instantly teleport creature, then creature move right animation but no real movement |
16 | MONSTER_MOVE_LEFT | Creature spin left animation |
32 | MONSTER_MOVE_RIGHT | Then creature spin right animation |
64 | MONSTER_MOVE_PITCH_UP | Seams to have no effect |
128 | MONSTER_MOVE_PITCH_DOWN | Seams to have no effect |
256 | MONSTER_MOVE_TELEPORT | Makes creature teleport instead of walking |
512 | MONSTER_MOVE_TELEPORT2 | Makes creature a better Fly Animation (2.4.3) |
1024 | MONSTER_MOVE_LEVITATING | |
2048 | MONSTER_MOVE_UNK1 | |
4096 | MONSTER_MOVE_WALK | Makes creature walk |
8192 | MONSTER_MOVE_SPLINE | |
16384 | No name in core | Makes creature run |
32768 | No name in core | Makes creature run |
65536 | No name in core | Makes creature run |
131072 | No name in core | Makes creature run |
262144 | MONSTER_MOVE_SPLINE2 | |
524288 | MONSTER_MOVE_UNK2 | Used for flying mobs |
1048576 | MONSTER_MOVE_UNK3 | Used for flying mobs |
2097152 | MONSTER_MOVE_UNK4 | |
4194304 | MONSTER_MOVE_UNK5 | Run in place, then teleport to final point |
8388608 | MONSTER_MOVE_UNK6 | Teleport |
16777216 | MONSTER_MOVE_UNK7 | Run |
33554432 | MONSTER_MOVE_FLY | Swimming / Flying |
67108864 | MONSTER_MOVE_UNK9 | Run |
134217728 | MONSTER_MOVE_UNK10 | Run |
268435456 | MONSTER_MOVE_UNK11 | Run |
536870912 | MONSTER_MOVE_UNK12 | Run |
1073741824 | MONSTER_MOVE_UNK13 | Levitating |
Note: MONSTER_MOVE_SPLINE_FLY = MONSTER_MOVE_WALK + MONSTER_MOVE_SPLINE and makes creature fly by points. Note2: Copy from Mangos
This field controls any auras to be applied on the creature (both in effect and visually). The syntax for for an individual aura entry is " ". An aura is defined not just by the spell that applies it but also by the individual spell affect that applies it. Therefore, the effect index must be specified along with the spell ID. Each spell can have a maximum of three spell effects, so the effect index can only be 0, 1, or 2. To apply multiple auras, you can add more aura entries, separating each entry by a space. Remember that if a spell applies multiple auras, you need to specify an aura entry for each effect index if you want to apply more than one aura from the same spell.
NOTE: Currently (Rev 5067) auras defined in creature_template_addon are not being properly added. Only add auras for creatures in creature_addon.
List of useful aura entries:
- โ16380 0โ โ Makes the creature invisible.
- โ18950 0 18950 1โ โ Makes the creature detect other invisible units (players or creatures).
- โ37613โ โ Casting teleport forever.