|
本帖最后由 recluzpr@tj 于 2017-9-8 14:05 编辑
shujian.lua中增加
- function dnyTrigger()
- DeleteTriggerGroup("qk_dny")
- create_trigger_t('qk_dny1','^(> )*\\s*你把 "action" 设定为 "讨教大挪移中" 成功完成','','taoJiaozhang')
- create_trigger_t('qk_dny2',"^(> )*你现在正忙着呢。",'','taoJiaozhang')
- create_trigger_t('qk_dny3',"^(> )*(由于实战经验不足,阻碍了你的「乾坤大挪移」进步!|什么?|你的内力不够)",'','taojiao_over')
- create_trigger_t('qk_dny4',"^(> )*你感觉全身气息翻腾,原来你真气不够,不能装备\\D*。",'','taojiao_over')
- for i=1,4 do SetTriggerOption("qk_dny"..i,"group","qk_dny") end
- EnableTriggerGroup("qk_dny",false)
- end
- function check_dny()
- exe('nick 讨教乾坤大挪移')
- return go(taojiao_dny,"mingjiao/sht",'')
- end
- function taojiao_dny()
- dnyTrigger()
- if locl.id[score.master] then
- EnableTriggerGroup("qk_dny",true)
- weapon_unwield()
- local leweapon=GetVariable("learnweapon")
- exe('wield '..leweapon)
- DoAfter(0.5,'alias action 讨教大挪移中')
- else
- ColourNote ("white","blue","师傅不在家!过一会儿再来吧!")
- return taojiao_over()
- end
- end
- function taoJiaozhang()
- flag.idle=nil
- EnableTriggerGroup("qk_dny",true)
- wait.make(function()
- wait.time(0.2)
- exe('#8(taojiao qiankun-danuoyi);yun jing;alias action 讨教大挪移中')
- end)
- end
- function taojiao_over()
- messageShow('讨教乾坤大挪移完毕!')
- EnableTriggerGroup("qk_dny",false)
- DeleteTriggerGroup("qk_dny")
- weapon_unwield()
- local leweapon=GetVariable("learnweapon")
- exe('cha;unwield '..leweapon)
- dis_all()
- return check_busy(check_food)
- end
复制代码
然后在job.lua中查找prepareLianxi 改成下面的。。。其实加上qkdny那段就好了
- function prepareLianxi()
- if mydummy==true then
- EnableTriggerGroup("prepare_neili",false)
- DeleteTriggerGroup("prepare_neili")
- return dummyfind()
- end
- if (not condition.busy or condition.busy == 0) and job.prepare~=duHhe_start and job.prepare~=duCjiang_start then
- return prepare_neili(job.prepare)
- end
- if condition.busy>60 then
- if score.party=='明教' and skills['qiankun-danuoyi'].lvl>449 and skills['qiankun-danuoyi'].lvl<hp.pot_max-102 then
- messageShow("任务监控:去向小张同学学习大挪移!","white")
- return check_halt(check_dny)
- end
- if score.party=="姑苏慕容" and need_dzxy=="yes" and dzxy_level==3 and hp.food>50 and hp.water>50 and (locl.time=="戊" or locl.time=="亥" or locl.time=="子" or locl.time=="丑" ) then
- messageShow("任务监控:是三段斗转星移,而且是晚上,可以去看星星领悟斗转星移了!","white")
- return check_halt(checkdzxy)
- end
- end
- flag.jixu=1
- if hp.neili_max>hp.neili_lim-10 then
- exe('unset 积蓄')
- elseif job.prepare and (job.prepare==test or job.prepare==duHhe_start or job.prepare==duCjiang_start) then
- exe('unset 积蓄')
- else
- flag.jixu=0
- exe('unset 积蓄')
- end
- if job.zuhe["gblu"] and not locl.id["铜钱"] and hp.exp<2000000 then exe('drop 1 coin') end
- prepare_neili_a()
- end
复制代码 |
评分
-
1
查看全部评分
-
|