|
楼主 |
发表于 2020-6-24 16:16:37
|
显示全部楼层
装备stdmode 转对应装备位置
--物品stdmode转换装备位置
function stdModeToItemPos(pos)
local __tbl = {
[5] = const.item_weapon,
[6] = const.item_weapon,
[10] = const.item_dress,
[11] = const.item_dress,
[30] = const.item_righthand,
[19] = const.item_necklace,
[20] = const.item_necklace,
[21] = const.item_necklace,
[28] = const.item_necklace,
[29] = const.item_necklace,
[15] = const.item_helmet,
[24] = const.item_armringl,
[26] = const.item_armringl,
[22] = const.item_ringl,
[23] = const.item_ringl,
[25] = const.item_bujuk,
[54] = const.item_belt,
[64] = const.item_belt,
[62] = const.item_boots,
[52] = const.item_boots,
[7] = const.item_charm,
[16] = const.item_zhuli,
[55] = const.item_drum,
[56] = const.item_plate,
[57] = const.item_jade,
[16] = const.item_zhuli,
}
return __tbl[pos] or -1
end
方法比较土就是不知道有没有更好的匹配关系 |
|