|
楼主 |
发表于 2019-11-4 13:30:58
|
显示全部楼层
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.4 and cbw_cur>0 then
exe('eat neixi dan'.. drug.neili2)
end
if hp.neili<hp.neili_max*0.1 and hqd_cur>0 then
exe('eat chuanbei wan'.. 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 huangqi dan'.. drug.neili1)
end
帮忙看看有问题么?内力药名字是我自己加的,本来是空的,不过好像也不会吃 |
|