|
发表于 2017-4-6 22:12:14
|
显示全部楼层
local Yptlihuazhenshoot = {
["玄阴剑法"] = true,
["回风拂柳剑"] = true, --以下为柔平降龙掌
["玄铁剑法"] = true, --盘根错节斧已经分在14,这里加上玄铁剑可以射杀,待以后分组
["打狗棒法"] = true,
}
function yptlihuazhenshootwush()
if yptlihuazhenshoot[sxjob.skills1] then
yptlihuazhenshootsxkiller1=1
elseif yptlihuazhenshoot[sxjob.skills2] then
yptlihuazhenshootsxkiller2=1
end
end
function gbluSmyWait()
if locl.room~="颂摩崖" then
return go(gbluSmyWait,"星宿海","颂摩崖")
end
EnableTriggerGroup("yptFight",true)
exe('halt;unset no_kill_ap')
yptjob.lihuazhen=1 --modman加入梨花针变量
messageShow('报效国家:已经到达【星宿海颂摩崖】!')
end
function ypt_lihuazhen(n,l,w)
if w[1]==sxjob.killer1 then
messageShow('报告!【'..sxjob.killer1..'】,这头驴又打滚了!')
elseif w[1]==sxjob.killer2 then
messageShow('报告!【'..sxjob.killer2..'】,这头驴又打滚了!')
end
yptjob.lihuazhen=0
end
function ypt_lihuazhen2(n,l,w)
if w[1]==sxjob.killer1 then
messageShow('哈哈!【'..sxjob.killer1..'】变刺猬了!')
elseif w[1]==sxjob.killer2 then
messageShow('哈哈!【'..sxjob.killer2..'】变刺猬了!')
end
yptjob.lihuazhen=0
end
function yptKillgo()
EnableTrigger("yptFight1",false)
EnableTrigger("ypt_catch_id",false)
if yptteam*1 > 10 then
if sxkiller1*1==0 and sxkiller2*1==0 then
exe('halt;down')
return yptfail()
end
end
hqpd=1
exe('kill '..sxjob.id1)
exe('kill '..sxjob.id2)
if perform.force and perform.force=="dulong-dafa" then
if not flag.wudi or flag.wudi==0 then
exe('yun wudi')
else
print('神龙无敌正在运行中。')
end
end
exe('jiali 0;set wimpycmd pfmbuff\\hp;set wimpy 100')
--if ((yptteam*1 > 7 and (sxkiller1<5 or sxkiller2<5)) or yptteam*1 >= smyteam*1) and yptjob.lihuazhen==1 then --危险大于8出现就shoot
--if sxkiller1>sxkiller2 and yptjob.name1~='无威胁' then
--exe('shoot '..sxjob.id1)
--elseif yptjob.name2~='无威胁' then
exe('shoot '..sxjob.id2)
--end
--chats_log('有危险人物,先干掉一个再说!','cyan')
--end--modman 9组或最后组根据危险性shoot smy 武士
if yptteam*1 >= 7 and yptjob.lihuazhen==1 then
if yptlihuazhenshootsxkiller1==1 then
exe('shoot '..'sxjob.id1')
elseif yptlihuazhenshootsxkiller2==1 then
exe('shoot'..'sxjob.id2')
elseif yptteam*1 >= smyteam*1 then
if sxkiller1>sxkiller2 then
exe('shoot '..'sxjob.id2')
else
exe('shoot '..'sxjob.id1')
end
end
end
能射了,修改了上面的语法错误
但是上去第一种就射了
另外,每组都射一次,好像根本不知道lihuazhen为0了
|
|