Getting Monk mend to work inside Hunter.mac

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

advolente
decaying skeleton
decaying skeleton
Posts: 8
Joined: Tue Nov 18, 2003 6:01 pm

Getting Monk mend to work inside Hunter.mac

Post by advolente » Mon Sep 06, 2004 9:28 pm

I am having a terrible time getting mend to work in macro, erroring out as follows in MQ2

========================================================================================
Code is:

/if ((${Me.PctHPs}<40)&&(${Me.AbilityReady["Mend"]}) /doability "Mend"

=======================================================================================

Ends macro saying

NatimbiHunter.mac@266 (
((${Me.PctHPs}<40)&&(${Me.AbilityReady["Mend"]}) /doability "Mend"
NatimbiHunter.mac@233 (CombatSub):/call SpecialIt
NatimbiHunter.mac@97 (Main):/if (${RV_HasTarget}) /call CombatSub

The current macro has ended

Usage: /if (<condition>) <command>

========================================================================================

That is the error code I have tried several different ways to make the mend portion of SpecialIt work but nothing seems to. Can anyone point me in the right direction here?

thanks

adv

SlimFastForYou
a hill giant
a hill giant
Posts: 174
Joined: Sat Jan 24, 2004 1:38 am

Post by SlimFastForYou » Mon Sep 06, 2004 9:37 pm

Original Line you posted:
/if ((${Me.PctHPs}<40)&&(${Me.AbilityReady["Mend"]}) /doability "Mend"

I think the author meant for the line to be like this:
/if ((${Me.PctHPs}<40)&&(${Me.AbilityReady["Mend"]})) /doability "Mend"

This should work too:
/if (${Me.PctHPs}<40&&${Me.AbilityReady["Mend"]}) /doability "Mend"



Seems like whoever wrote this accidentally left off a closing parenthesis (he had two parenthesis open, but only closed one).

advolente
decaying skeleton
decaying skeleton
Posts: 8
Joined: Tue Nov 18, 2003 6:01 pm

Post by advolente » Tue Sep 07, 2004 12:16 am

/bonk

Thanks, didn't see that! the original one was very wrong, probably worked at the time but hadn't been maintained...

Thx again

Adv