Wikia

WoWWiki

API GetPetExperience

Talk0
98,468pages on
this wiki

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.

Advertisement | Your ad here

Photos

Add a Photo
61,981photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki