This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Need a bit macro help
Post Reply
Return to board index
Post by
166227
This post was from a user who has deleted their account.
Post by
pelf
#showtooltip
/stopcasting
/cast Guardian Spirit
/stopmacro
/run if UnitExists("mouseover") then SendChatMessage("Guardian Spirit used on "..UnitName("mouseover").."!","RAID") end
Post by
166227
This post was from a user who has deleted their account.
Post by
Izichial
Edit: bugger, pelf beat it to me (leave reply halfwritten to do other stuff bad), I'll leave this here anyway.
Edit 2: /stopmacro before /stopcasting should prevent the latter from being called if the first is triggered, though.
Edit 3: Refer to Pelf's macro below for an improved version of the CoH/GS macro in this post.
#showtooltip
/stopmacro
/run SendChatMessage("Guardian Spirit cast on "..UnitName("mouseover"),"SAY",nil);
/stopcasting
/cast Guardian Spirit
This should work. It's only semi-smart as /stopmacro cannot check out of range or spell on cooldown (I believe it's possible or at least used to be but it's beyond my abilities to write as you need to use a different method).
The easiest way to handle this type of announce is probably an addon, try
http://wow.curse.com/downloads/wow-addons/details/rsa.aspx
(not using myself, only updated one I found with a quick search).
Rewrote my own CoH/GS macro (correction: my second one, I play with mouseover macros on one of my priests and without on the other) to show how you can include it in macros which use modifiers.
#showtooltip
/cast Guardian Spirit; Circle of Healing
/stopmacro
/stopcasting
/run SendChatMessage("Guardian Spirit cast on "..UnitName("target"),"RAID",nil);
There are methods to send to appropriate chat channels based on party size/type but it'll exceed the character limit in this specific macro, one more reason why you might wish to use an announce addon.
Post by
pelf
Good idea with the reversal of the conditionals. Makes it cleaner. You can omit the 3rd parameter if you're just going to pass
nil
to it. Also,
target=target
or
@target
(same thing) are implied, so you don't need those.
dead
implies
exists
as does
harm
or anything else that isn't
exists
. And, putting
/stopcasting
below the cast is going to do pretty much nothing. Also the Party/Raid check will take it up to 236 chars, so that fits too
:)
.
Soo...
#showtooltip
/stopcasting
/cast Guardian Spirit; Circle of Healing
/stopmacro
/run local c=GetNumRaidMembers()>0 and "RAID" or "PARTY" SendChatMessage("Guardian Spirit cast on "..UnitName("target"),c)
Thank you sooo much for this macro!
You're welcome.
Post by
Izichial
And, putting
/stopcasting
below the cast is going to do pretty much nothing.
Duh, knew there was something off. You solved the issue of my concern better anyway, didn't think of a conditional after /stopcasting. Macromaster Pelf to the rescue!
Post by
pelf
Macromaster Pelf to the rescue!
Oh I could get behind that.
pelf
<Macromaster>
Joined on 10/06/2006
Posts: 7,417
Role: Premium
Post by
Shellfish
Question, would this macro work with a mouse over of your unit frames, like grid. Or only a physical mouse over of their character. I'm thinking about scattered fights like Atramedes.
Post by
pelf
Mouseover will work for players and NPCs in the world (but not the player's model, IIRC) and any frame that is using the proper secure base frame, i.e. pretty much any frame in any unit frame addon. That would include grid.
For example, my Leap of Faith is on a mouseover macro. If I see someone's character standing in the fire, I don't have to find their frame, I can just LoF them out of the fire by hovering over their character model.
Post by
208327
This post was from a user who has deleted their account.
Post by
Pachuca
This is simple and works fine:
#showtooltip Greater Heal
/cast Inner Focus
/cast Greater Heal
Post by
208327
This post was from a user who has deleted their account.
Post by
Shellfish
the #showtooltip <insert spell name> Just shows the tool bar for whatever spell you insert in. So when you put your mouse over the macro in this instance it would look just like if you moused over your greater heal spell.
Post by
DraconisAerius
Consequently if you don't put a spell name in your #showtooltip line, the tooltip will show whatever spell is first, unless it's a /castsequence macro, where it will show whatever spell you are up to (which I find useful so you remember which one you're up to), or a modifier macro, then it will show which ever one is about to be cast (aka if you hold down the mod key it will show that spell, if you don't it will show the other one.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.