Thread Tools Display Modes
02-20-11, 08:35 AM   #1
BizWax
A Defias Bandit
Join Date: Feb 2011
Posts: 2
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?
  Reply With Quote
02-20-11, 08:45 AM   #2
leo81202
A Kobold Labourer
Join Date: Oct 2008
Posts: 1
Originally Posted by BizWax View Post
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
  Reply With Quote
02-20-11, 08:52 AM   #3
BizWax
A Defias Bandit
Join Date: Feb 2011
Posts: 2
Originally Posted by leo81202 View Post
/cast [@mouseover,exists] [] Heal

the spaces make a difference
curse me and my C# background

thanks man
  Reply With Quote
02-20-11, 09:32 AM   #4
Taryble
A Molten Giant
 
Taryble's Avatar
Join Date: Jan 2009
Posts: 811
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").
__________________
-- Taryble
  Reply With Quote
02-20-11, 10:47 AM   #5
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
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.
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

  Reply With Quote
02-20-11, 01:11 PM   #6
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Originally Posted by Dawn View Post
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
  Reply With Quote
02-20-11, 02:11 PM   #7
karmamuscle
A Cobalt Mageweaver
 
karmamuscle's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 205
Originally Posted by Ketho View Post
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?
__________________
55 89 144 233 377 610 987 1597 2584 4181 6765
  Reply With Quote
02-20-11, 03:26 PM   #8
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
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.
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

  Reply With Quote
02-20-11, 06:38 PM   #9
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
Originally Posted by ckramme View Post
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.

Last edited by ravagernl : 02-20-11 at 06:41 PM.
  Reply With Quote
02-21-11, 06:02 AM   #10
zynix
A Cliff Giant
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 70
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.
  Reply With Quote
02-21-11, 09:59 AM   #11
Taryble
A Molten Giant
 
Taryble's Avatar
Join Date: Jan 2009
Posts: 811
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).
__________________
-- Taryble
  Reply With Quote
02-21-11, 07:13 PM   #12
Akkorian
A Flamescale Wyrmkin
 
Akkorian's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 111
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.
__________________
“Be humble, for you are made of earth. Be noble, for you are made of stars.”
  Reply With Quote
03-07-11, 07:30 PM   #13
Zagrei
A Cobalt Mageweaver
 
Zagrei's Avatar
AddOn Compiler - Click to view compilations
Join Date: Nov 2009
Posts: 246
Originally Posted by Akkorian View Post
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?
__________________
  Reply With Quote
03-07-11, 08:22 PM   #14
Akkorian
A Flamescale Wyrmkin
 
Akkorian's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 111
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”.
__________________
“Be humble, for you are made of earth. Be noble, for you are made of stars.”
  Reply With Quote
03-07-11, 08:49 PM   #15
Ashamam
A Murloc Raider
Join Date: Dec 2006
Posts: 7
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.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Macro Help » Macro-ing a mouseover heal.

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off