how to mod this line?

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

mackster
a ghoul
a ghoul
Posts: 95
Joined: Mon Sep 09, 2002 3:02 pm

how to mod this line?

Post by mackster » Fri Apr 16, 2004 2:35 pm

this is a modification to m0nk's excellent stick.mac i am making to replace the SK spell section to work for a paladin.

here is the line:

Code: Select all

 /if n $char(hp,pct)<90 /if n $char(buff,"Supernal Cleansing")==0 /if n $char(gem,"Supernal Cleansing")>0 /if n $char(mana,pct)>20 /if n $char(hp,pct)<90 /cast "Supernal Cleansing" 
what i need it to do is cast the spell on me, its casting at the moment but only on the mob heh. how could i make it cast the heal on me, then go back to attacking the mob?

thanks for any help

Rusty~
a hill giant
a hill giant
Posts: 244
Joined: Wed Apr 14, 2004 2:55 pm

Post by Rusty~ » Fri Apr 16, 2004 3:07 pm

didn't test it but this should work i think!

Code: Select all

/if (n $char(hp,pct)<90 && n $char(buff,"Supernal Cleansing")==0 && n $char(gem,"Supernal Cleansing")>0 && n $char(mana,pct)>20) {
 /keypress toggletarget
 /cast "Supernal Cleansing" 
 /keypress toggletarget 
}

mackster
a ghoul
a ghoul
Posts: 95
Joined: Mon Sep 09, 2002 3:02 pm

Post by mackster » Fri Apr 16, 2004 3:16 pm

Thanks Rusty! that works very nicely :D