PDA

View Full Version : Need help with creating a smart nuke/heal focus macro



echo
03-06-2008, 07:09 PM
Hello all!

I am trying to make a macro which will nuke the focus by default; but one that will cast a heal on the focus' target if I were to hold down a modifier key like control or shift.

(so for example, when I hit key #5, it will cast a nuke, but if I were to hold down control + 5, then it would cast a flash heal. and maybe if I held down shift + 5, then cast a greater heal)

If someone is able to help me, it would be greatly appreciated. I have tried to do this myself but so far the system only recognizes the default keypress, and when I used the modifier: shift option, nothing happened. I copied and pasted it from a separate smart heal macro I found from here, which works well. But for some reason when I copied it into my new macro, it just wouldnt work. (got a "this spell is not ready" message, only it kept giving me that message no matter how many times I pressed it.)

Thank you in advance for your time and have a great day! :)

maqz
03-06-2008, 11:23 PM
Could you post the macro you have tried? Something like this maybe.



#showtooltip
/cast [mod:shift,target=focustarget,help] Heal; [mod:ctrl,target=focustarget,help] Other Heal; [target=focus] Nuke


A few possible problems:
1. Spelling errors.
2. Make sure the spells with modifiers comes first in the macro.
3. You could have shift+5 bound to something else already.
4. Sometimes there are problems when cutting and pasting. Maybe some tabs or spaces at the end of a line that you can't see.

echo
03-07-2008, 01:45 PM
Thank you for your help maqz!! :)

This is the macro that I tried to make

#showtooltip
/cast [target=focus, nodead, harm] lightning bolt
/cast [target=focus, noharm, nodead] lesser healing wave
/cast [target=focus, noharm, nodead, modifier:ctrl] healing wave
/cast [target=focus, noharm, nodead, modifier:shift] Cure disease

and it works just fine with the default keypresses, but when i tried to use the modifier keys nothing would happen.

Thank you very much for the info about putting modifiers first though. so if i were to shift the order of my macro to something like this


#showtooltip
/cast [target=focus, noharm, nodead, modifier:ctrl] healing wave
/cast [target=focus, noharm, nodead, modifier:shift] Cure disease

/cast [target=focus, nodead, harm] lightning bolt
/cast [target=focus, noharm, nodead] lesser healing wave

then it should work? Thank you again for taking time out to help me. Really appreciate it! :)

Djarid
03-07-2008, 02:23 PM
you don't need to change the order if you use the nomodifier option

but why not try this



/cast [target=focus, nodead, harm] lightning bolt; [target=focus, help, nodead,nomodifer] lesser healing wave; [target=focus, help, nodead, modifier:ctrl] healing wave; [target=focus,help, nodead, modifier:shift] Cure disease

which is just


/cast [target=focus, nodead, harm] lightning bolt
/cast [target=focus, help, nodead,nomodifer] lesser healing wave
/cast [target=focus, help, nodead, modifier:ctrl] healing wave
/cast [target=focus,help, nodead, modifier:shift] Cure disease
on one line

Note that noharm is not the same as help.

from WowWiki


help & harm

The [help] condition is true when the unit can receive a beneficial effect, e.g., a healing spell. The [harm] condition is true when the unit would get an adverse effect, e.g., a damaging spell.

maqz
03-07-2008, 02:45 PM
Also, you said you wanted to cast the healing spells on the target of the focus. That would be [target=focustarget].

Moxy
03-07-2008, 09:05 PM
Thank you for your help maqz!! :)

This is the macro that I tried to make

#showtooltip
/cast [target=focus, nodead, harm] lightning bolt
/cast [target=focus, noharm, nodead] lesser healing wave
/cast [target=focus, noharm, nodead, modifier:ctrl] healing wave
/cast [target=focus, noharm, nodead, modifier:shift] Cure disease

and it works just fine with the default keypresses, but when i tried to use the modifier keys nothing would happen.

Thank you very much for the info about putting modifiers first though. so if i were to shift the order of my macro to something like this


#showtooltip
/cast [target=focus, noharm, nodead, modifier:ctrl] healing wave
/cast [target=focus, noharm, nodead, modifier:shift] Cure disease

/cast [target=focus, nodead, harm] lightning bolt
/cast [target=focus, noharm, nodead] lesser healing wave

then it should work? Thank you again for taking time out to help me. Really appreciate it! :)For your macro to work, you would have to put the modifier lines first. Otherwise, no matter what modifier you hold, the first line will still flag as true. :)

echo
03-08-2008, 01:53 AM
Thanks for the help everyone :) I really appreciate you all taking the time out to help me. I'm going to go login and try out all the suggestions now. Thanks once again and have a great weekend! :D