|
发表于 2017-11-22 22:48:27
|
显示全部楼层
我以做xs+hs2为例:
1.修改huashan.lua
huashan_cut_act=function()
DeleteTimer('perform')
weapon_unwield()
weaponWieldCut()
exe('unwield xxxx;wield xxxx axe')
for i=1,5 do
exe('halt;get ling pai from corpse '..i)
exe('qie corpse '..i)
end
end
自己加一行 exe('unwield xxxx;wield xxxx axe')
第一个xxxx表示你qie corpse的武器,你自己注意观察下再填入,第二个xxxx axe就是这把恢复的斧子
huashan_finish=function()
map.rooms["village/zhongxin"].ways["northwest"]="village/caidi"
map.rooms["village/zhongxin"].ways["northeast"]="village/caidi"
EnableTriggerGroup("huashan_over",false)
EnableTriggerGroup("huashanQuest",true)
flag.times=1
hsjob2=0
exe('drop ling pai')
job.time.e=os.clock()
job.time.over=job.time.e-job.time.b
job.time.over1=string.format("%0.2f", job.time.over)
exe('unwield xxxx;wield xxxx axe')
messageShowT('华山任务:完成任务,用时:【'..job.time.over1..'】秒。') --
这里同上一样也要改
2.修改xueshan.lua
function xueshan_sa(n,l,w)
fight.time.e=os.clock()
fight.time.over=fight.time.e-fight.time.b
fight.time.over1=string.format("%0.2f", fight.time.over)
if job.target==w[2] then
tmp.kill=true
EnableTriggerGroup("xueshan_fight",false)
messageShowT('雪山任务:搞定保镖【'..job.target..'】!战斗用时:【'..fight.time.over1..'】秒。')
geta()
exe('pfmset')
exe('unwield taiji sword;wield fengyun sword')
-- ain
DeleteTriggerGroup("xueshan_safind")
加入一行 exe('unwield xxxx;wield xxxx axe')
第一个xxxx是你的主力武器,第二个xxxx axe就是指你这把恢复的斧子
3.setlian里面alias 最后加上wield xxxx axe 保证渡河渡江的时候保持axe装备在身上
4.所有pfm alias最前面加上unwield xxxx axe,保证打架时候把这个斧子卸下来 |
|