WoW:API GetAverageItemLevel: Difference between revisions

no edit summary
(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()
 
Return the internal Blizzard calculated iLevel for the current player.
----
;''Arguments''


== Arguments ==
None
None


----
== Returns ==
;''Returns''
; overall : Number - Total calculated Item Level of gear(bags and equipped).
 
; equipped : Number - Calculated Item Level of equipped gear.
:''Number''


----
== Example ==
;''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())
Anonymous user