|
楼主 |
发表于 2019-1-3 23:20:51
|
显示全部楼层
function hp_heqi_check(n,l,w)
heqi = tonumber(w[1])
print("heqi="..heqi)
if hp.qixue_per<35 and dhd_cur>0 then
exe('fu dahuan dan')
end
if hp.qixue_per<70 and cty_cur>0 then
exe('eat chantui yao')
end
if (hp.qixue / (hp.qixue_max / hp.qixue_per ) < 35) and cty_cur>0 then
exe('eat chantui yao')
end
if hp.qixue<hp.qixue_max*0.7 then
exe('yun qi')
end
if hp.jingxue<hp.jingxue_max*0.5 then
exe('yun jing')
end
if hp.neili<hp.neili_max*0.5 and nxw_cur>0 then
exe('eat '.. drug.neili)
end
if hp.jingli<hp.jingli_max*0.5 or hp.jingli<500 then
exe('yun jingli')
end
if hp.neili<hp.neili_max*0.5 and nxw_cur>0 then
exe('eat '.. drug.neili)
end
------pk攒合气设置--------
if pkheqi==1 and (job.name=='pk' or job.name=='diemenglou' or job.name == 'guanfu') then
if heqi > tonumber(GetVariable("heqi_number")) then
print ('合气憋足了!老子要放大招刷死你!')
print ('天!地!玄!黄!唯!我!独!尊!杀。。。。。。')
exe('set wimpy 100;set wimpycmd pppp1\\mypfm\\hp')
return
end
end
------pk攒合气设置--------
if job.name=='songmoya' then
if hp.qixue_per<80 then
exe('eat '.. drug.heal)
end
if perform.force and perform.force=="dulong-dafa" and (not flag.wudi or flag.wudi==0) then
exe('yun wudi')
end
if perform.force and perform.force=="dulong-dafa" and hp.qixue_per<70 then
exe('yun wudi')
end
if os.time()>fight.time.b+120 then
exe('set wimpycmd halt\\down')
return
end
if heqi==1000 and hp.qixue_per<55 then
chats_log('报效国家任务:合气到达1000满值,放弃任务!','cyan')
exe('set wimpycmd halt\\down')
return
end
if yptjob.fengzhao==false then
if yptjob.name2 == '无威胁' then
if heqi > 320 then
exe('ppp1;pp1;set wimpycmd pfmbuff\\ppp1\\pp1\\hp')
hqpd=0
return
elseif hqpd==0 then
exe('set wimpycmd hp')
hqpd=1
print ('积攒合气!')
return
end
end
if yptjob.name1 == '无威胁' then
if heqi > 320 then
exe('ppp2;pp2;set wimpycmd pfmbuff\\ppp2\\pp2\\hp')
hqpd=0
return
elseif hqpd==0 then
exe('set wimpycmd hp')
hqpd=1
print ('积攒合气!')
return
end
end
end
if yptjob.name1~='无威胁' and yptjob.name2~='无威胁' then
if heqi > 400 then
if GetVariable("double_kill")~=nil and GetVariable("double_kill")=="yes" then
if sxkiller1 >= sxkiller2 then
exe('set wimpycmd pfmbuff\\ppp1\\ppp2\\hp')
hqpd=0
else
exe('set wimpycmd pfmbuff\\ppp2\\ppp1\\hp')
hqpd=0
end
else
if sxkiller1 >= sxkiller2 then
exe('ppp1;pp1;set wimpycmd pfmbuff\\ppp1\\pp1\\hp')
hqpd=0
else
exe('ppp2;pp2;set wimpycmd pfmbuff\\ppp2\\pp2\\hp')
hqpd=0
end
end
elseif hqpd==0 then
exe('set wimpycmd hp')
hqpd=1
print ('开始积攒合气!')
end
end
end
就加了蓝色字部分,你改这个函数就行了! |
|