WoW API: GetMapNameByID

From AddOn Studio
Revision as of 04:46, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetMapNameByID to API GetMapNameByID without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < GetMapNameByID

Returns the localized name for a mapID.

mapname = GetMapNameByID(mapID)

Parameters

  • mapID (number) - The mapID of the map to retrieve the name for

Returns

  • mapname (string) - The real name of an instance or zone map

Example

 mapID = GetCurrentMapAreaID()
 mapname = GetMapNameByID(mapID)
 print("Map:"..mapname )
An message appears in the chat window showing the following text: "Map: The Stockade"

See also