版本三:无目标时默认给自己治疗,自动握针,血量低于30%水月+长针,出逐流释放长针。
/script player=GetClientPlayer()
/script tT,tID=player.GetTarget()
/script target=GetTargetHandle(player.GetTarget())
/script if not target or IsEnemy(player.dwID,tID) then target=GetClientPlayer() end
/script pBuff=player.GetBuffList()
/script tBuff=target.GetBuffList()
/script hp=target.nCurrentLife/target.nMaxLife
/script CD,CD,CDA=player.GetSkillCDProgress(136,player.GetSkillLevel(136))
/script if hp<=0.3 and CDA==0 then OnUseSkill(136,1) end
/script for _, v in pairs(player.GetBuffList()) do if (v.dwID==722 or v.dwID==412) then OnUseSkill(142,player.GetSkillLevel(142)) end end
/script if tBuff~=nil then for _, v in pairs(tBuff) do if (v.dwID==631) then OnUseSkill(137,player.GetSkillLevel(137)) end end end
/script OnUseSkill(101,player.GetSkillLevel(101))
版本四:无目标时默认给自己治疗,自动握针,血量低于30%水月+长针,出逐流血量低于60% 释放长针,血量高于60% 释放提针。
/script player=GetClientPlayer()
/script tT,tID=player.GetTarget()
/script target=GetTargetHandle(player.GetTarget())
/script if not target or IsEnemy(player.dwID,tID) then target=GetClientPlayer() end
/script pBuff=player.GetBuffList()
/script tBuff=target.GetBuffList()
/script hp=target.nCurrentLife/target.nMaxLife
/script CD,CD,CDA=player.GetSkillCDProgress(136,player.GetSkillLevel(136))
/script if hp<=0.3 and CDA==0 then OnUseSkill(136,1) end
/script if pBuff~=nil then for _, v in pairs(pBuff) do if (v.dwID==722 or v.dwID==412 or v.dwID==932) then if hp>=0.6 then OnUseSkill(138,player.GetSkillLevel(138)) else OnUseSkill(142,player.GetSkillLevel(142)) end end end end
/script if tBuff~=nil then for _, v in pairs(tBuff) do if (v.dwID==631) then OnUseSkill(137,player.GetSkillLevel(137)) end end end
/script OnUseSkill(101,player.GetSkillLevel(101))