| 
 | 
 
----雪山/武当任务转换---- 
以下代码放入shujian.lua文件底部,并添加alias. 
 
- function turn_job()
 
 -         exe('duihuan tbook')
 
 -         return check_busy(read_tbook)
 
 - end
 
 - function read_tbook()
 
 -         exe('read book;hp')
 
 -         wait.make(function() 
 
 -             wait.time(2)
 
 -         return check_halt(change_job)
 
 -         end)
 
 - end
 
 - function change_job()
 
 -         local l_result
 
 -         if hp.shen<0 then
 
 -            if job.zuhe["wudang"] then 
 
 -           job.zuhe["wudang"]=nil
 
 -                   job.zuhe["songmoya"]=nil
 
 -           job.zuhe["xueshan"]=true 
 
 -        end
 
 -        l_result = 'huashan_xueshan'
 
 -            SetVariable("jobzuhe",l_result)
 
 -            ColourNote ("red","blue","任务组合调整完毕,目前是【雪山】+【华山】!")
 
 -     end        
 
 -         if hp.shen>0 then
 
 -            if job.zuhe["xueshan"] then 
 
 -           job.zuhe["xueshan"]=nil
 
 -                   job.zuhe["songmoya"]=nil
 
 -           job.zuhe["wudang"]=true 
 
 -        end
 
 -            l_result = 'huashan_wudang'
 
 -            SetVariable("jobzuhe",l_result)
 
 -            ColourNote ("red","blue","任务组合调整完毕,目前是【武当】+【华山】!")
 
 -         end
 
 - end
 
  复制代码 
- function setAlias()
 
 -         create_alias_s('turnjob','turnjob','turn_job')
 
  复制代码 |   
 
评分
- 
2
查看全部评分 
 
- 
 
 
 
 
 |