用户工具

站点工具


数据库:world数据库:creature

这是本文档旧的修订版!


creature 表


<-返回:World 数据库

Contains individual creature spawn data for each individual spawn of each individual creature in the game world.

表结构

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

字段说明


guid

A unique identifier given to each creature to distinguish one creature from another. Two creatures can NOT have same GUID.

id1

The Main ID of the template that is used when instantiating this creature.

id2

The Secondary ID of the template that is used when instantiating this creature.

id3

The Third ID of the template that is used when instantiating this creature.

map

The ID of the map that the creature is spawned on.

zoneId

The ID of the zone that the creature is spawned in. (e.g. The Barrens)

This column is filled in by the worldserver on startup if the Calculate.Creature.Zone.Area.Data setting is enabled. It originates from AreaTable.dbc.

areaId

The ID of the area that the creature is spawned in. You can think of an area as a “subzone” of a zone, e.g. Lushwater Oasis inside The Barrens.

This column is filled in by the worldserver on startup if the Calculate.Creature.Zone.Area.Data setting is enabled. It originates from AreaTable.dbc.

spawnMask

Controls under which difficulties the creature is spawned. The values are bit-masked, so you can add them together to combine the effects of two or more values.

Example:

4 + 8 = 12

The creature will spawn in only the 10 and 25 man heroic versions of the map that the creature is spawned on.

ValueComment
0Not spawned
1Spawned only in 10-man-normal versions of maps (includes maps without a heroic mode)
2Spawned only in 25-man-normal versions of maps (or heroics pre 3.2)
4Spawned only in 10-man heroic versions of maps
8Spawned only in 25-man-heroic versions of maps
15Spawned in all versions of maps

phaseMask

This is a bit-mask field that describes all the phases that a creature will appear in. Aura 261 determines the phase you can see. For example, if you had this aura http://www.wowhead.com/?spell=55782, you would be able to see creatures in phase 2. If you wanted the creature to be visible in both phase 1 and phase 2, you would set the phase-mask to 3.

equipment_id

The ID as defined within creature_equip_template corresponding to the entry. The value essential defines the equip:

  • -1: A random equip from the set of equips in creature_equip_template will be chosen.
  • 0: No equipment defined.
  • 1+: The individual id within creature_equip_template.

If creature spawned with .npc add, then this value will be set automatically (0 if nothing in creature_equip_template).

position_x

The X position of the creatures spawn point.

position_y

The Y position of the creatures spawn point.

position_z

The Z position of the creatures spawn point.

orientation

The orientation of the creatures spawn point. (North = 0.0; South = pi (3.14159))

spawntimesecs The respawn time, in seconds, of the creature.

wander_distance

The maximum distance that the creature may spawn from its spawn point. Also controls how far away the creature can walk from its spawn point if its MovementType = 1.

currentwaypoint

The current waypoint that the creature is on, if any.

curhealth

The health that the creature will spawn with.

curmana

The mana that the creature will spawn with.

MovementType

The movement type associated with the creature. Usually the same as its MovementType, but it can be different.

npcflag

Same as creature_template.npcflag .

NOTE: A creature.npcflag record will override a creature_template.npcflag record.

unit_flags

Same as creature_template.unit_flags.

Note:

A creature.unit_flags record will override a creature_template.unit_flags record.

dynamicflags

Same as creature_template.dynamicflags.

Note:

A creature.dynamicflags record will override a creature_template.dynamicflags record.

ScriptName

Same as creature_template.scriptname.

A creature.scriptname record will override a creature_template.scriptname record.

VerifiedBuild

This field is used to determine if this creature originates from verified sniffs.

If value is 0 then it has not been parsed yet or it has been inherited from an older DB or another Core.

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

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.

CreateObject

This field is specific to creatures and used to determine if the positions are perfected.

Once a creature is sniffed, the packet can be either CreateObject1 or CreateObject2. A CO1 creature usually has already spawned, has moved, and thus deviates from its real spawn position. A CO2 creature was sniffed when it has spawned, so it is, in most cases, its real spawn position.

Another 3rd value is used for special cases, which are creatures that do not respawn normally but by scripts. It is functionally the same as CO2 and only used to distinguish these special cases better.

comment

This field serves to add additional context to this creature, mostly in the context of sniffed values or script notes.

For example, if a creature's position needed to be modified, the original positions are kept in the comment field. Or if the creatures in question are part of a larger script, the comment serves for context.

数据库/world数据库/creature.1695548262.txt.gz · 最后更改: 2023/09/24 17:37 由 admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki