|
楼主 |
发表于 2016-12-5 01:35:02
|
显示全部楼层
12, 最重要,最重要,最重要 说3遍,保命函数修改
function hp_heqi_check(n,l,w)
heqi = w[1]
yptjob.heqi=tonumber(heqi)
if job.name=='songmoya' and os.time()>fight.time.b+10 then
exe('set wimpycmd halt\\down')
return
end
if heqi=='1000' and hp.qixue_per<55 and job.name=='songmoya' then
chats_log('报效国家任务:合气到达1000满值,放弃任务!','cyan')
exe('set wimpycmd halt\\down')
return
end
if heqi=='1002' then
dis_all()
locate()
exe('yield yes;set wimpycmd halt\\hp\\'..locl.dir)
geta()
EnableTrigger("hpheqi1",true)
if job.name=='songxin' then
chats_log('送信任务:合气到达1000满值,放弃任务!','cyan')
EnableTrigger("songxin_fight7",true)
return check_halt(songxinKillFail,1)
end
if job.name=='wudang' then
chats_log('武当任务:合气到达1000满值,放弃任务!','cyan')
return check_halt(wudangKillFail,1)
end
if job.name=='xueshan' then
chats_log('雪山任务:合气到达1000满值,放弃任务!','cyan')
return check_halt(xueshanKillFail,1)
end
end
if hp.qixue_per<90 and job.name=='songmoya' then
exe('eat '.. drug.heal)
end
if hp.qixue_per<70 then
exe('eat '.. drug.heal)
end
if hp.neili<hp.neili_max*0.5 then
exe('eat '.. drug.neili)
end
end
--挂机过程中,死亡一次后,因为没防具了,降一组
function ckypt()
if smydie > 0 and yptteam*1 >= 12 then
return check_halt(fangqiypt)
end
if hp.qixue_per<65 then
return check_halt(fangqiypt)
end
return yptFightCheck()
end |
|