用户工具

站点工具


数据库:world数据库:creature_template

这是本文档旧的修订版!


creature_template 表


<-返回:World 数据库

This table contains the description of creatures. Each spawned creature is an instance of a template present in this table, this means every creature MUST be defined in this table.

表结构

FieldTypeAttributesKeyNullDefaultExtraComment
entryMEDIUMINTUNSIGNEDPRINO0
difficulty_entry_1MEDIUMINTUNSIGNED NO0
difficulty_entry_2MEDIUMINTUNSIGNED NO0
difficulty_entry_3MEDIUMINTUNSIGNED NO0
KillCredit1INTUNSIGNED NO0
KillCredit2INTUNSIGNED NO0
modelid1MEDIUMINTUNSIGNED NO0
modelid2MEDIUMINTUNSIGNED NO0
modelid3MEDIUMINTUNSIGNED NO0
modelid4MEDIUMINTUNSIGNED NO0
namechar(100) MULNO0
subnamechar(100) YES(NULL)
IconNamechar(100) YES(NULL)
gossip_menu_idMEDIUMINTUNSIGNED NO0
minlevelTINYINTUNSIGNED NO1
maxlevelTINYINTUNSIGNED NO1
expSMALLINT NO0
factionMEDIUMINTUNSIGNED NO0
npcflagINTUNSIGNED NO0
speed_walkFLOAT NO1 Result of 2.5/2.5, most common value
speed_runFLOAT NO1.14286 Result of 8.0/7.0, most common value
speed_swimFLOAT NO1
speed_swimFLOAT NO1
detection_rangeFLOAT NO20
scaleFLOAT NO1
rankTINYINTUNSIGNED NO0
dmgschoolTINYINT NO0
BaseAttackTimeINTUNSIGNED NO0
RangeAttackTimeINTUNSIGNED NO0
BaseVarianceFLOAT NO1
RangeVarianceFLOAT NO1
unit_classTINYINTUNSIGNED NO0
unit_flagsINTUNSIGNED NO0
unit_flags2INTUNSIGNED NO0
dynamicflagsINTUNSIGNED NO0
familyTINYINT NO0
trainer_typeTINYINT NO0
trainer_spellMEDIUMINTUNSIGNED NO0
trainer_classTINYINTUNSIGNED NO0
trainer_raceTINYINTUNSIGNED NO0
typeTINYINTUNSIGNED NO0
type_flagsINTUNSIGNED NO0
lootidMEDIUMINTUNSIGNED NO0
pickpocketlootMEDIUMINTUNSIGNED NO0
skinlootMEDIUMINTUNSIGNED NO0
PetSpellDataIdMEDIUMINTUNSIGNED NO0
VehicleIdMEDIUMINTUNSIGNED NO0
mingoldMEDIUMINTUNSIGNED NO0
maxgoldMEDIUMINTUNSIGNED NO0
AINamechar(64) NO
MovementTypeTINYINTUNSIGNED NO0
HoverHeightFLOAT NO1
HealthModifierFLOAT NO1
ManaModifierFLOAT NO1
ArmorModifierFLOAT NO1
DamageModifierFLOAT NO1
ExperienceModifierFLOAT NO1
RacialLeaderTINYINTUNSIGNED NO0
movementIdINTUNSIGNED NO0
RegenHealthTINYINTUNSIGNED NO1
mechanic_immune_maskINTUNSIGNED NO0
spell_school_immune_maskINTUNSIGNED NO0
flags_extraINTUNSIGNED NO0
ScriptNamechar(64) NO
VerifiedBuildSMALLINT YES0

字段说明


entry

Creature's unique id.

difficulty_entry_x

nameentrydifficulty_entry_1difficulty_entry_2difficulty_entry_3
Anomalus267633052900
Sindragosa36853382653826638267

Anomalus is a 5 man boss located in The Nexus. You can fight him on two types of difficulties (normal dungeon and heroic dungeon). Depending on the type of difficulty, bosses have different statistics like health and damage. In case of Anomalus information from entry 26763 is used when you fight him at normal difficulty and entry 30529 is used when you fight him at heroic difficulty.

Sindragosa, a raid boss encounter located in the Icecrown Citadel can be fought on 4 different difficulties due to the introduction of heroic raid modes in Patch 3.2 (10man normal/heroic, 25man normal/heroic). Depending on the type of difficulty, she must have different statistics. So if you see her in 10man normal raid she will use information from entry 36853, in a 25man normal raid entry 38265 will be used and so on. This is in stark contrast to raid bosses such as Patchwerk and XT-002 Deconstructor, located in Naxxramas and Ulduar respectively, who only have two different raid modes (10-man 'normal'/25-man 'normal'). Hardmodes within the Ulduar raid do not have their own template, due to game mechanics engaging the harder difficulty during the encounter itself.

Here is a special case with the Alterac Valley battleground. There are 4 level brackets where the NPCs are made easier or harder, depending on your level bracket (Added in WoW patch 3.2.2 when level 80 characters received their own bracket for this battleground and all brackets below level 80 received their own level of difficulty). The same concept applies to the Isle of Conquest battleground, with only two brackets.

If you look at the database you will notice a very characteristic pattern which is summarized in table below:

nameentrydifficulty_entry_1difficulty_entry_2difficulty_entry_3
Normal CreatureDifferent than 0000
Dungeon CreatureNormal DungeonHeroic Dungeon00
Raid Creature10man Normal Raid25man Normal Raid10man Heroic Raid25man Heroic Raid
Battleground51- 5960-6970-7980

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.

modelidx

A random graphical model that the client applies on this creature. Of course if you specify only one modelid and the rest will be equal to 0, model you have set won't be chosen randomly. This is a creature_model_info.modelid

name

Base name of the creature.

subname

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

IconName

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

IconNamedescription
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 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 with wings icon identifying this NPC as a taxi.
RepairShows a anvil icon identifying that this NPC can repair.
LootAllShows a multiple brown bag icon (same as holding shift before looting a creature).
QuestUnused or unknown (see entry 32870 “The Real Ronakada”).
PVPUnused or Unknown (see entry 29387 “Arena Master: Dalaran Arena”).

Attention! This is not required to make the NPC function unless you are using scripts or gossip options. Names are case sensitive, If in doubt use an example above.

gossip_menu_id

The gossip ID of this creature. This field is obtained from sniff (update fields). If you can not sniff this value, and need to make one up, it must be > 50000. This field is the link to gossip_menu.MenuID.

minlevel

The minimum level of the creature if the creature has a level range.

maxlevel

The maximum level of the creature if the creature has a level range. When added to world, a level in chosen in the specified level range.

exp

The expansion table the creatures health value is taken from. Values are from 0 to 2. See creature_classlevelstats.

expname
0Classic
1The Burning Crusade
2Wrath of The Lich King

faction

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

Note: 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 NameComment
10x00000001GossipIf creature has more gossip options, add this flag to bring up a menu.
20x00000002Quest GiverAny creature giving or taking quests needs to have this flag.
160x00000010TrainerAllows the creature to have a trainer list to teach spells
320x00000020Class TrainerIs class trainer
640x00000040Profession TrainerIs profession trainer
1280x00000080VendorIs vendor (generic) Any creature selling items needs to have this flag.
2560x00000100Vendor AmmoIs vendor (ammo)
5120x00000200Vendor FoodIs vendor (food)
10240x00000400Vendor PoisonIs vendor (poison)
20480x00000800Vendor ReagentIs vendor (Reagent)
40960x00001000RepairerCreatures with this flag can repair items.
81920x00002000Flight MasterAny creature serving as flight master has this.
163840x00004000Spirit HealerMakes the creature invisible to alive characters and has the resurrect function.
327680x00008000Spirit GuideIs spirit guide
655360x00010000InnkeeperCreatures with this flag can set hearthstone locations.
1310720x00020000BankerCreatures with this flag can show the bank
2621440x00040000PetitionerHandles guild/arena petitions
5242880x00080000Tabard DesignerAllows the designing of guild tabards.
10485760x00100000BattlemasterCreatures with this flag port players to battlegrounds.
20971520x00200000AuctioneerAllows creature to display auction list.
41943040x00400000Stable MasterHas the option to stable pets for hunters.
83886080x00800000Guild BankerIs guild banker
167772160x01000000SpellclickNeeds data on npc_spellclick_spells table
671088640x04000000MailboxNPC will act like a mailbox (opens mailbox with right-click)

So if you want a NPC that is a quest giver(2), a vendor(128) and can repair(4096) you just add specific flags together: 2+128+4096=4226

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.

speed_swim

Controls how fast the creature can swim.

speed_flight

Controls how fast the creature can fly.

detection_range

Controls the range at which creatures detect and see players.

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

rank

The rank of the creature:

RankNameDefault Respawn Time Creature.spawntimesecsCorpse Decay Time Worldserver.conf (Corpse.Decay)Total Default Respawn spawntimesecs + Corpse.Decay
0Normal5 min60 sec6 min
1Elite5 min5 min10 min
2Rare Elite5 min5 min10 min
3Boss5 min1 hour1 hour, 5 min
4Rare5 min5 min10 min

Note 1: An NPC's rank 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. However, it will change the respawn time of the creature.

Note 2: Respawn times can be modified in two other places: Creature.spawntimesecs (only for that single GUID of the creature) and in the worldserver.conf file under the “Corpse.Decay” settings (for ALL creatures of the same rank). The default `spawntimesecs` for all spawned creatures is 300 seconds (5 minutes). For example, using the “.npc add” command to spawn a “Normal” NPC will give it a default respawn time of 6 minutes (spawntimesecs + Corpse.Decay time). Also, the creature must decay first before it can respawn. For this reason, the Corpse Decay Time of the creature is also it's minimum respawn time, since setting the creature's Creature.spawntimesecs = 0 will remove the Default Respawn Time. In the example above, setting our Normal NPC's spawntimesecs = 0 will mean the creature's respawn time decreases from 6 minutes to 60 seconds.

Note 3: If you want the creature to show a skull or “??” in the portrait (often with Bosses), set the type_flags to 4.

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

Value to customize the creature's damage output. See DamageModifier.

Non-custom creatures should always leave this at 1.

RangeVariance

Value to customize the creature's damage output. See DamageModifier.

Non-custom creatures should always leave this at 1.

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, HealthModifier, and ManaModifier. 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. Some possible flags are:

Flag NameComments
10x00000001UNIT_FLAG_SERVER_CONTROLLEDset only when unit movement is controlled by server - by SPLINE/MONSTER_MOVE packets, together with UNIT_FLAG_STUNNED; only set to units controlled by client; client function CGUnit_C::IsClientControlled returns false when set for owner
20x00000002UNIT_FLAG_NON_ATTACKABLENot attackable
40x00000004UNIT_FLAG_DISABLE_MOVE
80x00000008UNIT_FLAG_PLAYER_CONTROLLEDControlled by player, use _IMMUNE_TO_PC instead of _IMMUNE_TO_NPC
160x00000010UNIT_FLAG_RENAME
320x00000020UNIT_FLAG_PREPARATIONDon't take reagents for spells with SPELL_ATTR_EX5_NO_REAGENT_WHILE_PREP
640x00000040UNIT_FLAG_UNK_6not sure what it does, but it is needed to cast nontriggered spells in smart_scripts
1280x00000080UNIT_FLAG_NOT_ATTACKABLE_1?? (UNIT_FLAG_PLAYER_CONTROLLED
2560x00000100UNIT_FLAG_IMMUNE_TO_PCDisables combat/assistance with PlayerCharacters (PC)
5120x00000200UNIT_FLAG_IMMUNE_TO_NPCDisables combat/assistance with NonPlayerCharacters (NPC)
10240x00000400UNIT_FLAG_LOOTINGLoot animation
20480x00000800UNIT_FLAG_PET_IN_COMBATIn combat? 2.0.8
40960x00001000UNIT_FLAG_PVPChanged in 3.0.3
81920x00002000UNIT_FLAG_SILENCEDCan't cast spells
163840x00004000UNIT_FLAG_CANNOT_SWIM2.0.8
327680x00008000UNIT_FLAG_SWIMMINGShows swim animation in water
655360x00010000UNIT_FLAG_NON_ATTACKABLE_2Removes attackable icon, if on yourself, cannot assist self but can cast TARGET_SELF spells - added by SPELL_AURA_MOD_UNATTACKABLE
1310720x00020000UNIT_FLAG_PACIFIEDCreature will not attack
2621440x00040000UNIT_FLAG_STUNNED3.0.3 ok
5242880x00080000UNIT_FLAG_IN_COMBAT('AffectingCombat' from UnitFlags.cs in WPP)
10485760x00100000UNIT_FLAG_TAXI_FLIGHTDisable casting at client side spell not allowed by taxi flight (mounted?), probably used with 0x4 flag
20971520x00200000UNIT_FLAG_DISARMED3.0.3, disable melee spells casting…, “Required melee weapon” added to melee spells tooltip.
41943040x00400000UNIT_FLAG_CONFUSEDConfused.
83886080x00800000UNIT_FLAG_FLEEING('Feared' from UnitFlags.cs in WPP)
167772160x01000000UNIT_FLAG_POSSESSEDUnder direct client control by a player (possess or vehicle)
335544320x02000000UNIT_FLAG_NOT_SELECTABLECan't be selected by mouse or with /target {name} command.
671088640x04000000UNIT_FLAG_SKINNABLESkinnable
1342177280x08000000UNIT_FLAG_MOUNTThe client seems to handle it perfectly. Also used when making custom mounts.
2684354560x10000000UNIT_FLAG_UNK_28(PreventKneelingWhenLooting from UnitFlags.cs in WPP)
5368709120x20000000UNIT_FLAG_PREVENT_EMOTES_FROM_CHAT_TEXTPrevent automatically playing emotes from parsing chat text, for example “lol” in /say, ending message with ? or !, or using /yell
10737418240x40000000UNIT_FLAG_SHEATHE
21474836480x80000000UNIT_FLAG_IMMUNEImmune to damage

unit_flags2

Allows additional application of unit flags to creatures. Again, this is a bitmask field and to apply more than one flag, just add the different numbers. Some possible flags are:

Flag NameComments
10x00000001UNIT_FLAG2_FEIGN_DEATH
20x00000002UNIT_FLAG2_HIDE_BODYHide unit model (show only player equip)
40x00000004UNIT_FLAG2_IGNORE_REPUTATION
80x00000008UNIT_FLAG2_COMPREHEND_LANG
160x00000010UNIT_FLAG2_MIRROR_IMAGE
320x00000020UNIT_FLAG2_DO_NOT_FADE_INUnit model instantly appears when summoned (does not fade in)
640x00000040UNIT_FLAG2_FORCE_MOVEMENT
1280x00000080UNIT_FLAG2_DISARM_OFFHAND
2560x00000100UNIT_FLAG2_DISABLE_PRED_STATSPlayer has disabled predicted stats (Used by raid frames)
10240x00000400UNIT_FLAG2_DISARM_RANGEDthis does not disable ranged weapon display (maybe additional flag needed?)
20480x00000800UNIT_FLAG2_REGENERATE_POWER
40960x00001000UNIT_FLAG2_RESTRICT_PARTY_INTERACTIONRestrict interaction to party or raid
81920x00002000UNIT_FLAG2_PREVENT_SPELL_CLICKPrevent spellclick
163840x00004000UNIT_FLAG2_ALLOW_ENEMY_INTERACT
327680x00008000UNIT_FLAG2_CANNOT_TURN
655360x00010000UNIT_FLAG2_UNK2
1310720x00020000UNIT_FLAG2_PLAY_DEATH_ANIMPlays special death animation upon death
2621440x00040000UNIT_FLAG2_ALLOW_CHEAT_SPELLSallows casting spells with AttributesEx7 & SPELL_ATTR7_IS_CHEAT_SPELL

dynamicflags

Flags that control visual appearance of the creature.

A few known flags and their use are:

Flag NameComments
00x00UNIT_DYNFLAG_NONE
10x01UNIT_DYNFLAG_LOOTABLE
20x02UNIT_DYNFLAG_TRACK_UNITCreature's location will be seen as a small dot in the minimap
40x04UNIT_DYNFLAG_TAPPEDMakes creatures name appear grey (Lua_UnitIsTapped)
80x08UNIT_DYNFLAG_TAPPED_BY_PLAYERLua_UnitIsTappedByPlayer usually used by PCVs (Player Controlled Vehicles)
160x10UNIT_DYNFLAG_SPECIALINFO
320x20UNIT_DYNFLAG_DEADMakes the creature appear dead (this DOES NOT make the creature's name grey or not attack players).
640x40UNIT_DYNFLAG_REFER_A_FRIEND
1280x80UNIT_DYNFLAG_TAPPED_BY_ALL_THREAT_LISTLua_UnitIsTappedByAllThreatList

family

The family this creature belongs to.

IDFamilyIDFamily
1Wolf26Owl
2Cat27Wind Serpent
3Spider28Remote Control
4Bear29Felguard
5Boar30Dragonhawk
6Crocolisk31Ravager
7Carrion Bird32Warp Stalker
8Crab33Sporebat
9Gorilla34Nether Ray
11Raptor35Serpent
12Tallstrider37Moth
15Felhunter38Chimaera
16Voidwalker39Devilsaur
17Succubus40Ghoul
19Doomguard41Silithid
20Scorpid42Worm
21Turtle43Rhino
23Imp44Wasp
24Bat45Core Hound
25Hyena46Spirit Beast

trainer_type

If the NPC is a trainer (has the trainer flag), then this field controls what kind of trainer it is. Both this field and the related field must be filled in for a trainer to work correctly.

IDTypeRelated FieldComments
0TRAINER_TYPE_CLASStrainer_classTrains class spells
1TRAINER_TYPE_MOUNTStrainer_raceTrains riding skill
2TRAINER_TYPE_TRADESKILLStrainer_spellTrains professions
3TRAINER_TYPE_PETStrainer_classTrains pet skills

trainer_spell

If the NPC is a trainer that teaches professions (trainer_type = 2), then the player must already know the spell ID specified here to be able to talk to this NPC.

trainer_class

If the NPC is a class trainer or a pet trainer (trainer_type = 0 or 3), then the player's class must be the same as the value specified here to talk to this trainer. For pet trainers, this value must be 3 (hunter). See characters.class

trainer_race

If the NPC is a mount trainer (trainer_type = 1), then the player's race must be the same as the value specified here to talk to this trainer. See characters.race

type

The type of the creature.

IDType
0None
1Beast
2Dragonkin
3Demon
4Elemental
5Giant
6Undead
7Humanoid
8Critter
9Mechanical
10Not specified
11Totem
12Non-Combat Pet
13Gas Cloud

type_flags

This field can control whether a mob is minable or herbable or lootable by engineer. If it is either of those three, then the loot given when it is skinned/mined will be stored in the skinning_loot_template table. It also controls, whether this mob can be tamed by a hunter. Other fields have no special meaning on the serverside. The entire field will be send to the client in SMSG_CREATURE_QUERY_RESPONSE

Flag NameComments
10x00000001CREATURE_TYPE_FLAG_TAMEABLEMakes the mob tameable (must also be a beast and have family set)
20x00000002CREATURE_TYPE_FLAG_VISIBLE_TO_GHOSTSCreature are also visible for not alive player. Allow gossip interaction if npcflag allow?
40x00000004CREATURE_TYPE_FLAG_BOSS_MOBChanges creature's visible level to “??” in the creature's portrait - Immune to Knockback.
80x00000008CREATURE_TYPE_FLAG_DO_NOT_PLAY_WOUND_PARRY_ANIMATIONDoes not play wound animation on parry.
160x00000010CREATURE_TYPE_FLAG_NO_FACTION_TOOLTIPHides tooltip faction.
320x00000020CREATURE_TYPE_FLAG_MORE_AUDIBLE
640x00000040CREATURE_TYPE_FLAG_SPELL_ATTACKABLESpell attackable.
1280x00000080CREATURE_TYPE_FLAG_INTERACT_WHILE_DEADPlayer can interact with the creature if its dead (not player dead)
2560x00000100CREATURE_TYPE_FLAG_SKIN_WITH_HERBALISMMakes mob herbable
5120x00000200CREATURE_TYPE_FLAG_SKIN_WITH_MININGMakes mob minable
10240x00000400CREATURE_TYPE_FLAG_NO_DEATH_MESSAGEDoes not combatlog death.
20480x00000800CREATURE_TYPE_FLAG_ALLOW_MOUNTED_COMBATCreature can remain mounted when entering combat
40960x00001000CREATURE_TYPE_FLAG_CAN_ASSISTCan aid any player in combat if in range?
81920x00002000CREATURE_TYPE_FLAG_NO_PET_BARIs using pet bar.
163840x00004000CREATURE_TYPE_FLAG_MASK_UID
327680x00008000CREATURE_TYPE_FLAG_SKIN_WITH_ENGINEERINGMakes mob lootable by engineer
655360x00010000CREATURE_TYPE_FLAG_TAMEABLE_EXOTICTamable as an exotic pet. Normal tamable flag must also be set.
1310720x00020000CREATURE_TYPE_FLAG_USE_MODEL_COLLISION_SIZECollision related. (always using default collision box?)
2621440x00040000CREATURE_TYPE_FLAG_ALLOW_INTERACTION_WHILE_IN_COMBATIs siege weapon.
5242880x00080000CREATURE_TYPE_FLAG_COLLIDE_WITH_MISSILESProjectiles can collide with this creature - interacts with TARGET_DEST_TRAJ
10485760x00100000CREATURE_TYPE_FLAG_NO_NAME_PLATEHides nameplate.
20971520x00200000CREATURE_TYPE_FLAG_DO_NOT_PLAY_MOUNTED_ANIMATIONSDoes not play mounted animations.
41943040x00400000CREATURE_TYPE_FLAG_IS_LINK_ALL
83886080x00800000CREATURE_TYPE_FLAG_INTERACT_ONLY_WITH_CREATORCan only interact with its creator.
167772160x01000000CREATURE_TYPE_FLAG_DO_NOT_PLAY_UNIT_EVENT_SOUNDS
335544320x02000000CREATURE_TYPE_FLAG_HAS_NO_SHADOW_BLOB
671088640x04000000CREATURE_TYPE_FLAG_TREAT_AS_RAID_UNITCreature can be targeted by spells that require target to be in caster's party/raid
1342177280x08000000CREATURE_TYPE_FLAG_FORCE_GOSSIPAllows the creature to display a single gossip option.
2684354560x10000000CREATURE_TYPE_FLAG_DO_NOT_SHEATHE
5368709120x20000000CREATURE_TYPE_FLAG_DO_NOT_TARGET_ON_INTERACTION
10737418240x40000000CREATURE_TYPE_FLAG_DO_NOT_RENDER_OBJECT_NAME
21474836480x80000000CREATURE_TYPE_FLAG_UNIT_IS_QUEST_BOSS

lootid

The ID of the loot template ID that this creature should use to generate loots. See creature_loot_template.entry

pickpocketloot

The ID of the pickpocketing loot template that this creature should use to generate pickpocketing loots. See pickpocketing_loot_template.entry

skinloot

The ID of the skinning loot template that this creature should use to generate skinning loots. See skinning_loot_template.entry

PetSpellDataId

ID, found in CreatureSpellData.dbc, that displays what spells the pet has in the client.

VehicleId

Entry of vehicle 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 forwards/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.

mingold

Minimum money that the creature drops when killed, in copper.

maxgold

Maximum money that the creature drops when killed, in copper.

AIName

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

NameDescription
NullCreatureAIEmpty AI, creature does nothing; cannot be charmed.
TriggerAISame as “NullCreatureAI”, except that the creature casts the spell from field spell1 when summoned.
AggressorAICreature attacks when entering aggro radius; uses only melee attacks.
ReactorAICreature attacks only if aggroed; uses only melee attacks.
PassiveAICreature behaves passive, cannot attack.
CritterAICritter which flees if attacked.
GuardAICreature is a zone guard.
PetAICreature is a pet.
TotemAICreature casts spell from field spell1; does not move.
CombatAICreature attacks as soon as something is in aggro range; uses also spells.
ArcherAICreature casts spell from field spell1; chases the victim.
TurretAICreature attacks using spell from field spell1; does not move.
VehicleAICreature acts as player vehicle.
SmartAICreature uses the “smart_scripts” table to specify it's behaviour.

MovementType

The creature's default movement type.

IDType
0Idle; stay in one place
1Random movement inside the wander_distance radius
2Waypoint movement

HoverHeight

Distance above the ground that the creature will hover if it has MOVEMENTFLAG_DISABLE_GRAVITY enabled. Value taken from sniffs.

HealthModifier

Used to modify the base Level/Class health of a creature. This field comes from WDB.

ManaModifier

Used to modify the base Level/Class mana of a creature. This field comes from WDB.

ArmorModifier

Used to modify the base Level/Class armor of a creature.

DamageModifier

Used to modify the Minimum/Maximum damage of a creature.

The formulas to calculate the damage output are:

MINDAMAGE = 1) MAXDAMAGE = 2)

damage_base comes from the creature_classlevelstats table and takes its value either from damage_base, damage_exp1 or damage_exp2 according to the creature's value in exp (0 = base_damage, 1 = damage_exp1, 2 = damage_exp2).

BaseAttackTime is either BaseAttackTime or RangeAttackTime depending on the type of attack.

attackpower is either attackpower or rangedattackpower depending on the type of attack.

BaseVariance is either BaseVariance or RangeVariance depending on the type of attack.

ExperienceModifier

TODO!

RacialLeader

A flag with two possible values: '1' or '0' indicating whether the creature is a racial leader or not. Killing racial leaders grants 100 honor.

entry name 2784 King Magni Bronzebeard 3057 Cairne Bloodhoof 4949 Thrall 7999 Tyrande Whisperwind 10181 Lady Sylvanas Windrunner 16802 Lor'themar Theron 17468 Prophet Velen 29611 King Varian Wrynn 36648 Baine Bloodhoof (Leader) 37764 Lor'themar Theron

movementId

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

RegenHealth

Boolean '1' or '0' controlling whether the creature should regenerate it's health or not.

mechanic_immune_mask

This makes the creature immune to specific spell natures. See Spell.dbc at row effect_X_mechanic_id.

Uses references from SpellMechanic.dbc.

Flag Type Comment 1 0x00000001 MECHANIC_CHARM 2 0x00000002 MECHANIC_DISORIENTED 4 0x00000004 MECHANIC_DISARM 8 0x00000008 MECHANIC_DISTRACT 16 0x00000010 MECHANIC_FEAR 32 0x00000020 MECHANIC_GRIP Death Grip and similar effects 64 0x00000040 MECHANIC_ROOT 128 0x00000080 MECHANIC_SLOW_ATTACK 256 0x00000100 MECHANIC_SILENCE 512 0x00000200 MECHANIC_SLEEP 1024 0x00000400 MECHANIC_SNARE 2048 0x00000800 MECHANIC_STUN 4096 0x00001000 MECHANIC_FREEZE 8192 0x00002000 MECHANIC_KNOCKOUT Incapacitate effects such as Repetance (Paladin) 16384 0x00004000 MECHANIC_BLEED 32768 0x00008000 MECHANIC_BANDAGE Healing etc. 65536 0x00010000 MECHANIC_POLYMORPH 131072 0x00020000 MECHANIC_BANISH 262144 0x00040000 MECHANIC_SHIELD 524288 0x00080000 MECHANIC_SHACKLE Shackle Undead only 1048576 0x00100000 MECHANIC_MOUNT Any effect that summons a mount 2097152 0x00200000 MECHANIC_INFECTED Frost Fever, Blood Plague etc. 4194304 0x00400000 MECHANIC_TURN e.g. Turn Evil 8388608 0x00800000 MECHANIC_HORROR e.g. Death Coil (Warlock) 16777216 0x01000000 MECHANIC_INVULNERABILITY Forbearance, Nether Protection, Diplomatic Immunity only 33554432 0x02000000 MECHANIC_INTERRUPT 67108864 0x04000000 MECHANIC_DAZE 134217728 0x08000000 MECHANIC_DISCOVERY Any Create Item effect 268435456 0x10000000 MECHANIC_IMMUNE_SHIELD Divine Shield, Ice Block, Hand of Protection… 536870912 0x20000000 MECHANIC_SAPPED 1073741824 0x40000000 MECHANIC_ENRAGED To combine immunities just add values. Immune to everything corresponds to the value 2147483647 (0x3FFF FFFF).

spell_school_immune_mask

This makes the creature immune to specific spell schools.

Flag Type 1 SPELL_SCHOOL_NORMAL 2 SPELL_SCHOOL_HOLY 4 SPELL_SCHOOL_FIRE 8 SPELL_SCHOOL_NATURE 16 SPELL_SCHOOL_FROST 32 SPELL_SCHOOL_SHADOW 64 SPELL_SCHOOL_ARCANE To combine immunities just add values. Immune to everything corresponds to the value 127.

flags_extra

These flags control certain creature specific attributes. Flags can be added together to apply more than one.

Example: 32+64=96

Flag Type 1 CREATURE_FLAG_EXTRA_INSTANCE_BIND 0x00000001 creature kill binds instance to killer and killer's group 2 CREATURE_FLAG_EXTRA_CIVILIAN 0x00000002 creature does not aggro (ignore faction/reputation hostility) 4 CREATURE_FLAG_EXTRA_NO_PARRY 0x00000004 creature does not parry 8 CREATURE_FLAG_EXTRA_NO_PARRY_HASTEN 0x00000008 creature does not counter-attack at parry 16 CREATURE_FLAG_EXTRA_NO_BLOCK 0x00000010 creature does not block 32 CREATURE_FLAG_EXTRA_NO_CRUSHING_BLOWS 0x00000020 creature does not do crush-attacks 64 CREATURE_FLAG_EXTRA_NO_XP 0x00000040 creature kill does not give XP 128 CREATURE_FLAG_EXTRA_TRIGGER 0x00000080 creature is trigger-NPC (invisible to players only) 256 CREATURE_FLAG_EXTRA_NO_TAUNT 0x00000100 creature is immune to taunt-auras and “attack me”-effects 512 CREATURE_FLAG_EXTRA_NO_MOVE_FLAGS_UPDATE 0x00000200 (CREATURE_FLAG_EXTRA_UNUSED_10 Not Implemented) creature won't update movement flags 1024 CREATURE_FLAG_EXTRA_GHOST_VISIBILITY 0x00000400 creature will be only visible for dead players 2048 CREATURE_FLAG_EXTRA_USE_OFFHAND_ATTACK 0x00000800 (CREATURE_FLAG_EXTRA_UNUSED_12 Not Implemented) creature will use offhand attacks 4096 CREATURE_FLAG_EXTRA_NO_SELL_VENDOR 0x00001000 players can't sell items to this vendor 8192 CREATURE_FLAG_EXTRA_IGNORE_COMBAT 0x00002000 16384 CREATURE_FLAG_EXTRA_WORLDEVENT 0x00004000 custom flag for world events (left room for merging) 32768 CREATURE_FLAG_EXTRA_GUARD 0x00008000 creature is a guard (Will ignore feign death and vanish) 65536 CREATURE_FLAG_EXTRA_IGNORE_FEIGN_DEATH 0x00010000 creature ignores feign death 131072 CREATURE_FLAG_EXTRA_NO_CRIT 0x00020000 creature does not do critical strikes 262144 CREATURE_FLAG_EXTRA_NO_SKILL_GAINS 0x00040000 creature won't increase weapon skills 524288 CREATURE_FLAG_EXTRA_OBEYS_TAUNT_DIMINISHING_RETURNS 0x00080000 creature taunt is subject to diminishing returns 1048576 CREATURE_FLAG_EXTRA_ALL_DIMINISH 0x00100000 Creature is subject to all diminishing returns 2097152 CREATURE_FLAG_EXTRA_NO_PLAYER_DAMAGE_REQ 0x00200000 creature does not need to take player damage for kill credit 4194304 CREATURE_FLAG_EXTRA_AVOID_AOE 0x00400000 ignored by aoe attacks (for icc blood prince council npc - Dark Nucleus) 8388608 CREATURE_FLAG_EXTRA_NO_DODGE 0x00800000 target cannot dodge 16777216 CREATURE_FLAG_EXTRA_MODULE 0x01000000 Used by module creatures to avoid blizzlike checks. 33554432 CREATURE_FLAG_EXTRA_DONT_CALL_ASSISTANCE 0x02000000 Prevents creatures from calling for assistance on initial aggro 67108864 CREATURE_FLAG_EXTRA_IGNORE_ALL_ASSISTANCE_CALLS 0x04000000 Prevents creature from responding to assistance calls 134217728 CREATURE_FLAG_EXTRA_DONT_OVERRIDE_SAI_ENTRY 0x08000000 Allows creatures to use both GUID and ENTRY specific SAI without one overwriting the other 268435456 CREATURE_FLAG_EXTRA_DUNGEON_BOSS 0x10000000 Creature is a dungeon boss. This flag is generically set by core during runtime. Setting this in database will give you startup error. 536870912 CREATURE_FLAG_EXTRA_IGNORE_PATHFINDING 0x20000000 Creature will ignore pathfinding. This is like disabling Mmaps, only for one creature. 1073741824 CREATURE_FLAG_EXTRA_IMMUNITY_KNOCKBACK 0x40000000 creature will immune all knockback effects 2147483648 CREATURE_FLAG_EXTRA_HARD_RESET 0x80000000 Creature will despawn on evade

ScriptName

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

VerifiedBuild

This field was used 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.

1)
(damage_base + (attackpower / 14) * BaseVariance) * DamageModifier) * (BaseAttackTime / 1000
2)
((damage_base * 1.5) + (attackpower / 14) * BaseVariance) * DamageModifier) * (BaseAttackTime / 1000
数据库/world数据库/creature_template.1695549437.txt.gz · 最后更改: 2023/09/24 17:57 由 admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki