Hi, I'd like to share my enemy position in the chat when he invades my city. Something that says "Target name (HORDE) [map pin]"
So I already found 2 macros that send rare creatures position in the chat, I tryed to use some parts to make a new macro but I lack knowledge so I need your help.
Here the 2 macros I'm talking about
:
/run a=UnitName('target');b=C_Map.GetPlayerMapPosition(C_Map.GetBestMapForUnit('player'),'player');SendChatMessage(a..' RARE '..floor(b.x*100)..' '..floor(b.y*100)..' : '..floor(UnitHealth('target')/UnitHealthMax('target')*100)..'%','CHANNEL',nil,1);
|
This one says "Target name RARE coordinates : life%"
Exemple: Pig RARE 54 21 : 100%
/run a=UnitName('target');b=C_Map;c='player';d=b.GetBestMapForUnit(c);e=b.GetPlayerMapPosition(d,c);b.SetUserWaypoint(UiMapPoint.CreateFromCoordinates(d,e.x,e.y));SendChatMessage(a..' : '..b.GetUserWaypointHyperlink(),'CHANNEL',c,1);b.ClearUserWaypoint()
|
This one says "Target name : [map pin]"
Exemple: Pig : [map pin]
I already wrote the following but I need your help for the map pin thing...
/run a=UnitName('target');SendChatMessage(a..' (HORDE) ','CHANNEL',nil,1);
|