WoW:API GetMapNameByID: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Created page with "{{wowapi}} __NOTOC__ mapname = GetMapNameByID(mapID) Returns the localized name for a mapID. ==Parameters== ===Arguments=== :mapID ===Returns=== :;mapname : String - The...")
 
m (Move page script moved page API GetMapNameByID to API GetMapNameByID without leaving a redirect)
 
(No difference)

Latest revision as of 04:46, 15 August 2023

WoW API < GetMapNameByID

Returns the localized name for a mapID.

mapname = GetMapNameByID(mapID)

Parameters[edit]

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

Returns[edit]

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

Example[edit]

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

See also[edit]