研磨掉落模板表定义了铭文师使用研磨技能研磨草药时可以获得的颜料和墨水及其概率。这个表是铭文专业的核心组成部分,控制着玩家研磨各种草药时能够获得什么铭文材料。
字段名 | 类型 | 描述 |
---|---|---|
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 常见设置:
|
||
MaxCount | tinyint unsigned | 最大数量 |
详细说明:指定材料研磨的最大数量。实际研磨数量在MinCount和MaxCount之间随机。
取值范围:1 - 255 注意:MaxCount必须大于等于MinCount |
||
Comment | varchar(255) | 备注说明 |
详细说明:可选的备注字段,用于记录这个研磨配置的说明或特殊注意事项。 |
-- 银叶草研磨 (物品ID为765)
INSERT INTO milling_loot_template (Entry, Item, Reference, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES
(765, 39151, 0, 100.0, 0, 1, 1, 2, 4, '白色颜料 - 基础产物'),
(765, 39334, 0, 25.0, 0, 1, 2, 1, 2, '午夜墨水 - 稀有产物');
-- 魔法草研磨 (物品ID为22785)
INSERT INTO milling_loot_template (Entry, Item, Reference, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES
(22785, 39774, 0, 100.0, 0, 1, 1, 2, 4, '银色颜料 - 基础产物'),
(22785, 39469, 0, 25.0, 0, 1, 2, 1, 2, '天界墨水 - 稀有产物'),
(22785, 43103, 0, 5.0, 0, 1, 3, 1, 1, '真银墨水 - 极稀有产物');
SELECT mlt.*, it.name as material_name, it.Quality
FROM milling_loot_template mlt
JOIN item_template it ON mlt.Item = it.entry
WHERE mlt.Entry = 765 -- 银叶草
ORDER BY mlt.Chance DESC;
SELECT mlt.Entry, ht.name as herb_name, mlt.Chance
FROM milling_loot_template mlt
JOIN item_template ht ON mlt.Entry = ht.entry
WHERE mlt.Item = 39151 -- 白色颜料
ORDER BY mlt.Chance DESC;
milling_loot_template表经常与以下表格配合使用: