PDA

View Full Version : Mouseover Raid Warning Macro


Kugan
20-06-2007, 12:28 PM
I think it would be easier to explain what I’m trying to do, than what I want.

I have a few mouseover macros, eg.
/cast [target=mouseover, help, nodead] Blessing of Protection.

What I want to do is write similar macros for raid warnings for recurring situations in PuGs.

e.g.
[Rogue Name], get out of the AoE and slap a bandage on yourself.
[Priest Name], focus all healing power on me.
[Mage Name], attack the target with the skull on it.

So basically, I just want to mouseover a player, press a button, and his/her name would immediately be replaced in the [Player Name] field.

e.g.
/rw [target=mouseover, help, nodead] %t, get out of the AoE and slap a bandage on yourself.

Anyone know if it’s possible?

Final note:
I was pretty sure that I posted this only a few seconds ago, but now I can’t find it. If it does appear twice somewhere, I do humbly apologise.

*Must be going mad…*

Rowaa
21-06-2007, 11:05 AM
/run local n=UnitName("mouseover") if(n) then SendChatMessage(n..", get out of the AoE and slap a bandage on yourself.", "RAID_WARNING") end

You can even add /stopmacro [noexist, nohelp] as first string to ensure you won't recite it to monsters. :) In this case you can shorten second string to:
/run SendChatMessage(UnitName("mouseover") ..", get out of the AoE and slap a bandage on yourself.", "RAID_WARNING")

Kugan
22-06-2007, 04:53 PM
Thank you Rowaa!!

I'll try this tonight to see how it works. (I'll owe you a lot of gold that I would have spend on repair costs if it does :))

Rowaa
25-06-2007, 05:50 PM
Oh, just noticed that I forgot to retarget /stopmacro! Use this instead of above:
/stopmacro [target=mouseover,noexist,nohelp]