Thread: Item level
View Single Post
08-15-18, 10:50 PM   #3
Ammako
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 256
It's a bug with GetDetailedItemLevelInfo()

<Ammako> TheDanW: I think there is an issue with GetDetailedItemLevelInfo("itemLink") involving items that scale accoding to character level, that prevents it from actually returning the correct ilvl as seen in the tooltip. It takes the character level and returns an item level as if that item had been obtained at your current level, even though the item may have been obtained at a lower level, and has a lower item level.
<Ammako> For ex: GetDetailedItemLevelInfo("|cff0070dd|Hitem:155417::::::::114:263:512:11:1:4813:113:::|h[Keeper's Crescent]|h|r") returns 253 as the effectiveILvl, but the actual item is iLvl 244 because it was received at Lv. 113. Likewise, GetDetailedItemLevelInfo("|cff1eff00|Hitem:161183::::::::114:263:512:11:1:4793:114:::|h[Honorable Tiger's Cloak]|h|r") returns the correct item level as effectiveILvl (245), because it was received at Lv. 114 and I
<Ammako> was still Lv. 114 when the item link was generated.
<Ammako> GetDetailedItemLevelInfo("itemLink") goes off link level right now for scaling-enabled items, which is not reliable. Would changing the function to use upgradeValue1 instead fix it?
<TheDanW> not sure exactly why its breaking, we've had it on our list to unify GetDetailedItemLevelInfo with what you'd see in the tooltip, hopefully 8.1, no promises though
  Reply With Quote