I'm trying to do two things with a macro. I don't know how to do it tho.
Cast Resurrection
Say "(Resurrection) on 'PlayerName'". I want the (Resurrection) to be the actual spell link. I want it to use raid or party depending on whether im in raid or not.
Phanx has the arguments switched around. Should be message first:
Code:
/run SendChatMessage("Casting "..GetSpellLink("Resurrection").." on "..UnitName("target") or "No Target",GetNumRaidMembers()>0 and "RAID" or "PARTY")
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh
/run SendChatMessage("Casting "..GetSpellLink("Resurrection").." on "..UnitName("target") or "No Target",GetNumRaidMembers()>0 and "RAID" or GetNumPartyMembers()>0 and "PARTY" or "SAY")
Simply added a GetNumPartyMembers() and make it use "SAY" if you are not in raid nor party.