WoW:API GetAccountExpansionLevel: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(New page: {{wowapi}} Returns level of expansion enabled for currently playing account. <pre> expansionLevel = GetAccountExpansionLevel() </pre> == Parameters == === Returns === expansionLevel :; ...)
 
m (Move page script moved page API GetAccountExpansionLevel to API GetAccountExpansionLevel without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{wowapi}}
{{wowapi}}
Returns level of expansion enabled for currently playing account.
Returns level of expansion enabled for currently playing account.
<pre> expansionLevel = GetAccountExpansionLevel() </pre>
expansionLevel = GetAccountExpansionLevel()


== Parameters ==
== Returns ==
* 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]]


=== Returns ===
== Examples ==
expansionLevel
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;


:; expansionLevel : Number - 0 (only original World of Warcraft is available) or 1 (account is authorized to use [[The Burning Crusade]] content).
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''

Latest revision as of 04:45, 15 August 2023

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