目录
IconName (335) | TitleAlt(master)
rank (335) | Classification (master)
BaseAttackTime | RangeAttackTime
unit_flags | unit_flags2 | unit_flags3
type_flags (335)| Type_Flags,Type_Flags2(master 分支迁移至 creature_template_difficulty)
mingold,maxgold(335)| GoldMin,GoldMax(master)
creature_template
分支版本不同字段可能略有区别,需自行分辨
- entry
- creature 模板的编号,唯一不可重复
-
KillCredit1~2
- 击杀奖励计数,下例中,entry 为 16867、16870 的 creature 模板将同时与 entry 为 22334 的 creature 模板一并计入击杀奖励
- modelid1~4 (335) | CreatureDisplayID (master 该字段迁移至 creature_template_model)
- creature 模板模型,服务器将从4个给定的模型中随机选择一个显示到客户端. 取值参考 creature_model_info.DisplayID / creaturedisplayinfo.dbc | creaturedisplayinfo.db2
- name | female name
- creature 的名称
- subname
- 以 <..> 显示在 creature 名称下的副称
-
IconName (335) | TitleAlt(master)
-
当鼠标指向 creature 时显示的形状
-
attack
Value | Description |
---|---|
architect | |
argusteleporter | |
attack | Shows a Sword icon indicating you can attack this target. |
buy | Shows a Brown Bag icon usually if the NPC only sells things. |
cast | |
directions | Used for Guards and Teleporter NPC's. |
driver | Shows a Steering Wheel icon |
engineerskin | |
fishing | |
gatherherbs | |
gunner | Indicator of a Turret NPC/Player Controlled. |
innkeeper | |
inspect | |
Interact | Shows Cog icon |
lootAll | Shows a Multiple Brown Bag icon (Same as holding Shift before looting a creature). |
mine | |
missions | Command Table,etc |
openhand | |
openhandglow | |
pickup | Shows a Hand Grasping icon |
point | |
quest | Unused or Unknown. (See EntryID 32870 The Real Ronakada). |
questinteract | |
repair | Shows a Anvil icon |
speak | Shows a Chat Bubble icon if this NPC has Quest/Gossip options. |
taxi | Shows a green Wings icon |
trainer | Shows a Book icon |
vehichlecursor | Indicator that this is a green PCV (Player Controlled Vehicle) |
wildpet | |
wildpetcapturable | |
workorders |
-
faction
- creature 模板的阵营ID,取值参见 FactionTemplate.dbc | FactionTemplate.db2
- 同一阵营 ID 有时候对应多个阵营模板,区别在于阵营模板之间的关系不同
- 该字段还控制生物 Familiy 的协助机制,只有同一阵营的生物才会互相协助
-
npcflag
- creature 模板的 npcflag 的位掩码(十进制值),取值参考源码 UnitDefines.h 的 NPCFlags 定义
- 此值为位掩码,要应用多个,只需将其相加
十进制值 Decimal | 十六进制值 Hexadecimal | 名称 Name | 备注 Comment |
---|---|---|---|
1 | 0x0000 0001 | Gossip | If creature has more gossip options, add this flag to bring up a menu. |
2 | 0x0000 0002 | Quest Giver | Any creature giving or taking quests needs to have this flag. |
4 | 0x0000 0004 | Unknown | Flag is unknown |
8 | 0x0000 0008 | Unknown | Flag is unknown |
16 | 0x0000 0010 | Trainer | Allows the creature to have a trainer list to teach spells |
32 | 0x0000 0020 | Class Trainer | |
64 | 0x0000 0040 | Profession Trainer | |
128 | 0x0000 0080 | Vendor | Any creature selling items needs to have this flag. |
256 | 0x0000 0100 | Vendor Ammo | |
512 | 0x0000 0200 | Vendor Food | |
1024 | 0x0000 0400 | Vendor Poison | |
2048 | 0x0000 0800 | Vendor Reagent | |
4096 | 0x0000 1000 | Repairer | Creatures with this flag can repair items. |
8192 | 0x0000 2000 | Flight Master | Any creature serving as flight master has this. |
16384 | 0x0000 4000 | Spirit Healer | Makes the creature invisible to alive characters and has the resurrect function. |
32768 | 0x0000 8000 | Spirit Guide | |
65536 | 0x0001 0000 | Innkeeper | Creatures with this flag can set hearthstone locations. |
131072 | 0x0002 0000 | Banker | Creatures with this flag can show the bank |
262144 | 0x0004 0000 | Petitioner | |
524288 | 0x0008 0000 | Tabard Designer | Allows the designing of guild tabards. |
1048576 | 0x0010 0000 | Battlemaster | Creatures with this flag port players to battlegrounds. |
2097152 | 0x0020 0000 | Auctioneer | Allows creature to display auction list. |
4194304 | 0x0040 0000 | Stable Master | Has the option to stable pets for hunters. |
8388608 | 0x0080 0000 | Guild Banker | |
16777216 | 0x0100 0000 | Spellclick | Needs data on npc_spellclick_spells table |
33554432 | 0x0200 0000 | Player Vehicle | |
67108864 | 0x0400 0000 | Mailbox | NPC will act like a mailbox (opens mailbox with right-click)(master) |
134217728 | 0x0800 0000 | Artifact Power Respec | NPC will act like a mailbox (opens mailbox with right-click)(master) |
268435456 | 0x1000 0000 | Transmogrifier | Creatures with this flag can show transmogrification UI(master) |
536870912 | 0x2000 0000 | Vaultkeeper | Creatures with this flag can show void storage(master) |
1073741824 | 0x4000 0000 | Wild Battle Pet | Creature is battle pet and collectable(master) |
2147483648 | 0x8000 0000 | Blackmarket | (master) |
-
speed_walk | speed_run
- creature 的走|跑速度,特别需要说明的是,载具的地面移动速度由 speed_run 控制,载具的空中飞行速度由 speed_walk 控制
- scale
- creature 模板模型的缩放比例
-
rank (335) | Classification (master)
- 此值决定 creature 模板的显示外观(需要清除缓存生效)。更改此值仅会改变creature 模板的显示外观及刷新时间,不会改变其生命值、伤害或战利品
- 刷新时间还可以在另外两处地方修改:
-
worldserver.conf 中的“Corpse.Decay”设置(适用于所有 rank | Classification 相同的 creature)
-
creature.spawntimesecs 所有 creature 的刷新时间总和默认为6分钟,如此处设置spawntimesecs = 0 则意味着 creature 的刷新时间从6分钟减少到60秒
-
Value | Name | 默认刷新时间 | 尸体腐烂(消失)时间 | 刷新时间总和 |
---|---|---|---|---|
0 | Normal | 5 min | 60 sec | 6 min |
1 | Elite | 5 min | 5 min | 10 min |
2 | Rare Elite | 5 min | 5 min | 10 min |
3 | Boss | 5 min | 1 hour | 1 hour, 5 min |
4 | Rare | 5 min | 5 min | 10 min |
5 | Trivial(335) | 5 min | 60 sec | 6 min |
-
dmgschool
- creature 模板的近战伤害类型,取值参考源码 SharedDefines.h 的 SpellSchool 定义
Value | Name | Comment |
---|---|---|
0 | SPELL_SCHOOL_NORMAL | 普通伤害 |
1 | SPELL_SCHOOL_HOLY | 神圣伤害 |
2 | SPELL_SCHOOL_FIRE | 火焰伤害 |
3 | SPELL_SCHOOL_NATURE | 自然伤害 |
4 | SPELL_SCHOOL_FROST | 冰霜伤害 |
5 | SPELL_SCHOOL_SHADOW | 暗影伤害 |
6 | SPELL_SCHOOL_ARCANE | 奥术伤害 |
-
BaseAttackTime | RangeAttackTime
- creature 模板的近战|远程攻击时间间隔,单位毫秒
-
BaseVariance | RangeVariance
- creature 模板的近战|远程攻击伤害倍增系数,取值参考 creature_classlevelstats.attackpower | creature_classlevelstats. rangedattackpower
-
unit_class
- creature 模板的 class,它决定了 creature 模板的生命值和魔法值
- 取值参考源码 SharedDefines.h 的 UnitClass 定义
- creature 模板的生命值和法力值还会随着 exp | HealthModifier | ManaModifier (master 为:exp、 health _ mod | mana _ mod)三个参数变化,不设置此值将在 DB_Errors.log中报错
Value | Name | Comment |
---|---|---|
1 | CLASS_WARRIOR | 仅有生命条 (类似战士) |
2 | CLASS_PALADIN | 有生命和法术条 (较少法术值) |
4 | CLASS_ROGUE | 有生命条和能量条 (类似盗贼) |
8 | CLASS_MAGE | 有生命和法术条 (更多法术值) |
-
unit_flags | unit_flags2 | unit_flags3
- 取值参考源码 UnitDefines.h 的 UnitFlags | UnitFlags2 | UnitFlags3 定义
- 此值为位掩码,要应用多个,只需将其相加
UnitFlags | Value (HEX) | Value (DEC) | Comment | |
UNIT_FLAG_SERVER_CONTROLLED | 0x00000001 | 1 | set 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 | 服务端控制 |
UNIT_FLAG_NON_ATTACKABLE | 0x00000002 | 2 | not attackable, set when creature starts to cast spells with SPELL_EFFECT_SPAWN and cast time, removed when spell hits caster, original name is UNIT_FLAG_SPAWNING. Rename when it will be removed from all scripts | 不可攻击 |
UNIT_FLAG_REMOVE_CLIENT_CONTROL | 0x00000004 | 4 | This is a legacy flag used to disable movement player's movement while controlling other units, SMSG_CLIENT_CONTROL replaces this functionality clientside now. CONFUSED and FLEEING flags have the same effect on client movement asDISABLE_MOVE_CONTROL in addition to preventing spell casts/autoattack (they all allow climbing steeper hills and emotes while moving) | 当玩家控制单位时不能移动 |
UNIT_FLAG_PLAYER_CONTROLLED | 0x00000008 | 8 | controlled by player, use _IMMUNE_TO_PC instead of _IMMUNE_TO_NPC | 玩家控制 |
UNIT_FLAG_RENAME | 0x00000010 | 16 | 改名 | |
UNIT_FLAG_PREPARATION | 0x00000020 | 32 | don't take reagents for spells with SPELL_ATTR5_NO_REAGENT_WHILE_PREP | |
UNIT_FLAG_UNK_6 | 0x00000040 | 64 | 一般用于SAI里面施放不触发的技能 | |
UNIT_FLAG_NOT_ATTACKABLE_1 | 0x00000080 | 128 | (UNIT_FLAG_PLAYER_CONTROLLED | UNIT_FLAG_NOT_ATTACKABLE_1) is NON_PVP_ATTACKABLE | 不能PVP |
UNIT_FLAG_IMMUNE_TO_PC | 0x00000100 | 256 | disables combat/assistance with PlayerCharacters (PC) - see Unit::IsValidAttackTarget, Unit::IsValidAssistTarget | 玩家不可攻击 |
UNIT_FLAG_IMMUNE_TO_NPC | 0x00000200 | 512 | disables combat/assistance with NonPlayerCharacters (NPC) - see Unit::IsValidAttackTarget, Unit::IsValidAssistTarget | NPC不可攻击 |
UNIT_FLAG_LOOTING | 0x00000400 | 1024 | loot animation | 掉落 |
UNIT_FLAG_PET_IN_COMBAT | 0x00000800 | 2048 | on player pets: whether the pet is chasing a target to attack || on other units: whether any of the unit's minions is in combat | 宠物进入战斗 |
UNIT_FLAG_PVP_ENABLING | 0x00001000 | 4096 | changed in 3.0.3, now UNIT_BYTES_2_OFFSET_PVP_FLAG from UNIT_FIELD_BYTES_2 | 允许PVP |
UNIT_FLAG_FORCE_NAMEPLATE | 0x00002000 | 8192 | Force show nameplate, 9.0 | 强制显示姓名板 |
UNIT_FLAG_CANT_SWIM | 0x00004000 | 16384 | TITLE Can't Swim | 不能游泳 |
UNIT_FLAG_CAN_SWIM | 0x00008000 | 32768 | TITLE Can Swim,shows swim animation in water | 能游泳 |
UNIT_FLAG_NON_ATTACKABLE_2 | 0x00010000 | 65536 | removes attackable icon, if on yourself, cannot assist self but can cast TARGET_SELF spells - added by SPELL_AURA_MOD_UNATTACKABLE | 不主动攻击 |
UNIT_FLAG_PACIFIED | 0x00020000 | 131072 | ||
UNIT_FLAG_STUNNED | 0x00040000 | 262144 | 晕眩 | |
UNIT_FLAG_IN_COMBAT | 0x00080000 | 524288 | 进入战斗状态 | |
UNIT_FLAG_ON_TAXI | 0x00100000 | 1048576 | disable casting at client side spell not allowed by taxi flight (mounted?), probably used with 0x4 flag | 在坐骑上飞行(不能施法) |
UNIT_FLAG_DISARMED | 0x00200000 | 2097152 | disable melee spells casting..., "Required melee weapon" added to melee spells tooltip. | 缴械 |
UNIT_FLAG_CONFUSED | 0x00400000 | 4194304 | 混乱 | |
UNIT_FLAG_FLEEING | 0x00800000 | 8388608 | 逃跑 | |
UNIT_FLAG_POSSESSED | 0x01000000 | 16777216 | under direct client control by a player (possess or vehicle) | 被玩家控制 |
UNIT_FLAG_UNINTERACTIBLE | 0x02000000 | 33554432 | 不能选中 | |
UNIT_FLAG_SKINNABLE | 0x04000000 | 67108864 | 可剥皮 | |
UNIT_FLAG_MOUNT | 0x08000000 | 134217728 | 坐骑 | |
UNIT_FLAG_UNK_28 | 0x10000000 | 268435456 | \ | |
UNIT_FLAG_PREVENT_EMOTES_FROM_CHAT_TEXT | 0x20000000 | 536870912 | Prevent automatically playing emotes from parsing chat text, for example "lol" in /say, ending message with ? or !, or using /yell | 阻止动作 |
UNIT_FLAG_SHEATHE | 0x40000000 | 1073741824 | 武器入鞘 | |
UNIT_FLAG_IMMUNE | 0x80000000 | 2147483648 | Immune to damage | 免疫伤害 |
UnitFlags2 | Value (HEX) | Value (DEC) | Comment | |
UNIT_FLAG2_FEIGN_DEATH | 0x00000001 | 1 | 假装死亡或者做出死亡的动作 | |
UNIT_FLAG2_HIDE_BODY | 0x00000002 | 2 | Hide unit model (show only player equip) | 主体隐形,只显示装备 |
UNIT_FLAG2_IGNORE_REPUTATION | 0x00000004 | 4 | 忽略声望 | |
UNIT_FLAG2_COMPREHEND_LANG | 0x00000008 | 8 | 掌握语言 | |
UNIT_FLAG2_MIRROR_IMAGE | 0x00000010 | 16 | 镜像 | |
UNIT_FLAG2_DONT_FADE_IN | 0x00000020 | 32 | Unit model instantly appears when summoned (does not fade in) | |
UNIT_FLAG2_FORCE_MOVEMENT | 0x00000040 | 64 | 强制移动 | |
UNIT_FLAG2_DISARM_OFFHAND | 0x00000080 | 128 | 不装备副手 | |
UNIT_FLAG2_DISABLE_PRED_STATS | 0x00000100 | 256 | Player has disabled predicted stats (Used by raid frames) | 禁用玩家预设stats |
UNIT_FLAG2_ALLOW_CHANGING_TALENTS | 0x00000200 | 512 | Allows changing talents outside rest area | 允许在休息区外更换天赋 |
UNIT_FLAG2_DISARM_RANGED | 0x00000400 | 1024 | this does not disable ranged weapon display (maybe additional flag needed?) | 不装备远程武器 |
UNIT_FLAG2_REGENERATE_POWER | 0x00000800 | 2048 | 能力可再生 | |
UNIT_FLAG2_RESTRICT_PARTY_INTERACTION | 0x00001000 | 4096 | Restrict interaction to party or raid | 限制与队伍或团队的互动 |
UNIT_FLAG2_PREVENT_SPELL_CLICK | 0x00002000 | 8192 | Prevent spellclick | 不允许右键 |
UNIT_FLAG2_INTERACT_WHILE_HOSTILE | 0x00004000 | 16384 | Interact while Hostile | 允许敌对状态下交互 |
UNIT_FLAG2_CANNOT_TURN | 0x00008000 | 32768 | Cannot Turn | 不能转弯 |
UNIT_FLAG2_UNK2 | 0x00010000 | 65536 | \ | |
UNIT_FLAG2_PLAY_DEATH_ANIM | 0x00020000 | 131072 | Plays special death animation upon death | 死亡时显示特殊死亡动画 |
UNIT_FLAG2_ALLOW_CHEAT_SPELLS | 0x00040000 | 262144 | Allows casting spells with AttributesEx7 & SPELL_ATTR7_IS_CHEAT_SPELL | |
UNIT_FLAG2_SUPPRESS_HIGHLIGHT_WHEN_TARGETED _OR_MOUSED_OVER | 0x00080000 | 524288 | Suppress highlight when targeted or moused over | 被选中时不高亮显示 |
UNIT_FLAG2_TREAT_AS_RAID_UNIT_FOR_HELPFUL_SPELLS | 0x00100000 | 1048576 | Treat as Raid Unit For Helpful Spells (Instances ONLY) | |
UNIT_FLAG2_LARGE_AOI | 0x00200000 | 2097152 | Large (AOI) | |
UNIT_FLAG2_GIGANTIC_AOI | 0x00400000 | 4194304 | Gigantic (AOI) | |
UNIT_FLAG2_NO_ACTIONS | 0x00800000 | 8388608 | ||
UNIT_FLAG2_AI_WILL_ONLY_SWIM_IF_TARGET_SWIMS | 0x01000000 | 16777216 | AI will only swim if target swims | |
UNIT_FLAG2_DONT_GENERATE_COMBAT_LOG _WHEN_ENGAGED_WITH_NPCS | 0x02000000 | 33554432 | Don't generate combat log when engaged with NPC's | |
UNIT_FLAG2_UNTARGETABLE_BY_CLIENT | 0x04000000 | 67108864 | Untargetable By Client | |
UNIT_FLAG2_ATTACKER_IGNORES_MINIMUM_RANGES | 0x08000000 | 134217728 | Attacker Ignores Minimum Ranges | |
UNIT_FLAG2_UNINTERACTIBLE_IF_HOSTILE | 0x10000000 | 268435456 | Uninteractible If Hostile | |
UNIT_FLAG2_UNUSED_11 | 0x20000000 | 536870912 | ||
UNIT_FLAG2_INFINITE_AOI | 0x40000000 | 1073741824 | Infinite (AOI) | |
UNIT_FLAG2_UNUSED_13 | 0x80000000 | 2147483648 |
UnitFlags3 | Value (HEX) | Value (DEC) | Comment | |
UNIT_FLAG3_UNK0 | 0x00000001 | 1 | ||
UNIT_FLAG3_UNCONSCIOUS_ON_DEATH | 0x00000002 | 2 | Shows "Unconscious" in unit tooltip instead of "Dead" | |
UNIT_FLAG3_ALLOW_MOUNTED_COMBAT | 0x00000004 | 4 | Allow mounted combat | 允许骑乘作战 |
UNIT_FLAG3_GARRISON_PET | 0x00000008 | 8 | Special garrison pet creatures that display one of favorite player battle pets - this flag allows querying name and turns off default battle pet behavior | |
UNIT_FLAG3_UI_CAN_GET_POSITION | 0x00000010 | 16 | Allows lua functions like UnitPosition to always get the position even for npcs or non-grouped players | |
UNIT_FLAG3_AI_OBSTACLE | 0x00000020 | 32 | ||
UNIT_FLAG3_ALTERNATIVE_DEFAULT_LANGUAGE | 0x00000040 | 64 | ||
UNIT_FLAG3_SUPPRESS_ALL_NPC_FEEDBACK | 0x00000080 | 128 | Skips playing sounds on left clicking npc for all npcs as long as npc with this flag is visible | |
UNIT_FLAG3_IGNORE_COMBAT | 0x00000100 | 256 | Same as SPELL_AURA_IGNORE_COMBAT | |
UNIT_FLAG3_SUPPRESS_NPC_FEEDBACK | 0x00000200 | 512 | Skips playing sounds on left clicking npc | |
UNIT_FLAG3_UNK10 | 0x00000400 | 1024 | ||
UNIT_FLAG3_UNK11 | 0x00000800 | 2048 | ||
UNIT_FLAG3_UNK12 | 0x00001000 | 4096 | ||
UNIT_FLAG3_FAKE_DEAD | 0x00002000 | 8192 | Show as dead | |
UNIT_FLAG3_NO_FACING_ON_INTERACT _AND_FAST_FACING_CHASE | 0x00004000 | 16384 | Causes the creature to both not change facing on interaction and speeds up smooth facing changes while attacking (clientside) | |
UNIT_FLAG3_UNTARGETABLE_FROM_UI | 0x00008000 | 32768 | Cannot be targeted from lua functions StartAttack, TargetUnit, PetAttack | |
UNIT_FLAG3_NO_FACING_ON_INTERACT_WHILE_FAKE_DEAD | 0x00010000 | 65536 | Prevents facing changes while interacting if creature has flag UNIT_FLAG3_FAKE_DEAD | |
UNIT_FLAG3_ALREADY_SKINNED | 0x00020000 | 131072 | ||
UNIT_FLAG3_SUPPRESS_ALL_NPC_SOUNDS | 0x00040000 | 262144 | Skips playing sounds on beginning and end of npc interaction for all npcs as long as npc with this flag is visible | |
UNIT_FLAG3_SUPPRESS_NPC_SOUNDS | 0x00080000 | 524288 | Skips playing sounds on beginning and end of npc interaction | |
UNIT_FLAG3_UNK20 | 0x00100000 | 1048576 | ||
UNIT_FLAG3_UNK21 | 0x00200000 | 2097152 | ||
UNIT_FLAG3_DONT_FADE_OUT | 0x00400000 | 4194304 | ||
UNIT_FLAG3_UNK23 | 0x00800000 | 8388608 | ||
UNIT_FLAG3_FORCE_HIDE_NAMEPLATE | 0x01000000 | 16777216 | 强制隐藏姓名版 | |
UNIT_FLAG3_UNK25 | 0x02000000 | 33554432 | ||
UNIT_FLAG3_UNK26 | 0x04000000 | 67108864 | ||
UNIT_FLAG3_UNK27 | 0x08000000 | 134217728 | ||
UNIT_FLAG3_UNK28 | 0x10000000 | 268435456 | ||
UNIT_FLAG3_UNK29 | 0x20000000 | 536870912 | ||
UNIT_FLAG3_UNK30 | 0x40000000 | 1073741824 | ||
UNIT_FLAG3_UNK31 | 0x80000000 | 2147483648 |
-
dynamicflags(master 该字段已迁移 )
- 用于控制生物视觉外观,取值参考源码 SharedDefines.h 的 UnitDynFlags 定义
- 此值为位掩码,要应用多个,只需将他们相加
- 以下为master分支取值
enum UnitDynFlags
{
UNIT_DYNFLAG_NONE = 0x0000,
UNIT_DYNFLAG_HIDE_MODEL = 0x0002, // Object model is not shown with this flag
UNIT_DYNFLAG_LOOTABLE = 0x0004,
UNIT_DYNFLAG_TRACK_UNIT = 0x0008,
UNIT_DYNFLAG_TAPPED = 0x0010, // Lua_UnitIsTapped
UNIT_DYNFLAG_SPECIALINFO = 0x0020,
UNIT_DYNFLAG_CAN_SKIN = 0x0040,
UNIT_DYNFLAG_REFER_A_FRIEND = 0x0080
};
-
family
- 以下为master分支取值
enum CreatureFamily
{
CREATURE_FAMILY_NONE = 0,
CREATURE_FAMILY_WOLF = 1,
CREATURE_FAMILY_CAT = 2,
CREATURE_FAMILY_SPIDER = 3,
CREATURE_FAMILY_BEAR = 4,
CREATURE_FAMILY_BOAR = 5,
CREATURE_FAMILY_CROCOLISK = 6,
CREATURE_FAMILY_CARRION_BIRD = 7,
CREATURE_FAMILY_CRAB = 8,
CREATURE_FAMILY_GORILLA = 9,
CREATURE_FAMILY_RAPTOR = 11,
CREATURE_FAMILY_TALLSTRIDER = 12,
CREATURE_FAMILY_FELHUNTER = 15,
CREATURE_FAMILY_VOIDWALKER = 16,
CREATURE_FAMILY_SUCCUBUS = 17,
CREATURE_FAMILY_DOOMGUARD = 19,
CREATURE_FAMILY_SCORPID = 20,
CREATURE_FAMILY_TURTLE = 21,
CREATURE_FAMILY_IMP = 23,
CREATURE_FAMILY_BAT = 24,
CREATURE_FAMILY_HYENA = 25,
CREATURE_FAMILY_BIRD_OF_PREY = 26,
CREATURE_FAMILY_WIND_SERPENT = 27,
CREATURE_FAMILY_REMOTE_CONTROL = 28,
CREATURE_FAMILY_FELGUARD = 29,
CREATURE_FAMILY_DRAGONHAWK = 30,
CREATURE_FAMILY_RAVAGER = 31,
CREATURE_FAMILY_WARP_STALKER = 32,
CREATURE_FAMILY_SPOREBAT = 33,
CREATURE_FAMILY_RAY = 34,
CREATURE_FAMILY_SERPENT = 35,
CREATURE_FAMILY_MOTH = 37,
CREATURE_FAMILY_CHIMAERA = 38,
CREATURE_FAMILY_DEVILSAUR = 39,
CREATURE_FAMILY_GHOUL = 40,
CREATURE_FAMILY_AQIRI = 41,
CREATURE_FAMILY_WORM = 42,
CREATURE_FAMILY_CLEFTHOOF = 43,
CREATURE_FAMILY_WASP = 44,
CREATURE_FAMILY_CORE_HOUND = 45,
CREATURE_FAMILY_SPIRIT_BEAST = 46,
CREATURE_FAMILY_WATER_ELEMENTAL = 49,
CREATURE_FAMILY_FOX = 50,
CREATURE_FAMILY_MONKEY = 51,
CREATURE_FAMILY_HOUND = 52,
CREATURE_FAMILY_BEETLE = 53,
CREATURE_FAMILY_SHALE_BEAST = 55,
CREATURE_FAMILY_ZOMBIE = 56,
CREATURE_FAMILY_QA_TEST = 57,
CREATURE_FAMILY_HYDRA = 68,
CREATURE_FAMILY_FELIMP = 100,
CREATURE_FAMILY_VOIDLORD = 101,
CREATURE_FAMILY_SHIVARA = 102,
CREATURE_FAMILY_OBSERVER = 103,
CREATURE_FAMILY_WRATHGUARD = 104,
CREATURE_FAMILY_INFERNAL = 108,
CREATURE_FAMILY_FIREELEMENTAL = 116,
CREATURE_FAMILY_EARTHELEMENTAL = 117,
CREATURE_FAMILY_CRANE = 125,
CREATURE_FAMILY_WATERSTRIDER = 126,
CREATURE_FAMILY_RODENT = 127,
CREATURE_FAMILY_STONE_HOUND = 128,
CREATURE_FAMILY_GRUFFHORN = 129,
CREATURE_FAMILY_BASILISK = 130,
CREATURE_FAMILY_DIREHORN = 138,
CREATURE_FAMILY_STORMELEMENTAL = 145,
CREATURE_FAMILY_TORRORGUARD = 147,
CREATURE_FAMILY_ABYSSAL = 148,
CREATURE_FAMILY_RIVERBEAST = 150,
CREATURE_FAMILY_STAG = 151,
CREATURE_FAMILY_MECHANICAL = 154,
CREATURE_FAMILY_ABOMINATION = 155,
CREATURE_FAMILY_SCALEHIDE = 156,
CREATURE_FAMILY_OXEN = 157,
CREATURE_FAMILY_FEATHERMANE = 160,
CREATURE_FAMILY_LIZARD = 288,
CREATURE_FAMILY_PTERRORDAX = 290,
CREATURE_FAMILY_TOAD = 291,
CREATURE_FAMILY_CARAPID = 292,
CREATURE_FAMILY_BLOOD_BEAST = 296,
CREATURE_FAMILY_CAMEL = 298,
CREATURE_FAMILY_COURSER = 299,
CREATURE_FAMILY_MAMMOTH = 300,
CREATURE_FAMILY_INCUBUS = 302
};
-
type
- 以下为master分支取值
enum CreatureType
{
CREATURE_TYPE_BEAST = 1,
CREATURE_TYPE_DRAGONKIN = 2,
CREATURE_TYPE_DEMON = 3,
CREATURE_TYPE_ELEMENTAL = 4,
CREATURE_TYPE_GIANT = 5,
CREATURE_TYPE_UNDEAD = 6,
CREATURE_TYPE_HUMANOID = 7,
CREATURE_TYPE_CRITTER = 8,
CREATURE_TYPE_MECHANICAL = 9,
CREATURE_TYPE_NOT_SPECIFIED = 10,
CREATURE_TYPE_TOTEM = 11,
CREATURE_TYPE_NON_COMBAT_PET = 12,
CREATURE_TYPE_GAS_CLOUD = 13,
CREATURE_TYPE_WILD_PET = 14,
CREATURE_TYPE_ABERRATION = 15
};
-
type_flags (335)| Type_Flags,Type_Flags2(master 分支迁移至 creature_template_difficulty)
- 取值参考源码 SharedDefines.h 的 CreatureTypeFlags 定义
- 此值为位掩码(十进制值),要应用多个,只需将他们相加
-
以下为master分支取值
Value(DEC) | Mask(HEX) | Name |
1 | 0x00000001 | CREATURE_TYPE_FLAG_TAMEABLE |
2 | 0x00000002 | CREATURE_TYPE_FLAG_VISIBLE_TO_GHOSTS |
4 | 0x00000004 | CREATURE_TYPE_FLAG_BOSS_MOB |
8 | 0x00000008 | CREATURE_TYPE_FLAG_DO_NOT_PLAY_WOUND_ANIM |
16 | 0x00000010 | CREATURE_TYPE_FLAG_NO_FACTION_TOOLTIP |
32 | 0x00000020 | CREATURE_TYPE_FLAG_MORE_AUDIBLE |
64 | 0x00000040 | CREATURE_TYPE_FLAG_SPELL_ATTACKABLE |
128 | 0x00000080 | CREATURE_TYPE_FLAG_INTERACT_WHILE_DEAD |
256 | 0x00000100 | CREATURE_TYPE_FLAG_SKIN_WITH_HERBALISM |
512 | 0x00000200 | CREATURE_TYPE_FLAG_SKIN_WITH_MINING |
1024 | 0x00000400 | CREATURE_TYPE_FLAG_NO_DEATH_MESSAGE |
2048 | 0x00000800 | CREATURE_TYPE_FLAG_ALLOW_MOUNTED_COMBAT |
4096 | 0x00001000 | CREATURE_TYPE_FLAG_CAN_ASSIST |
8192 | 0x00002000 | CREATURE_TYPE_FLAG_NO_PET_BAR |
16384 | 0x00004000 | CREATURE_TYPE_FLAG_MASK_UID |
32768 | 0x00008000 | CREATURE_TYPE_FLAG_SKIN_WITH_ENGINEERING |
65536 | 0x00010000 | CREATURE_TYPE_FLAG_EXOTIC_PET |
131072 | 0x00020000 | CREATURE_TYPE_FLAG_USE_MODEL_COLLISION_SIZE |
262144 | 0x00040000 | CREATURE_TYPE_FLAG_ALLOW_INTERACTION_WHILE_IN_COMBAT |
524288 | 0x00080000 | CREATURE_TYPE_FLAG_COLLIDE_WITH_MISSILES |
1048576 | 0x00100000 | CREATURE_TYPE_FLAG_NO_NAME_PLATE |
2097152 | 0x00200000 | CREATURE_TYPE_FLAG_DO_NOT_PLAY_MOUNTED_ANIMATIONS |
4194304 | 0x00400000 | CREATURE_TYPE_FLAG_LINK_ALL |
8388608 | 0x00800000 | CREATURE_TYPE_FLAG_INTERACT_ONLY_WITH_CREATOR |
16777216 | 0x01000000 | CREATURE_TYPE_FLAG_DO_NOT_PLAY_UNIT_EVENT_SOUNDS |
33554432 | 0x02000000 | CREATURE_TYPE_FLAG_HAS_NO_SHADOW_BLOB |
67108864 | 0x04000000 | CREATURE_TYPE_FLAG_TREAT_AS_RAID_UNIT |
134217728 | 0x08000000 | CREATURE_TYPE_FLAG_FORCE_GOSSIP |
268435456 | 0x10000000 | CREATURE_TYPE_FLAG_DO_NOT_SHEATHE |
536870912 | 0x20000000 | CREATURE_TYPE_FLAG_DO_NOT_TARGET_ON_INTERACTION |
1073741824 | 0x40000000 | CREATURE_TYPE_FLAG_DO_NOT_RENDER_OBJECT_NAME |
2147483648 | 0x80000000 | CREATURE_TYPE_FLAG_QUEST_BOSS |
-
lootid,pickpocketloot,skinloot(335)| LootID,PickPocketLootID,SkinLootID(master 分支迁移至 creature_template_difficulty)
- creature 模板的掉落|偷窃|剥皮掉落,取值参见 creature_loot_template | pickpocketing_loot_template | skinning_loot_template
-
VehicleId
- creature 模板的载具ID(如果 creature 模板为载具),此字段确定玩家如何出现在载具上,载具如何移动,以及是否显示载具动作栏。必须同时为 creature 模板设置 npc_spellclick_spells 才能使其生效,取值参考 Vehicle.dbc | Vehicle.db2
-
mingold,maxgold(335)| GoldMin,GoldMax(master)
- creature 模板的最|小最大金钱掉落数量,单位铜币
-
AIName
- creature 模板预设的AI名称
- 此字段会被 ScriptName 字段覆盖
- 设置 SAI 时,此字段必须为 SmartAI
Value | Description |
---|---|
NullCreatureAI | Empty AI, creature does nothing. |
PassiveAI | 被动,即使被攻击也不还击 |
AggressorAI | Creature attacks as soon as something is in aggro range. |
CombatAI | |
CasterAI | |
TurretAI | |
VehicleAI | |
ReactorAI | Creature attacks only if aggroed by attack, spell etc. |
GuardAI | 守卫AI |
PetAI | 宠物AI |
TotemAI | Creature casts Spell from Index 1 , otherwise like NullAI. |
SmartAI | SAI |
-
MovementType
- creature 模板默认的移动类型
- 0:静止不动
- 1:在 creature.spawndist 范围内随机刷新 | 移动
- 2:按照预设路径移动(参阅:移动范围与移动路径)
- creature 模板默认的移动类型
- HealthModifier,ManaModifier,ArmorModifier,DamageModifier (335)| (master分支已迁移至 creature_template_difficulty)
- creature 模板的生命|魔法|护|伤害倍增系数
- 例如:mindmg = 200 maxdmg = 500 DamageModifier = 10 Damage will be 2000-5000
- ExperienceModifier
- creature 模板击杀经验倍增系数
- RacialLeader
- (0/1)是否是种族领
- movementId
- RegenHealth
- (0/1)是否在战斗中恢复生命值
-
mechanic_immune_mask(335)
- creature 模板免疫特定的法术机制,取值参考 Spell.dbc | SpellEffect.db2
- 值为位掩码,要应用多个,只需将他们相加
Value | Mask | Name | 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 |
-
spell_school_immune_mask(335)
- creature 模板免疫特定类型的法术,取值参考源码 SharedDefines.h 的 SpellSchoolMask 定义
- 此值为位掩码,要应用多个,只需将他们相加
Value | Flag | Name |
---|---|---|
1 | 0x01 | 普通伤害(SPELL_SCHOOL_NORMAL) |
2 | 0x02 | 神圣伤害(SPELL_SCHOOL_HOLY) |
4 | 0x04 | 火焰伤害(SPELL_SCHOOL_FIRE) |
8 | 0x08 | 自然伤害(SPELL_SCHOOL_NATURE) |
16 | 0x10 | 冰霜伤害(SPELL_SCHOOL_FROST) |
32 | 0x20 | 暗影伤害(SPELL_SCHOOL_SHADOW) |
64 | 0x40 | 奥术伤害(SPELL_SCHOOL_ARCANE) |
-
flags_extra
-
creature 模板的 flags_extra,取值参考源码 CreatureData.h 的 CreatureFlagsExtra 的 定义
-
此值为位掩码,要应用多个,只需将他们相加
-
Value | flags_extra | Comments | Description | |
---|---|---|---|---|
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_CRUSH | 0x00000020 | 不触发碾压攻击 | creature does not do crush-attacks |
64 | CREATURE_FLAG_EXTRA_NO_XP_AT_KILL | 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 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 will use offhand attacks |
4096 | CREATURE_FLAG_EXTRA_NO_SELL_VENDOR | 0x00001000 | 不允许向生物售卖物品 | players can't sell items to this vendor |
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) |
131072 | CREATURE_FLAG_EXTRA_NO_CRIT | 0x00020000 | 不暴击 | creature does not do critical strikes |
262144 | CREATURE_FLAG_EXTRA_NO_SKILLGAIN | 0x00040000 | 不提高武器熟练度 | creature won't increase weapon skills |
524288 | CREATURE_FLAG_EXTRA_TAUNT_DIMINISH | 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 | NPC协助击杀当前生物玩家仍可获得击杀奖励 | NPCs can help with killing this creature and player will still be credited if he tags the creature |
268435456 | CREATURE_FLAG_EXTRA_DUNGEON_BOSS | 0x10000000 | 地下城boss(此标识通常由服务端在运行时设置) | 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 |
- ScriptName
- creature 模板使用的脚本名称(如果有的话),这会将源码的脚本绑定到这个 creature 模板
-
VerifiedBuild
-
TrinityCore团队使用此字段来确定是否已从WDB文件验证了模板
-
如果value为0,则表示尚未解析
-
如果value大于0,则它已使用来自该特定客户端构建的WDB文件进行了分析
-
如果value为-1,则它只是一个占位符保持器,直到在WDB上找到正确的数据
-
如果值为-Client Build,则使用来自该特定客户端构建的WDB文件对其进行解析,并在稍后出于某些特殊需要对其进行手动编辑
-
-
参考阅读