WoW:API GetAccountExpansionLevel: Difference between revisions
Jump to navigation
Jump to search
(New page: {{wowapi}} Returns level of expansion enabled for currently playing account. <pre> expansionLevel = GetAccountExpansionLevel() </pre> == Parameters == === Returns === expansionLevel :; ...) |
(Updated for WotLK, Added example code from FrameXML) |
||
| Line 1: | Line 1: | ||
{{wowapi}} | {{wowapi}} | ||
Returns level of expansion enabled for currently playing account. | Returns level of expansion enabled for currently playing account. | ||
expansionLevel = GetAccountExpansionLevel() | |||
== Parameters == | == Parameters == | ||
=== Returns === | === Returns === | ||
expansionLevel | :; expansionLevel : Number - 0 = None, 1 = [[World of Warcraft: The Burning Crusade|Burning Crusade]], 2 = [[World of Warcraft: Wrath of the Lich King|Wrath of the Lich King]] | ||
== Examples == | |||
Appears in "FrameXML/ReputationFrame.lua" line 15. | |||
MAX_PLAYER_LEVEL_TABLE = {}; | |||
MAX_PLAYER_LEVEL_TABLE[0] = 60; | |||
MAX_PLAYER_LEVEL_TABLE[1] = 70; | |||
MAX_PLAYER_LEVEL_TABLE[2] = 80; | |||
Calling this gives the maximum level the player can reach depending on expansion installed. | |||
MAX_PLAYER_LEVEL_TABLE[GetAccountExpansionLevel()]; | |||
Revision as of 03:02, 3 March 2009
← WoW API < GetAccountExpansionLevel
Returns level of expansion enabled for currently playing account.
expansionLevel = GetAccountExpansionLevel()
Parameters
Returns
- expansionLevel
- Number - 0 = None, 1 = Burning Crusade, 2 = Wrath of the Lich King
Examples
Appears in "FrameXML/ReputationFrame.lua" line 15.
MAX_PLAYER_LEVEL_TABLE = {};
MAX_PLAYER_LEVEL_TABLE[0] = 60;
MAX_PLAYER_LEVEL_TABLE[1] = 70;
MAX_PLAYER_LEVEL_TABLE[2] = 80;
Calling this gives the maximum level the player can reach depending on expansion installed.
MAX_PLAYER_LEVEL_TABLE[GetAccountExpansionLevel()];