WoW API: GetMapNameByID

Revision as of 17:19, 15 June 2013 by Bear (talk | contribs) (Created page with "{{wowapi}} __NOTOC__ mapname = GetMapNameByID(mapID) Returns the localized name for a mapID. ==Parameters== ===Arguments=== :mapID ===Returns=== :;mapname : String - The...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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