用户工具

站点工具


数据库:world数据库:creature_addon

这是本文档旧的修订版!


creature_addon 表


<-返回:World 数据库

The creature_addon and creature_template_addon tables define different things that are applied on creatures when they are loaded. These “different things” can be for example to have the creature be mounted, to have it emote something, to have it display an aura effect, etc. Through the use of the fields in this table, many things can be changed about the outward visual appearance of the creature. The creature_template_addon table affects all creatures with that creature template ID while the creature_addon table affects individually spawned creatures (so that two creatures using the same template can look different).

NOTE: A creature_addon record will override a creature_template_addon record should they overlap on the same creature.

NOTICE: The data for this table is largely incomplete and is mostly just a regurgitation of what the client receives from the server. This article is a WIP as to what all the possible values are.

表结构

FieldTypeAttributesKeyNullDefaultExtraComment
guidINT/MEDIUMINTUNSIGNEDPRINO
path_idINTUNSIGNED NO
mountMEDIUMINTUNSIGNED NO
bytes1INTUNSIGNED NO
bytes2INTUNSIGNED NO
emoteINTUNSIGNED NO
aiAnimKitSMALLINTSIGNED NO
movementAnimKitSMALLINTSIGNED NO
meleeAnimKitSMALLINTSIGNED NO
visibilityDistanceTypeTINYINTUNSIGNED NO
aurastext YES

字段说明


guid

For creature_addon, this field signifies a unique creature guid. It will affect just that creature whose GUID matches the one specified here. For creature_template_addon, this field signifies the creature_template.entry. It will affect all spawned creatures using that template entry.

path_id

If a creature has waypoint pathed movement, this field hold the waypoint_data.id for the path the creature is to follow.

mount

The model ID of the mount to be used to make the creature appear mounted. The value here overrides the value for the creature's unit field UNIT_FIELD_MOUNTDISPLAYID.

bytes1

The value here overrides the value for the creature's unit field UNIT_FIELD_BYTES_1.

List of known values and what their visual effects on the creature

  • 1 = Sitting
  • 2 = Sit chair
  • 3 = Sleep
  • 4 = Sit low chair
  • 5 = Sit medium chair
  • 6 = Sit high chair
  • 7 = Shows health bar as empty (combine with the state dead emote to make a creature look dead)
  • 8 = Makes the mob kneel
  • 9 = Submerges the creature below the ground
  • 54432 = Hover mode
  • 50331648 = Hover mode 2

bytes2

The value here overrides the value for the creature's unit field UNIT_FIELD_BYTES_2.

NOTE: creatures always have melee weapon ready if any unless specified otherwise List of few known values and what their visual effects on the creature 0 = STATE_UNARMED (not prepared weapon, weapons on the sides/back) 1 = STATE_MELEE (prepared melee weapon in hands) 2 = STATE_RANGED (prepared ranged weapon in hands, melee weapons on the sides) ==== emote ==== Emote ID that the creature should continually perform. List of often used emote IDs and what they do can be found here. ==== aiAnimKit / movementAnimKit / meleeAnimKit ==== AnimKit ID from AnimKit.db2 that is applied on creature when spawned. ==== visibilityDistanceType ==== This field controls the visibility distance for creatures: Normal = 0, 100.0f default visible distance, 100 yards on continents Tiny = 1, 25.0f Small = 2, 50.0f Large = 3, 200.0f Gigantic = 4, 400.0f Infinite = 5, SIZE_OF_GRIDS max distance for visible objects) ==== auras ==== This field controls any auras to be applied on the creature (both in effect and visually). To apply multiple auras, you can add more aura entries, separating each entry by a space. Remember that if a spell applies multiple auras. List of useful aura entries (examples): '16380' - Makes the creature invisible. '18950' - Makes the creature detect other invisible units (players or creatures). '16380 18950' - Both auras above

数据库/world数据库/creature_addon.1695540566.txt.gz · 最后更改: 2023/09/24 15:29 由 admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki