Moderator: MacroQuest Developers
Code: Select all
Sub Main
/declare GroupMemNum local
/declare Player local
/declare MinHealth local
| Set this to the minimum percentage the player can be at before you heal them.
/varset MinHealth 50
:Loop
/for GroupMemNum 1 to $group(count)
/varset Player $group($calc(@GroupMemNum-1))
/if n @Player>0 {
/if n $spawn(@Player,hp,pct)<@MinHealth /call Heal @Player
}
/next GroupMemNum
/doevents
/goto :Loop
/return
Sub Heal(PlayerID)
/target id @PlayerID
[color=red]Your Healing code here...[/color]
/return