WoW API: GetPVPSessionStats

Revision as of 04:46, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetPVPSessionStats to API GetPVPSessionStats without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WoW API < GetPVPSessionStats


Gets the amount of honorable kills and honor points you have for the current session ( today ).

local hk, hp = GetPVPSessionStats();


ArgumentsEdit

None


ReturnsEdit

hk
Integer - Amount of honorable kills you have today, returns 0 if you havn't killed anybody today.
hp
Integer - Estimated honor points for today


DetailsEdit

Used for retrieving how many honorable kills and honor points you have for today, currently the honor points value is calculated using the estimated honor points from killing an enemy player, and does not take diminishing returns or bonus honor into effect.


ExampleEdit

Displays how many honorable kills and estimated honor points you have for today.

local hk, hp = GetPVPSessionStats();
DEFAULT_CHAT_FRAME:AddMessage( "You currently have " .. hk .. " honorable kills today, and an estimated " .. hp .. " honor points." );