wowpedia
Main Menu


Returns the character's lifetime PvP statistics.

honorableKills, dishonorableKills, highestRank = GetPVPLifetimeStats()

Returns

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.