Skip to content

creature_spawn_data_template

AnonXS edited this page Apr 30, 2022 · 11 revisions

Back to world database list of tables.

The creature_spawn_data_template table

Contains data to override spawned creatures UnitFlags,Faction,ModelId,EquipmentId,CurHealth,CurMana,SpawnFlags Linked to creature_spawn_data.Id

Structure

Name Type Null Key Default Extra
Entry int(10) unsigned NO PRI (NULL)
NpcFlags int(10) NO PRI -1
UnitFlags bigint(20) NO PRI -1
Faction int(10) unsigned NO 0
ModelId mediumint(8) unsigned NO PRI 0
EquipmentId int(10) unsigned NO PRI 0
CurHealth int(10) unsigned NO PRI 0
CurMana int(10) unsigned NO PRI 0
SpawnFlags int(10) unsigned NO PRI 0

Description of the fields

Entry

Unique ID for each creature_spawn_data_template. Linked to creature_spawn_data.Id To avoid conflicts between Expansions, please use:

Version: Range
Generic: 0- 999
Vanilla: 1000 - 9999
TBC: 10000 - 19999
WotLK: 20000 +

NpcFlags

New value that will be applied to creature. Ref: creature_template.NpcFlags Important Default -1. Value 0 will remove all NpcFlags from creature

UnitFlags

New value that will be applied to creature. Ref: creature_template.UnitFlags Important Default -1. Value 0 will remove all UnitFlags from creature

Faction

New value that will be applied to creature. Ref: FactionTemplate.dbc.content 0 - will leave creatures default value

ModelId

New value that will be applied to creature. Ref: Creature_Model_Info.Entry 0 - will leave creatures default value

EquipmentId

New value that will be applied to creature. Ref: creature_equip_template.entry 0 - will leave creatures default value

CurHealth

New value that will be applied to creature. Ref: Creature_Model_Info.Entry 0 - will leave creatures default value

CurMana

New value that will be applied to creature. Ref: creature.curmana 0 - will leave creatures default value

SpawnFlags

Special Flags applied to creature:

Bit: Hex Name
1 0x01 SPAWN_FLAG_RUN_ON_SPAWN
2 0x02 SPAWN_FLAG_HOVER (flying)
Clone this wiki locally