Download
(1Kb)
Download
Updated: 11-19-10 07:40 AM
Pictures
File Info
Updated:11-19-10 07:40 AM
Created:11-19-10 07:40 AM
Downloads:4,269
Favorites:14
MD5:

nivItemLevel

Version: r1
by: Luzzifus [More]

This addon displays the average item level of a player in the tooltip on mouseover. It also shows the difference compared to your own item level in brackets.

The addon is very small and zero config. So just install and be happy.

Sidenotes:

  • Average item level calculation makes use of inspection functionality, so it is restricted to the inspection range and cap.
  • It does not work by hovering over unit frames, you have to hover your mouse over the unit model.
  • The item level will only be displayed out of combat.
  • The addon does not style the tooltip in any way. The style in the screenshot is done by another addon.

Post A Reply Comment Options
Unread 12-22-10, 10:42 AM  
WoWInterDude
A Kobold Labourer

Forum posts: 1
File comments: 16
Uploads: 0
The numbers i'm getting many times doesnt make any sense.
I got 340 based on armory and i'm getting tooltip with +15 with people having 430 or -17 on people with 342 etc.
Last edited by WoWInterDude : 12-22-10 at 10:42 AM.
Report comment to moderator  
Reply With Quote
Unread 12-21-10, 12:12 PM  
zaphon
A Defias Bandit

Forum posts: 2
File comments: 27
Uploads: 0
If you add the following changes to the addon, it will add an additional item to the Character Frame listing below Item Level named nivItemLevel which shows your actual equipped Item Level.

Code:
diff -rw nivItemLevel/nivItemLevel.lua nivItemLevel-fixed/nivItemLevel.lua
12a13,19
> 	PAPERDOLL_STATINFO["NIVITEMLEVEL"] = {
> 		updateFunc = function(statFrame, unit)
> 			PaperDollFrame_SetLabelAndText(statFrame, "nivItemLevel", ownItemLevel)
> 			statFrame:Show()
> 		end
> 	}
> 	tinsert(PAPERDOLL_STATCATEGORIES["GENERAL"].stats, "NIVITEMLEVEL")
Feel free to drop this into the main code base if you would like.
Report comment to moderator  
Reply With Quote
Unread 12-18-10, 06:49 AM  
Delena
A Cyclonian
 
Delena's Avatar
AddOn Author - Click to view AddOns

Forum posts: 49
File comments: 19
Uploads: 3
Interesting addon, exactly what I was looking for.
I can't see my own average ilvl though.

Thanks.
__________________
armory profile
Report comment to moderator  
Reply With Quote
Unread 12-18-10, 01:59 AM  
XokEE
A Murloc Raider

Forum posts: 4
File comments: 1
Uploads: 0
Exactly what I was looking for. Thanks!

Would it be possible to make it ignore the tabard and shirt slots? Not sure about shirts but there are tabards of many different ilvls which throws off the average a bit.

Keep up the good work!
Report comment to moderator  
Reply With Quote
Unread 11-19-10, 03:51 PM  
Luzzifus
A Warpwood Thunder Caller
 
Luzzifus's Avatar
AddOn Author - Click to view AddOns

Forum posts: 94
File comments: 237
Uploads: 6
Originally posted by Dridzt
Blizzard's itemlevel average is calculated by adding together the itemlevel of the highest level item you own
(ie is soulbound and anywhere bank and banks included) per slot and averaged over all slots.
as opposed to the items you actually have equipped.
Thanks for the clarification. In that case, I like my average of the equipped items more.
Report comment to moderator  
Reply With Quote
Unread 11-19-10, 03:37 PM  
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1360
File comments: 829
Uploads: 55
Oh, I can tell you how they calculate their own and could also post a snippet to make the current player's itemlevel average be exactly the same.
Edit:
I meant a snippet that will reproduce the result of GetAverageItemLevel()
Since that built-in function will return the Blizzard ilvl average but only for the player.

However it is currently impossible to add that to other people's tooltips without inter-addon communication.

Blizzard's itemlevel average is calculated by adding together the itemlevel of the highest level item you own
(ie is soulbound and anywhere bank and banks included) per slot and averaged over all slots.
as opposed to the items you actually have equipped.

Since there is no way for an addon (save addon communication and that raises a whole sort of different trust issues) to know what other players have in their bags or bank there is currently no way to get Blizzard's itemlevel on someone else's tooltip.

As for your other comment I don't know how to interpret it exactly,
but I will say that when you create something and release it to the public
you definitely have some responsibility over potential use (and abuse).
Last edited by Dridzt : 11-19-10 at 04:01 PM.
Report comment to moderator  
Reply With Quote
Unread 11-19-10, 02:45 PM  
Luzzifus
A Warpwood Thunder Caller
 
Luzzifus's Avatar
AddOn Author - Click to view AddOns

Forum posts: 94
File comments: 237
Uploads: 6
Originally posted by Dridzt
As long as you realize this is not the same number as you get
when you look at your own character sheet.
Correct. There is no source code available for the function blizzard uses to calculate the players item level. At least I wasn't able to find it in the whole wow-ui-source. They are doing something funky in the calculation which differs from a simple average. Maybe applying weight factors to specific slots or something. I really tried but couldn't "emulate" blizzards numbers. My values are at least consistent in a way that the own item level average is also calculated my way. Moreover, my values are still pretty close to Blizzards numbers.

Originally posted by Dridzt
* and don't try to make this into the new gearscore...
Thanks for bringing it to my attention. But I sincerely hope that was the last time I'll get a comment like this. I really do not care what anyone uses the values for.
Last edited by Luzzifus : 11-19-10 at 02:48 PM.
Report comment to moderator  
Reply With Quote
Unread 11-19-10, 02:22 PM  
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1360
File comments: 829
Uploads: 55
Originally posted by Maxen
Thanks, I was looking for something like this !
As long as you realize this is not the same number as you get
when you look at your own character sheet.

* and don't try to make this into the new gearscore...
Report comment to moderator  
Reply With Quote
Unread 11-19-10, 09:59 AM  
Maxen
A Fallenroot Satyr

Forum posts: 23
File comments: 235
Uploads: 0
Thanks, I was looking for something like this !
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: