WoW:API GetPetExperience: Difference between revisions
Jump to navigation
Jump to search
GetPetExperience
No edit summary |
m (Formatting and categorization) |
||
Line 3: | Line 3: | ||
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. | ||
currXP, nextXP = GetPetExperience(); | |||
---- | ---- | ||
;''Arguments'' | ;''Arguments'' | ||
: | :<i>none</i> | ||
---- | ---- | ||
;''Returns'' | ;''Returns'' | ||
:( | :(currXP, nextXP) | ||
:;currXP : The current XP total | :;currXP : Number - The current XP total | ||
:;nextXP : The XP total required for the next level | :;nextXP : Number - The XP total required for the next level | ||
---- | ---- | ||
Line 31: | Line 31: | ||
---- | ---- | ||
{{Template:WoW API}} | {{Template:WoW API}} | ||
[[Category:API Pet Functions|GetPetExperience]] |
Revision as of 20:13, 28 December 2004
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.