WoW API: GetAccountExpansionLevel

Revision as of 04:45, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetAccountExpansionLevel to API GetAccountExpansionLevel without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WoW API < GetAccountExpansionLevel

Returns level of expansion enabled for currently playing account.

expansionLevel = GetAccountExpansionLevel()

ReturnsEdit

ExamplesEdit

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

NotesEdit

  • API system: Expansion
  • API namespace: none