Quantcast
WoWInterface - View Single Post - Can you macro a way to add map pin?
View Single Post
05-28-21, 06:33 AM   #2
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 571
Code:
/run local c,p,t,m=C_Map,"player","target" m=c.GetBestMapForUnit(p)c.SetUserWaypoint({position=c.GetPlayerMapPosition(m,p),uiMapID=m})SendChatMessage("%t "..floor((UnitHealth(t)/UnitHealthMax(t))*100).."% "..c.GetUserWaypointHyperlink(),"CHANNEL",nil,1)
This macro will create a waypoint at your location and share it, along with your target's name and health percentage, to the General channel. Delete SendChatMessage and everything after it if you just want the waypoint creation.
  Reply With Quote