These functions relate to[Player vs. Player](https://wow.gamepedia.com/Player_vs._Player "Player vs. Player").
[C\_PvP.CanDisplayDeaths](https://wow.gamepedia.com/API_C_PvP.CanDisplayDeaths "API C PvP.CanDisplayDeaths")()
[C\_PvP.CanDisplayHonorableKills](https://wow.gamepedia.com/API_C_PvP.CanDisplayHonorableKills "API C PvP.CanDisplayHonorableKills")()
[C\_PvP.DoesMatchOutcomeAffectRating](https://wow.gamepedia.com/API_C_PvP.DoesMatchOutcomeAffectRating "API C PvP.DoesMatchOutcomeAffectRating")()
[C\_PvP.GetActiveMatchBracket](https://wow.gamepedia.com/API_C_PvP.GetActiveMatchBracket "API C PvP.GetActiveMatchBracket")()
[C\_PvP.GetActiveMatchDuration](https://wow.gamepedia.com/API_C_PvP.GetActiveMatchDuration "API C PvP.GetActiveMatchDuration")()
[C\_PvP.GetActiveMatchState](https://wow.gamepedia.com/API_C_PvP.GetActiveMatchState "API C PvP.GetActiveMatchState")()
[C\_PvP.GetActiveMatchWinner](https://wow.gamepedia.com/API_C_PvP.GetActiveMatchWinner "API C PvP.GetActiveMatchWinner")()
[C\_PvP.GetGlobalPvpScalingInfoForSpecID](https://wow.gamepedia.com/API_C_PvP.GetGlobalPvpScalingInfoForSpecID "API C PvP.GetGlobalPvpScalingInfoForSpecID")(specializationID)
[C\_PvP.GetHonorRewardInfo](https://wow.gamepedia.com/API_C_PvP.GetHonorRewardInfo "API C PvP.GetHonorRewardInfo")(honorLevel)
[C\_PvP.GetMatchPVPStatColumn](https://wow.gamepedia.com/API_C_PvP.GetMatchPVPStatColumn "API C PvP.GetMatchPVPStatColumn")(pvpStatID)
[C\_PvP.GetMatchPVPStatIDs](https://wow.gamepedia.com/API_C_PvP.GetMatchPVPStatIDs "API C PvP.GetMatchPVPStatIDs")()
[C\_PvP.GetNextHonorLevelForReward](https://wow.gamepedia.com/API_C_PvP.GetNextHonorLevelForReward "API C PvP.GetNextHonorLevelForReward")(honorLevel)
[C\_PvP.GetOutdoorPvPWaitTime](https://wow.gamepedia.com/API_C_PvP.GetOutdoorPvPWaitTime "API C PvP.GetOutdoorPvPWaitTime")(uiMapID) - Returns the number of seconds until the next battle in a given world PvP zone.
[C\_PvP.GetPVPActiveMatchPersonalRatedInfo](https://wow.gamepedia.com/API_C_PvP.GetPVPActiveMatchPersonalRatedInfo "API C PvP.GetPVPActiveMatchPersonalRatedInfo")()
[C\_PvP.GetPostMatchCurrencyRewards](https://wow.gamepedia.com/API_C_PvP.GetPostMatchCurrencyRewards "API C PvP.GetPostMatchCurrencyRewards")()
[C\_PvP.GetPostMatchItemRewards](https://wow.gamepedia.com/API_C_PvP.GetPostMatchItemRewards "API C PvP.GetPostMatchItemRewards")()
[C\_PvP.GetPvpTierInfo](https://wow.gamepedia.com/API_C_PvP.GetPvpTierInfo "API C PvP.GetPvpTierInfo")(tierID)
[C\_PvP.GetRewardItemLevelsByTierEnum](https://wow.gamepedia.com/API_C_PvP.GetRewardItemLevelsByTierEnum "API C PvP.GetRewardItemLevelsByTierEnum")(pvpTierEnum)
[C\_PvP.GetScoreInfo](https://wow.gamepedia.com/API_C_PvP.GetScoreInfo "API C PvP.GetScoreInfo")(offsetIndex)
[C\_PvP.GetScoreInfoByPlayerGuid](https://wow.gamepedia.com/API_C_PvP.GetScoreInfoByPlayerGuid "API C PvP.GetScoreInfoByPlayerGuid")("guid")
[C\_PvP.GetSeasonBestInfo](https://wow.gamepedia.com/API_C_PvP.GetSeasonBestInfo "API C PvP.GetSeasonBestInfo")()
[C\_PvP.GetSkirmishInfo](https://wow.gamepedia.com/API_C_PvP.GetSkirmishInfo "API C PvP.GetSkirmishInfo")(pvpBracket)
[C\_PvP.GetTeamInfo](https://wow.gamepedia.com/API_C_PvP.GetTeamInfo "API C PvP.GetTeamInfo")(factionIndex)
[C\_PvP.GetWeeklyChestInfo](https://wow.gamepedia.com/API_C_PvP.GetWeeklyChestInfo "API C PvP.GetWeeklyChestInfo")()
[C\_PvP.IsActiveMatchRegistered](https://wow.gamepedia.com/API_C_PvP.IsActiveMatchRegistered "API C PvP.IsActiveMatchRegistered")()
[C\_PvP.IsMatchFactional](https://wow.gamepedia.com/API_C_PvP.IsMatchFactional "API C PvP.IsMatchFactional")()
[C\_PvP.IsPVPMap](https://wow.gamepedia.com/API_C_PvP.IsPVPMap "API C PvP.IsPVPMap")()
[C\_PvP.IsRatedMap](https://wow.gamepedia.com/API_C_PvP.IsRatedMap "API C PvP.IsRatedMap")()
[C\_PvP.RequestCrowdControlSpell](https://wow.gamepedia.com/API_C_PvP.RequestCrowdControlSpell "API C PvP.RequestCrowdControlSpell")("playerToken")
[AcceptDuel](https://wow.gamepedia.com/API_AcceptDuel "API AcceptDuel")() - The player accepts the challenge to duel.
[CancelDuel](https://wow.gamepedia.com/API_CancelDuel "API CancelDuel")() - Refuse the invitation to fight a duel.
[ClearBattlemaster](https://wow.gamepedia.com/index.php?title=API_ClearBattlemaster&action=edit&redlink=1 "API ClearBattlemaster (page does not exist)")()
[ForfeitDuel](https://wow.gamepedia.com/index.php?title=API_ForfeitDuel&action=edit&redlink=1 "API ForfeitDuel (page does not exist)")()
[GetPVPDesired](https://wow.gamepedia.com/API_GetPVPDesired "API GetPVPDesired")() - Returns whether the player has permanently turned on their PvP flag.
[GetPVPLifetimeStats](https://wow.gamepedia.com/API_GetPVPLifetimeStats "API GetPVPLifetimeStats")() - Get your PvP/Honor statistics for your lifetime.
[GetPVPRoles](https://wow.gamepedia.com/API_GetPVPRoles "API GetPVPRoles")(
[GetPVPSessionStats](https://wow.gamepedia.com/API_GetPVPSessionStats "API GetPVPSessionStats")() - Get your PvP/Honor statistics for this session.
[GetPVPTimer](https://wow.gamepedia.com/API_GetPVPTimer "API GetPVPTimer")() - Returns the amount of time until your PvP flag fades.
[GetPVPYesterdayStats](https://wow.gamepedia.com/API_GetPVPYesterdayStats "API GetPVPYesterdayStats")() - Get your PvP/Honor statistics for yesterday.
[GetRewardPackArtifactPower](https://wow.gamepedia.com/index.php?title=API_GetRewardPackArtifactPower&action=edit&redlink=1 "API GetRewardPackArtifactPower (page does not exist)")(rewardPackID)
[GetRewardPackCurrencies](https://wow.gamepedia.com/index.php?title=API_GetRewardPackCurrencies&action=edit&redlink=1 "API GetRewardPackCurrencies (page does not exist)")(rewardPackID)
[GetRewardPackItems](https://wow.gamepedia.com/index.php?title=API_GetRewardPackItems&action=edit&redlink=1 "API GetRewardPackItems (page does not exist)")(rewardPackID)
[GetRewardPackMoney](https://wow.gamepedia.com/index.php?title=API_GetRewardPackMoney&action=edit&redlink=1 "API GetRewardPackMoney (page does not exist)")(rewardPackID)
[GetRewardPackTitleName](https://wow.gamepedia.com/index.php?title=API_GetRewardPackTitleName&action=edit&redlink=1 "API GetRewardPackTitleName (page does not exist)")(titleID)
[GetRewardPackTitle](https://wow.gamepedia.com/index.php?title=API_GetRewardPackTitle&action=edit&redlink=1 "API GetRewardPackTitle (page does not exist)")(rewardPackID)
[IsCompetitiveModeEnabled](https://wow.gamepedia.com/index.php?title=API_IsCompetitiveModeEnabled&action=edit&redlink=1 "API IsCompetitiveModeEnabled (page does not exist)")() - Unused in FrameXML.
[IsInActiveWorldPVP](https://wow.gamepedia.com/index.php?title=API_IsInActiveWorldPVP&action=edit&redlink=1 "API IsInActiveWorldPVP (page does not exist)")()
[IsPartyWorldPVP](https://wow.gamepedia.com/index.php?title=API_IsPartyWorldPVP&action=edit&redlink=1 "API IsPartyWorldPVP (page does not exist)")()
[IsSubZonePVPPOI](https://wow.gamepedia.com/index.php?title=API_IsSubZonePVPPOI&action=edit&redlink=1 "API IsSubZonePVPPOI (page does not exist)")()
[PlayerIsPVPInactive](https://wow.gamepedia.com/index.php?title=API_PlayerIsPVPInactive&action=edit&redlink=1 "API PlayerIsPVPInactive (page does not exist)")("unit")
[QueryWorldCountdownTimer](https://wow.gamepedia.com/index.php?title=API_QueryWorldCountdownTimer&action=edit&redlink=1 "API QueryWorldCountdownTimer (page does not exist)")(TimerType) - Used for the pvp countdown timer.
[RequestPVPOptionsEnabled](https://wow.gamepedia.com/index.php?title=API_RequestPVPOptionsEnabled&action=edit&redlink=1 "API RequestPVPOptionsEnabled (page does not exist)")()
[RequestPVPRewards](https://wow.gamepedia.com/index.php?title=API_RequestPVPRewards&action=edit&redlink=1 "API RequestPVPRewards (page does not exist)")()
[SetPVPRoles](https://wow.gamepedia.com/API_SetPVPRoles "API SetPVPRoles")()
[SetPVP](https://wow.gamepedia.com/API_SetPVP "API SetPVP")(enable) - Sets the players PVP mode (1 to enable, nil to toggle off eventually).
[SortBGList](https://wow.gamepedia.com/index.php?title=API_SortBGList&action=edit&redlink=1 "API SortBGList (page does not exist)")() - Unused in FrameXML.
[StartDuel](https://wow.gamepedia.com/API_StartDuel "API StartDuel")("name") - Challenge someone to a duel (by name)
[TogglePVP](https://wow.gamepedia.com/API_TogglePVP "API TogglePVP")() - Toggles PVP status.
[UnitHonor](https://wow.gamepedia.com/API_UnitHonor "API UnitHonor")("unit") - Returns the amount of honor the unit has for the current rank.
[UnitHonorLevel](https://wow.gamepedia.com/API_UnitHonorLevel "API UnitHonorLevel")("unit") - Returns the current honor rank for the unit.
[UnitHonorMax](https://wow.gamepedia.com/API_UnitHonorMax "API UnitHonorMax")("unit") - Returns the maximum amount of honor for the current rank.
[UnitIsMercenary](https://wow.gamepedia.com/index.php?title=API_UnitIsMercenary&action=edit&redlink=1 "API UnitIsMercenary (page does not exist)")()
[UnitIsPVPFreeForAll](https://wow.gamepedia.com/API_UnitIsPVPFreeForAll "API UnitIsPVPFreeForAll")("unit") - Returns true if the specified unit is flagged for free-for-all PVP, false otherwise.
[UnitIsPVPSanctuary](https://wow.gamepedia.com/index.php?title=API_UnitIsPVPSanctuary&action=edit&redlink=1 "API UnitIsPVPSanctuary (page does not exist)")("unit") - Returns whether the unit is in a PvP sanctuary, and therefore cannot be attacked by other players.
[UnitIsPVP](https://wow.gamepedia.com/API_UnitIsPVP "API UnitIsPVP")("unit") - Returns true if the specified unit is flagged for PVP, false otherwise.
[UnitPVPName](https://wow.gamepedia.com/API_UnitPVPName "API UnitPVPName")("unit") - Returns unit's name with PvP rank prefix (e.g., "Corporal Allianceguy").
[UnitPvpClassification](https://wow.gamepedia.com/API_UnitPvpClassification "API UnitPvpClassification")("unit") - Returns whether the unit is a flag/orb carrier or cart runner.
- 基礎
- 循環
- 迭代器
- 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的命令
- 系統命令
- 目標函數
- 命令
- 被禁用的命令
- 宏條件
- 裝備物品編號