Forum Settings
       
Reply To Thread

Macro TroubleFollow

#1 Feb 11 2009 at 10:57 PM Rating: Decent
Im currently having some trouble trying to get a macro to work

what i want is Power Word: Shield to cast on my mouse click, and then on anyone i choose (the same as just clicking the default button with the LMB)
but if i have an enemy selected it should cast on me.

i was going to add additional functionality when i figured it out how to do it.
Unfortuneatly i had it working but something went wrong with my PC and it crashed taking the ruddy code with it!

Maybe i should clarify what i need:
if a friendly is selected then cast Power Word: Shield on them
if an enemy is selected then cast Power Word: Shield on self
Else, just select Power Word: Shield

i know its possible and im extemley tired so any help would be greatly appreciated.

thanks, Quozzo

Edited, Feb 12th 2009 3:03am by quozzo
#2 Feb 12 2009 at 6:05 AM Rating: Excellent
****
4,684 posts
I'm not sure if it's possible to tell a macro to just 'select' a spell. You could try this;
Quote:
#showtooltip
/cast [harm,exists,target=player] Power Word: Shield; Power Word: Shield

That macro should behave like the ordinary Power Word: Shield spell with the exception that it uses PW:S on yourself if you have a hostile target selected. Which *should* mean it behaves like you've asked for it...

Quote:
i know its possible and im extemley tired so any help would be greatly appreciated.


Also, get some rest ;P
#3 Feb 12 2009 at 2:25 PM Rating: Good
Enable "auto self-cast" in your interface. Yourself is always the default target, when your are focused on a hostile one and you want to use a beneficial spell.
Further, an add-on Healbot can pretty much do what you want with all your non-harmful spells. I can shield myself without a macro, or just do something like Shift-click someone's name and they will be shielded/healed/buffed, etc.

Edited, Feb 12th 2009 5:27pm by sederix
#4 Feb 12 2009 at 3:00 PM Rating: Good
****
4,684 posts
Quote:
Enable "auto self-cast" in your interface. Yourself is always the default target, when your are focused on a hostile one and you want to use a beneficial spell.


Yes, but

Quote:
what i want is Power Word: Shield to cast on my mouse click, and then on anyone i choose (the same as just clicking the default button with the LMB)
but if i have an enemy selected it should cast on me.

Quote:
Else, just select Power Word: Shield


Enabling auto self-cast would make it impossible for you to 'select' the spell since it would always selfcast it instead.
#5 Feb 12 2009 at 4:41 PM Rating: Good
**
717 posts
Haven't really used it in this manner but maybe using a click macro?

/click ActionButton1

Where PW:S is located on Main Bar slot 1 and the above macro is on a button that is keybound to the LMB. Auto self-cast would be on in case you click a non-shieldable target.

This doesn't sound right but might spark a few ideas.
#6 Feb 12 2009 at 4:51 PM Rating: Decent
You are always the default target if the focus is on a hostile one. If you select a player, then it will cast on them, which is why I suggested using an add-on for casting on players in your group or raid.
I just use the hotkey for shield; no need for a macro or add-on if it's just myself.

If you want to use two different spells, but use a different one upon clicking, then the syntax is something like this:

/cast [button:1]Action;[button:2]Action


Edited, Feb 12th 2009 7:52pm by sederix
#7 Feb 12 2009 at 8:32 PM Rating: Decent
Mozared wrote:
/cast [harm,exists,target=player] Power Word: Shield; Power Word: Shield


That just seems to act like a normal PW:S so i deleted the last PW:S in the macro and nothing happened, confirming that the macro command is wrong and just the last PW:S was being cast, BTW instead of having something like:
/cast [help] Flash of Light; Flash of Light

you can add another set of empty conditions meaning if all else fails, it will still chose the spell as normal, such as;
/cast [help] [ ] Flash of Light

that might save a few characters.

Sederix wrote:
Enable "auto self-cast" in your interface.


The reason i don't do that is because i prefere the freedom of moving my mouse around and picking someone manualy, which inturn i may cast the spell on myself, but thats what the Alt button is made for ;)

#8 Feb 13 2009 at 1:44 PM Rating: Good
**
717 posts
Quote:
if a friendly is selected then cast Power Word: Shield on them
if an enemy is selected then cast Power Word: Shield on self
Else, just select Power Word: Shield


Without enabling auto self-cast, I don't think this can work. You cannot test a conditional on one target and then cast on another unless it is yourself via auto self-cast afaik. I get most of my macro info from Cogwell's wiki. It is fairly comprehensive and not too difficult to follow with the examples used.

Quote:
...and the above macro is on a button that is keybound to the LMB.

Tried to do this, but it seems that mouse buttons 1 & 2 are protected and cannot be bound to action buttons. No easy button here. =(
#9 Feb 14 2009 at 8:25 PM Rating: Decent
***
1,330 posts
Since we have a macro thread going... ;-)

I have recently started using mouseover macro's for my heals and use clique for cleanses, dispels, pw:s, pain suppression etc.

What I am wanting to do with the heals at this point is make it so that if I do not have my mouse over someone it casts on my target, that way I can use the mousover for raid healing but don't have to worry about that for healing my tank. Any suggestions on doing this?

Also how do I get the tooltips to display the spell info rather than the macro name?

#10 Feb 15 2009 at 6:34 AM Rating: Excellent
**
717 posts
Dread Lord SunSoarer wrote:
Since we have a macro thread going... ;-)

I have recently started using mouseover macro's for my heals and use clique for cleanses, dispels, pw:s, pain suppression etc.

What I am wanting to do with the heals at this point is make it so that if I do not have my mouse over someone it casts on my target, that way I can use the mousover for raid healing but don't have to worry about that for healing my tank. Any suggestions on doing this?

Also how do I get the tooltips to display the spell info rather than the macro name?


Standard mouseover macro (select ? for icon):

#showtooltip
/stopcasting
/cast [target=mouseover,exists][target=target,help][] <spell>

*Replace <spell> with any beneficial spell.

First line will cause the icon and the appropriate tooltip to be displayed.
Second line will interrupt any existing cast.
Third line will check the conditionals (the parts within braces) in order from left to right. As soon as it determines that the conditional is true, it will pass the parameters (spell) to the command (cast).
In this macro, it will check your mouseover for a target first, then a targetted friendly second, and finally the empty braces, which denotes no target. The last part will cast depending on your "auto self-cast" setting. If self-cast is off, you get the "Action Fingers", your mouse icon glows because no target has been selected, but the command has been activated and is awaiting a target.
#11 Feb 15 2009 at 9:51 PM Rating: Decent
***
1,330 posts
Brilliant, thanks very much.
#12 Feb 16 2009 at 2:06 AM Rating: Excellent
***
1,180 posts
Trylofer wrote:
#showtooltip
/stopcasting
/cast [target=mouseover,exists][target=target,help][] <spell>


The bold part can be removed and it will still work the same and if you're using the default macro tool you never know when 14 characters will be really important.
Reply To Thread

Colors Smileys Quote OriginalQuote Checked Help

 

Recent Visitors: 232 All times are in CST
Anonymous Guests (232)