Moderator: MacroQuest Developers
Code: Select all
Sub Main
:loopstart
/press F1
/varset $v1 $target(hp,pct)
/press F2
/varset $v2 $target(hp,pct)
/press F3
/varset $v3 $target(hp,pct)
/press F4
/varset $v4 $target(hp,pct)
/press F5
/varset $v5 $target(hp,pct)
/press F6
/varset $v6 $target(hp,pct)
/If n $v1=>40 And <=80 And /If n $v2=>40 And <=80 And /If n $v3=>40 And <=80 And /If n $v4=>40 And <=80 And /If n $v5=>40 And <=80 And /If n $v6=>40 And <=80 {
/press F1
Call WordofRestoration
}
Else
/If n $v1=>0 And /If $v1<= 39 {
/press F1
Call DivineLight
}
/If n $v2=>0 And /If $v2<= 39 {
/press F2
Call DivineLight
}
/If n $v3=>0 And /If $v3<= 39 {
/press F3
Call DivineLight
}
/If n $v4=>0 And /If $v4<= 39 {
/press F4
Call DivineLight
}
/If n $v5=>0 And /If $v5<= 39 {
/press F5
Call DivineLight
}
/If n $v6=>0 And /If $v6<= 39 {
/press F6
Call DivineLight
}
/If n $v1=>40 And /If $v1<= 70 {
/press F1
Call CompleteHeal
}
/If n $v2=>40 And /If $v2<= 70 {
/press F2
Call CompleteHeal
}
/If n $v3=>40 And /If $v3<= 70 {
/press F3
Call CompleteHeal
}
/If n $v4=>40 And /If $v4<= 70 {
/press F4
Call CompleteHeal
}
/If n $v5=>40 And /If $v5<= 70 {
/press F5
Call CompleteHeal
}
/If n $v6=>40 And /If $v6<= 70 {
/press F6
Call CompleteHeal
}
End Sub
Private Sub CompleteHeal
/sit off
/cast "Complete Healing"
/gsay Complete Healing On (Name)
/delay 11
/sit On
/GoTo :loopstart
/return
End Sub
Private Sub DivineLight
/sit off
/cast "Divine Light"
/gsay Divine Light On (Name)
/delay 5
/sit On
/GoTo :loopstart
/return
End Sub
Private Sub WordofRestoration
/press ESC
/sit off
/cast "Word of Restoration"
/gsay Group Heal Incoming
/delay 6
/sit On
/GoTo :loopstart
/return
End Sub
Code: Select all
/if x==y And /if z==x {
should be
/if x==y /if z==x {
but that will only work if you have IRC-20020928+, if you are using MQ-20020905 then you need to use:
/if x==y {
/if z==x {
| some cody thingies...
}
}