用户工具

站点工具


数据库:world数据库:creature

这是本文档旧的修订版!


creature 表


<-返回:World 数据库

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

表结构

FieldTypeAttributesKeyNullDefaultExtraComment
guidINTUNSIGNEDPRINONULLAuto IncrementGlobal Unique Identifier
id1INTUNSIGNED NO0 Creature Identifier
id2INTUNSIGNED NO0 Creature Identifier
id3INTUNSIGNED NO0 Creature Identifier
mapSMALLINTUNSIGNED NO0 Map Identifier
zoneIdSMALLINTUNSIGNED NO0 Zone Identifier
areaIdSMALLINTUNSIGNED NO0 Area Identifier
spawnMaskTINYINTUNSIGNED NO1
phaseMaskSMALLINTUNSIGNED NO1
equipment_idTINYINTUNSIGNED NO1
position_xFLOATSIGNED NO0
position_yFLOATSIGNED NO0
position_zFLOATSIGNED NO0
orientationFLOATSIGNED NO0
spawntimesecsINTUNSIGNED NO120
wander_distanceFLOATSIGNED NO5 Dist in yards for random movement.
currentwaypointINTUNSIGNED NO0 Storage used by core. “Always set as 0”
curhealthINTUNSIGNED NO1 Storage used by core. “Always set as 1”
curmanaINTUNSIGNED NO0 Storage used by core. “Always set as 0”
MovementTypeTINYINTUNSIGNED NO0 0 No movement, 1 random, 2 path
npcflagINTUNSIGNED NO0 creature_template override
unit_flagsINTUNSIGNED NO0 creature_template override
dynamicflagsINTUNSIGNED NO0 creature_template override
ScriptNameCHAR YESNULL
VerifiedBuildINTSIGNED YESNULL Not used by the core.
CreateObjectTINYINTUNSIGNED NO0 Not used by the core.
CommentTEXT YESNULL Not used by the core.

字段说明


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.1695540394.txt.gz · 最后更改: 2023/09/24 15:26 由 admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki