WoW API < GetPetExperience

Returns the pet's current XP total, and the XP total required for the next level.

currXP, nextXP = GetPetExperience();

Parameters[edit | edit source]

Returns[edit | edit source]

currXP 
Number - The current XP total
nextXP 
Number - The XP total required for the next level

Example[edit | edit source]

local currXP, nextXP = GetPetExperience();
DEFAULT_CHAT_FRAME("Pet experience: " .. currXP .. " / " .. nextXP);

Result[edit | edit source]

Pet experience is displayed in the default chat frame.

Community content is available under CC-BY-SA unless otherwise noted.