|
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')
EnableTriggerGroup("huashan_cut",true)
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()
for i=1,3 do
exe('halt;get ling pai from corpse '..i)
exe('qie corpse '..i)
end
l_huashanItem='head'
end
huashan_yls=function()
DoAfterSpecial(1.5,'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')
antiFlood=""
return exe('give '..l_huashanItem..' to yue lingshan;hp')
end
huashan_yls_fail=function()
EnableTriggerGroup("huashan_yls",false)
if locl.room~="祭坛" then
return go(huashan_yls,'华山','祭坛')
end
exe('out;w;s;se;su;su;s')
return check_halt(huashan_shibai_b)
end
huashan_yls_lingpai=function()
EnableTriggerGroup("huashan_yls",false)
exe('drop ling pai')
return check_halt(huashan_yls)
end
huashan_yls_ask=function(n,l,w)
antiFlood=""
EnableTriggerGroup("huashan_yls",false)
DeleteTriggerGroup("huashan_yls_ask")
create_trigger_t('huashan_yls_ask1','^(> )*你向岳灵珊打听有关『力不从心』的消息。','','huashan_yls_back')
SetTriggerOption("huashan_yls_ask1","group","huashan_yls_ask")
EnableTriggerGroup("huashan_yls_ask",false)
if w[2]=='二' then
return huashan_yls_back()
end
if w[2]=='一' and dohs2==0 then
return check_bei(huashan_yls_lbcx)
else
return check_bei(huashan_heal)
end
end |
|