|
目前测试下来的效果,能提高1-2k/h
改huashan.lua中三个函数,直接贴代码:
- huashan_cut=function()
- EnableTriggerGroup("huashan_fight",false)
- EnableTriggerGroup("huashan_find",false)
- DeleteTriggerGroup("huashan_cut")
- create_trigger_t('huashan_cut1','^(> )*只听“咔”的一声,你将(\\D*)的首级斩了下来,提在手中。','','huashan_cut_con')
- create_trigger_t('huashan_cut2','^(> )*(乱切别人杀的人干嘛啊|你手上这件兵器无锋无刃|你得用件锋利的器具才能切下这尸体的头来)','','huashan_cut_weapon')
- create_trigger_t('huashan_cut3','^(> )*只听“咔”的一声,你将(\\D*)的首级斩了下来,提在手中。','','huashan_cut_con')
- create_trigger_t('huashan_cut4','^(> )*你将(\\D*)的尸体扶了起来背在背上。','','huashan_cut_con')
- create_trigger_t('huashan_cut5','^(> )*光天化(日)的想抢劫啊?','','huashan_cut_con')
- --create_trigger_t('huashan_cut3','^(> )*你现在正忙着呢。','','huashan_cut_weapon')
- SetTriggerOption("huashan_cut1","group","huashan_cut")
- SetTriggerOption("huashan_cut2","group","huashan_cut")
- SetTriggerOption("huashan_cut3","group","huashan_cut")
- SetTriggerOption("huashan_cut4","group","huashan_cut")
- SetTriggerOption("huashan_cut5","group","huashan_cut")
- wudangPfmAnClose()
- l_corpseNum=1
- road.id=nil
- job.killer={}
- fight.time.e=os.time()
- fight.time.over=fight.time.e-fight.time.b
- messageShowT('华山任务:战斗用时:【'..fight.time.over..'】秒,搞定蒙面人:【'..job.target..'】。')
- return check_halt(huashan_cut_act)
- end
- huashan_cut_act=function()
- DeleteTimer('perform')
- --weapon_unwield()
- --weaponWieldCut()
- --for i=1+l_corpseNum,2+l_corpseNum do
- check_halt(exe('get corpse '..l_corpseNum))
- --exe('get ling pai from corpse '..i)
- --exe('qie corpse '..i)
- --end
- end
- huashan_cut_weapon=function()
- return check_halt(huashan_cut_act,1)
- end
- huashan_cut_con=function(n,l,w)
- DeleteTriggerGroup("all_fight")
- if job.target~=tostring(w[2]) then
- --exe('drop head')
- check_halt(exe('drop corpse'))
- l_corpseNum=l_corpseNum+1
- return check_halt(huashan_cut_act)
- else
- l_corpseNum=1
- EnableTriggerGroup("huashan_cut",false)
- check_halt(exe('get ling pai from corpse'))
- return go(huashan_yls,'华山','祭坛')
- end
- end
复制代码 |
|