|
Thanks for the help - i should really explain what I'm trying to do and give code for my work so far :)
I have this so far:
/script SetRaidTarget("target", 1)
/cast Polymorph(Rank 3)
/script SendChatMessage("SHEEPING Level " .. UnitLevel("target") .. " %t", "party");
Basically what I want to happen is I set the raid icon (done), cast to a sheep (can do), and announce the victim to the party chat (done).
What i'd also like to happen is ONLY output that info to the party chat if the cast has been a sucess. At the moment if I have no enemy selected and accidently click the macro button, it outputs "SHEEPING Level 0 <no target>" to the party chat.
I don't wish to annoy anyone with this macro, so only want to announce if I've selected the target and then sheeped.
Any further help? Sorry I didn't post this much info before, i was still working on it :)
|