Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
This is no longer a part of the World of Warcraft API.
|
Returns a list of continent names and IDs.
id1, name1, id2, name2, ... = GetMapContinents();
Returns[]
- id
- Number - ?
- name
- String - The name of the continent.
Example[]
local continents = { GetMapContinents() } for i=1, #continents, 2 do print(continents[i] .. ": " .. continents[i+1]) end
Result[]
A list of the continent names is displayed in the default chat frame.
13: Kalimdor 14: Eastern Kingdoms 466: Outland 485: Northrend 751: The Maelstrom 862: Pandaria 962: Draenor 1007: Broken Isles 1184: Argus
Details[]
- Note that as more expansions are released, the output of this function will probably change. Also, the output differs based on the localization of the client.
- The order continents are returned in corresponds to the GetCurrentMapContinent return values.
Patch changes[]
- Patch 8.0.1 (2018-07-17): Removed, as part of the map API overhaul.
- Patch 6.0.2 (2014-10-14): Added
id
returns, which are interspersed betweenname
returns.