|
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 cbw_cur>0 then
exe('eat '.. drug.neili2)
end
if hp.neili<hp.neili_max*0.1 and hqd_cur>0 then
exe('eat '.. drug.neili3)
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.05 and nxw_cur>0 then
exe('eat '.. drug.neili1)
end
if job.name=='pk' or job.name=='diemenglou' then
pk_heqi_control()
end
这个是JOB.LUA 里面的气血变化吃药的,怎么设置气血低于40就放弃JOB 回去? |
|