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})





(5 votes, average: 4.60 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?
How do you create SetRaidTarget? all i did was made a macro and copyed
/script SetRaidTarget(”target”, 8);
/p Kill the %t ({skull}) first
and all it did was said it in party chat
/script SetRaidTargetIcon(”target”, 8);
That’s all
When I use the macro /script SetRaidTargetIcon(”target”,
I receive I receive a LUA error.
Message: [string "SetRaidTargetIcon(”target”, 8)"]:1: unexpected symbol near ‘?Time: 01/08/11 11:59:31
Count: 2
Stack: [C]: in function `RunScript’
Interface\FrameXML\ChatFrame.lua:2032: in function `?’
Interface\FrameXML\ChatFrame.lua:4126: in function `ChatEdit_ParseText’
Interface\FrameXML\ChatFrame.lua:3737: in function `ChatEdit_SendText’
Interface\FrameXML\ChatFrame.lua:3775: in function `ChatEdit_OnEnterPressed’
[string "*:OnEnterPressed"]:1: in function
Locals: (*temporary) = “SetRaidTargetIcon(”target”, 8)”
Think I found the problem, through random trial and error… it seems that possibly the macro window in wow doesn’t like curly quotes.
I copied and pasted straight from here and got the same error, erased just the quote marks in the macro editor and retyped them and it worked fine, no error.
thank you Sannyl, I never would have thought of that and it worked for me aswell.
/script SetRaidTarget(“target”,
That one sets a skull, I tried and it worked ^^
If u wish to use this macro in Cata:
/run SetRaidTerget(“target, 1″);
like that
(No more script infront of stuff)
This is all nice…but how do you select the ICONS to show on the macro?…i dont mean the target…but the button bars themselves.
Since the targeting thingys dont show as spells, I cant figure out how to make the macro and have bartender show the icons on the bar for each of the various raid target icons.
I have created an 8 button bartender4 bar at the top of my screen. I have the macros, but they are all just “?”…and i want them to show the mark-icons instead. How can i do this?
Boof, EU Khadgar
Just add the icons
http://www.woofiles.com/dl-258829-1uuYUndN-Icons.zip
Put them in the Interface folder and you will have them in your macro menu
Regards
Submann, EU Kul Tiras
I am trying to create a macro to use a scrapbot contsruction kit and put a raid target icon on it. It will use the kit and post the message to chat but nothing I have tried will set the icon. So far I have:
/party scrapbot down
/use scrapbot construction kit
Like I said no problems with the chat or use item part just can’t get an icon seton it. If any one can help me to figure out how to set it it will be greatly appreciated