08.20Setting Raid Target with Icon
Set which Raid Target Icon will be shown over a mob or raid member. In patch 1.11, Blizzard added the ability for a raid/party leader or assistant leader to assign up to 8 different target icons to mobs or players. These icons are visible only to other players within the raid or party.
SetRaidTarget(“unit“, iconId);
unit
String – The UnitId representing the desired target for the icon.
target – Assign raid icon to mob you targeted (active).
mouseover – Assign raid icon to mob where you mouse cursor is. Use this for faster marking.
iconId
Number – Icon id from 0 to 8:
0 = no icon
1 = Yellow 4-point Star
2 = Orange Circle
3 = Purple Diamond
4 = Green Triangle
5 = White Crescent Moon
6 = Blue Square
7 = Red “X” Cross
8 = White Skull
To set a skull over your current target:
/script SetRaidTarget(“target”,8);
Remember:
This macro only usable for party/raid leader.
#showtooltip cannot be used here. You have to use an icon.
Starting from Patch 2.4 allow players to post raid icon on chat channel. {icon_shape} for example {star} will show star on chat channel.
Example
/script SetRaidTarget(”target”, 8);
/p Kill the %t ({skull}) first/script SetRaidTarget(”target”, 7);
/p Kill the %t ({X}) second/script SetRaidTarget(”target”, 5);
/p Sleep/crowd control the (%t) {moon}/script SetRaidTarget(”target”, 1);
/p Stun the %t ({star})





(3 votes, average: 4.33 out of 5)
I want to use this macro, but when I do all it does is the party chat part. It does not actually put the icon on the target. Any ideas?
Did you create SetRaidTarget first, so the script has something to call?