Thread Tools Display Modes
10-09-09, 10:11 PM   #1
Ither
A Firelord
 
Ither's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 497
Paladin Lay on Hand

I have a macro that casts LOH on target or myself if the target is NPC. It then blasts P and R chat saying I've casted LOH on. If it's casting on myself than the dang thing says the NPC's name. How do I make it say my name if I'm targeting an NPC? I can't do

/r Casting on %t
__________________
  Reply With Quote
10-10-09, 04:09 AM   #2
shkm
A Chromatic Dragonspawn
 
shkm's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 186
I would recommend getting Tankadin2 for things like this. It's a little overkill if you don't use the rest of the functionality, but I'm in the same boat and it works fine.
__________________
Quit WoW again on 17/04/2014.
  Reply With Quote
10-10-09, 07:21 AM   #3
Vilkku
An Aku'mai Servant
 
Vilkku's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 35
Code:
/run if not UnitPlayerControlled("target") then name = "<your name>" else name = UnitName("target") end SendChatMessage("Using LoH on " .. name, "PARTY"); SendChatMessage("Using LoH on " .. name, "RAID");
Should do the trick.
  Reply With Quote

WoWInterface » General Discussion » Class Discussions » Paladin Lay on Hand


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