📖 表说明
选矿掉落模板表定义了珠宝匠使用选矿技能选矿矿石时可以获得的宝石及其概率。这个表是珠宝专业的核心组成部分,控制着玩家选矿各种矿石时能够获得什么宝石材料。
数据来源: 本文档基于AzerothCore官方Wiki和官方数据表借鉴.sql编写,确保字段定义的准确性和权威性。
📊 表结构
| 字段名 | 数据类型 | 属性 | 键 | 默认值 | 描述 |
|---|---|---|---|---|---|
| Entry | int UNSIGNED | 不为空 | 主键 | 0 | 矿石物品ID,对应item_template.entry |
| Item | int UNSIGNED | 不为空 | 主键 | 0 | 物品ID,对应item_template.entry |
| Reference | int | 不为空 | 0 | 引用ID,如果不为0则引用reference_loot_template | |
| Chance | float | 不为空 | 100 | 掉落几率(百分比) | |
| QuestRequired | tinyint | 不为空 | 0 | 是否需要任务(0=否,1=是) | |
| LootMode | smallint UNSIGNED | 不为空 | 1 | 掉落模式(位掩码) | |
| GroupId | tinyint UNSIGNED | 不为空 | 0 | 组ID,同一组中只会掉落一个物品 | |
| MinCount | tinyint UNSIGNED | 不为空 | 1 | 最小掉落数量 | |
| MaxCount | tinyint UNSIGNED | 不为空 | 1 | 最大掉落数量 | |
| Comment | varchar(255) | 可为空 | NULL | 注释说明 |
主键: (Entry, Item)
注意: prospecting_loot_template的GroupId不是主键
🔑 核心字段详解
🆔 Entry - 矿石物品ID
详细说明:选矿掉落模板的唯一标识ID,对应item_template表中的entry字段。
取值范围:对应item_template.entry
- 主键字段,标识选矿掉落模板
- 对应item_template.entry字段
- 只有矿石类物品才会使用此表的选矿配置
- 用于关联矿石物品和其选矿产物
示例:
- Entry=2770 - 铜矿石的选矿配置
- Entry=2771 - 锡矿石的选矿配置
📦 Item - 物品ID
详细说明:选矿获得的物品ID,对应item_template表中的entry字段。
取值范围:对应item_template.entry
- 主键字段,标识选矿获得的物品
- 必须对应item_template表中存在的entry
- 通常是宝石、粉末等珠宝材料
- 用于定义选矿产出的具体物品
示例:
- Item=774 - 孔雀石(低级宝石)
- Item=818 - 虎眼石(低级宝石)
其他字段说明
注意: 其他字段(Reference、Chance、QuestRequired、LootMode、GroupId、MinCount、MaxCount、Comment)的详细说明与creature_loot_template完全相同,请参考 creature_loot_template 的字段详解。
💡 实际案例
选矿 Entry 2770 - 铜矿石选矿
铜矿石的选矿掉落配置示例
-- Entry 2770:铜矿石选矿
DELETE FROM prospecting_loot_template WHERE Entry = 2770;
INSERT INTO prospecting_loot_template VALUES
(2770, 774, 0, 50, 0, 1, 0, 1, 2, '孔雀石'),
(2770, 818, 0, 50, 0, 1, 0, 1, 2, '虎眼石');
效果: 选矿铜矿石有50%几率获得1-2个孔雀石,50%几率获得1-2个虎眼石。
选矿 Entry 2771 - 锡矿石选矿
锡矿石的选矿掉落配置示例
-- Entry 2771:锡矿石选矿
DELETE FROM prospecting_loot_template WHERE Entry = 2771;
INSERT INTO prospecting_loot_template VALUES
(2771, 774, 0, 35, 0, 1, 0, 1, 2, '孔雀石'),
(2771, 818, 0, 35, 0, 1, 0, 1, 2, '虎眼石'),
(2771, 1210, 0, 30, 0, 1, 0, 1, 1, '暗影石');
效果: 选矿锡矿石有35%几率获得1-2个孔雀石,35%几率获得1-2个虎眼石,30%几率获得1个暗影石。
⚡ 快速参考
选矿产物类型
| 矿石等级 | 常见矿石Entry | 主要产物 | 说明 |
|---|---|---|---|
| 低级矿石 | 2770-2771 | 孔雀石、虎眼石 | 低级矿石选矿配置 |
| 中级矿石 | 2772-3858 | 暗影石、次级月亮石 | 中级矿石选矿配置 |
| 高级矿石 | 3859+ | 高级宝石 | 高级矿石选矿配置 |
表关系
- 主表: item_template - 物品模板表
- 关联字段: Entry → item_template.entry
- 物品表: item_template - 物品模板表
- 关联字段: Item → item_template.entry
- 引用表: reference_loot_template - 引用掉落模板表
- 关联字段: Reference → reference_loot_template.entry
🔗 相关表格
- item_template - 物品模板表
- creature_loot_template - 生物掉落模板表
- reference_loot_template - 引用掉落模板表
❓ 常见问题
Q1: 如何配置矿石的选矿产物?
在item_template表中创建矿石物品,然后在prospecting_loot_template表中添加对应的选矿配置。例如:Entry=2770的铜矿石会使用Entry=2770的选矿配置。
Q2: 选矿产物可以设置多个宝石吗?
可以。在prospecting_loot_template表中添加多个条目,每个条目对应一个可能的选矿产物。使用Chance字段控制各宝石的出现几率。
Q3: 如何配置必定获得的选矿产物?
设置Chance=100,表示该宝石必定获得。可以配合MinCount和MaxCount字段控制宝石的数量范围。