多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
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.