Skip to content

creature_template_addon

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.

Structure ​

FieldTypeAttributesKeyNullDefaultExtraComment
entryintunsignedPRINO0
path_idintunsignedNO0
mountintunsignedNO0
MountCreatureIDintunsignedNO0
StandStatetinyintunsignedNO0
AnimTiertinyintunsignedNO0
VisFlagstinyintunsignedNO0
SheathStatetinyintunsignedNO1
PvPFlagstinyintunsignedNO0
emoteintunsignedNO0
visibilityDistanceTypetinyintunsignedNO0
aurasmediumtextYESNULL
 

Description of fields ​

entry ​

Signifies a creature entry. All creatures matching this entry will be affected.  

path_id ​

If a creature has waypoint pathed movement, this field hold the waypoint_data.id for the path the creature is to follow.  

mount ​

The CreatureDisplayInfo 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.  

MountCreatureID ​

The creature entry this creature is mounted on.

Note: This field is currently not in use.

 

StandState ​

The value here overrides the UnitStandStateType for the creature's unit field UNIT_FIELD_BYTES_1 (see UnitDefines.h for complete list)

ValueNameDescription
1UNIT_STAND_STATE_SITSitting
3UNIT_STAND_STATE_SLEEPSleep
7UNIT_STAND_STATE_DEADShows health bar as empty (combine with the state dead emote to make a creature look dead)
8UNIT_STAND_STATE_KNEELMakes the mob kneel
9UNIT_STAND_STATE_SUBMERGEDSubmerges the creature below the ground

 

AnimTier ​

The value here overrides the AnimTier for the creature's unit field UNIT_FIELD_BYTES_1 (see UnitDefines.h for complete list)

ValueNameDescription
0Groundplays ground tier animations
1Swimfalls 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
2Hoverplays flying tier animations or falls back to ground tier animations, automatically enables hover clientside when entering visibility with this value
3Flyplays flying tier animations
4Submerged

 

VisFlags ​

The value here overrides the UnitVisFlags for the creature's unit field UNIT_FIELD_BYTES_1 (see UnitDefines.h for complete list)

ValueName
2UNIT_VIS_FLAGS_CREEP
4UNIT_VIS_FLAGS_UNTRACKABLE

 

SheathState ​

The value here overrides the SheathState for the creature's unit field UNIT_FIELD_BYTES_2 (see UnitDefines.h for complete list)

ValueNameDescription
0SHEATH_STATE_UNARMEDnon prepared weapon
1SHEATH_STATE_MELEEprepared melee weapon
2SHEATH_STATE_RANGEDprepared ranged weapon

 

PvPFlags ​

The value here overrides the UnitPVPStateFlags for the creature's unit field UNIT_FIELD_BYTES_2 (see UnitDefines.h for complete list)

ValueName
0x01UNIT_BYTE2_FLAG_PVP
0x04UNIT_BYTE2_FLAG_FFA_PVP
0x08UNIT_BYTE2_FLAG_SANCTUARY

 

emote ​

Emote ID that the creature should continually perform.  

visibilityDistanceType ​

Adjusts the distance from which the creature is visible.

#RangeComment
0Normal100m
1Tiny25m
2Small50m
3Large200m
4Gigantic400m
5Infinite∞

 

auras ​

This field controls any auras to be applied on the creature (both in effect and visually). To apply multiple auras, you can add more aura entries, separating each entry by a space. Remember that if a spell applies multiple auras.

List of useful aura entries (examples):

  • 16380 - Makes the creature invisible.
  • 18950 - Makes the creature detect other invisible units (players or creatures).
  • 16380 18950 - Both auras above