WoW:API GetAccountExpansionLevel: Difference between revisions
Jump to navigation
Jump to search
(bp) |
No edit summary |
||
| Line 4: | Line 4: | ||
== Returns == | == Returns == | ||
; expansionLevel : Number - 0 = | ; expansionLevel : Number - 0 = [[World of Warcraft|Classic]], 1 = [[World of Warcraft: The Burning Crusade|Burning Crusade]], 2 = [[World of Warcraft: Wrath of the Lich King|Wrath of the Lich King]], 3 = [[World of Warcraft: Cataclysm|Cataclysm]] | ||
== Examples == | == Examples == | ||
| Line 12: | Line 12: | ||
MAX_PLAYER_LEVEL_TABLE[1] = 70; | MAX_PLAYER_LEVEL_TABLE[1] = 70; | ||
MAX_PLAYER_LEVEL_TABLE[2] = 80; | MAX_PLAYER_LEVEL_TABLE[2] = 80; | ||
MAX_PLAYER_LEVEL_TABLE[3] = 85; | |||
Calling this gives the maximum level the player can reach depending on expansion installed. | Calling this gives the maximum level the player can reach depending on expansion installed. | ||
MAX_PLAYER_LEVEL_TABLE[GetAccountExpansionLevel()]; | MAX_PLAYER_LEVEL_TABLE[GetAccountExpansionLevel()]; | ||
Revision as of 10:45, 24 July 2010
← WoW API < GetAccountExpansionLevel
Returns level of expansion enabled for currently playing account.
expansionLevel = GetAccountExpansionLevel()
Returns
- expansionLevel
- Number - 0 = Classic, 1 = Burning Crusade, 2 = Wrath of the Lich King, 3 = Cataclysm
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;
MAX_PLAYER_LEVEL_TABLE[3] = 85;
Calling this gives the maximum level the player can reach depending on expansion installed.
MAX_PLAYER_LEVEL_TABLE[GetAccountExpansionLevel()];