Fandom

WoWWiki

API GetPVPLifetimeStats

104,632pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < GetPVPLifetimeStats

Gets the statistics about your lifetime PVP contributions.

honorableKills, dishonorableKills, highestRank = GetPVPLifetimeStats()


Arguments Edit

none


Returns Edit

(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 Edit

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.

Also on Fandom

Random Wiki