Wikia

WoWWiki

API GetPetExperience

Talk0
101,505pages on
this wiki
Revision as of 18:45, December 23, 2006 by Starlightblunder (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
WoW API < GetPetExperience

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

currXP, nextXP = GetPetExperience();

ParametersEdit

ReturnsEdit

currXP 
Number - The current XP total
nextXP 
Number - The XP total required for the next level

ExampleEdit

local currXP, nextXP = GetPetExperience();
DEFAULT_CHAT_FRAME("Pet experience: " .. currXP .. " / " .. nextXP);

ResultEdit

Pet experience is displayed in the default chat frame.

Around Wikia's network

Random Wiki