|
huashan.lua顶部定义两具变量:
-------华山
job.list["huashan"] ="华山惩恶扬善"
SslCanOut=0
local l_corpseNum=1
local l_huashanItem='corpse'
- 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','^(> )*光天化日的想抢劫啊?','','huashan_cut_con1')
- create_trigger_t('huashan_cut5','^(> )*你现在正忙着呢。','','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
- 上述几个函数修改即可,其他的不用动。
- 更改点:绝情谷corpse过重,会qian不上来,改为qie corpse
- 按无聊师兄的思路,get不到正确的corpse,会0.5后再get
- huashan_cut_act=function()
- DeleteTimer('perform')
- --weapon_unwield()
- --weaponWieldCut()
- if string.find(job.where,'绝情谷') then
- for i=1,2 do
- exe('get ling pai from corpse '..i)
- end
- exe('qie corpse ')
- l_huashanItem='head'
- else
- check_halt(exe('get corpse'))
- l_huashanItem='corpse'
- end
- end
- huashan_cut_weapon=function()
- return check_halt(huashan_cut_act,1)
- end
- huashan_cut_con=function(n,l,w)
- if job.target~=tostring(w[2]) then
- --exe('drop head')
- l_corpseNum=l_corpseNum+1
- check_halt(exe('drop corpse;get corpse '..l_corpseNum))
- else
- DeleteTriggerGroup("all_fight")
- EnableTriggerGroup("huashan_cut",false)
- if l_huashanItem=='corpse' then check_halt(exe('get ling pai from corpse')) end
- return go(huashan_yls,'华山','祭坛')
- end
- end
- huashan_cut_con1=function()
- local l_cmdStr='get corpse '..l_corpseNum
- DoAfterSpecial(0.5,'exe(l_cmdStr)',12)
- end
- huashan_yls=function()
- DoAfterSpecial(1,'return AntiFloodTimer()',12)
- antiFlood="huashan_yls"
- DeleteTriggerGroup("huashan_yls")
- create_trigger_t('huashan_yls1','^(> )*(这里没有这个人。|你身上没有这样东西。|这人好象不是你杀的吧?|你的令牌呢|你还没有去找恶贼,怎么就来祭坛了?)','','huashan_yls_fail')
- create_trigger_t('huashan_yls2','^(> )*岳灵珊在你的令牌上写下了一个 (一|二) 字。','','huashan_yls_ask')
- create_trigger_t('huashan_yls3','^(> )*这好象不是你领的令牌吧?','','huashan_yls_lingpai')
- SetTriggerOption("huashan_yls1","group","huashan_yls")
- SetTriggerOption("huashan_yls2","group","huashan_yls")
- SetTriggerOption("huashan_yls3","group","huashan_yls")
- --return exe('give head to yue lingshan;hp')
- return exe('give '..l_huashanItem..' to yue lingshan;hp')
- end
复制代码
|
|