This function or event no longer exists in version 6.0.2 (19034) of World of Warcraft. Please check the main API page for an up-to-date listing of the valid API functions
Inspects or moves a pet in the Pet Stable UI. Action taken depends on cursor contents as well as the index
passed:
If the cursor does not contain a pet, selects the given pet slot.
If the cursor contains the active pet and
index
is a stable slot, places the pet into the stable (but not necessarily into the given slot).If the cursor contains a stabled pet, and
index
is 0, makes the stabled pet the active pet (and puts the active pet into the stable).
See also Pet Stable functions.
Signature:
selected
=
ClickStablePet(index)
Arguments:
index
- Index of a stable slot (number
)0
- Active pet1 to NUM_PET_STABLE_SLOTS
- A stable slot
Returns:
selected
- 1 if the function selected a stabled pet, rather than placed a pet in the stable slot (1nil
)