Quantcast
WoWInterface - View Single Post - Show battle pet level
View Single Post
12-30-18, 09:22 PM   #2
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 503
Third return of C_PetJournal.GetPetInfoByPetID().

Lua Code:
  1. local _, _, level = C_PetJournal.GetPetInfoByPetID( C_PetJournal.GetSummonedPetGUID() )

This only works for your current summoned pet. The API does not support getting info from other player's pets, you'll have to scrape their tooltip for their level.
  Reply With Quote