|
首先改动job.lua的这个函数,添加红色部分
function ypt_kill_over()
EnableTrigger("ypt_weapon1",false)
EnableTriggerGroup("ypt_weapon",false)
fight.time.e=os.time()
fight.time.over=fight.time.e-fight.time.b
messageShowT('报效国家任务:杀死第【'..yptteam..'】组武士,战斗用时:【'..fight.time.over..'】秒。')
print('正在颂摩崖任务中,杀死第【'.. yptteam ..'】组武士完成。设定杀死武士组数上限为【'.. smyteam ..'】组。')
if yptteam >= smyteam*1 then
return check_halt(fangqiypt)
end
EnableTrigger("yptFight1",true)
job.killer={}
EnableTriggerGroup("yptdz",true)
yptlian=1
exe('yun jing;yun jingli;yun qi;hp')
return check_busy(ckypt)
end 然后找到function yptdazuo_desc()整体替换为下面的东西
liantimes=1
yptlian=1
function yptlian_trigger()
DeleteTriggerGroup("yptliantrigger")
create_trigger_t('yptlian1',"^>*\\s*由于实战经验不足,阻碍了你的「\\D*」进步",'','yptlian_next')
create_trigger_t('yptlian2',"^>*\\s*你现在的修为不足以提高(\\D*)了。",'','yptlian_next')
SetTriggerOption("yptlian1","group","yptliantrigger")
SetTriggerOption("yptlian2","group","yptliantrigger")
EnableTriggerGroup("yptliantrigger",true)
end
function yptdazuo_desc()
yptlian_trigger()
skillslian= {}
skillslian = utils.split(GetVariable("lianskills"),'|')
local skill=skillslian[liantimes]
local skillcheck=skills["force"].lvl
if skillcheck<hp.pot_max-100 then
liantimes=1
end
if skill=="sword" then
exe('unwield blade;unwield '..leweapon..';wield sword')
elseif skill=="blade" then
exe('unwield sword;unwield '..leweapon..';wield blade')
else
exe('unwield sword;unwield '..leweapon..';unwield blade')
end
if yptlian==1 then
exe('yun qi;lian '..skill..';yun jingli;dazuo '..hp.dazuo)
yptlian=yptlian+1
else
exe('yun qi;yun jingli;dazuo '..hp.dazuo)
end
end
function yptlian_next()
EnableTriggerGroup("yptliantrigger",false)
liantimes=liantimes+1
local length=table.getn(skillslian)
if liantimes>length then
liantimes=1
end
end 再改动shujian.lua,在function pfmSet()函数尾部添加如下内容:
l_result=utils.inputbox ("你送信1需要练习武功的SKILLS(格式:force|dodge|sword|blade|parry)是?", "lianskills", GetVariable("lianskills"), "宋体" , "12")
if not isNil(l_result) then
SetVariable("lianskills",l_result)
Note ("练习技能设定完成")
print(GetVariable("lianskills"))
end
Note("使用默认PFM")
exe('pfmset')
|
|