|
Originally Posted by Grailyn
Hi-JACK but still on the macro topic...
Anyone know how to write a macro that will automatically target a specific raid icon? I could have sworn I saw someone post something that worked like that in the middle some some random thread a few weeks back, but I can't find it now that I need it.
|
http://www.wowwiki.com/Interface_Customization_FAQ
Q.Can I target mobs via raid icons? The ones set via the SetRaidTarget() API?
A No, and it is highly doubtful that we ever will. Blizzard explicitly does not want to allow unambiguous saving and restoring of targets programatically.
|
I don't think you can. You can find out what icon a targeted mob has assigned to it with
GetRaidTargetIndex, and set targets with
SetRaidTarget.
However, an event is triggered when raid target icons change.
RaidTargetUpdate
"RAID_TARGET_UPDATE"
Category: Party,Unit Info
New in 1.11. Fired when a raid target icon is changed or removed. Also fired when player join or leave a party or raid. arg1 is who gets updated.
Note: Does not get triggered if a mob wearing a raid target icon dies (the icon is removed from that mob, however.)
|
Someone who knows the UI system better than me might be able to use a channel system to allow the raid leader to share info about which mobs he has set targets over to a mod using RaidTargetUpdate, and then if the mobs had unique names the mod could associate icons with names. However, for fights like Garr where you have 8 mobs with identical names, I don't see a way to get a useful /target gold star kind of system. Which is a crying shame.
Hopefully someone better than me will come and disprove me now, and I can work on my LazyLock mod.