WoW API < GetMapContinents

Returns a list of continent names.

continent_1, continent_2, ..., continent_N = GetMapContinents();

Parameters[edit | edit source]

Returns[edit | edit source]

continent_1, continent_2, ..., continent_N
String - The name of the i'th continent, (i corresponds to the value GetCurrentMapContinent() returns)

Example[edit | edit source]

local continentNames, key, val = { GetMapContinents() } ;
for key, val in pairs(continentNames) do
 DEFAULT_CHAT_FRAME:AddMessage("#" .. key .. ": " .. val);

Result[edit | edit source]

A list of the continent names is displayed in the default chat frame.

#1: Kalimdor
#2: Eastern Kingdoms
#3: Outland
 #4: Northrend
 #5: The Maelstrom
#6: Pandaria
 #7: Draenor

Details[edit | edit source]

Note that as more expansions are releases, the output of this function may change.

Community content is available under CC-BY-SA unless otherwise noted.