Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

Returns the expansion level the account has been flagged for.

expansionLevel = GetAccountExpansionLevel()

Returns[]

expansionLevel
number - The expansion the player's game license has been flagged for.
NUM_LE_EXPANSION_LEVELS
Value Enum Description
LE_EXPANSION_LEVEL_CURRENT
0 LE_EXPANSION_CLASSIC Vanilla / Classic Era
1 LE_EXPANSION_BURNING_CRUSADE The Burning Crusade
2 LE_EXPANSION_WRATH_OF_THE_LICH_KING Wrath of the Lich King
3 LE_EXPANSION_CATACLYSM Cataclysm
4 LE_EXPANSION_MISTS_OF_PANDARIA Mists of Pandaria
5 LE_EXPANSION_WARLORDS_OF_DRAENOR Warlords of Draenor
6 LE_EXPANSION_LEGION Legion
7 LE_EXPANSION_BATTLE_FOR_AZEROTH Battle for Azeroth
8 LE_EXPANSION_SHADOWLANDS Shadowlands
9 LE_EXPANSION_DRAGONFLIGHT Dragonflight
10 LE_EXPANSION_11_0

Example[]

Before and after pre-ordering the Shadowlands expansion. Requires a client restart to update, if still in-game.

/dump GetAccountExpansionLevel() -- 7 -> 8

Patch changes[]

Bc icon Patch 2.0.1 (2006-12-05): Added.

See also[]

Advertisement