📖 表说明
剥皮掉落模板表定义了玩家对野兽类生物进行剥皮时可以获得的皮革及其概率。这个表是剥皮专业的核心组成部分,控制着玩家剥皮各种野兽时能够获得什么皮革材料。
数据来源: 本文档基于AzerothCore官方Wiki和官方数据表借鉴.sql编写,确保字段定义的准确性和权威性。
📊 表结构
| 字段名 | 数据类型 | 属性 | 键 | 默认值 | 描述 |
|---|---|---|---|---|---|
| Entry | int UNSIGNED | 不为空 | 主键 | 0 | 剥皮ID,对应creature_template.skinloot |
| 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)
注意: skinning_loot_template的GroupId不是主键
🔑 核心字段详解
🆔 Entry - 剥皮ID
详细说明:剥皮掉落模板的唯一标识ID,对应creature_template表中的skinloot字段。
取值范围:对应creature_template.skinloot
- 主键字段,标识剥皮掉落模板
- 对应creature_template.skinloot字段
- 只有设置了剥皮ID的野兽类生物才能被剥皮
- 用于关联野兽生物和其剥皮产物
示例:
- Entry=1 - 低级野兽的剥皮配置
- Entry=10 - 高级野兽的剥皮配置
📦 Item - 物品ID
详细说明:剥皮获得的物品ID,对应item_template表中的entry字段。
取值范围:对应item_template.entry
- 主键字段,标识剥皮获得的物品
- 必须对应item_template表中存在的entry
- 通常是皮革、毛皮等剥皮材料
- 用于定义剥皮产出的具体物品
示例:
- Item=2934 - 破损的皮革(低级皮革)
- Item=2318 - 轻皮革(中级皮革)
其他字段说明
注意: 其他字段(Reference、Chance、QuestRequired、LootMode、GroupId、MinCount、MaxCount、Comment)的详细说明与creature_loot_template完全相同,请参考 creature_loot_template 的字段详解。
💡 实际案例
剥皮 Entry 1 - 低级野兽剥皮
低级野兽的剥皮掉落配置示例
-- Entry 1:低级野兽剥皮
DELETE FROM skinning_loot_template WHERE Entry = 1;
INSERT INTO skinning_loot_template VALUES
(1, 2934, 0, 100, 0, 1, 0, 1, 1, '破损的皮革');
效果: 对低级野兽进行剥皮必定获得1个破损的皮革。
剥皮 Entry 10 - 高级野兽剥皮
高级野兽的剥皮掉落配置示例
-- Entry 10:高级野兽剥皮
DELETE FROM skinning_loot_template WHERE Entry = 10;
INSERT INTO skinning_loot_template VALUES
(10, 2318, 0, 80, 0, 1, 0, 1, 2, '轻皮革'),
(10, 2319, 0, 20, 0, 1, 0, 1, 1, '中皮革');
效果: 对高级野兽进行剥皮有80%几率获得1-2个轻皮革,20%几率获得1个中皮革。
⚡ 快速参考
剥皮产物类型
| 野兽等级 | 常见Entry | 主要产物 | 说明 |
|---|---|---|---|
| 低级野兽 | 1-10 | 破损的皮革 | 低级野兽剥皮配置 |
| 中级野兽 | 11-20 | 轻皮革 | 中级野兽剥皮配置 |
| 高级野兽 | 21+ | 中皮革、重皮革等 | 高级野兽剥皮配置 |
表关系
- 主表: creature_template - 生物模板表
- 关联字段: Entry → creature_template.skinloot
- 物品表: item_template - 物品模板表
- 关联字段: Item → item_template.entry
- 引用表: reference_loot_template - 引用掉落模板表
- 关联字段: Reference → reference_loot_template.entry
🔗 相关表格
- creature_template - 生物模板表
- item_template - 物品模板表
- creature_loot_template - 生物掉落模板表
- reference_loot_template - 引用掉落模板表
❓ 常见问题
Q1: 如何配置野兽的剥皮产物?
在creature_template表中设置skinloot字段,然后在skinning_loot_template表中添加对应的剥皮配置。例如:skinloot=1的野兽会使用Entry=1的剥皮配置。
Q2: 剥皮产物可以设置多个皮革吗?
可以。在skinning_loot_template表中添加多个条目,每个条目对应一个可能的剥皮产物。使用Chance字段控制各皮革的出现几率。
Q3: 如何配置必定获得的剥皮产物?
设置Chance=100,表示该皮革必定获得。可以配合MinCount和MaxCount字段控制皮革的数量范围。