“creature_linking_template” table

The creature_linking_template table holds details how creature templates linked to a master creature template should act in combat and non-combat situations.

Table structure

Field Type Null Key Default Extra
entry mediumint(8) unsigned NO PRI 0  
map smallint(5) unsigned NO PRI 0  
master_entry mediumint(8) unsigned NO   0  
flag mediumint(8) unsigned NO   0  
search_range mediumint(8) unsigned NO   0  

Fields

entry

This references the “creature_template” table tables unique ID for which the entry is valid. This is a creature template bound to the master creature template.

map

A map identifier. The value has to match with a map identifier defined in Map.dbc. This is the map where creature templates are located.

master_entry

This references the “creature_template” table tables unique ID for which the entry is valid. This is the master creature template which defines behaviour for the linked creature template.

flag

This flag determines how a linked creature will act, when the master is changing it’s combat state. Flags provide support for combat state, non combat state and life state.

The following flags determine the behaviour if the master is in combat state.

Value Name Description
1 FLAG_AGGRO_ON_AGGRO the slave aggroes when the master aggroes
2 FLAG_TO_AGGRO_ON_AGGRO the master aggroes when the slave aggroes
4 FLAG_RESPAWN_ON_EVADE the slave respawns when the master evades
8 FLAG_TO_RESPAWN_ON_EVADE the master respawns when the slave evades
4096 FLAG_DESPAWN_ON_EVADE the slave despawn after the master evade
16 FLAG_DESPAWN_ON_DEATH the slave despawns when the master dies
32 FLAG_SELFKILL_ON_DEATH the slave goes suicide when the master dies
64 FLAG_RESPAWN_ON_DEATH the slave respawn when the master dies
128 FLAG_RESPAWN_ON_RESPAWN the slave respawns on master respawn
256 FLAG_DESPAWN_ON_RESPAWN the slave despawns on master respawn

The following flags determine the behaviour if the master is out of combat state.

Value Name Description
512 FLAG_FOLLOW the slave follows the master

The following flags determine the behaviour for any combat state.

Value Name Description
1024 FLAG_CANT_SPAWN_IF_BOSS_DEAD the slave cannot respawn while boss is dead
2048 FLAG_CANT_SPAWN_IF_BOSS_ALIVE the slave cannot respawn while boss is alive

search_range

This fields allows to set a range within the creature should look for it’s master.