WoW:API GetMapContinents: Difference between revisions
Jump to navigation
Jump to search
m (Robot: converting/fixing HTML) |
(lua 5.1) |
||
| Line 10: | Line 10: | ||
==Example== | ==Example== | ||
local continentNames, key, val = { GetMapContinents() } ; | local continentNames, key, val = { GetMapContinents() } ; | ||
for key, val in continentNames do | for key, val in pairs(continentNames) do | ||
DEFAULT_CHAT_FRAME:AddMessage("#" .. key .. ": " .. val); | DEFAULT_CHAT_FRAME:AddMessage("#" .. key .. ": " .. val); | ||
end | end | ||
Revision as of 02:35, 24 March 2007
Returns a list of continent names.
continent_1, continent_2, ..., continent_N = GetMapContinents();
Parameters
Returns
- continent_1, continent_2, ..., continent_N
- continent_i
- String - The name of the i'th continent, (i corresponds to the value GetCurrentMapContinent() returns)
Example
local continentNames, key, val = { GetMapContinents() } ;
for key, val in pairs(continentNames) do
DEFAULT_CHAT_FRAME:AddMessage("#" .. key .. ": " .. val);
end
Result
A list of the continent names is displayed in the default chat frame.
#1: Kalimdor #2: Eastern Kingdoms #3: Outland
Details
Note that as more expansions are releases, the output of this function may change.