Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:World of Warcraft API
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Pet === :PROTECTED {{id|API|CastPetAction}}(index) - Cast the corresponding pet skill. :{{id|API|ClosePetStables}}() - Close the pet stables user interface. :{{id|API|DropItemOnUnit}}("[[unitId|unit]]") - Drops an item from the cursor onto a unit. :{{id|API|GetPetActionCooldown}}(index) - Returns cooldown information for the pet action at the specificed pet action bar slot. :{{id|API|GetPetActionInfo}}(index) - Returns information on the pet action at the specified pet action bar slot. :{{id|API|GetPetActionSlotUsable}}(slot) :{{id|API|GetPetActionsUsable}}() - Returns a value indicating if the player's pet's actions can be used at this time. :{{id|API|GetPetExperience}}() - Returns the pet's current xp, and total xp required for next level. :{{id|API|GetPetFoodTypes}}() - Returns a list of the food types the player's pet can eat. :{{id|API|GetPetHappiness}}() - Returns the pet's happiness, damage percentage, and loyalty gain rate. :{{id|API|GetPetIcon}}() - Returns the path to the texture to use as the icon for the player's pet. :{{id|API|GetPetTimeRemaining}}() - Returns in milliseconds about some timeout for the player's pet. :{{id|API|GetStablePetFoodTypes}}(index) - Returns a list of the food types a specific stabled pet can eat. :{{id|API|GetStablePetInfo}}(index) - Returns information about a specific stabled pet. :{{id|API|HasPetSpells}}() - Returns true if the player has pet spells. :{{id|API|HasPetUI}}() - Returns 1 if the player has a pet User Interface. :{{id|API|PetAbandon}}() - Permanently abandons your pet. :PROTECTED {{id|API|PetAggressiveMode}}() - Set your pet in aggressive mode. (protected 2.0) :PROTECTED {{id|API|PetAttack}}() - Instruct your pet to attack your target. (protected 2.0) :{{id|API|IsPetAttackActive}}() - Returns true if the pet is currently attacking. :{{id|API|PetStopAttack}}() - Stop the attack of the pet. :{{id|API|PetCanBeAbandoned}}() - Returns true if the pet is abandonable. :{{id|API|PetCanBeDismissed}}() :{{id|API|PetCanBeRenamed}}() - Returns true if the pet can be renamed. :PROTECTED {{id|API|PetDefensiveMode}}() - Set your pet in defensive mode. (protected 2.0) :{{id|API|PetDismiss}}() - Dismiss your pet. :PROTECTED {{id|API|PetFollow}}() - Instruct your pet to follow you. (protected 2.0) :{{id|API|PetHasActionBar}}() - Determine if player has a pet with an action bar. :PROTECTED {{id|API|PetPassiveMode}}() - Set your pet into passive mode. (protected 2.0) :{{id|API|PetRename}}("name") - Renames the pet. :PROTECTED {{id|API|PetWait}}() - Instruct your pet to remain still. (protected 2.0) :{{id|API|PickupPetAction}}(slot) - Drags an action from the specified pet action bar slot into the cursor. :{{id|API|PickupStablePet}}(index) :{{id|API|SetPetStablePaperdoll}}(modelObject) :PROTECTED {{id|API|TogglePetAutocast}}(index) - Toggles whether the specified pet ability should autocast or not. :PROTECTED {{id|API|ToggleSpellAutocast}}("spellName" | spellId, bookType) - Toggles whether the specified spell should autocast or not. :{{id|API|GetSpellAutocast}}("spellName" | spellId, bookType) - Check whether the specified spell autocasts or not.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)