“creature_addon” table

The creature_addon table holds definitions which modify a creature entrie’s visuals, behaviour and state.

Addons in this table will overwrite existing addons for the creature’s template entry.

Table structure

Field Type Null Key Default Extra
guid int(10) 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_flags tinyint(3) unsigned NO   0  
emote int(10) unsigned NO   0  
moveflags int(10) unsigned NO   0  
auras text YES   NULL  

Fields

guid

This references the “creature” table tables unique ID for which the entry is valid.

mount

A display model identifier used as mount for the creature_template. This references the “creature_model_info” table tables unique ID for which this entry is valid.

bytes1

TODO

b2_0_sheath

Defines the sheath state of the creature_template.

Value State
0 All weapons sheathed
1 Melee weapon unsheathed
2 Ranged weapon unsheathed

b2_1_flags

TODO

emote

An emote identifier. The value has to match with an emote identifier defined in Emotes.dbc.

moveflags

The flag controls how a creature_template will be animated while moving.

Value Movement animation
0x00000000 MOVEFLAG_NONE
0x00000001 MOVEFLAG_FORWARD
0x00000002 MOVEFLAG_BACKWARD
0x00000004 MOVEFLAG_STRAFE_LEFT
0x00000008 MOVEFLAG_STRAFE_RIGHT
0x00000010 MOVEFLAG_TURN_LEFT
0x00000020 MOVEFLAG_TURN_RIGHT
0x00000040 MOVEFLAG_PITCH_UP
0x00000080 MOVEFLAG_PITCH_DOWN
0x00000100 MOVEFLAG_WALK_MODE
0x00000400 MOVEFLAG_LEVITATING
0x00000800 MOVEFLAG_ROOT
0x00002000 MOVEFLAG_FALLING
0x00004000 MOVEFLAG_FALLINGFAR
0x00200000 MOVEFLAG_SWIMMING
0x00400000 MOVEFLAG_ASCENDING
0x00800000 MOVEFLAG_CAN_FLY
0x01000000 MOVEFLAG_FLYING
0x02000000 MOVEFLAG_ONTRANSPORT
0x04000000 MOVEFLAG_SPLINE_ELEVATION
0x08000000 MOVEFLAG_SPLINE_ENABLED
0x10000000 MOVEFLAG_WATERWALKING
0x20000000 MOVEFLAG_SAFE_FALL
0x40000000 MOVEFLAG_HOVER

auras

Allows to attach auras to a creature_template entry. This includes visual auras and spell effects. The field is a string containing a spell identifier defined in Spell.dbc with an index to the spell effect.

Multiple spells can be concatenated. Spells and effect indexes are separated by space characters.

Examples

Value Result
‘16380 0’ Makes the creature_template invisible
‘18950 0 18950 1’ Makes the creature_template detect invisible creatures and players