WoW:API GetPetExperience: Difference between revisions
Jump to navigation
Jump to search
({{wowapi}}, format, example.) |
m (Move page script moved page API GetPetExperience to API GetPetExperience without leaving a redirect) |
(No difference)
|
Latest revision as of 04:46, 15 August 2023
Returns the pet's current XP total, and the XP total required for the next level.
currXP, nextXP = GetPetExperience();
Parameters[edit]
Returns[edit]
- currXP
- Number - The current XP total
- nextXP
- Number - The XP total required for the next level
Example[edit]
local currXP, nextXP = GetPetExperience(); DEFAULT_CHAT_FRAME("Pet experience: " .. currXP .. " / " .. nextXP);
Result[edit]
Pet experience is displayed in the default chat frame.