m
Move page script moved page API GetPetExperience to WoW:API GetPetExperience without leaving a redirect
mNo edit summary |
m (Move page script moved page API GetPetExperience to WoW:API GetPetExperience without leaving a redirect) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
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(); | |||
==Parameters== | |||
===Returns=== | |||
:;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 | ||
==Example== | |||
local currXP, nextXP = GetPetExperience(); | local currXP, nextXP = GetPetExperience(); | ||
DEFAULT_CHAT_FRAME("Pet experience: " .. currXP .. " / " .. nextXP); | |||
===Result=== | |||
Pet experience is displayed in the default chat frame. | |||