WoW:API GetAverageItemLevel: Difference between revisions
Jump to navigation
Jump to search
(Update to Example and Arguements) |
No edit summary |
||
Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | {{wowapi}} __NOTOC__ | ||
Return the internal Blizzard calculated overall and equipped Item Levels for the current player. | |||
{{wowapi}} | {{wowapi}} | ||
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> | <!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> | ||
GetAverageItemLevel() | overall, equipped = GetAverageItemLevel() | ||
== Arguments == | |||
None | None | ||
- | == Returns == | ||
; | ; overall : Number - Total calculated Item Level of gear(bags and equipped). | ||
; equipped : Number - Calculated Item Level of equipped gear. | |||
: | |||
== Example == | |||
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> | <!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> | ||
print("Average iLevel is: " .. GetAverageItemLevel()) | print("Average iLevel is: " .. GetAverageItemLevel()) |
Revision as of 14:12, 14 January 2012
← WoW API < GetAverageItemLevel
Return the internal Blizzard calculated overall and equipped Item Levels for the current player.
← WoW API < GetAverageItemLevel
overall, equipped = GetAverageItemLevel()
Arguments
None
Returns
- overall
- Number - Total calculated Item Level of gear(bags and equipped).
- equipped
- Number - Calculated Item Level of equipped gear.
Example
print("Average iLevel is: " .. GetAverageItemLevel())