WoW:API GetPetExperience

Revision as of 13:22, 17 December 2004 by WoWWiki>Goldark
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
GetPetExperience

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

   local currXP, nextXP = GetPetExperience();

Arguments
None

Returns
(Number currXP, Number nextXP)
currXP
The current XP total
nextXP
The XP total required for the next level

Example
local currXP, nextXP = GetPetExperience();
PetPaperDollFrameExpBar:SetMinMaxValues(min(0, currXP), nextXP);
PetPaperDollFrameExpBar:SetValue(currXP);
  

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

Template:WoW API