勘探掉落模板表定义了珠宝加工师使用勘探技能勘探矿石时可以获得的宝石及其概率。这个表是珠宝加工专业的核心组成部分,控制着玩家勘探各种矿石时能够获得什么宝石和材料。
字段名 | 类型 | 描述 |
---|---|---|
Entry | mediumint unsigned | 矿石物品ID |
详细说明:指定可以被勘探的矿石物品ID,对应item_template表中的entry字段。只有在此表中配置的矿石才能被勘探。
取值范围:1 - 16777215 (mediumint unsigned的范围) 常见勘探矿石:
注意:Entry必须对应item_template表中存在的矿石类物品 |
||
Item | mediumint unsigned | 勘探产物ID |
详细说明:指定勘探后可以获得的宝石或材料ID,对应item_template表中的entry字段。
常见勘探产物:
注意:Item和Reference字段互斥,只能设置其中一个 |
||
Reference | mediumint unsigned | 引用模板ID |
详细说明:引用其他掉落模板的ID。当设置此字段时,Item字段被忽略,系统会使用reference_loot_template表中对应ID的掉落配置。
使用场景:
|
||
Chance | float | 勘探概率 |
详细说明:指定宝石的勘探概率,以百分比表示。
取值范围:0.0 - 100.0 概率设置建议:
|
||
QuestRequired | tinyint | 是否需要任务 |
详细说明:指定是否只有在接受特定任务时才能获得此宝石。
取值:
注意:勘探系统中通常设置为0 |
||
LootMode | smallint unsigned | 掉落模式 |
详细说明:指定掉落的模式标志,用于控制在什么情况下此宝石会掉落。
常用值:
|
||
GroupId | tinyint unsigned | 掉落组ID |
详细说明:将宝石分组,同一组内的宝石遵循特定的掉落规则。
分组用途:
|
||
MinCount | tinyint unsigned | 最小数量 |
详细说明:指定宝石勘探的最小数量。
取值范围:1 - 255 常见设置:大多数宝石设置为1 |
||
MaxCount | tinyint unsigned | 最大数量 |
详细说明:指定宝石勘探的最大数量。实际勘探数量在MinCount和MaxCount之间随机。
取值范围:1 - 255 注意:MaxCount必须大于等于MinCount |
||
Comment | varchar(255) | 备注说明 |
详细说明:可选的备注字段,用于记录这个勘探配置的说明或特殊注意事项。 |
-- 铜矿石勘探 (物品ID为2770)
INSERT INTO prospecting_loot_template (Entry, Item, Reference, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES
(2770, 774, 0, 20.0, 0, 1, 1, 1, 1, '孔雀石 - 普通宝石'),
(2770, 818, 0, 18.0, 0, 1, 1, 1, 1, '虎眼石 - 普通宝石'),
(2770, 1210, 0, 15.0, 0, 1, 1, 1, 1, '暗影石 - 普通宝石'),
(2770, 1705, 0, 5.0, 0, 1, 2, 1, 1, '次级月亮石 - 稀有宝石'),
(2770, 1529, 0, 3.0, 0, 1, 2, 1, 1, '翡翠 - 稀有宝石');
-- 魔铁矿石勘探 (物品ID为23424)
INSERT INTO prospecting_loot_template (Entry, Item, Reference, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES
(23424, 23077, 0, 25.0, 0, 1, 1, 1, 1, '血石 - 普通宝石'),
(23424, 21929, 0, 22.0, 0, 1, 1, 1, 1, '火玛瑙 - 普通宝石'),
(23424, 23112, 0, 20.0, 0, 1, 1, 1, 1, '黄金德莱尼石 - 普通宝石'),
(23424, 23436, 0, 8.0, 0, 1, 2, 1, 1, '活根草 - 稀有宝石'),
(23424, 23437, 0, 6.0, 0, 1, 2, 1, 1, '泰达希尔树枝 - 稀有宝石');
SELECT plt.*, it.name as gem_name, it.Quality
FROM prospecting_loot_template plt
JOIN item_template it ON plt.Item = it.entry
WHERE plt.Entry = 2770 -- 铜矿石
ORDER BY plt.Chance DESC;
SELECT plt.Entry, ot.name as ore_name, plt.Chance
FROM prospecting_loot_template plt
JOIN item_template ot ON plt.Entry = ot.entry
WHERE plt.Item = 774 -- 孔雀石
ORDER BY plt.Chance DESC;
prospecting_loot_template表经常与以下表格配合使用: