|
发表于 2018-6-7 11:04:39
|
显示全部楼层
function ypttest()
sxjob.id1='wushi'
create_trigger_t('ypt_fight5','^(> )*你把 "ppp1" 设定为 "\\D*;perform\\s*(\\D*)\\s*" 成功完成。','','ypt_pfm1')
end
function ypt_pfm1(n,l,w)
--print(w[2],w[3])
local pp1=string.lower(w[2])
--print(pp1)
create_alias('yptpp1','yptpp1','alias pp1 perform '.. pp1 ..';perform '.. pp1)
exe('yptpp1')
end
function ypt_pfm2(n,l,w)
--print(w[2],w[3])
local pp2=string.lower(w[2])
--print(pp2)
create_alias('yptpp2','yptpp2','alias pp2 perform '.. pp2 ..';perform '.. pp2)
exe('yptpp2')
end
function ypt_cimu()
exe('kill '..sxjob.id1)
exe('kill '..sxjob.id2)
end
function ypt_print_1(n,l,w)
EnableTrigger("ypt_fight1",false)
EnableTrigger("ypt_fight4",false)
sxjob.id1=string.lower(w[1])
--print('sxjob.id1')
--print(sxjob.id1)
exe('look '..sxjob.id1)
end
function ypt_print_2(n,l,w)
EnableTrigger("ypt_fight2",false)
sxjob.id2=string.lower(w[1])
--print('sxjob.id2')
--print(sxjob.id2)
wait.make(function()
wait.time(0.5)
EnableTrigger("ypt_fight3",false)
EnableTrigger("ypt_fight4",true)
exe('look '..sxjob.id2)
end)
end
function ypt_check_skills(n,l,w)
if sxjob.killer1==tostring(w[1]) then
sxjob.id1=string.lower(w[2])
sxjob.skills1=tostring(w[3])
if skills["dugu-jiujian"] then setpo=yptsetpo[sxjob.skills1] end
--print(sxjob.id1)
--print(sxjob.skills1)
if yptteam*1 > 7 then
if falsesk[yptjob.skills1] then
exe('halt;down')
return yptfail()
end
end
if Yptlastsk[sxjob.skills1] then
sxkiller1=1
elseif Yptdangersk[sxjob.skills1] then
sxkiller1=9
else
sxkiller1=5
end
if yptteam*1 > 10 then
if fearsk[sxjob.skills1] then
sxkiller1=0
end
end
local l_cmd=GetVariable("performpre")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
exe('yptpfm1')
if skillsjineng1[sxjob.skills1] then
local l_cmd=GetVariable("pzhen")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
exe('yptpfm1')
end
if skillsjineng2[sxjob.skills1] then
local l_cmd=GetVariable("pqi")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
exe('yptpfm1')
end
if skillsjineng3[sxjob.skills1] then
local l_cmd=GetVariable("pgang")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
exe('yptpfm1')
end
if skillsjineng4[sxjob.skills1] then
local l_cmd=GetVariable("prou")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
exe('yptpfm1')
end
if skillsjineng5[sxjob.skills1] then
local l_cmd=GetVariable("pkuai")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
exe('yptpfm1')
end
if skillsjineng6[sxjob.skills1] then
local l_cmd=GetVariable("pman")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
exe('yptpfm1')
end
if skillsjineng7[sxjob.skills1] then
local l_cmd=GetVariable("pmiao")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
exe('yptpfm1')
end
if skillsjineng8[sxjob.skills1] then
local l_cmd=GetVariable("pxian")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
exe('yptpfm1')
end
if skillsjineng9[sxjob.skills1] then
local l_cmd=GetVariable("pfmmrjf")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
exe('yptpfm1')
end
if skillsjineng10[sxjob.skills1] then
local l_cmd=GetVariable("pfmshlf")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
exe('yptpfm1')
end
if skillsjineng11[sxjob.skills1] then
local l_cmd=GetVariable("pfmwu")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm1','yptpfm1','alias ppp1 '.. l_cmd ..' '..sxjob.id1)
exe('yptpfm1')
end
messageShow('当前组第一个武士:姓名【'..sxjob.killer1..'】,ID【'..sxjob.id1..'】,使用技能【'..sxjob.skills1..'】!')
end
if sxjob.killer2==tostring(w[1]) then
sxjob.id2=string.lower(w[2])
sxjob.skills2=tostring(w[3])
if skills["dugu-jiujian"] then setpo=yptsetpo[sxjob.skills2] end
if yptteam*1 > 7 then
if falsesk[sxjob.skills2] then
exe('halt;down')
return yptfail()
end
end
--print(sxjob.id2)
--print(sxjob.skills2)
if Yptlastsk[sxjob.skills2] then
sxkiller2=1
elseif Yptdangersk[sxjob.skills2] then
sxkiller2=9
else
sxkiller2=5
end
if yptteam*1 > 10 then
if fearsk[sxjob.skills2] then
sxkiller2=0
end
end
local l_cmd=GetVariable("performpre")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm1','yptpfm1','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
exe('yptpfm1')
if skillsjineng1[sxjob.skills2] then
local l_cmd=GetVariable("pzhen")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm2','yptpfm2','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
exe('yptpfm2')
end
if skillsjineng2[sxjob.skills2] then
local l_cmd=GetVariable("pqi")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm2','yptpfm2','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
exe('yptpfm2')
end
if skillsjineng3[sxjob.skills2] then
local l_cmd=GetVariable("pgang")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm2','yptpfm2','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
exe('yptpfm2')
end
if skillsjineng4[sxjob.skills2] then
local l_cmd=GetVariable("prou")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm2','yptpfm2','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
exe('yptpfm2')
end
if skillsjineng5[sxjob.skills2] then
local l_cmd=GetVariable("pkuai")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm2','yptpfm2','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
exe('yptpfm2')
end
if skillsjineng6[sxjob.skills2] then
local l_cmd=GetVariable("pman")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm2','yptpfm2','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
exe('yptpfm2')
end
if skillsjineng7[sxjob.skills2] then
local l_cmd=GetVariable("pmiao")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm2','yptpfm2','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
exe('yptpfm2')
end
if skillsjineng8[sxjob.skills2] then
local l_cmd=GetVariable("pxian")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm2','yptpfm2','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
exe('yptpfm2')
end
if skillsjineng9[sxjob.skills2] then
local l_cmd=GetVariable("pfmmrjf")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm2','yptpfm2','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
exe('yptpfm2')
end
if skillsjineng10[sxjob.skills2] then
local l_cmd=GetVariable("pfmshlf")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm2','yptpfm2','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
exe('yptpfm2')
end
if skillsjineng11[sxjob.skills2] then
local l_cmd=GetVariable("pfmwu")
if skills["dugu-jiujian"] then l_cmd=setpo..';'..l_cmd end
create_alias('yptpfm2','yptpfm2','alias ppp2 '.. l_cmd ..' '..sxjob.id2)
exe('yptpfm2')
end
messageShow('当前组第二个武士:姓名【'..sxjob.killer2..'】,ID【'..sxjob.id2..'】,使用技能【'..sxjob.skills2..'】!')
return checkWait(yptKillgo,0.5)
end
end
风神指导下这一段怎么改吧?谢谢 |
|