Muert39620@legacy41559547 (talk | contribs) No edit summary |
({{wowapi}}, format, example.) |
||
Line 1: | Line 1: | ||
+ | {{wowapi}} __NOTOC__ |
||
− | <center>'''GetPetExperience''' </center> |
||
− | |||
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. |
||
⚫ | |||
+ | ==Parameters== |
||
⚫ | |||
⚫ | |||
− | |||
− | ---- |
||
− | ;''Arguments'' |
||
− | |||
− | :<i>none</i> |
||
− | |||
− | ---- |
||
⚫ | |||
− | |||
− | :(currXP, nextXP) |
||
− | |||
:;currXP : Number - The current XP total |
:;currXP : Number - The current XP total |
||
:;nextXP : Number - The XP total required for the next level |
:;nextXP : Number - The XP total required for the next level |
||
⚫ | |||
− | ---- |
||
⚫ | |||
local currXP, nextXP = GetPetExperience(); |
local currXP, nextXP = GetPetExperience(); |
||
+ | DEFAULT_CHAT_FRAME("Pet experience: " .. currXP .. " / " .. nextXP); |
||
− | PetPaperDollFrameExpBar:SetMinMaxValues(min(0, currXP), nextXP); |
||
+ | ===Result=== |
||
− | PetPaperDollFrameExpBar:SetValue(currXP); |
||
+ | Pet experience is displayed in the default chat frame. |
||
− | |||
− | ---- |
||
− | ;''Description'' |
||
− | |||
− | : Returns the pet's current XP total, and the XP total required for the next level. |
||
− | |||
− | |||
− | ---- |
||
− | {{WoW API}} |
Revision as of 18:45, 23 December 2006
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns the pet's current XP total, and the XP total required for the next level.
currXP, nextXP = GetPetExperience();
Parameters
Returns
- currXP
- Number - The current XP total
- nextXP
- Number - The XP total required for the next level
Example
local currXP, nextXP = GetPetExperience(); DEFAULT_CHAT_FRAME("Pet experience: " .. currXP .. " / " .. nextXP);
Result
Pet experience is displayed in the default chat frame.