Go to Page... |
Updated: | 08-29-13 10:45 AM |
Created: | 04-10-11 06:10 AM |
Downloads: | 21,698 |
Favorites: | 56 |
MD5: |
Displays a person's equipped average item level when you mouseover them and has LDB support to show your equipped/overall item levels and a tooltip to show a sorted list of all the item levels of your group members who have been scanned (mouse'd over). The list of group members and their item levels can be send to party/raid by left clicking on the LDB display.
Use '/eailt' in-game to configure the addon.
The addon scans the gear that the person is wearing, so if a person is only wearing two pieces of gear the item level displayed will be the average of the two items equipped. In these situations the item level displayed will not be the same as what blizzard says the person's equipped item level is on their own character sheet because Blizzard averages based on what the person could have equipped and not what they actually have equipped.
Comment Options |
06-07-12, 04:07 AM | ||
|
__________________
Author of: Equipped Average Item Level :: ExtraBar :: Killing Blow Emote :: RecordTip |
|
|
Cowmonster |
View Public Profile |
Send a private message to Cowmonster |
Find More Posts by Cowmonster |
Add Cowmonster to Your Buddy List |
06-07-12, 12:18 AM | |
|
Getting this error on every mouseover:
Lua Code:
I see this same error was reported almost 6 months ago with no reply from the author. Has this addon been abandoned?
__________________
♪~ ( ̄。 ̄ ) I ♥ My Sonos! AddOn Authors: If your addon spams the chat box with "Addon v8.3.4.5.3 now loaded!", please add an option to disable it! |
|
Petrah |
View Public Profile |
Send a private message to Petrah |
Visit Petrah's homepage! |
Find More Posts by Petrah |
Add Petrah to Your Buddy List |
Angrysteel |
View Public Profile |
Send a private message to Angrysteel |
Visit Angrysteel's homepage! |
Find More Posts by Angrysteel |
Add Angrysteel to Your Buddy List |
12-29-11, 10:12 PM | |
|
Dangerous and fragile coding
Hi - I'm an addon author and was directed to this addon by my users, who have discovered this addon creates conflicts with some of my own (eg this ticket).
Upon reviewing ths code for Equipped Average Item Level, I was horrified to see the way in which you're needlessly hijacking so many Blizzard API functions. (By hijacking, I mean declaring or assigning function symbols at the global level that replace Blizzard-provided functions in _G[] with your own versions that do different things). This is really poor coding practice and very likely to lead to more conflicts with other addons. Philosophically, it's really not your business to go changing Blizzard API functions unless that's a clearly stated purpose of your addon (very rarely acceptable). Here are some specific recommendations I'd like to suggest: * Remove the hijacking of GetAverageItemLevel(). Your "replacement" is returning the wrong datatype (strings instead of numbers) which breaks other addons. The best-practice way to accomplish what you want is to write a local wrapper function and call that directly in your addon. * Removing the hijacking of NotifyInspect and InspectGuildFrame_Update. Same reasons. * Remove the hijacking on GuildRoster_Update. The correct way to accomplish what you want here is to do something like: Code:
hooksecurefunc("GuildRoster_Update", your-function)
__________________
Author of BigBrother, ProfessionsVault, InspectFix, RetardCheck, RoleIcons, SavedInstances |
|
oscarucb |
View Public Profile |
Send a private message to oscarucb |
Visit oscarucb's homepage! |
Find More Posts by oscarucb |
Add oscarucb to Your Buddy List |
12-24-11, 02:43 AM | |||
|
__________________
Author of: Equipped Average Item Level :: ExtraBar :: Killing Blow Emote :: RecordTip |
||
|
Cowmonster |
View Public Profile |
Send a private message to Cowmonster |
Visit Cowmonster's homepage! |
Find More Posts by Cowmonster |
Add Cowmonster to Your Buddy List |
Mitschel |
View Public Profile |
Send a private message to Mitschel |
Visit Mitschel's homepage! |
Find More Posts by Mitschel |
Add Mitschel to Your Buddy List |
12-17-11, 05:26 PM | ||
|
High iLvLs
__________________
|
|
|
unstoppixel |
View Public Profile |
Send a private message to unstoppixel |
Visit unstoppixel's homepage! |
Find More Posts by unstoppixel |
Add unstoppixel to Your Buddy List |
12-11-11, 01:03 AM | ||
|
Blizzard Method: Let's say you have a Paladin tank who is wearing all 378 gear. That means that he has an item level of 378 since if you add up all the item levels of his gear you get 6,426 and to get the average with 17 pieces of gear you divide by 17 and you get 378. Now let's say he takes off everything that could potentially take a durability loss and now he has on neck, rings and trinkets which would be 1,890. The way blizzard does it they still divide by 17 and those empty slots count against the item level, so the tankadin's item level is now 111 according to blizzard. My Method: Prior to blizzard actually adding in the equipped item level my addon ignored empty slots amd calculated based on the equipped gear so that paladin with only 5 pieces of gear equipped (1,890/5=378) still shows a 378 item level. I figured if my addon showed different numbers from blizzard that might cause some confusion so both methods are included in the addon. Now one method or the other won't preclude errors because of throttling. Throttling: Now let's say we use the blizzard method from before and mouse over that tankadin. The addon asks blizzard for the gear that the tankadin is wearing so it can calculate item level. Blizzard throttles the request and sends us the item information on 5 pieces of gear instead of the 17 pieces the paladin is wearing. The addon calculates the item level based on the info it has and as we already know 1,890/5=111. Now if we wait a few moments more and blizzard sends us the rest of the information then we can calculate that the actual item level is 378, but at first we will see a number that we know can't be right. Rounding: Of course we all know that the rule of rounding in math is 5 or higher and we round up and below 5 we round down, so 0.567 becomes 1 and 20.123 becomes 20 when rounded to the nearest whole number. Apparently blizzard missed the memo, so they ALWAYS round down. If your item level is 379.99999999, blizzard will display 379 on the paperdoll frame. I can't bring myself to violate such a simple mathematical principal, so you may notice that blizzard says 379, but my addon says 380. To sum it all up, please, try the other method and see if the numbers you get are more satisfactory. If not let me know and I'll try to find a way to better work around the road blocks blizzard has in place. That's one of the main reasons for the configuration panel, so people can have the addon function the way that suits them best (hopefully).
__________________
Author of: Equipped Average Item Level :: ExtraBar :: Killing Blow Emote :: RecordTip |
|
|
Cowmonster |
View Public Profile |
Send a private message to Cowmonster |
Visit Cowmonster's homepage! |
Find More Posts by Cowmonster |
Add Cowmonster to Your Buddy List |
12-10-11, 08:16 PM | |
A Kobold Labourer
Forum posts: 0
File comments: 37
Uploads: 0
|
The strange thing is: I often got wrong ilvl of other people when using 1.3.7 as well as 1.3.8(many ilvl=4xx and obviously it is not correct), but without these faults with version 1.3.6.
|
|
bikikitty |
View Public Profile |
Send a private message to bikikitty |
Visit bikikitty's homepage! |
Find More Posts by bikikitty |
Add bikikitty to Your Buddy List |
12-09-11, 05:59 PM | ||
|
__________________
Author of: Equipped Average Item Level :: ExtraBar :: Killing Blow Emote :: RecordTip |
|
|
Cowmonster |
View Public Profile |
Send a private message to Cowmonster |
Visit Cowmonster's homepage! |
Find More Posts by Cowmonster |
Add Cowmonster to Your Buddy List |
12-09-11, 05:57 PM | ||
|
__________________
Author of: Equipped Average Item Level :: ExtraBar :: Killing Blow Emote :: RecordTip |
|
|
Cowmonster |
View Public Profile |
Send a private message to Cowmonster |
Visit Cowmonster's homepage! |
Find More Posts by Cowmonster |
Add Cowmonster to Your Buddy List |
12-09-11, 05:19 PM | |
|
There an empty line between the iLvl display and the rest of the tooltip info as a suggestion it would be nice to have that removed it seems to just to add extra space that the tooltips take, thanks
|
|
excitor |
View Public Profile |
Send a private message to excitor |
Visit excitor's homepage! |
Find More Posts by excitor |
Add excitor to Your Buddy List |
12-09-11, 09:07 AM | |
|
Hey I went back to your description to read what the 2nd number was (in parenthesis) and you changed it to a description of why things are the way they are, but not what the addon's actual functions are. Thought maybe you'd want to include both. Just a suggestion
Keep up the good work!
__________________
Last edited by unstoppixel : 12-10-11 at 11:06 AM.
|
|
unstoppixel |
View Public Profile |
Send a private message to unstoppixel |
Visit unstoppixel's homepage! |
Find More Posts by unstoppixel |
Add unstoppixel to Your Buddy List |
12-09-11, 04:49 AM | |||
|
I also added a couple of static variables at the top of the Core.lua file which will probably become an in-game configuration later, but for right now just a quick and dirty way for you to configure the addon a bit to suit your personal preferences. EAILT_DEC - the number of decimal places to display in item levels. (Set this to 0 to round the numbers off completely) EAILT_IGNORE_EMPTY - This one is set to 0 which makes the numbers come out much closer to what Blizzard says their equipped item level is. Basically the reason my numbers may differ from Blizzard's is because there are rules about rounding in math and I follow the rules. Blizzard doesn't care if the number is 378.1 or 378.9 to them it is just 378 which according to that pesky afore mentioned rule would make it 379. If this value is changed to 1 then Blizzard will say a person's item level is the sum total of the gear they are wearing divided by 16 (17 in the case of dual wield) which if they are wearing only 3 pieces of gear will make their item level very low. With the value set to 1 my addon will only look at the average of the 3 pieces of gear the person is actually wearing. Code:
local f = CreateFrame("Frame", nil, UIParent) UnitItemLevelDB = {} EAILT_DEC = 1 --Number of decimal places to display in item levels. EAILT_IGNORE_EMPTY = 0 --Whether or not to ignore empty item slots. (Blizzard item level does not ignore)
__________________
Author of: Equipped Average Item Level :: ExtraBar :: Killing Blow Emote :: RecordTip
Last edited by Cowmonster : 12-09-11 at 04:50 AM.
|
||
|
Cowmonster |
View Public Profile |
Send a private message to Cowmonster |
Visit Cowmonster's homepage! |
Find More Posts by Cowmonster |
Add Cowmonster to Your Buddy List |
12-09-11, 01:13 AM | ||
A Kobold Labourer
Forum posts: 1
File comments: 8
Uploads: 0
|
iLVL of mine is 390.58822631836(392.5625). iLvl for other have no decimal point. I'm using another addon for item simulation. it shows 390.6 for my item. Thanks~! |
|
|
helloearth |
View Public Profile |
Send a private message to helloearth |
Visit helloearth's homepage! |
Find More Posts by helloearth |
Add helloearth to Your Buddy List |