Wowpedia

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

READ MORE

Wowpedia
Register
Advertisement

Returns the maximum XP of the unit; only works on the player.

nextXP = UnitXPMax(unit)

Arguments[]

unit
string : UnitId

Returns[]

nextXP
number - Returns the max XP points of the "unit".

Example[]

local xp = UnitXP("player")
local nextXP = UnitXPMax("player")
print(string.format("Your XP is currently at %.1f%%", xp / nextXP * 100))
Advertisement