Skip to content

creature_template

Structure ​

FieldTypeAttributesKeyNullDefaultExtraComment
entryintunsignedPRINO0
KillCredit1intunsignedNO0
KillCredit2intunsignedNO0
namemediumtextYESNULL
femaleNamemediumtextYESNULL
subnamemediumtextYESNULL
TitleAltmediumtextYESNULL
IconNamevarchar(64)YESNULL
RequiredExpansionintsignedNO0
VignetteIDintsignedNO0
factionsmallintunsignedNO0
npcflagbigintunsignedNO0
speed_walkfloatNO1Result of 2.5/2.5, most common value
speed_runfloatNO1.14286Result of 8.0/7.0, most common value
scalefloatNO1
ClassificationtinyintunsignedNO0
dmgschooltinyintsignedNO0
BaseAttackTimeintunsignedNO0
RangeAttackTimeintunsignedNO0
BaseVariancefloatNO1
RangeVariancefloatNO1
unit_classtinyintunsignedNO0
unit_flagsintunsignedNO0
unit_flags2intunsignedNO0
unit_flags3intunsignedNO0
familyintsignedNO0
trainer_classtinyintunsignedNO0
typetinyintunsignedNO0
VehicleIdintunsignedNO0
AINamevarchar(64)NO''
MovementTypetinyintunsignedNO0
ExperienceModifierfloatNO1
RacialLeadertinyintunsignedNO0
movementIdintunsignedNO0
WidgetSetIDintsignedNO0
WidgetSetUnitConditionIDintsignedNO0
RegenHealthtinyintunsignedNO1
CreatureImmunitiesIdintsignedNO0
flags_extraintunsignedNO0
ScriptNamevarchar(64)NO''
StringIdvarchar(64)YESNULL
VerifiedBuildintsignedNO0
 

Description of fields ​

entry ​

Creature's unique id.  

KillCredit1 ​

If this is a kill credit template -- one that is a dummy template that is used when more than one creature can count as a kill in a quest, then this is a link to the first entry of the creature that could be killed to give quest credit.  

KillCredit2 ​

If this is a kill credit template -- one that is a dummy template that is used when more than one creature can count as a kill in a quest, then this is a link to the second entry of the creature that could be killed to give quest credit. If more than two creatures can be killed and count toward a single objective, an smart or C++ script will be required.  

name ​

Base name of the creature.  

femaleName ​

Female version of base name of the creature.  

subname ​

The subname of the creature that appears in <> below the creature's name.  

TitleAlt ​

- no description -  

IconName ​

Used to tell the player what kind of NPC this creature is.

NameDesciption
DirectionsUsed for Guards and Teleporter NPC's.
GunnerIndicator of a Turret NPC/Player Controlled.
vehichleCursorIndicator that this is a PCV (Player Controlled Vehicle)
DriverShows a Steering Wheel icon when mouse over.
AttackShows a Sword icon indicating you can attack this target.
BuyShows a Brown Bag icon usually if the NPC only sells things.
SpeakShows a Chat Bubble icon if this NPC has Quest/Gossip options.
PickupShows a Hand Grasping icon of if this NPC can be picked up for quest/items.
InteractShows Cog icon commonly used for quest/transport.
TrainerShows a Book icon, identifying this NPC as a "Trainer".
TaxiShows a Boot w/Wings icon identifying this NPC as a "Taxi".
RepairShows a Anvil icon identifying this npc as a Repair NPC.
LootAllShows a Multiple Brown Bag icon (Same as holding Shift before looting a creature).
QuestUnused or Unknown. (See EntryID 32870 The Real Ronakada).
PVPUnused or Unknown.(See EntryID 29387 Arena Master: Dalaran Arena).

This is not required to make the creature/npc function unless you are using scripts or gossip options.

Names are case sensitive. If in doubt use an example above.

RequiredExpansion ​

- no description -  

VignetteID ​

- no description -  

faction ​

The faction of the creature. See FactionTmplate.db2. Just because more than one faction has the same name, the inter-faction relationships can be different.

This field also controls the creature family assistance mechanic. Only creatures with the same faction will assist each other.

npcflag ​

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 || | |

DecimalHexadecimalNameComment
10x0000 0001GossipIf creature has more gossip options, add this flag to bring up a menu.
20x0000 0002Quest GiverAny creature giving or taking quests needs to have this flag.
40x0000 0004UnknownFlag is unknown
80x0000 0008UnknownFlag is unknown
160x0000 0010TrainerAllows the creature to have a trainer list to teach spells
320x0000 0020Class Trainer
640x0000 0040Profession Trainer
1280x0000 0080VendorAny creature selling items needs to have this flag.
2560x0000 0100Vendor Ammo
5120x0000 0200Vendor Food
10240x0000 0400Vendor Poison
20480x0000 0800Vendor Reagent
40960x0000 1000RepairerCreatures with this flag can repair items.
81920x0000 2000Flight MasterAny creature serving as flight master has this.
163840x0000 4000Spirit HealerMakes the creature invisible to alive characters and has the resurrect function.
327680x0000 8000Spirit Guide
655360x0001 0000InnkeeperCreatures with this flag can set hearthstone locations.
1310720x0002 0000BankerCreatures with this flag can show the bank
2621440x0004 0000Petitioner
5242880x0008 0000Tabard DesignerAllows the designing of guild tabards.
10485760x0010 0000BattlemasterCreatures with this flag port players to battlegrounds.
20971520x0020 0000AuctioneerAllows creature to display auction list.
41943040x0040 0000Stable MasterHas the option to stable pets for hunters.
83886080x0080 0000Guild Banker
167772160x0100 0000SpellclickNeeds data on npc_spellclick_spells table
335544320x0200 0000Player Vehicle
671088640x0400 0000MailboxNPC will act like a mailbox (opens mailbox with right-click)
1342177280x0800 0000Artifact Power RespecNPC will act like a mailbox (opens mailbox with right-click)
2684354560x1000 0000TransmogrifierCreatures with this flag can show transmogrification UI
5368709120x2000 0000VaultkeeperCreatures with this flag can show void storage
10737418240x4000 0000Wild Battle PetCreature is battle pet and collectable
21474836480x8000 0000Blackmarket

So if you want an NPC that is a quest giver, a vendor, and can repair you just add the specific flags together:

bash
`npcflag`=`npcflag`|1|2|128|4096

The same with hexadecimal numbers: 0x1 + 0x2 + 0x80 + 0x1000 = 0x1083  

speed_walk ​

Controls how fast the creature can walk. For vehicles: increases fly speed.  

speed_run ​

Controls how fast the creature can run. For vehicles: increases ground movement speed.  

scale ​

If non-zero, this field defines the size of how the model of the creature appears ingame. If zero, it will use default model size taken from the DB2.  

Classification ​

The classification of the creature:

| Classification | Name | Default Corpse Decay TimeWorldserver.conf (Corpse.Decay) | |---|---|:---😐:---😐:---😐 | 0 | Normal | 5 min | | 1 | Elite | 5 min | | 2 | Rare Elite | 5 min | | 3 | Obsolete | 1 hour | | 4 | Rare | 5 min | | 5 | Trivial | 5 min | | 6 | Minus Mob | 2.5 min |

An NPC's classification is mostly visual (which also requires your Cache to be cleared to see changes). Changing this value will not change its health, damage, or loot.

If you want the creature to show a skull or "??" in the portrait (often with Bosses), set the type_flags to 4.

Note: Classification (by way of Corpse.Decay) used to affect a creatures respawn time. This is no longer the case.

dmgschool ​

Creature's melee damage school.

IDName
0SPELL_SCHOOL_NORMAL
1SPELL_SCHOOL_HOLY
2SPELL_SCHOOL_FIRE
3SPELL_SCHOOL_NATURE
4SPELL_SCHOOL_FROST
5SPELL_SCHOOL_SHADOW
6SPELL_SCHOOL_ARCANE
 

BaseAttackTime ​

This is the base time that determines how long a creature must wait between melee attacks. This time is in milliseconds.  

RangeAttackTime ​

This is the base time that determines how long a creature must wait between ranged attacks. This time is in milliseconds.  

BaseVariance ​

- no description -  

RangeVariance ​

- no description -  

unit_class ​

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, health_mod, and mana_mod. Not setting this value will report a minor warning in the DB_Errors.log.

ValueNamePower Shown
1CLASS_WARRIORHealth only (equal to Rogue)
2CLASS_PALADINHealth & Mana (more health than Mage but less mana)
4CLASS_ROGUEHealth only (equal to Warrior)
8CLASS_MAGEHealth & Mana (less health than Paladin but more mana)
 

unit_flags ​

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.  

unit_flags2 ​

- no description -  

unit_flags3 ​

- no description -  

family ​

- no description -  

trainer_class ​

- no description -  

type ​

- no description -  

VehicleId ​

Vehicle ID if creature is/has a vehicle entry. This field determines how the player appears on the vehicle, how the vehicle moves, and whether or not the vehicle action bar is shown. For example, a VehicleId of 292 will make the player invisible, prevent the vehicle from strafing left/right (but will allow fowards/backwards), and will show the vehicle action bar spells (which are defined in spell1-8). An npc_spellclick_spells entry must be made for this creature entry in order for this to work.  

AIName ​

This field is overridden by ScriptName field if both are set.

ValueDescription
NullAIEmpty AI, creature does nothing.
AggressorAICreature attacks as soon as something is in aggro range.
ReactorAICreature attacks only if aggroed by attack, spell etc.
GuardAI
PetAICreature is a pet.
TotemAICreature casts Spell from Index 1 , otherwise like NullAI.
SmartAICreature uses Smart AI.

 

MovementType ​

The creature's default movement type.

ValueDescription
0Idle; stay in one place
1Random movement inside the spawndist radius
2Waypoint movement

 

ExperienceModifier ​

Directly multiplies the experience granted on kill.  

RacialLeader ​

A flag indicating wheather the creature is a racial leader. Killing racial leaders grants 100 honor.  

movementId ​

We have no idea what this field does. It is passed directly to the client. 

WidgetSetID ​

- no description -  

WidgetSetUnitConditionID ​

- no description -  

RegenHealth ​

Boolean 1 or 0 controlling if the creature should regenerate its health out of combat or not.  

CreatureImmunitiesId ​

- no description -  

flags_extra ​

Extra flags which aren't sniffable

FlagDescription
1CREATURE_FLAG_EXTRA_INSTANCE_BIND0x00000001creature kill binds instance to killer and killer's group
2CREATURE_FLAG_EXTRA_CIVILIAN0x00000002creature does not aggro (ignore faction/reputation hostility)
4CREATURE_FLAG_EXTRA_NO_PARRY0x00000004creature does not parry
8CREATURE_FLAG_EXTRA_NO_PARRY_HASTEN0x00000008creature does not counter-attack at parry
16CREATURE_FLAG_EXTRA_NO_BLOCK0x00000010creature does not block
32CREATURE_FLAG_EXTRA_NO_CRUSH0x00000020creature does not do crush-attacks
64CREATURE_FLAG_EXTRA_NO_XP_AT_KILL0x00000040creature kill does not give XP
128CREATURE_FLAG_EXTRA_TRIGGER0x00000080creature is trigger-NPC (invisible to players only)
256CREATURE_FLAG_EXTRA_NO_TAUNT0x00000100creature is immune to taunt-auras and "attack me"-effects
512CREATURE_FLAG_EXTRA_UNUSED_90x00000200
1024CREATURE_FLAG_EXTRA_GHOST_VISIBILITY0x00000400creature will be only visible for dead players
2048CREATURE_FLAG_EXTRA_USE_OFFHAND_ATTACK0x00000800creature will use offhand attacks
4096CREATURE_FLAG_EXTRA_NO_SELL_VENDOR0x00001000players can't sell items to this vendor
16384CREATURE_FLAG_EXTRA_WORLDEVENT0x00004000custom flag for world events (left room for merging)
32768CREATURE_FLAG_EXTRA_GUARD0x00008000creature is a guard (Will ignore feign death and vanish)
131072CREATURE_FLAG_EXTRA_NO_CRIT0x00020000creature does not do critical strikes
262144CREATURE_FLAG_EXTRA_NO_SKILLGAIN0x00040000creature won't increase weapon skills
524288CREATURE_FLAG_EXTRA_TAUNT_DIMINISH0x00080000creature taunt is subject to diminishing returns
1048576CREATURE_FLAG_EXTRA_ALL_DIMINISH0x00100000Creature is subject to all diminishing returns
2097152CREATURE_FLAG_EXTRA_NO_PLAYER_DAMAGE_REQ0x00200000NPCs can help with killing this creature and player will still be credited if he tags the creature
268435456CREATURE_FLAG_EXTRA_DUNGEON_BOSS0x10000000Creature is a dungeon boss. This flag is generically set by core during runtime. Setting this in database will give you startup error.
536870912CREATURE_FLAG_EXTRA_IGNORE_PATHFINDING0x20000000Creature will ignore pathfinding. This is like disabling Mmaps, only for one creature.
1073741824CREATURE_FLAG_EXTRA_IMMUNITY_KNOCKBACK0x40000000creature will immune all knockback effects
 

ScriptName ​

The name of the script that this creature uses, if any. This ties a script from a scripting engine to this creature.  

StringId ​

- no description -  

VerifiedBuild ​

This field is used by the TrinityDB Team to determine whether a template has been verified from WDB files.

If value is 0 then it has not been parsed yet.

If value is above 0 then it has been parsed with WDB files from that specific client build.

If value is -1 then it is just a place holder until proper data are found on WDBs.

If value is -Client Build then it was parsed with WDB files from that specific client build and manually edited later for some special necessity.