Fandom

WoWWiki

API GetPetExperience

104,637pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

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.

Also on Fandom

Random Wiki