So I wanted to share a very useful macro from /u/Grayvves on the WoW reddit found over in this post. The macro itself is posted below.
What this macro basically does is, when you are targeting a creature and use this macro it will say "[Target Name] at [Map Pin Location] in /1. This macro is useful for sharing in general chat where the location of a rare elite is, like Rustfeather for example, using the new Map Pin system instead of using co-ordinate mods.
/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..' at '..b.GetUserWaypointHyperlink(),'CHANNEL',_,1);b.ClearUserWaypoint()
Anyway, this is a very useful macro and I thought it would be worth sharing with everyone. All credit goes to Grayvves of reddit for making this super helpful macro and some how, the mad lad, fitting it within the 255 character limit macros are allotted.
Edit: Changed how the macro was linked, the forums was auto transforming ( c ) into the copyright symbol (c). If you copied the old quote of the macro try the new one instead, sorry for the fail quote. Honestly, it would be great if there was an easier way to go about this through some kind of macro call like ā/MapPin @Targetā or something. I am sure someone will eventually make an addon for sending messages with more info like mob health% and stuff but until then there is at least this macro made by Grayvves
Edit 2: Apparently some alliance players are having issues with this macro and one of the comments said that this worked if its not working on Alliance.
/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..' at '..b.GetUserWaypointHyperlink(),'CHANNEL',c,1);b.ClearUserWaypoint()
So if the first one does not work on your Alliance toon then give the second one a try.