WoW:API GetStablePetInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Move page script moved page API GetStablePetInfo to API GetStablePetInfo without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<center>'''GetStablePetInfo''' ''-Documentation by [[User:Elisios|Elisios]]-''</center>
{{wowapi}}


Returns information about a specific stabled pet.
Returns information about a specific stabled pet.
Line 26: Line 26:


: Returns information on the specified stabled pet. Slot 0 can be used to get information about current pet, even if it was dismissed (e.g. when UnitExists("pet") yields false).
: Returns information on the specified stabled pet. Slot 0 can be used to get information about current pet, even if it was dismissed (e.g. when UnitExists("pet") yields false).
----
{{Template:WoW API}}
[[Category:API Pet Functions|GetPetStablePetInfo]]

Latest revision as of 04:46, 15 August 2023

WoW API < GetStablePetInfo

Returns information about a specific stabled pet.

  petIcon, petName, petLevel, petType, petLoyalty = GetStablePetInfo(index);

Arguments
(index)
index
Number - The index of the pet slot, 0 being current pet, 1 and 2 being first and last slots.

Returns
(petIcon, petName, petLevel, petFamily, petLoyalty)
petIcon
String - The path to texture to use as the icon for the pet, see GetPetIcon(),
petName
String - The pet name, see UnitName(),
petLevel
Number - The pet level, see UnitLevel()
petFamily
String - The localized pet family, see UnitCreatureFamily(),
petLoyalty
String - The localized pet loyalty level, see GetPetLoyalty().

Description
Returns information on the specified stabled pet. Slot 0 can be used to get information about current pet, even if it was dismissed (e.g. when UnitExists("pet") yields false).