|
发表于 2017-2-28 23:01:00
|
显示全部楼层
根据semic师兄的版本做了点儿小调整。。。。
songmoya.lua
function yptKillgo()中加入
if ((yptteam*1 > 9 and (Yptdangersk[sxjob.skills2] or Yptdangersk[sxjob.skills1])) or yptteam*1 == smyteam*1) and yptjob.lihuazhen==1 then
if sxkiller1>sxkiller2 and yptjob.name1~='无威胁' then
exe('shoot '..sxjob.id1)
elseif yptjob.name2~='无威胁' then
exe('shoot '..sxjob.id2)
end
yptjob.lihuazhen=0
chats_log('有危险人物,先干掉一个再说!','cyan')
end
job.lua中开始的地方加入:
yptjob={}
yptjob.fengzhao=false
yptjob.name1=''
yptjob.name2=''
yptjob.lihuazhen=1
function hp_heqi_check(n,l,w)这个里面加入
if hp.qixue_per<50 and job.name=='songmoya' and yptjob.lihuazhen==1 then
if sxkiller1>sxkiller2 and yptjob.name1~='无威胁' then
exe('shoot '..sxjob.id1)
elseif yptjob.name2~='无威胁' then
exe('shoot '..sxjob.id2)
end
yptjob.lihuazhen=0
chats_log('人间大炮发射完毕','cyan') --气血低了shoot危险的武士
end
yptjob.lihuazhen这个。可以考虑是不是要多打一组,现在我还没想好、、、、
ptbx大神版里面测试了有一周了,还挺稳定
|
|