WoW:API GetPVPSessionStats: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
(Updated for 2.0.1)
Line 1: Line 1:
'''hk, dk = GetPVPSessionStats()'''
{{wowapi}}
Gets the amount of honorable kills and honor points you have for the current session ( today ).


Get the statistics about your PvP contribution for this session.
local hk, hp = GetPVPSessionStats();


{{Template:WoW API}}
== Parameters ==
=== Arguments ===
 
None
 
----
=== Returns ===
 
:;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
----
 
=== Details ===
 
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.
 
----
=== Example ===
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." );

Revision as of 06:00, 10 December 2006

WoW API < GetPVPSessionStats

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

local hk, hp = GetPVPSessionStats();

Parameters

Arguments

None


Returns

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

Details

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.


Example

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." );