WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Macro Help (https://www.wowinterface.com/forums/forumdisplay.php?f=140)
-   -   Macro-ing a mouseover heal. (https://www.wowinterface.com/forums/showthread.php?t=39001)

BizWax 02-20-11 08:35 AM

Macro-ing a mouseover heal.
 
You know the priest spell 'heal'. I tried to make a macro for it so that it would be cast at my mouseover.
Code:

#showtooltip
/cast[@mouseover,exists] [] Heal;

for some reason it doesn't work. I have the same macro for flash heal, and it works just fine, but not for heal.

Any insights?

leo81202 02-20-11 08:45 AM

Quote:

Originally Posted by BizWax (Post 230177)
You know the priest spell 'heal'. I tried to make a macro for it so that it would be cast at my mouseover.
Code:

#showtooltip
/cast[@mouseover,exists] [] Heal;

for some reason it doesn't work. I have the same macro for flash heal, and it works just fine, but not for heal.

Any insights?

/cast [@mouseover,exists] [] Heal

the spaces make a difference

BizWax 02-20-11 08:52 AM

Quote:

Originally Posted by leo81202 (Post 230178)
/cast [@mouseover,exists] [] Heal

the spaces make a difference

curse me and my C# background

thanks man

Taryble 02-20-11 09:32 AM

the only one that matters is the one after the word "cast" - if you're doing a long macro and pushing the 255-character limit, the spaces between brackets and spell names can be removed, like so
Code:

/cast [@mouseover,help][]Heal
FYI, the "help" flag only attempts to cast on a friendly mouseover target that exists (yes, the "exists" flag is included automatically in both "harm" and "help").

Dawn 02-20-11 10:47 AM

The following macro is best, if you actually want to extend/add to the behaviour of a helpfull spell.

1. Normal behaviour: you target something and cast the spell
2. /cast [@mouseover,help] behaviour: you mouseover something and cast the spell, you have to mouseover something to cast the spell

3.
Code:

#showtooltip Holy Light
/cast [target=mouseover, help] Holy Light; [target=target, help] Holy Light; [target=player] Holy Light

This will cast the spell on your target if you do not mouseover something.
It will cast the spell on yourself if you have no target and do not mouseover something.
It will cast the spell on something you mouseover.

All In One solution. ;)

Ketho 02-20-11 01:11 PM

Quote:

Originally Posted by Dawn (Post 230186)
Code:

#showtooltip Holy Light
/cast [target=mouseover, help] Holy Light; [target=target, help] Holy Light; [target=player] Holy Light


not to be nitpicky, but I'd shorten it some more
Code:

#showtooltip
/cast [@mouseover,help][@target,help][@player] Holy Light


karmamuscle 02-20-11 02:11 PM

Quote:

Originally Posted by Ketho (Post 230194)
not to be nitpicky, but I'd shorten it some more
Code:

#showtooltip
/cast [@mouseover,help][@target,help][@player] Holy Light


Will the selfcast modifier work with this?

Dawn 02-20-11 03:26 PM

No idea, I'd say try it and report back. ;)

Self cast modifiers only work with mouseclicks, don't they? Only situation where you would need a self cast modifier is when having a friendly target and you want to heal yourself, right? You could mouseover yourself in this situation with this macro. Granted having it keybound. :rolleyes:

ravagernl 02-20-11 06:38 PM

Quote:

Originally Posted by ckramme (Post 230198)
Will the selfcast modifier work with this?

You can hardcode a right mouse button/self cast modifier.
Code:

/cast [@player,mod][@player,btn:2][@mouseover,help][@target,help][] Holy Light
I added [] to the end for tooltip reasons.

zynix 02-21-11 06:02 AM

I would add yet another check: nodead
Code:

/cast [@mouseover,help,nodead][@target,help,nodead][@player][] Heal
Because, if you accidently mouseover a dead person, it will try and cast Heal, which causes a fail to occour; even if you have a target, which fulfills these conditions.
So therefore, I would add the nodead check.

Taryble 02-21-11 09:59 AM

Here's probably what I'd do if I was writing it for myself:
Code:

#showtooltip
/cast [@mouseover,help, nodead][@target,help, nodead][] Holy Light

Yes. I removed the "@player" tag. Why? Because [] means that if it doesn't meet any of the prior sets of conditions, then it follows Normal Casting Rules - which includes the self-cast modifier, and automatic self-casting (ie it won't cast a healing spell on an enemy, it'll instead cast it on self).

Akkorian 02-21-11 07:13 PM

Code:

#showtooltip
/cast [@mouseover,help,nodead] [help,nodead] [] Holy Light

“@target” is the default unit for conditons, so you don’t really ever need to write it out. :)

Zagrei 03-07-11 07:30 PM

Quote:

Originally Posted by Akkorian (Post 230314)
Code:

#showtooltip
/cast [@mouseover,help,nodead] [help,nodead] [] Holy Light

“@target” is the default unit for conditons, so you don’t really ever need to write it out. :)

If I wanted to have TWO spells macroed to that, utilizing the modifier key, how would I write it?

Akkorian 03-07-11 08:22 PM

Code:

#showtooltip
/cast [@mouseover,help,nodead,mod:shift] [help,nodead,mod:shift] [mod:shift] Flash of Light; [@mouseover,help,nodead] [help,nodead] [] Holy Light

Change “mod:shift” to the modifier key you want to use. If you wanted to cast the other spell on right-click instead of with a modifier key, change it to “btn:2”.

Ashamam 03-07-11 08:49 PM

I typically set the priority like this

@mouseover
@focus
@target
@player

I then set my tank assignment to focus. The benefit of this is that hitting a keybind for a heal always goes to the tank when you aren't mouseovering a unit. Kind of a failsafe for me, if I'm raid healing i just need to edge the mouse off the raid frames to dump some quick tank heals. Plus by using specific focus buff bars it makes it easier to keep a close eye on weakened soul and the like.


All times are GMT -6. The time now is 06:12 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI