| 
 | 
 
 本帖最后由 aoxue@tj 于 2020-2-9 22:20 编辑  
 
主要参考了之前的duihuanSometing模块的一些code,也再次表示感谢 
- function dolostAg()
 
 -         SetVariable("duihuanllTimes",0)
 
 -     l_result=utils.msgbox ( "信送完啦!!是否继续送信?", "dolost", "yesno", "?", 1 )
 
 -         if l_result and l_result=="yes" then
 
 -                 l_result=utils.inputbox ("继续换信使之证多少个?","信使之证",GetVariable("duihuanllTimes"),"宋体","12")
 
 -                 print(l_result)
 
 -                 if not isNil(GetVariable("duihuanllTimes")) then
 
 -                         SetVariable("duihuanllTimes",l_result)
 
 -                         if tonumber(GetVariable("duihuanllTimes"))~=0 then
 
 -                                 local l_lltimes=tonumber(GetVariable("duihuanllTimes"))*10
 
 -                                 lostno=lostno+l_lltimes
 
 -                                 print('当前送信次数为:'..LLlost..',总共送信次数为:'..lostno)
 
 -                                 return duihuanLostletter()
 
 -                         else
 
 -                                 needdolost=0
 
 -                                 return check_job()                                
 
 -                         end
 
 -                 else
 
 -                         needdolost=0
 
 -                         return check_job()                        
 
 -                 end
 
 -         else
 
 -                 needdolost=0
 
 -         return check_job()
 
 -         end
 
 - end
 
 - function duihuanLostletter()
 
 -         exe('jobtimes')
 
 -         tmp.duihuan=0
 
 -         DeleteTriggerGroup("duihuanLostletter")
 
 -         create_trigger_t('duihuanLostletter1',"^(> )*当铺老板吆喝一声:"..score.name.."兑换限制级宝物\\D*,收讫书剑通宝(\\D*)个*",'','duihuanLostletter_add')
 
 -         SetTriggerOption("duihuanLostletter1","group","duihuanLostletter")
 
 -         go(duihuanLostletter_duihuan,"扬州城","当铺")
 
 - end
 
 - function duihuanLostletter_add(n,l,w)
 
 -         tmp.duihuan=tmp.duihuan or 0
 
 -         tmp.duihuan=tmp.duihuan+1
 
 -         print('本次兑换信使之证'..tmp.duihuan..'次')
 
 -         if tmp.duihuan>=tonumber(GetVariable("duihuanllTimes")) then
 
 -                 EnableTriggerGroup("duihuanLostletter",false)
 
 -                 DeleteTriggerGroup("duihuanLostletter")
 
 -                 return check_busy(check_job)
 
 -         end
 
 -         check_busy(duihuanLostletter_duihuan)
 
 - end
 
 - function duihuanLostletter_duihuan()
 
 -         exe('duihuan pcert')
 
 - end
 
 
  复制代码 |   
 
 
 
 |