http://www.macroquest2.com/wiki/index.php/If
I added a line indicating the lack of support for the current /if command on older MQ2 version.
I'm having issues with my first macro. It gets to :mr and constantly loop casts that spell without a target. I'm using MQ2 from early 04.. my name should explain the reason.
How might I change the /if command to work? I've tried various adjustments with no luck.
Code: Select all
| - enchbot2.mac -|
#include routines.mac
#turbo
Sub Main
:loop
/if (${Me.Casting.ID}) /goto :loop
/assist PETNAME
/delay 4
/if (${Target.ID}==FALSE) /goto :loop
/if (${Target.DisplayName}==PCNAME) /goto :loop
/if (${Target.PctHPs}<95) /goto :mr
/delay 4
/if (${Target.PctHPs}<90) /goto :slow
/delay 4
/if (${Target.PctHPs}<80) { /goto :debuff
} else {
/if (${Me.PctHPs}<90) /goto :agro
/if (${Me.PctMana}<70) /goto :meding
/tar PCNAME
/delay 10
/if (${Target.Distance}>70) /goto :follow
/delay 4
/goto :loop
:mr
/if (${Me.PctMana}<12) /goto :oom
/delay 4
/cast "Tashanian"
/delay 4
/cast "Tashanian"
/delay 4
/goto :loop
:slow
/if (${Me.PctMana}<12) /goto :oom
/delay 4
/cast "Forlorn Deeds"
/delay 4
/cast "Forlorn Deeds"
/delay 4
/goto :loop
:debuff
/if (${Me.PctMana}<12) /goto :oom
/delay 4
/cast "Cripple"
/delay 4
/cast "Cripple"
/delay 4
/goto :loop
:agro
/g group message
/g group message
/delay 2
/goto :loop
:follow
/tar PCNAME
/delay 10
/if (${Target.Distance}>70) /sit off
/delay 4
/follow
/delay 2
/goto :loop
:meding
/tar PCNAME
/delay 10
/if (${Target.Distance}<70) /sit on
/delay 2
/goto :loop
:oom
/tar PCNAME
/delay 10
/if (${Target.Distance}<70) /sit on
/g GROUP MESSAGE
/delay 2
/goto :loop



