WoWWiki

This wiki contains inaccurate and out-of-date information. Please head over to https://wowpedia.fandom.com for more accurate and up-to-date game information.

READ MORE

WoWWiki
Advertisement

WoW API < GetAccountExpansionLevel

Returns level of expansion enabled for currently playing account.

expansionLevel = GetAccountExpansionLevel()

Returns[]

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

Notes[]

  • API system: Expansion
  • API namespace: none
Advertisement