Map Coordinate Macros Stopped Working

When posting in this forum, please always include:

  • Whether you’re playing WoW Classic Era or Season of Discovery or Cataclysm Classic.
  • Any detailed steps you believe should be taken to reproduce the issue.
  • The character name and realm on which you encountered the issue, if it differs from your posting character.
    Classic and Harcore

Tried:
/script px,py=GetPlayerMapPosition(“player”)
/script SendChatMessage(format(“You are at %s (%.2f, %.2f)”,GetZoneText(), px100, py100));

and

/script px,py=GetPlayerMapPosition(“player”)
/script DEFAULT_CHAT_FRAME:AddMessage(format(“%s (%.2f, %.2f)”,GetZoneText(), px100, py100));

as well as:

/run local p,f=“player”,CreateFrame(“Button”,nil,UIParent,“OptionsButtonTemplate”)f:SetPoint(“TOP”,0,0)f:SetScript(“OnUpdate”,function(s,e)x,y=C_Map.GetPlayerMapPosition(C_Map.GetBestMapForUnit(p),p):GetXY()f:SetText(format(“(%.1f,%.1f)”,x100,y100))end

These no longer display the coordinates at the top of the screen