字号:

内置宏分享:比较人性化的万花治疗宏

时间:2010-04-26 10:00 作者:小小小清风 手机订阅 参与评论(0) 【投稿】
文 章
摘 要
版本一:无目标时默认给自己治疗。无握针,血量低于30%水月+长针,出逐流释放长针。/scriptplayer=GetClientPlayer()/scripttT,tID=player.GetTarget()/scripttarget=GetTargetHandle(player

版本三:无目标时默认给自己治疗,自动握针,血量低于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))

加入17173玩家俱乐部,100%领《原神》月卡、《王者荣耀》888点券、《魔兽世界》T恤等周边好礼!
加入方式:微信关注“17173服务号”

最近更新

全球新闻