物品模板表存储了游戏中所有物品类型的基本信息。这个表定义了武器、护甲、消耗品、容器等物品的属性和行为。每个物品类型都有一个唯一的entry ID,游戏中的物品实例都是基于这些模板创建的。
详细说明: 如需查看每个字段的详细解释、用途和示例值,请参阅 物品模板表详细字段说明。
字段名 | 类型 | 属性 | 描述 |
---|---|---|---|
entry | mediumint(8) unsigned | 主键,不为空 | 物品ID,唯一标识符 |
class | tinyint(3) unsigned | 不为空,默认0 | 物品类别 |
subclass | tinyint(3) unsigned | 不为空,默认0 | 物品子类别 |
SoundOverrideSubclass | tinyint(3) | 不为空,默认-1 | 声音覆盖子类别 |
name | varchar(255) | 不为空,默认'' | 物品名称 |
displayid | mediumint(8) unsigned | 不为空,默认0 | 显示ID,从ItemDisplayInfo.dbc获取 |
Quality | tinyint(3) unsigned | 不为空,默认0 | 品质(0=灰色,1=白色,2=绿色,3=蓝色,4=紫色,5=橙色) |
Flags | int(10) unsigned | 不为空,默认0 | 标志 |
FlagsExtra | int(10) unsigned | 不为空,默认0 | 额外标志 |
BuyCount | tinyint(3) unsigned | 不为空,默认1 | 购买数量 |
BuyPrice | bigint(20) unsigned | 不为空,默认0 | 购买价格 |
SellPrice | int(10) unsigned | 不为空,默认0 | 售卖价格 |
InventoryType | tinyint(3) unsigned | 不为空,默认0 | 物品栏类型 |
AllowableClass | int(11) | 不为空,默认-1 | 允许职业 |
AllowableRace | int(11) | 不为空,默认-1 | 允许种族 |
ItemLevel | smallint(5) unsigned | 不为空,默认0 | 物品等级 |
RequiredLevel | tinyint(3) unsigned | 不为空,默认0 | 需求等级 |
RequiredSkill | smallint(5) unsigned | 不为空,默认0 | 需求技能 |
RequiredSkillRank | smallint(5) unsigned | 不为空,默认0 | 需求技能等级 |
requiredspell | mediumint(8) unsigned | 不为空,默认0 | 需求法术 |
requiredhonorrank | mediumint(8) unsigned | 不为空,默认0 | 需求荣誉等级 |
RequiredCityRank | mediumint(8) unsigned | 不为空,默认0 | 需求城市等级 |
RequiredReputationFaction | smallint(5) unsigned | 不为空,默认0 | 需求声望阵营 |
RequiredReputationRank | smallint(5) unsigned | 不为空,默认0 | 需求声望等级 |
maxcount | int(11) | 不为空,默认0 | 最大数量 |
stackable | int(11) | 不为空,默认1 | 堆叠数量 |
ContainerSlots | tinyint(3) unsigned | 不为空,默认0 | 容器栏位数 |
StatsCount | tinyint(3) unsigned | 不为空,默认0 | 属性数量 |
stat_type1 | tinyint(3) | 不为空,默认0 | 属性类型1 |
stat_value1 | smallint(6) | 不为空,默认0 | 属性值1 |
stat_type2 | tinyint(3) | 不为空,默认0 | 属性类型2 |
stat_value2 | smallint(6) | 不为空,默认0 | 属性值2 |
stat_type3 | tinyint(3) | 不为空,默认0 | 属性类型3 |
stat_value3 | smallint(6) | 不为空,默认0 | 属性值3 |
stat_type4 | tinyint(3) | 不为空,默认0 | 属性类型4 |
stat_value4 | smallint(6) | 不为空,默认0 | 属性值4 |
stat_type5 | tinyint(3) | 不为空,默认0 | 属性类型5 |
stat_value5 | smallint(6) | 不为空,默认0 | 属性值5 |
stat_type6 | tinyint(3) | 不为空,默认0 | 属性类型6 |
stat_value6 | smallint(6) | 不为空,默认0 | 属性值6 |
stat_type7 | tinyint(3) | 不为空,默认0 | 属性类型7 |
stat_value7 | smallint(6) | 不为空,默认0 | 属性值7 |
stat_type8 | tinyint(3) | 不为空,默认0 | 属性类型8 |
stat_value8 | smallint(6) | 不为空,默认0 | 属性值8 |
stat_type9 | tinyint(3) | 不为空,默认0 | 属性类型9 |
stat_value9 | smallint(6) | 不为空,默认0 | 属性值9 |
stat_type10 | tinyint(3) | 不为空,默认0 | 属性类型10 |
stat_value10 | smallint(6) | 不为空,默认0 | 属性值10 |
ScalingStatDistribution | smallint(6) | 不为空,默认0 | 缩放属性分布 |
ScalingStatValue | int(10) unsigned | 不为空,默认0 | 缩放属性值 |
dmg_min1 | float | 不为空,默认0 | 最小伤害1 |
dmg_max1 | float | 不为空,默认0 | 最大伤害1 |
dmg_type1 | tinyint(3) unsigned | 不为空,默认0 | 伤害类型1 |
dmg_min2 | float | 不为空,默认0 | 最小伤害2 |
dmg_max2 | float | 不为空,默认0 | 最大伤害2 |
dmg_type2 | tinyint(3) unsigned | 不为空,默认0 | 伤害类型2 |
armor | smallint(5) unsigned | 不为空,默认0 | 护甲值 |
holy_res | tinyint(3) unsigned | 不为空,默认0 | 神圣抗性 |
fire_res | tinyint(3) unsigned | 不为空,默认0 | 火焰抗性 |
nature_res | tinyint(3) unsigned | 不为空,默认0 | 自然抗性 |
frost_res | tinyint(3) unsigned | 不为空,默认0 | 冰霜抗性 |
shadow_res | tinyint(3) unsigned | 不为空,默认0 | 暗影抗性 |
arcane_res | tinyint(3) unsigned | 不为空,默认0 | 奥术抗性 |
delay | smallint(5) unsigned | 不为空,默认1000 | 攻击速度(毫秒) |
ammo_type | tinyint(3) unsigned | 不为空,默认0 | 弹药类型 |
RangedModRange | float | 不为空,默认0 | 远程修正范围 |
spellid_1 | mediumint(8) | 不为空,默认0 | 法术ID1 |
spelltrigger_1 | tinyint(3) unsigned | 不为空,默认0 | 法术触发1 |
spellcharges_1 | smallint(6) | 不为空,默认0 | 法术充能1 |
spellppmRate_1 | float | 不为空,默认0 | 法术PPM1 |
spellcooldown_1 | int(11) | 不为空,默认-1 | 法术冷却1 |
spellcategory_1 | smallint(5) unsigned | 不为空,默认0 | 法术类别1 |
spellcategorycooldown_1 | int(11) | 不为空,默认-1 | 法术类别冷却1 |
spellid_2 | mediumint(8) | 不为空,默认0 | 法术ID2 |
spelltrigger_2 | tinyint(3) unsigned | 不为空,默认0 | 法术触发2 |
spellcharges_2 | smallint(6) | 不为空,默认0 | 法术充能2 |
spellppmRate_2 | float | 不为空,默认0 | 法术PPM2 |
spellcooldown_2 | int(11) | 不为空,默认-1 | 法术冷却2 |
spellcategory_2 | smallint(5) unsigned | 不为空,默认0 | 法术类别2 |
spellcategorycooldown_2 | int(11) | 不为空,默认-1 | 法术类别冷却2 |
spellid_3 | mediumint(8) | 不为空,默认0 | 法术ID3 |
spelltrigger_3 | tinyint(3) unsigned | 不为空,默认0 | 法术触发3 |
spellcharges_3 | smallint(6) | 不为空,默认0 | 法术充能3 |
spellppmRate_3 | float | 不为空,默认0 | 法术PPM3 |
spellcooldown_3 | int(11) | 不为空,默认-1 | 法术冷却3 |
spellcategory_3 | smallint(5) unsigned | 不为空,默认0 | 法术类别3 |
spellcategorycooldown_3 | int(11) | 不为空,默认-1 | 法术类别冷却3 |
spellid_4 | mediumint(8) | 不为空,默认0 | 法术ID4 |
spelltrigger_4 | tinyint(3) unsigned | 不为空,默认0 | 法术触发4 |
spellcharges_4 | smallint(6) | 不为空,默认0 | 法术充能4 |
spellppmRate_4 | float | 不为空,默认0 | 法术PPM4 |
spellcooldown_4 | int(11) | 不为空,默认-1 | 法术冷却4 |
spellcategory_4 | smallint(5) unsigned | 不为空,默认0 | 法术类别4 |
spellcategorycooldown_4 | int(11) | 不为空,默认-1 | 法术类别冷却4 |
spellid_5 | mediumint(8) | 不为空,默认0 | 法术ID5 |
spelltrigger_5 | tinyint(3) unsigned | 不为空,默认0 | 法术触发5 |
spellcharges_5 | smallint(6) | 不为空,默认0 | 法术充能5 |
spellppmRate_5 | float | 不为空,默认0 | 法术PPM5 |
spellcooldown_5 | int(11) | 不为空,默认-1 | 法术冷却5 |
spellcategory_5 | smallint(5) unsigned | 不为空,默认0 | 法术类别5 |
spellcategorycooldown_5 | int(11) | 不为空,默认-1 | 法术类别冷却5 |
bonding | tinyint(3) unsigned | 不为空,默认0 | 绑定类型(0=不绑定,1=拾取绑定,2=装备绑定,3=使用绑定,4=任务物品) |
description | varchar(255) | 不为空,默认'' | 描述 |
PageText | mediumint(8) unsigned | 不为空,默认0 | 页面文本 |
LanguageID | tinyint(3) unsigned | 不为空,默认0 | 语言ID |
PageMaterial | tinyint(3) unsigned | 不为空,默认0 | 页面材质 |
startquest | mediumint(8) unsigned | 不为空,默认0 | 开始任务 |
lockid | mediumint(8) unsigned | 不为空,默认0 | 锁ID |
Material | tinyint(4) | 不为空,默认0 | 材质 |
sheath | tinyint(3) unsigned | 不为空,默认0 | 鞘 |
RandomProperty | mediumint(8) | 不为空,默认0 | 随机属性 |
RandomSuffix | mediumint(8) unsigned | 不为空,默认0 | 随机后缀 |
block | mediumint(8) unsigned | 不为空,默认0 | 格挡值 |
itemset | mediumint(8) unsigned | 不为空,默认0 | 物品套装 |
MaxDurability | smallint(5) unsigned | 不为空,默认0 | 最大耐久度 |
area | mediumint(8) unsigned | 不为空,默认0 | 区域 |
Map | smallint(6) | 不为空,默认0 | 地图 |
BagFamily | mediumint(9) | 不为空,默认0 | 背包类型 |
TotemCategory | mediumint(9) | 不为空,默认0 | 图腾类别 |
socketColor_1 | tinyint(4) | 不为空,默认0 | 插槽颜色1 |
socketContent_1 | mediumint(9) | 不为空,默认0 | 插槽内容1 |
socketColor_2 | tinyint(4) | 不为空,默认0 | 插槽颜色2 |
socketContent_2 | mediumint(9) | 不为空,默认0 | 插槽内容2 |
socketColor_3 | tinyint(4) | 不为空,默认0 | 插槽颜色3 |
socketContent_3 | mediumint(9) | 不为空,默认0 | 插槽内容3 |
socketBonus | mediumint(9) | 不为空,默认0 | 插槽奖励 |
GemProperties | mediumint(9) | 不为空,默认0 | 宝石属性 |
RequiredDisenchantSkill | smallint(6) | 不为空,默认-1 | 需求分解技能 |
ArmorDamageModifier | float | 不为空,默认0 | 护甲伤害修正 |
duration | int(10) unsigned | 不为空,默认0 | 持续时间 |
ItemLimitCategory | smallint(6) | 不为空,默认0 | 物品限制类别 |
HolidayId | int(11) unsigned | 不为空,默认0 | 节日ID |
ScriptName | varchar(64) | 不为空,默认'' | 脚本名称 |
DisenchantID | mediumint(8) unsigned | 不为空,默认0 | 分解ID |
FoodType | tinyint(3) unsigned | 不为空,默认0 | 食物类型 |
minMoneyLoot | int(10) unsigned | 不为空,默认0 | 最小金钱掉落 |
maxMoneyLoot | int(10) unsigned | 不为空,默认0 | 最大金钱掉落 |
flagsCustom | int(10) unsigned | 不为空,默认0 | 自定义标志 |
VerifiedBuild | smallint(5) | 不为空,默认0 | 验证版本 |
class字段定义了物品的主要类别,不同类别的物品有不同的行为和属性。
类别ID | 类别名称 | 描述 |
---|---|---|
0 | ITEM_CLASS_CONSUMABLE | 消耗品 |
1 | ITEM_CLASS_CONTAINER | 容器 |
2 | ITEM_CLASS_WEAPON | 武器 |
3 | ITEM_CLASS_GEM | 宝石 |
4 | ITEM_CLASS_ARMOR | 护甲 |
5 | ITEM_CLASS_REAGENT | 材料 |
6 | ITEM_CLASS_PROJECTILE | 弹药 |
7 | ITEM_CLASS_TRADE_GOODS | 商品 |
8 | ITEM_CLASS_GENERIC | 通用 |
9 | ITEM_CLASS_RECIPE | 配方 |
10 | ITEM_CLASS_MONEY | 钱币 |
11 | ITEM_CLASS_QUIVER | 箭袋 |
12 | ITEM_CLASS_QUEST | 任务 |
13 | ITEM_CLASS_KEY | 钥匙 |
14 | ITEM_CLASS_PERMANENT | 永久物品 |
15 | ITEM_CLASS_MISC | 杂项 |
16 | ITEM_CLASS_GLYPH | 雕文 |