Returns the most recent of WoW's retail expansion packs for which the player's account is authorized. Returns the expansionID of the highest WoW expansion pack the player's account is authorized for. If you intend to find the highest level the player can reach, you should instead use GetExpansionLevel().


See also Client control and information functions.

Signature:

expansionLevel = GetAccountExpansionLevel()

Returns:

  • expansionLevel - Expansion level of the player's account (number)
    • 0 - World of Warcraft ("Classic")
    • 1 - World of Warcraft: The Burning Crusade
    • 2 - World of Warcraft: Wrath of the Lich King
    • 3 - World of Warcraft: Cataclysm
    • 4 - World of Warcraft: Mists of Pandaria
    • 5 - World of Warcraft: Warlords of Draenor