RefineUI 精炼UI精炼事件及脚本命令 [聽風] #693
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
*OnPCRefineUIEvent:
携带参数:
@refine_idx 精炼物品的在背包中的序列
@refine_nameid 精炼物品的物品ID
@refine_blessing 精炼是否使用祝福矿石
@refine_success 精炼成功返回 1 否则返回 0
*OnPCRefineUIFilter:
携带参数:
@refine_idx 精炼物品的在背包中的序列
@refine_nameid 精炼物品的物品ID
@refine_rate 精炼成功概率(可以通过修改这个数值更改成功概率)
@refine_zeny 精炼时消耗的zeny
@refine_cost 精炼时消耗的精炼道具ID
@refine_blessing 精炼是否使用祝福矿石
注意事项:
可以通过脚本指令 refineui_result 来自定义精炼UI
中断说明:
中断后会无视玩家本次精炼道具的请求, 系统不再精炼此装备
refineui_result <背包位置序号>,<动画类型>,<精炼后等级>;
指令用于自定义精炼UI, 播放精炼动画, 并修改物品精炼值 [聽風]
动画类型:
0 - 精炼成功
1 - 精炼失败, 装备消失
2 - 精炼失败, 精炼降级
3 - 精炼失败, 精炼被铁匠的祝福保级
返回值:
无
注意:
1 - 当 OnPCRefineUIFilter 事件被打断后才可以使用该指令
2 - 精炼成功或精炼失败, 都会将物品精炼等级直接设置为 <精炼后等级>
3 - 此精炼不消耗任何道具, 请使用 delitem 删除精炼材料