WoW:API GetAverageItemLevel: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Update to Example and Arguements)
m (Move page script moved page API GetAverageItemLevel to API GetAverageItemLevel without leaving a redirect)
 
(One intermediate revision by one other user not shown)
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())

Latest revision as of 04:45, 15 August 2023

WoW API < GetAverageItemLevel

Return the internal Blizzard calculated overall and equipped Item Levels for the current player.

WoW API < GetAverageItemLevel

overall, equipped = GetAverageItemLevel()

Arguments[edit]

None

Returns[edit]

overall
Number - Total calculated Item Level of gear(bags and equipped).
equipped
Number - Calculated Item Level of equipped gear.

Example[edit]

print("Average iLevel is: " .. GetAverageItemLevel())