Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

API C_PetJournal.GetPetLoadOutInfo

From Wowpedia
Jump to: navigation, search

Returns information about a slot in your battle pet team.

petGUID, ability1, ability2, ability3, locked = C_PetJournal.GetPetLoadOutInfo(slotIndex)

Arguments

slotIndex 
Number - battle pet slot index, an integer between 1 and 3. Values outside this range throw an error.

Returns

petGUID 
String - GUID of the battle pet currently in this slot.
ability1 
Number - Ability ID of the first (level 1/10) ability selected for the battle pet in this slot.
ability2 
Number - Ability ID of the second (level 2/15) ability selected for the battle pet in this slot.
ability3 
Number - Ability ID of the third (level 4/20) ability selected for the battle pet in this slot.
locked 
Boolean - false if the player can place a battle pet in this slot, true otherwise.

Details

  • Ability IDs are returned even for slots that are not yet unlocked by a low-level battle pet.
  • Slots are locked until the player has earned the necessary achievement/skill. The first slot is unlocked by learning [Battle Pet Training].

Patch history

Mists of Pandaria Patch 5.0.4 (2012-08-28): Added.