This macro will place a skull raid mark on your target and announce your co-ordinates and the health of the target to the general channel.
/stopmacro [dead][noexists]
/run SetRaidTarget("target",0)
/1 {triangle} %t is up {triangle}
/run SetMapToCurrentZone()local x,y=GetPlayerMapPosition("player")s=(format("{triangle} %.0f,%.0f {triangle} ",x*100,y*100)..((math.floor((UnitHealth("target")/UnitHealthMax("target"))* 100)).." % {triangle}"))SendChatMessage(s,"CHANNEL",nil,1)
/run SetRaidTarget("target",8)
The macro will not announce if you have no target or your target is dead.
If you want to announce to a different channel change the number 1 on line 3 & 6.
You can change the raid target mark from skull to another by changing 8 on line 7.
You can also change the raid icon in chat by replacing triangle on lines 3,4,5 & 6.
No comments:
Post a Comment