The[Pet Journal](https://wow.gamepedia.com/Pet_Journal "Pet Journal")was added in[Patch 5.0.4](https://wow.gamepedia.com/Patch_5.0.4 "Patch 5.0.4"). See also[Pet Battle](https://wow.gamepedia.com/World_of_Warcraft_API#Pet_Battles)functions.
[C\_PetInfo.GetPetTamersForMap](https://wow.gamepedia.com/API_C_PetInfo.GetPetTamersForMap "API C PetInfo.GetPetTamersForMap")(mapID) - Returns the pet tamers on a map.
[C\_PetJournal.CagePetByID](https://wow.gamepedia.com/API_C_PetJournal.CagePetByID "API C PetJournal.CagePetByID")("petID") - Puts the pet into a cage.
[C\_PetJournal.ClearFanfare](https://wow.gamepedia.com/index.php?title=API_C_PetJournal.ClearFanfare&action=edit&redlink=1 "API C PetJournal.ClearFanfare (page does not exist)")()
[C\_PetJournal.ClearRecentFanfares](https://wow.gamepedia.com/index.php?title=API_C_PetJournal.ClearRecentFanfares&action=edit&redlink=1 "API C PetJournal.ClearRecentFanfares (page does not exist)")()
[C\_PetJournal.ClearSearchFilter](https://wow.gamepedia.com/API_C_PetJournal.ClearSearchFilter "API C PetJournal.ClearSearchFilter")() - Clears the search box in the pet journal.
[C\_PetJournal.FindPetIDByName](https://wow.gamepedia.com/API_C_PetJournal.FindPetIDByName "API C PetJournal.FindPetIDByName")()
[C\_PetJournal.GetBattlePetLink](https://wow.gamepedia.com/API_C_PetJournal.GetBattlePetLink "API C PetJournal.GetBattlePetLink")("petID") - Returns a battle pet hyperlink for the given petID.
[C\_PetJournal.GetDisplayIDByIndex](https://wow.gamepedia.com/API_C_PetJournal.GetDisplayIDByIndex "API C PetJournal.GetDisplayIDByIndex")(speciesID, index)
[C\_PetJournal.GetDisplayProbabilityByIndex](https://wow.gamepedia.com/API_C_PetJournal.GetDisplayProbabilityByIndex "API C PetJournal.GetDisplayProbabilityByIndex")(speciesID, index)
[C\_PetJournal.GetNumCollectedInfo](https://wow.gamepedia.com/API_C_PetJournal.GetNumCollectedInfo "API C PetJournal.GetNumCollectedInfo")()
[C\_PetJournal.GetNumDisplays](https://wow.gamepedia.com/API_C_PetJournal.GetNumDisplays "API C PetJournal.GetNumDisplays")(speciesID)
[C\_PetJournal.GetNumMaxPets](https://wow.gamepedia.com/index.php?title=API_C_PetJournal.GetNumMaxPets&action=edit&redlink=1 "API C PetJournal.GetNumMaxPets (page does not exist)")()
[C\_PetJournal.GetNumPetSources](https://wow.gamepedia.com/API_C_PetJournal.GetNumPetSources "API C PetJournal.GetNumPetSources")() - Returns information about the number of pet sources.
[C\_PetJournal.GetNumPetTypes](https://wow.gamepedia.com/API_C_PetJournal.GetNumPetTypes "API C PetJournal.GetNumPetTypes")() - Returns information about the number of pet types.
[C\_PetJournal.GetNumPetsNeedingFanfare](https://wow.gamepedia.com/index.php?title=API_C_PetJournal.GetNumPetsNeedingFanfare&action=edit&redlink=1 "API C PetJournal.GetNumPetsNeedingFanfare (page does not exist)")()
[C\_PetJournal.GetNumPets](https://wow.gamepedia.com/API_C_PetJournal.GetNumPets "API C PetJournal.GetNumPets")() - Returns information about the number of battle pets.
[C\_PetJournal.GetOwnedBattlePetString](https://wow.gamepedia.com/API_C_PetJournal.GetOwnedBattlePetString "API C PetJournal.GetOwnedBattlePetString")(speciesID) - Returns string about numbers of battle pets in journal.
[C\_PetJournal.GetPetAbilityInfo](https://wow.gamepedia.com/API_C_PetJournal.GetPetAbilityInfo "API C PetJournal.GetPetAbilityInfo")(abilityID)
[C\_PetJournal.GetPetAbilityList](https://wow.gamepedia.com/API_C_PetJournal.GetPetAbilityList "API C PetJournal.GetPetAbilityList")(speciesID\[, idTable\[, levelTable}})
[C\_PetJournal.GetPetCooldownByGUID](https://wow.gamepedia.com/API_C_PetJournal.GetPetCooldownByGUID "API C PetJournal.GetPetCooldownByGUID")()
[C\_PetJournal.GetPetInfoByIndex](https://wow.gamepedia.com/API_C_PetJournal.GetPetInfoByIndex "API C PetJournal.GetPetInfoByIndex")(index) - Returns information about a battle pet.
[C\_PetJournal.GetPetInfoByItemID](https://wow.gamepedia.com/index.php?title=API_C_PetJournal.GetPetInfoByItemID&action=edit&redlink=1 "API C PetJournal.GetPetInfoByItemID (page does not exist)")(itemID)
[C\_PetJournal.GetPetInfoByPetID](https://wow.gamepedia.com/API_C_PetJournal.GetPetInfoByPetID "API C PetJournal.GetPetInfoByPetID")("petID") - Returns information about a battle pet.
[C\_PetJournal.GetPetInfoBySpeciesID](https://wow.gamepedia.com/API_C_PetJournal.GetPetInfoBySpeciesID "API C PetJournal.GetPetInfoBySpeciesID")(speciesID) - Returns information about a pet species.
[C\_PetJournal.GetPetLoadOutInfo](https://wow.gamepedia.com/API_C_PetJournal.GetPetLoadOutInfo "API C PetJournal.GetPetLoadOutInfo")(slotIndex)
[C\_PetJournal.GetPetModelSceneInfoBySpeciesID](https://wow.gamepedia.com/index.php?title=API_C_PetJournal.GetPetModelSceneInfoBySpeciesID&action=edit&redlink=1 "API C PetJournal.GetPetModelSceneInfoBySpeciesID (page does not exist)")(speciesID)
[C\_PetJournal.GetPetSortParameter](https://wow.gamepedia.com/API_C_PetJournal.GetPetSortParameter "API C PetJournal.GetPetSortParameter")()
[C\_PetJournal.GetPetStats](https://wow.gamepedia.com/API_C_PetJournal.GetPetStats "API C PetJournal.GetPetStats")("petID") - Returns a pet's stats from the Pet Journal.
[C\_PetJournal.GetPetSummonInfo](https://wow.gamepedia.com/API_C_PetJournal.GetPetSummonInfo "API C PetJournal.GetPetSummonInfo")("battlePetGUID")
[C\_PetJournal.GetPetTeamAverageLevel](https://wow.gamepedia.com/API_C_PetJournal.GetPetTeamAverageLevel "API C PetJournal.GetPetTeamAverageLevel")()
[C\_PetJournal.GetSummonBattlePetCooldown](https://wow.gamepedia.com/index.php?title=API_C_PetJournal.GetSummonBattlePetCooldown&action=edit&redlink=1 "API C PetJournal.GetSummonBattlePetCooldown (page does not exist)")()
[C\_PetJournal.GetSummonRandomFavoritePetGUID](https://wow.gamepedia.com/index.php?title=API_C_PetJournal.GetSummonRandomFavoritePetGUID&action=edit&redlink=1 "API C PetJournal.GetSummonRandomFavoritePetGUID (page does not exist)")()
[C\_PetJournal.GetSummonedPetGUID](https://wow.gamepedia.com/API_C_PetJournal.GetSummonedPetGUID "API C PetJournal.GetSummonedPetGUID")() - Returns information about a battle pet.
[C\_PetJournal.IsFilterChecked](https://wow.gamepedia.com/API_C_PetJournal.IsFilterChecked "API C PetJournal.IsFilterChecked")()
[C\_PetJournal.IsFindBattleEnabled](https://wow.gamepedia.com/API_C_PetJournal.IsFindBattleEnabled "API C PetJournal.IsFindBattleEnabled")()
[C\_PetJournal.IsJournalReadOnly](https://wow.gamepedia.com/index.php?title=API_C_PetJournal.IsJournalReadOnly&action=edit&redlink=1 "API C PetJournal.IsJournalReadOnly (page does not exist)")()
[C\_PetJournal.IsJournalUnlocked](https://wow.gamepedia.com/index.php?title=API_C_PetJournal.IsJournalUnlocked&action=edit&redlink=1 "API C PetJournal.IsJournalUnlocked (page does not exist)")()
[C\_PetJournal.IsPetSourceChecked](https://wow.gamepedia.com/API_C_PetJournal.IsPetSourceChecked "API C PetJournal.IsPetSourceChecked")()
[C\_PetJournal.IsPetTypeChecked](https://wow.gamepedia.com/API_C_PetJournal.IsPetTypeChecked "API C PetJournal.IsPetTypeChecked")()
[C\_PetJournal.PetCanBeReleased](https://wow.gamepedia.com/API_C_PetJournal.PetCanBeReleased "API C PetJournal.PetCanBeReleased")("petID") - Returns true if you can release the pet.
[C\_PetJournal.PetIsCapturable](https://wow.gamepedia.com/API_C_PetJournal.PetIsCapturable "API C PetJournal.PetIsCapturable")("petID")
[C\_PetJournal.PetIsFavorite](https://wow.gamepedia.com/API_C_PetJournal.PetIsFavorite "API C PetJournal.PetIsFavorite")("petID") - Returns true if this pet is marked as a favorite.
[C\_PetJournal.PetIsHurt](https://wow.gamepedia.com/API_C_PetJournal.PetIsHurt "API C PetJournal.PetIsHurt")("petID")
[C\_PetJournal.PetIsLockedForConvert](https://wow.gamepedia.com/index.php?title=API_C_PetJournal.PetIsLockedForConvert&action=edit&redlink=1 "API C PetJournal.PetIsLockedForConvert (page does not exist)")("petID")
[C\_PetJournal.PetIsRevoked](https://wow.gamepedia.com/API_C_PetJournal.PetIsRevoked "API C PetJournal.PetIsRevoked")("petID")
[C\_PetJournal.PetIsSlotted](https://wow.gamepedia.com/API_C_PetJournal.PetIsSlotted "API C PetJournal.PetIsSlotted")("petID")
[C\_PetJournal.PetIsSummonable](https://wow.gamepedia.com/API_C_PetJournal.PetIsSummonable "API C PetJournal.PetIsSummonable")("petID") - Returns true if you can summon this pet.
[C\_PetJournal.PetIsTradable](https://wow.gamepedia.com/API_C_PetJournal.PetIsTradable "API C PetJournal.PetIsTradable")("petID") - Returns whether or not a pet from the Pet Journal is tradable.
[C\_PetJournal.PetIsUsable](https://wow.gamepedia.com/index.php?title=API_C_PetJournal.PetIsUsable&action=edit&redlink=1 "API C PetJournal.PetIsUsable (page does not exist)")("petID")
[C\_PetJournal.PetNeedsFanfare](https://wow.gamepedia.com/index.php?title=API_C_PetJournal.PetNeedsFanfare&action=edit&redlink=1 "API C PetJournal.PetNeedsFanfare (page does not exist)")()
[C\_PetJournal.PetUsesRandomDisplay](https://wow.gamepedia.com/API_C_PetJournal.PetUsesRandomDisplay "API C PetJournal.PetUsesRandomDisplay")((speciesID))
[C\_PetJournal.PickupPet](https://wow.gamepedia.com/API_C_PetJournal.PickupPet "API C PetJournal.PickupPet")("petID")
[C\_PetJournal.PickupSummonRandomPet](https://wow.gamepedia.com/index.php?title=API_C_PetJournal.PickupSummonRandomPet&action=edit&redlink=1 "API C PetJournal.PickupSummonRandomPet (page does not exist)")()
[C\_PetJournal.ReleasePetByID](https://wow.gamepedia.com/API_C_PetJournal.ReleasePetByID "API C PetJournal.ReleasePetByID")("petID") - Releases the pet.
[C\_PetJournal.SetAbility](https://wow.gamepedia.com/API_C_PetJournal.SetAbility "API C PetJournal.SetAbility")(slotIndex, spellIndex, petSpellID)
[C\_PetJournal.SetAllPetSourcesChecked](https://wow.gamepedia.com/API_C_PetJournal.SetAllPetSourcesChecked "API C PetJournal.SetAllPetSourcesChecked")()
[C\_PetJournal.SetAllPetTypesChecked](https://wow.gamepedia.com/API_C_PetJournal.SetAllPetTypesChecked "API C PetJournal.SetAllPetTypesChecked")()
[C\_PetJournal.SetCustomName](https://wow.gamepedia.com/API_C_PetJournal.SetCustomName "API C PetJournal.SetCustomName")("petID", customName) - Sets a custom name for the pet.
[C\_PetJournal.SetFavorite](https://wow.gamepedia.com/API_C_PetJournal.SetFavorite "API C PetJournal.SetFavorite")("petID", value) - Sets (or clears) the pet as a favorite.
[C\_PetJournal.SetFilterChecked](https://wow.gamepedia.com/API_C_PetJournal.SetFilterChecked "API C PetJournal.SetFilterChecked")()
[C\_PetJournal.SetPetLoadOutInfo](https://wow.gamepedia.com/API_C_PetJournal.SetPetLoadOutInfo "API C PetJournal.SetPetLoadOutInfo")(slotIndex, "petID")
[C\_PetJournal.SetPetSortParameter](https://wow.gamepedia.com/API_C_PetJournal.SetPetSortParameter "API C PetJournal.SetPetSortParameter")()
[C\_PetJournal.SetPetSourceChecked](https://wow.gamepedia.com/API_C_PetJournal.SetPetSourceChecked "API C PetJournal.SetPetSourceChecked")()
[C\_PetJournal.SetPetTypeFilter](https://wow.gamepedia.com/API_C_PetJournal.SetPetTypeFilter "API C PetJournal.SetPetTypeFilter")(index, value) - Sets the pet type in the filter menu.
[C\_PetJournal.SetSearchFilter](https://wow.gamepedia.com/API_C_PetJournal.SetSearchFilter "API C PetJournal.SetSearchFilter")(text) - Sets the search filter in the pet journal.
NOCOMBAT[C\_PetJournal.SummonPetByGUID](https://wow.gamepedia.com/API_C_PetJournal.SummonPetByGUID "API C PetJournal.SummonPetByGUID")("petID") - Summons (or dismisses) a pet.
NOCOMBAT[C\_PetJournal.SummonRandomPet](https://wow.gamepedia.com/API_C_PetJournal.SummonRandomPet "API C PetJournal.SummonRandomPet")(allPets) - Summons a random battle pet companion.
- 基础
- 循环
- 迭代器
- ipairs与pairs 的区别
- 流程控制if
- 函数
- 运算符
- 字符串
- 数组
- table(表)
- 模块与包
- 魔兽插件
- 初学介绍
- api
- Global API
- Widget API
- 窗口小部件类层次结构(Widget Class Hierarchy)
- 动画(Animation)
- 透明度(Alpha)
- 线条缩放比例(LineScale)
- 平移(Translation)
- 线平移(Line Translation)
- 路径(Path)
- 旋转(Rotation)
- 缩放(Scale)
- 纹理坐标平移(TextureCoordTranslation)
- 框架 :Frame
- 浏览器(Browser)
- 按键(Button)
- Item按钮(ItemButton)
- 检查按钮(CheckButton)
- 检测(Checkout)
- 颜色选择(ColorSelect)
- 冷却(Cooldown)
- 编辑框(EditBox)
- 战争迷雾(FogOfWarFrame)
- 游戏工具提示(GameTooltip)
- 消息框(MessageFrame)
- 小地图(Minimap)
- 模型(Model)
- 玩家模型(PlayerModel)
- 电影模型(CinematicModel)
- 换装模型(DressUpModel)
- 战袍模型(TabardModel)
- _模型场景(ModelScene)
- 电影Frame(MovieFrame)
- 根小部件(Root Widgets)
- UIObject衍生品(UIObject Derivatives)
- 动画衍生品(Animation Derivatives)
- FontInstance
- 地区衍生品(Region Derivatives)
- 帧衍生品(Frame Derivatives)
- 特殊(Special)
- Events(游戏中变化的事件)
- WoWAPI
- Global Function Groups
- 帐户(Account)
- 成就(Achievements)
- 动作条(Action Bars)
- Action Buttons
- 插件(AddOns)
- 冒险指南(Adventure Guide)
- 神器(Artifact)
- 拍卖行(Auction House)
- 黑市AH
- 魔兽代币(WoW Tokens)
- Azerite
- 背包(Bags)
- 容器(Containers)
- 库存(Inventory)
- 银行(Bank)
- 公会银行(Guild Bank)
- 理发店(Barber Shop)
- 书籍(书籍)
- 日历(calendar)
- 相机(Camera)
- 频道(Channels)
- 聊天窗口(Chat Window)
- 社区(communities)
- 语音聊天(Voice Chat)
- 推特(Twitter)
- 角色(Character)
- 角色表(Paper Doll)
- 试衣间(dressing room)
- 活动(Movement)
- 指定目标(Targeting)
- 死亡(Death)
- 过场动画(Cinematics)
- 职业(class)
- 天赋(Talents)
- 收藏(Collections)
- 坐骑(Mount Journal)
- 宠物(Pet Journal)
- 玩具箱(Toy Box)
- 传家宝(Heirlooms)
- 外观(Appearances)
- 战斗记录(Combat Log)
- 战斗宠物(Combat Pets)
- 同伴(Companions)
- Contribution Collection
- 货币(Currency)
- 光标(Cursor)
- 客户支持(Customer Support)
- 知识库(Knowledge Base)
- 设备管理器(Equipment Manager)
- 扩展(Expansions)
- FrameXML
- 好友(Friends)
- Who List
- 真实身份证(Real ID)
- 招募朋友(Recruit-a-Friend)
- 驻军(Garrisons)
- 建筑物(Buildings)
- 战利品(Trophies)
- 追随者与任务(Followers & Missions)
- 团队(Groups)
- Raid Groups
- Raid Profiles
- 组查找器(Group Finder)
- 突袭者(Raid Finder)
- 公会(Guild)
- 检查(Inspection)
- Instances
- 场景(Scenarios)
- Mythic+
- 入侵(Invasions)
- 海岛探险(Island Expeditions)
- Items
- 按键绑定(Key Bindings)
- Modifiers
- 劫掠(Looting)
- 失控(Loss of Control)
- 宏命令(Macros)
- 邮件(Mail)
- 地图(Maps)
- 飞行管理员(Flight Master)
- 追踪(Tracking)
- 商人(Merchant)
- 铭牌(Nameplates)
- 宠物大战(Pet Battles)
- 申请书(Petitions)
- 专业(Professions)
- 考古(Archaeology)
- 附魔(Enchantments)
- 雕文(glyphs)
- 物品插口(tem Socketing)
- PvP
- 竞技场(Arena)
- 战场(Battlegrounds)
- 世界战场(World Battlefields)
- 争吵(Brawl)
- 战争游戏(War Games)
- 战争模式(War Mode)
- 任务 (Quests)
- 任务日志(Quest Log)
- 任务选择(Quest Choices)
- Task Quests
- 闲聊(Gossip)
- 探险地图(Adventure Map)
- 战争战役(War Campaigns)
- 种族(Races)
- 境界(Realms)
- 报告(Reporting)
- 声望(Reputation)
- 报废的机器(Scrapping Machine)
- 法术(Spells)
- Spell Book
- 商店(Shop)
- 召唤(Summoning)
- 系统(System)
- 网络(Network)
- 控制台(Console)
- 日期时间(Date & Time)
- 调试(Debugging)
- 图形(Graphics)
- 语言环境(Locales)
- 脚本分析(Script Profiling)
- 安全执行(Secure Execution)
- 声音(Sound)
- Sound Drivers
- Talking Head
- 交易(Trading)
- 训练师(Trainer)
- 迁移(Transmogrification)
- 空白存储(Void Storage)
- 讲解(Tutorials)
- UI对象(UI Objects)
- 框架(Frame)
- 字体(Font)
- 质地(Texture)
- 混合(Mixin)
- 咒语(SpellMixin)
- ItemMixin
- 物品位置(ItemLocationMixin)
- PlayerLocationMixin
- 模型场景(ModelScene)
- 未分类
- UI窗口小部件管理器(UI Widget Manager)
- 单位(Units)
- 光环(Auras)
- 玩家(Players)
- 实用程序(Util)
- 车辆(Vehicles)
- Classic Specific Functions
- 猎人宠物(Hunter Pets)
- 专业(Professions)
- 手工制作(Crafting)
- @PvP
- 模拟器
- 训练师(Trainer)
- 8.x API
- 控制台(Console)
- 召唤(Summoning)
- See also
- 外部链接(External links)
- Widget handlers(UI交互事件)
- ScriptObject
- AnimationGroup
- Animation对象
- Alpha对象
- Scale
- LineScale
- Translation
- LineTranslation
- Path
- Rotation
- TextureCoordTranslation
- Frame
- Browser
- Button
- CheckButton
- ItemButton
- Checkout
- ColorSelect
- Cooldown
- EditBox
- FogOfWarFrame
- GameTooltip
- Model
- PlayerModel
- CinematicModel
- DressupModel
- TabardModel
- MovieFrame
- ScrollFrame
- Slider
- MessageFrame
- Minimap
- ModelScene
- OffScreenFrame
- POIFrame
- ArchaeologyDigSiteFrame
- QuestPOIFrame
- ScenarioPOIFrame
- SimpleHTML
- StatusBar
- UnitPositionFrame
- WorldFrame
- 入门
- .toc
- .lua
- .xml
- 示例
- 自动邀请插件
- 完整例子:显示任务坐标
- eCoordinates.toc
- eCoordinates.xml
- eCoordinates.lua
- 开发帮助组件
- AddOn Studio编辑器
- 暴雪自带调试工具
- DevTools调试插件
- wowlua
- 魔兽宏
- 战斗宠物命令
- 暴雪界面命令
- 聊天命令
- chat substitutions
- 角色指令
- 开发者工具
- 表情动作
- 战斗命令
- 公会命令
- 小队与团队命令、
- 宠物命令
- PvP的命令
- 系统命令
- 目标函数
- 命令
- 被禁用的命令
- 宏条件
- 装备物品编号