WoW:API GetPVPLifetimeStats: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Move page script moved page API GetPVPLifetimeStats to API GetPVPLifetimeStats without leaving a redirect) |
||
| (5 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
Gets the statistics about your lifetime PVP contributions. | |||
honorableKills, dishonorableKills, highestRank = GetPVPLifetimeStats() | |||
== Arguments == | |||
:none | |||
== Returns == | |||
:(honorableKills, dishonorableKills, highestRank) | |||
:; honorableKills : Number - The number of honorable kills you have made | |||
:; dishonorableKills : Number - The number of dishonorable kills you have made | |||
:; highestRank : Number - The highest rank you have achieved (Use [[API GetPVPRankInfo|GetPVPRankInfo]](highestRank) to get the name of the rank) | |||
== Example == | |||
local _, _, highestRank = GetPVPLifetimeStats(); | |||
local pvpRank = GetPVPRankInfo(highestRank); | |||
DEFAULT_CHAT_FRAME:AddMessage(pvpRank); | |||
<big>'''Result'''</big> | |||
Prints the player's PVP rank name to the default chat frame. | |||
Latest revision as of 04:46, 15 August 2023
← WoW API < GetPVPLifetimeStats
Gets the statistics about your lifetime PVP contributions.
honorableKills, dishonorableKills, highestRank = GetPVPLifetimeStats()
Arguments
- none
Returns
- (honorableKills, dishonorableKills, highestRank)
- honorableKills
- Number - The number of honorable kills you have made
- dishonorableKills
- Number - The number of dishonorable kills you have made
- highestRank
- Number - The highest rank you have achieved (Use GetPVPRankInfo(highestRank) to get the name of the rank)
Example
local _, _, highestRank = GetPVPLifetimeStats(); local pvpRank = GetPVPRankInfo(highestRank); DEFAULT_CHAT_FRAME:AddMessage(pvpRank);
Result
Prints the player's PVP rank name to the default chat frame.