感谢宏内置语法浅析(LUA)的作者devilfate
终于可以不用插件就一键治疗了。
主要功能有:自动补握针,出逐流效果后自动转为施放长针,目标血量少于30%水月无间+长针瞬加。其余时间无脑局针。
宏命令:
/script player=GetClientPlayer()
/script target=GetTargetHandle(player.GetTarget())
/script CDA,CDB,CDC=player.GetSkillCDProgress(136,player.GetSkillLevel(136))
/script if target.nCurrentLife/target.nMaxLife<=0.3 and CDC==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 for _, v in pairs(target.GetBuffList()) do if (v.dwID==631) then OnUseSkill(137,player.GetSkillLevel(137)) end end
/script OnUseSkill(101,player.GetSkillLevel(101))