Flickering19966@legacy41540688 (talk | contribs) m (Formatting and categorization) |
Inglais@legacy41546699 (talk | contribs) mNo edit summary |
||
Line 31: | Line 31: | ||
---- |
---- |
||
{{Template:WoW API}} |
{{Template:WoW API}} |
||
+ | [[Category:API Functions|GetPetExperience]] |
||
[[Category:API Pet Functions|GetPetExperience]] |
[[Category:API Pet Functions|GetPetExperience]] |
Revision as of 12:26, 30 August 2005
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