Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns the pet's current and total XP required for the next level.
currXP, nextXP = GetPetExperience()
Parameters[]
Returns[]
- currXP
- number - The current XP total
- nextXP
- number - The XP total required for the next level
Example[]
local currXP, nextXP = GetPetExperience(); DEFAULT_CHAT_FRAME("Pet experience: " .. currXP .. " / " .. nextXP);
Result[]
Pet experience is displayed in the default chat frame.