Saturday, November 3, 2018

Updating your WoW location macro

Long time, no see.

If you used to use a location macro, the map format has apparently changed, and mine, at least, broke.

This one works for me now:

/script px, py = C_Map.GetPlayerMapPosition(C_Map.GetBestMapForUnit("player"), "player"):GetXY()
/script DEFAULT_CHAT_FRAME:AddMessage(format ("[ %s ] %.1f , %.1f",GetZoneText(),px*100,py*100));