多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
These functions relate to[Combat Pets](https://wow.gamepedia.com/Combat_pet "Combat pet"). [CancelPetPossess](https://wow.gamepedia.com/index.php?title=API_CancelPetPossess&action=edit&redlink=1 "API CancelPetPossess (page does not exist)")() PROTECTED[CastPetAction](https://wow.gamepedia.com/API_CastPetAction "API CastPetAction")(index) - Cast the corresponding pet skill. [DisableSpellAutocast](https://wow.gamepedia.com/index.php?title=API_DisableSpellAutocast&action=edit&redlink=1 "API DisableSpellAutocast (page does not exist)")() - Disables autocasting for a pet spell. [EnableSpellAutocast](https://wow.gamepedia.com/index.php?title=API_EnableSpellAutocast&action=edit&redlink=1 "API EnableSpellAutocast (page does not exist)")() - Enables autocasting for a pet spell. [GetCallPetSpellInfo](https://wow.gamepedia.com/index.php?title=API_GetCallPetSpellInfo&action=edit&redlink=1 "API GetCallPetSpellInfo (page does not exist)")(spellID) [GetPetActionCooldown](https://wow.gamepedia.com/API_GetPetActionCooldown "API GetPetActionCooldown")(index) - Returns cooldown information for the pet action at the specificed pet action bar slot. [GetPetActionInfo](https://wow.gamepedia.com/API_GetPetActionInfo "API GetPetActionInfo")(index) - Returns information on the pet action at the specified pet action bar slot. [GetPetActionSlotUsable](https://wow.gamepedia.com/index.php?title=API_GetPetActionSlotUsable&action=edit&redlink=1 "API GetPetActionSlotUsable (page does not exist)")(slot) [GetPetActionsUsable](https://wow.gamepedia.com/index.php?title=API_GetPetActionsUsable&action=edit&redlink=1 "API GetPetActionsUsable (page does not exist)")() - Returns a value indicating if the player's pet's actions can be used at this time. [GetPetExperience](https://wow.gamepedia.com/API_GetPetExperience "API GetPetExperience")() - Returns the pet's current xp, and total xp required for next level. [GetPetFoodTypes](https://wow.gamepedia.com/API_GetPetFoodTypes "API GetPetFoodTypes")() - Returns a list of the food types the player's pet can eat. [GetPetIcon](https://wow.gamepedia.com/index.php?title=API_GetPetIcon&action=edit&redlink=1 "API GetPetIcon (page does not exist)")() - Returns the path to the texture to use as the icon for the player's pet. [GetPetTimeRemaining](https://wow.gamepedia.com/index.php?title=API_GetPetTimeRemaining&action=edit&redlink=1 "API GetPetTimeRemaining (page does not exist)")() - Returns in milliseconds about some timeout for the player's pet. [HasPetSpells](https://wow.gamepedia.com/API_HasPetSpells "API HasPetSpells")() - Returns true if the player has pet spells. [HasPetUI](https://wow.gamepedia.com/API_HasPetUI "API HasPetUI")() - Returns 1 if the player has a pet User Interface. [IsPetActive](https://wow.gamepedia.com/index.php?title=API_IsPetActive&action=edit&redlink=1 "API IsPetActive (page does not exist)")() [IsPetAttackActive](https://wow.gamepedia.com/API_IsPetAttackActive "API IsPetAttackActive")() - Returns true if the pet is currently attacking. [PetAbandon](https://wow.gamepedia.com/API_PetAbandon "API PetAbandon")() - Permanently abandons your pet. PROTECTED[PetAggressiveMode](https://wow.gamepedia.com/API_PetAggressiveMode "API PetAggressiveMode")() PROTECTED[PetAssistMode](https://wow.gamepedia.com/API_PetAssistMode "API PetAssistMode")() - Set your pet to Assist mode. PROTECTED[PetAttack](https://wow.gamepedia.com/API_PetAttack "API PetAttack")() - Instruct your pet to attack your target. [PetCanBeAbandoned](https://wow.gamepedia.com/API_PetCanBeAbandoned "API PetCanBeAbandoned")() - Returns true if the pet is abandonable. PROTECTED[PetMoveTo](https://wow.gamepedia.com/index.php?title=API_PetMoveTo&action=edit&redlink=1 "API PetMoveTo (page does not exist)")(target) [PetCanBeDismissed](https://wow.gamepedia.com/index.php?title=API_PetCanBeDismissed&action=edit&redlink=1 "API PetCanBeDismissed (page does not exist)")() [PetCanBeRenamed](https://wow.gamepedia.com/API_PetCanBeRenamed "API PetCanBeRenamed")() - Returns true if the pet can be renamed. PROTECTED[PetDefensiveMode](https://wow.gamepedia.com/API_PetDefensiveMode "API PetDefensiveMode")() - Set your pet in defensive mode. [PetDismiss](https://wow.gamepedia.com/API_PetDismiss "API PetDismiss")() - Dismiss your pet. PROTECTED[PetFollow](https://wow.gamepedia.com/API_PetFollow "API PetFollow")() - Instruct your pet to follow you. [PetHasSpellbook](https://wow.gamepedia.com/index.php?title=API_PetHasSpellbook&action=edit&redlink=1 "API PetHasSpellbook (page does not exist)")() PROTECTED[PetPassiveMode](https://wow.gamepedia.com/API_PetPassiveMode "API PetPassiveMode")() - Set your pet into passive mode. [PetRename](https://wow.gamepedia.com/API_PetRename "API PetRename")("name") - Renames the pet. [PetStopAttack](https://wow.gamepedia.com/API_PetStopAttack "API PetStopAttack")() - Stop the attack of the pet. [PetUsesPetFrame](https://wow.gamepedia.com/index.php?title=API_PetUsesPetFrame&action=edit&redlink=1 "API PetUsesPetFrame (page does not exist)")() PROTECTED[PetWait](https://wow.gamepedia.com/API_PetWait "API PetWait")() - Instruct your pet to remain still. PROTECTED[TogglePetAutocast](https://wow.gamepedia.com/index.php?title=API_TogglePetAutocast&action=edit&redlink=1 "API TogglePetAutocast (page does not exist)")(index) - Toggles whether the specified pet ability should autocast or not. PROTECTED[ToggleSpellAutocast](https://wow.gamepedia.com/index.php?title=API_ToggleSpellAutocast&action=edit&redlink=1 "API ToggleSpellAutocast (page does not exist)")("spellName" | spellId, bookType) - Toggles whether the specified Pet spell should autocast or not. These functions relate to the[Stable Master](https://wow.gamepedia.com/Stable_Master "Stable Master"). [ClosePetStables](https://wow.gamepedia.com/API_ClosePetStables "API ClosePetStables")() - Close the pet stables user interface. [GetStablePetFoodTypes](https://wow.gamepedia.com/API_GetStablePetFoodTypes "API GetStablePetFoodTypes")(index) - Returns a list of the food types a specific stabled pet can eat. [GetStablePetInfo](https://wow.gamepedia.com/API_GetStablePetInfo "API GetStablePetInfo")(index) - Returns information about a specific stabled pet. [IsAtStableMaster](https://wow.gamepedia.com/index.php?title=API_IsAtStableMaster&action=edit&redlink=1 "API IsAtStableMaster (page does not exist)")() [SetPetSlot](https://wow.gamepedia.com/index.php?title=API_SetPetSlot&action=edit&redlink=1 "API SetPetSlot (page does not exist)")(index, slot) [SetPetStablePaperdoll](https://wow.gamepedia.com/API_SetPetStablePaperdoll "API SetPetStablePaperdoll")(modelObject)