View Single Post
11-29-14, 10:43 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Those companion API functions are deprecated and should no longer be used. Use the actual pet journal API instead.

Code:
local summonedPetGUID = C_PetJournal.GetSummonedPetGUID()
local speciesID, customName, level, xp, maxXp, displayID, isFavorite, name, icon,
    petType, creatureID, sourceText, description, isWild, canBattle, tradable, unique,
    obtainable = C_PetJournal.GetPetInfoByPetID(summonedPetGUID)
print("Summoned pet:", name, customName)
More info:
http://wowpedia.org/World_of_Warcraf...rnal_Functions
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote