Versiones comparadas

Clave

  • Se ha añadido esta línea.
  • Se ha eliminado esta línea.
  • El formato se ha cambiado.
Comentarios: More work on creature_template335.

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.

...

FieldTypeNullKeyDefaultExtraComment

entry

mediumint(8) unsigned

NO

PRI

0

 

 

difficulty_entry_1

mediumint(8) unsigned

NO

 

0

 

 

difficulty_entry_2

mediumint(8) unsigned

NO

 

0

 

 

difficulty_entry_3

mediumint(8) unsigned

NO

 

0

 

 

KillCredit1

int(10) unsigned

NO

 

0

 

 

KillCredit2

int(10) unsigned

NO

 

0

 

 

modelid1

mediumint(8) unsigned

NO

 

0

 

 

modelid2

mediumint(8) unsigned

NO

 

0

 

 

modelid3

mediumint(8) unsigned

NO

 

0

 

 

modelid4

mediumint(8) unsigned

NO

 

0

 

 

name

char(100)

NO

MUL

0

 

 

subname

char(100)

YES

 

(NULL)

 

 

IconName

char(100)

YES

 

(NULL)

 

 

gossip_menu_id

mediumint(8) unsigned

NO

 

0

 

 

minlevel

tinyint(3) unsigned

NO

 

1

 

 

maxlevel

tinyint(3) unsigned

NO

 

1

 

 

exp

smallint(6)

NO

 

0

 

 

faction

smallint(5) unsigned

NO

 

0

 

 

npcflag

int(10) unsigned

NO

 

0

 

 

speed_walk

float

NO

 

1

 

Result of 2.5/2.5, most common value

speed_run

float

NO

 

1.14286

 

Result of 8.0/7.0, most common value

scale

float

NO

 

1

 

 

rank

tinyint(3) unsigned

NO

 

0

 

 

dmgschool

tinyint(4)

NO

 

0

 

 

BaseAttackTime

int(10) unsigned

NO

 

0

 

 

RangeAttackTime

int(10) unsigned

NO

 

0

 

 

BaseVariance

float

NO

 

1

 

 

RangeVariance

float

NO

 

1

 

 

unit_class

tinyint(3) unsigned

NO

 

0

 

 

unit_flags

int(10) unsigned

NO

 

0

 

 

unit_flags2

int(10) unsigned

NO

 

0

 

 

dynamicflags

int(10) unsigned

NO

 

0

 

 

family

tinyint(4)

NO

 

0

 

 

trainer_type

tinyint(4)

NO

 

0

 

 

trainer_spell

mediumint(8) unsigned

NO

 

0

 

 

trainer_class

tinyint(3) unsigned

NO

 

0

 

 

trainer_race

tinyint(3) unsigned

NO

 

0

 

 

type

tinyint(3) unsigned

NO

 

0

 

 

type_flags

int(10) unsigned

NO

 

0

 

 

lootid

mediumint(8) unsigned

NO

 

0

 

 

pickpocketloot

mediumint(8) unsigned

NO

 

0

 

 

skinloot

mediumint(8) unsigned

NO

 

0

 

 

resistance1

smallint(6)

NO

 

0

 

 

resistance2

smallint(6)

NO

 

0

 

 

resistance3

smallint(6)

NO

 

0

 

 

resistance4

smallint(6)

NO

 

0

 

 

resistance5

smallint(6)

NO

 

0

 

 

resistance6

smallint(6)

NO

 

0

 

 

spell1

mediumint(8) unsigned

NO

 

0

 

 

spell2

mediumint(8) unsigned

NO

 

0

 

 

spell3

mediumint(8) unsigned

NO

 

0

 

 

spell4

mediumint(8) unsigned

NO

 

0

 

 

spell5

mediumint(8) unsigned

NO

 

0

 

 

spell6

mediumint(8) unsigned

NO

 

0

 

 

spell7

mediumint(8) unsigned

NO

 

0

 

 

spell8

mediumint(8) unsigned

NO

 

0

 

 

PetSpellDataId

mediumint(8) unsigned

NO

 

0

 

 

VehicleId

mediumint(8) unsigned

NO

 

0

 

 

mingold

mediumint(8) unsigned

NO

 

0

 

 

maxgold

mediumint(8) unsigned

NO

 

0

 

 

AIName

char(64)

NO

 

 

 

 

MovementType

tinyint(3) unsigned

NO

 

0

 

 

InhabitType

tinyint(3) unsigned

NO

 

3

 

 

HoverHeight

float

NO

 

1

 

 

HealthModifier

float

NO

 

1

 

 

ManaModifier

float

NO

 

1

 

 

ArmorModifier

float

NO

 

1

 

 

DamageModifier

float

NO

 

1

 

 

ExperienceModifier

float

NO

 

1

 

 

RacialLeader

tinyint(3) unsigned

NO

 

0

 

 

movementId

int(11) unsigned

NO

 

0

 

 

RegenHealth

tinyint(3) unsigned

NO

 

1

 

 

mechanic_immune_mask

int(10) unsigned

NO

 

0

 

 

flags_extra

int(10) unsigned

NO

 

0

 

 

ScriptName

char(64)

NO

 

 

 

 

VerifiedBuild

smallint(5)

YES

 

0

 

 

...

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

...

Minimum damage the creature deals in melee. This field is no longer combined with the attackpower field to calculate the damage.

...

Maximum damage the creature deals in melee. This field is no longer combined with the attackpower field to calculate the damage.

Ancla
dmgschool
dmgschool
dmgschool

...

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


Ancla

...

BaseAttackTime

...

BaseAttackTime

...

The attack power for the creature's melee attacks. This field along with mindmg and maxdmg dictate how much the creature will hit for. The formula in applying correct damages is as follows:

Bloque de código
languagesql
UPDATE `creature_template` SET 
    `mindmg` = <#1>, 
    `maxdmg` = <#2>, 
    `attackpower` = ROUND((`mindmg` + `maxdmg`) / 4 * 7), 
    `mindmg` = ROUND(`mindmg` - `attackpower` / 7), 
    `maxdmg` = ROUND(`maxdmg` - `attackpower` / 7) 
  WHERE `entry` = ...
In the query above, substitute '<#1>' with the minimum damage you want the creature to deal and '<#2>' with the maximum damage you want the creature to deal.

NOTE: You might also want to double check the values calculated after the query is run because if the difference between mindmg and maxdmg is too high, mindmg will end up being a negative value.

...

Multiplier for mindmg and maxdmg

Example: mindmg=200 maxdmg = 500 dmg_multiplier = 10

Outcome: mob will hit for 2000-5000

...

BaseAttackTime

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

Ancla

...

RangeAttackTime

...

RangeAttackTime

...

RangeAttackTime

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

...

Ancla
unit_flags
unit_flags
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:

...


Ancla
dynamicflags
dynamicflags
dynamicflags

Flags that control visual appearance of the creature.

...

dynamicflags

DecimalHexadecimalNameComments
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

Ancla
family
family
family

The family this creature belongs to.

IDFamilyIDFamily
1.Wolf26.Owl
2.Cat27.Wind Serpent
3.Spider28.Remote Control
4.Bear29.Felguard
5.Boar30.Dragonhawk
6.Crocolisk31.Ravager
7.Carrion Bird32.Warp Stalker
8.Crab33.Sporebat
9.Gorilla34.Nether Ray
11.Raptor35.Serpent
12.Tallstrider37.Moth
15.Felhunter38.Chimaera
16.Voidwalker39.Devilsaur
17.Succubus40.Ghoul
19.Doomguard41.Silithid
20.Scorpid42.Worm
21.Turtle43.Rhino
23.Imp44.Wasp
24.Bat45.Core Hound
25.Hyena46.Spirit Beast

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

Ancla
trainer_spell
trainer_spell
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.

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

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

minrangedmg

Minimum ranged damage the creature inflicts.

maxrangedmg

Maximum range damage the creature inflicts.

rangedattackpower

This field also refers to the damage multiplier.

Example: If the creature is using a ranged weapon and its rangedattackpower = 500 and the dmg_multiplier is 10 the max that it can hit for with ranged attacks would be 5000

Ancla
type
type
type

The type of the creature.

...

type_flags

DecimalHexadecimalNameComments
10x0000 0001CREATURE_TYPEFLAGS_TAMEABLEMakes the mob tameable (must also be a beast and have family set)
20x0000 0002CREATURE_TYPEFLAGS_GHOSTCreature are also visible for not alive player. Allow gossip interaction if npcflag allow?
40x0000 0004CREATURE_TYPEFLAGS_BOSSChanges creature's visible level to "??" in the creature's portrait - Inmune Knockback.
80x0000 0008CREATURE_TYPEFLAGS_DO_NOT_PLAY_WOUND_PARRY_ANIMATIONDoes not play wound animation on parry.
160x0000 0010CREATURE_TYPEFLAGS_HIDE_FACTION_TOOLTIPHides tooltip faction.
320x0000 0020CREATURE_TYPEFLAGS_UNK6
640x0000 0040CREATURE_TYPEFLAGS_SPELL_ATTACKABLESpell attackable.
1280x0000 0080CREATURE_TYPEFLAGS_DEAD_INTERACTPlayer can interact with the creature if its dead (not player dead)
2560x0000 0100CREATURE_TYPEFLAGS_HERBLOOTMakes mob herbable
5120x0000 0200CREATURE_TYPEFLAGS_MININGLOOTMakes mob minable
10240x0000 0400CREATURE_TYPEFLAGS_DONT_LOG_DEATHDoes not combatlog death.
20480x0000 0800CREATURE_TYPEFLAGS_MOUNTED_COMBATCreature can remain mounted when entering combat
40960x0000 1000CREATURE_TYPEFLAGS_AID_PLAYERSCan aid any player in combat if in range?
81920x0000 2000CREATURE_TYPEFLAGS_IS_PET_BAR_USEDIs using pet bar.
163840x0000 4000CREATURE_TYPEFLAGS_MASK_UID
327680x0000 8000CREATURE_TYPEFLAGS_ENGINEERLOOTMakes mob lootable by engineer
655360x0001 0000CREATURE_TYPE_FLAG_EXOTIC_PETTamable as an exotic pet. Normal tamable flag must also be set.
1310720x0002 0000CREATURE_TYPEFLAGS_USE_DEFAULT_COLLISION_BOXCollision related. (always using default collision box?)
2621440x0004 0000CREATURE_TYPEFLAGS_IS_SIEGE_WEAPONIs siege weapon.
5242880x0008 0000CREATURE_TYPEFLAGS_PROJECTILE_COLLISION

Projectiles can collide with this creature - interacts with TARGET_DEST_TRAJ

10485760x0010 0000CREATURE_TYPEFLAGS_HIDE_NAMEPLATEHides nameplate.
20971520x0020 0000CREATURE_TYPEFLAGS_DO_NOT_PLAY_MOUNTED_ANIMATIONSDoes not play mounted animations.
41943040x0040 0000CREATURE_TYPEFLAGS_IS_LINK_ALL
83886080x0080 0000CREATURE_TYPEFLAGS_INTERACT_ONLY_WITH_CREATOR

Can only interact with its creator.

1342177280x0800 0000CREATURE_TYPEFLAGS_FORCE_GOSSIPAllows the creature to display a single gossip option.

Ancla
lootid
lootid
lootid

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

Ancla
pickpocketloot
pickpocketloot
pickpocketloot

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

Ancla
skinloot
skinloot
skinloot

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

...

Ancla
ExperienceModifier
ExperienceModifier
ExperienceModifier

TODO!

Ancla
RacialLeader
RacialLeader
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.

...

flags_extra

DecimalHexadecimalNameType
10x00000001CREATURE_FLAG_EXTRA_INSTANCE_BINDcreature kill binds instance to killer and killer's group
20x00000002CREATURE_FLAG_EXTRA_CIVILIANcreature does not aggro (ignore faction/reputation hostility)
40x00000004CREATURE_FLAG_EXTRA_NO_PARRYcreature does not parry
80x00000008CREATURE_FLAG_EXTRA_NO_PARRY_HASTENcreature does not counter-attack at parry
160x00000010CREATURE_FLAG_EXTRA_NO_BLOCKcreature does not block
320x00000020CREATURE_FLAG_EXTRA_NO_CRUSHcreature does not do crush-attacks
640x00000040CREATURE_FLAG_EXTRA_NO_XP_AT_KILLcreature kill does not give XP
1280x00000080CREATURE_FLAG_EXTRA_TRIGGERcreature is trigger-NPC (invisible to players only)
2560x00000100CREATURE_FLAG_EXTRA_NO_TAUNTcreature is immune to taunt-auras and "attack me"-effects
5120x00000200CREATURE_FLAG_EXTRA_NO_MOVE_FLAGS_UPDATEcreature won't update movement flags
10240x00000400CREATURE_FLAG_EXTRA_GHOST_VISIBILITY creature will be only visible for dead players
163840x00004000CREATURE_FLAG_EXTRA_WORLDEVENTcustom flag for world events (left room for merging)
327680x00008000CREATURE_FLAG_EXTRA_GUARDcreature is a guard (Will ignore feign death and vanish)
1310720x00020000CREATURE_FLAG_EXTRA_NO_CRITcreature does not do critical strikes
2621440x00040000CREATURE_FLAG_EXTRA_NO_SKILLGAINcreature won't increase weapon skills
5242880x00080000CREATURE_FLAG_EXTRA_TAUNT_DIMINISHcreature taunt is subject to diminishing returns
10485760x00100000CREATURE_FLAG_EXTRA_ALL_DIMINISHCreature is subject to all diminishing returns
20971520x00200000CREATURE_FLAG_EXTRA_NO_PLAYER_DAMAGE_REQ

NPCs can help with killing this creature and player will still be credited if he tags the creature

2684354560x10000000CREATURE_FLAG_EXTRA_DUNGEON_BOSS

Creature is a dungeon boss. This flag is generically set by core during runtime. Setting this in database will give you startup error.

5368709120x20000000CREATURE_FLAG_EXTRA_IGNORE_PATHFINDINGCreature will ignore pathfinding. This is like disabling Mmaps, only for one creature.
10737418240x40000000CREATURE_FLAG_EXTRA_IMMUNITY_KNOCKBACKcreature will immune all knockback effects

...

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.#resistance