Wowpedia

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

READ MORE

Wowpedia
Register
mNo edit summary
No edit summary
Line 28: Line 28:
   
 
: Returns the pet's current XP total, and the XP total required for the next level.
 
: Returns the pet's current XP total, and the XP total required for the next level.
  +
   
 
----
 
----
{{Template:WoW API}}
+
{{WoW API}}
[[Category:API Functions|GetPetExperience]]
 
[[Category:API Pet Functions|GetPetExperience]]
 

Revision as of 12:33, 4 January 2006

GetPetExperience

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

   currXP, nextXP = GetPetExperience();

Arguments
none

Returns
(currXP, nextXP)
currXP
Number - The current XP total
nextXP
Number - 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