Wikia

WoWWiki

Watchlist Recent changes

API GetAccountExpansionLevel

Main Menue



Returns level of expansion enabled for currently playing account.

expansionLevel = GetAccountExpansionLevel()

Returns Edit

expansionLevel 
Number - 0 = Classic, 1 = Burning Crusade, 2 = Wrath of the Lich King, 3 = Cataclysm

Examples Edit

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()];

Pages on WoWWiki

94,146pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
55,612photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki