WoW LibItemUpgradeInfo-1.0 addon Shadowlands/classic 2021
logo
wow addon LibItemUpgradeInfo-1.0

LibItemUpgradeInfo-1.0

Game Version: 9.0.1
Total Downloads: 51,622
Updated: Oct 17, 2020
Created: Feb 15, 2013
download LibItemUpgradeInfo-1.0Download Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
Release-90001-31 release 11.49 KB Oct 17, 2020 9.0.1 1 download LibItemUpgradeInfo-1.0 Release-90001-31 releaseDownload
Release-80200-30 release 11.44 KB Sep 15, 2019 8.2.0 1,930 download LibItemUpgradeInfo-1.0 Release-80200-30 releaseDownload
Release-80000-30 release 11.42 KB Jul 19, 2018 8.0.1 3,034 download LibItemUpgradeInfo-1.0 Release-80000-30 releaseDownload
Release-70300-30 release 11.51 KB Dec 20, 2017 7.3.0 2,537 download LibItemUpgradeInfo-1.0 Release-70300-30 releaseDownload
Release-70300-29 release 10.78 KB Aug 31, 2017 7.3.0 2,432 download LibItemUpgradeInfo-1.0 Release-70300-29 releaseDownload
Release-70300-28 release 10.76 KB Aug 30, 2017 7.3.0 94 download LibItemUpgradeInfo-1.0 Release-70300-28 releaseDownload
Release-70200-28 release 10.80 KB Mar 28, 2017 7.2.0 3,675 download LibItemUpgradeInfo-1.0 Release-70200-28 releaseDownload
Release-70100-28 release 10.99 KB Nov 7, 2016 7.1.0 4,768 download LibItemUpgradeInfo-1.0 Release-70100-28 releaseDownload
Release-70100-27 release 10.95 KB Oct 30, 2016 7.1.0 3,046 download LibItemUpgradeInfo-1.0 Release-70100-27 releaseDownload
Release-70100-26 release 10.63 KB Oct 27, 2016 7.1.0 2,823 download LibItemUpgradeInfo-1.0 Release-70100-26 releaseDownload
Release-70000-25 release 9.69 KB Oct 3, 2016 7.0.3 3,313 download LibItemUpgradeInfo-1.0 Release-70000-25 releaseDownload
Release-70000-24 release 9.72 KB Jul 20, 2016 7.0.3 4,029 download LibItemUpgradeInfo-1.0 Release-70000-24 releaseDownload
Release-70000-23 release 9.70 KB Jul 19, 2016 7.0.3 471 download LibItemUpgradeInfo-1.0 Release-70000-23 releaseDownload
Release-60204-22 release 9.73 KB Jul 16, 2016 6.2.4 566 download LibItemUpgradeInfo-1.0 Release-60204-22 releaseDownload
Release-60204-21 release 9.79 KB Jun 18, 2016 6.2.4 876 download LibItemUpgradeInfo-1.0 Release-60204-21 releaseDownload
Release-60204-20 release 9.75 KB May 30, 2016 6.2.4 682 download LibItemUpgradeInfo-1.0 Release-60204-20 releaseDownload
Release-60204-19 release 9.67 KB May 29, 2016 6.2.4 362 download LibItemUpgradeInfo-1.0 Release-60204-19 releaseDownload
Release-60203-18 release 9.80 KB Mar 2, 2016 6.2.3 1,156 download LibItemUpgradeInfo-1.0 Release-60203-18 releaseDownload
Release-60203-15 release 9.47 KB Dec 30, 2015 6.2.3 951 download LibItemUpgradeInfo-1.0 Release-60203-15 releaseDownload
Release-60203-14 release 9.40 KB Dec 28, 2015 6.2.3 381 download LibItemUpgradeInfo-1.0 Release-60203-14 releaseDownload
Release-60203-13 release 9.31 KB Nov 20, 2015 6.2.3 1,001 download LibItemUpgradeInfo-1.0 Release-60203-13 releaseDownload
1.0.13 release 9.24 KB Oct 12, 2015 6.2.2 741 download LibItemUpgradeInfo-1.0 1.0.13 releaseDownload
1.0.12 release 9.35 KB Oct 4, 2015 6.2.2 499 download LibItemUpgradeInfo-1.0 1.0.12 releaseDownload
1.0.11 release 9.25 KB Sep 18, 2015 6.2.2 567 download LibItemUpgradeInfo-1.0 1.0.11 releaseDownload
1.0.10 release 9.16 KB Sep 7, 2015 6.2.2 476 download LibItemUpgradeInfo-1.0 1.0.10 releaseDownload
1.1.0 release 9.25 KB Aug 30, 2015 6.2.0 553 download LibItemUpgradeInfo-1.0 1.1.0 releaseDownload
v1.0.9 release 8.16 KB Dec 20, 2014 6.0.3 1,483 download LibItemUpgradeInfo-1.0 v1.0.9 releaseDownload
v1.0.8 release 8.11 KB Nov 29, 2014 6.0.3 705 download LibItemUpgradeInfo-1.0 v1.0.8 releaseDownload
v1.0.7 release 7.47 KB Oct 17, 2014 6.0.2 1,012 download LibItemUpgradeInfo-1.0 v1.0.7 releaseDownload
v1.0.6 release 7.44 KB May 21, 2014 5.4.8 1,915 download LibItemUpgradeInfo-1.0 v1.0.6 releaseDownload
v1.0.5 release 7.37 KB Dec 10, 2013 5.4.1 1,020 download LibItemUpgradeInfo-1.0 v1.0.5 releaseDownload
v1.0.4 release 7.33 KB Sep 16, 2013 5.4.0 653 download LibItemUpgradeInfo-1.0 v1.0.4 releaseDownload
v1.0.3 release 7.22 KB Aug 26, 2013 5.4.0 239 download LibItemUpgradeInfo-1.0 v1.0.3 releaseDownload
v1.0.2 release 7.15 KB May 22, 2013 5.3.0 450 download LibItemUpgradeInfo-1.0 v1.0.2 releaseDownload
v1.0.1 release 7.14 KB Mar 6, 2013 5.2.0 417 download LibItemUpgradeInfo-1.0 v1.0.1 releaseDownload
v1.0 release 7.16 KB Feb 15, 2013 5.1.0 143 download LibItemUpgradeInfo-1.0 v1.0 releaseDownload
1.1.0-Beta1 beta 8.50 KB Jul 9, 2015 6.2.0 343 download LibItemUpgradeInfo-1.0 1.1.0-Beta1 betaDownload
Release-70300-30-1-gbb6dcff-alpha alpha 11.39 KB Jul 19, 2018 8.0.1 79 download LibItemUpgradeInfo-1.0 Release-70300-30-1-gbb6dcff-alpha alphaDownload
Release-70300-29-2-g4396dbe-alpha alpha 11.48 KB Dec 20, 2017 7.3.0 46 download LibItemUpgradeInfo-1.0 Release-70300-29-2-g4396dbe-alpha alphaDownload
Release-70300-29-1-g9f23d3f-alpha alpha 10.78 KB Sep 19, 2017 7.3.0 238 download LibItemUpgradeInfo-1.0 Release-70300-29-1-g9f23d3f-alpha alphaDownload
Release-70300-28-1-ga8e342c-alpha alpha 10.74 KB Aug 31, 2017 7.3.0 50 download LibItemUpgradeInfo-1.0 Release-70300-28-1-ga8e342c-alpha alphaDownload
Release-70200-28-1-gd071858-alpha alpha 10.71 KB Aug 29, 2017 7.3.0 181 download LibItemUpgradeInfo-1.0 Release-70200-28-1-gd071858-alpha alphaDownload
7c5485a-alpha alpha 10.77 KB Mar 28, 2017 7.2.0 63 download LibItemUpgradeInfo-1.0 7c5485a-alpha alphaDownload
Release-70100-27-1-g8dd5872 alpha 10.93 KB Nov 7, 2016 7.1.0 78 download LibItemUpgradeInfo-1.0 Release-70100-27-1-g8dd5872 alphaDownload
Release-70100-26-1-g5c48ff2 alpha 10.75 KB Oct 30, 2016 7.1.0 70 download LibItemUpgradeInfo-1.0 Release-70100-26-1-g5c48ff2 alphaDownload
Release-70000-25-2-g5c77a95 alpha 10.51 KB Oct 27, 2016 7.1.0 53 download LibItemUpgradeInfo-1.0 Release-70000-25-2-g5c77a95 alphaDownload
Release-70000-24-1-gfc68509 alpha 9.62 KB Oct 3, 2016 7.0.3 54 download LibItemUpgradeInfo-1.0 Release-70000-24-1-gfc68509 alphaDownload
Release-70000-23-1-gf1a2b99 alpha 9.65 KB Jul 20, 2016 7.0.3 143 download LibItemUpgradeInfo-1.0 Release-70000-23-1-gf1a2b99 alphaDownload
Release-60204-21-1-g3ac3e22 alpha 9.64 KB Jul 16, 2016 6.2.4 104 download LibItemUpgradeInfo-1.0 Release-60204-21-1-g3ac3e22 alphaDownload
Release-60204-20-2-g418276a alpha 9.74 KB Jun 18, 2016 6.2.4 45 download LibItemUpgradeInfo-1.0 Release-60204-20-2-g418276a alphaDownload
Release-60204-20-1-gc6aeb79 alpha 9.72 KB Jun 18, 2016 6.2.4 81 download LibItemUpgradeInfo-1.0 Release-60204-20-1-gc6aeb79 alphaDownload
Release-60204-19-1-g6065a65 alpha 9.69 KB May 30, 2016 6.2.4 39 download LibItemUpgradeInfo-1.0 Release-60204-19-1-g6065a65 alphaDownload
Release-60203-18-1-gc526fc7 alpha 9.62 KB May 29, 2016 6.2.4 47 download LibItemUpgradeInfo-1.0 Release-60203-18-1-gc526fc7 alphaDownload
Release-60203-15-2-g7e00fa2 alpha 9.72 KB Mar 2, 2016 6.2.3 106 download LibItemUpgradeInfo-1.0 Release-60203-15-2-g7e00fa2 alphaDownload
Release-60203-15-1-g7df80d1 alpha 9.63 KB Jan 10, 2016 6.2.3 168 download LibItemUpgradeInfo-1.0 Release-60203-15-1-g7df80d1 alphaDownload
Release-60203-14-1-gefdd719 alpha 9.36 KB Dec 30, 2015 6.2.3 44 download LibItemUpgradeInfo-1.0 Release-60203-14-1-gefdd719 alphaDownload
Release-60203-13-1-g3159850 alpha 9.36 KB Dec 28, 2015 6.2.3 61 download LibItemUpgradeInfo-1.0 Release-60203-13-1-g3159850 alphaDownload
1.0.13-1-g3155174 alpha 9.24 KB Nov 20, 2015 6.2.3 37 download LibItemUpgradeInfo-1.0 1.0.13-1-g3155174 alphaDownload
1.0.12-1-g7b62c71 alpha 9.19 KB Oct 12, 2015 6.2.2 32 download LibItemUpgradeInfo-1.0 1.0.12-1-g7b62c71 alphaDownload
1.0.11-1-g4ce4030 alpha 9.31 KB Oct 4, 2015 6.2.2 43 download LibItemUpgradeInfo-1.0 1.0.11-1-g4ce4030 alphaDownload
1.0.10-1-gf83411e alpha 9.14 KB Sep 18, 2015 6.2.2 45 download LibItemUpgradeInfo-1.0 1.0.10-1-gf83411e alphaDownload
1.1.0-1-g039524e alpha 9.13 KB Sep 7, 2015 6.2.2 58 download LibItemUpgradeInfo-1.0 1.1.0-1-g039524e alphaDownload
1.1.0-Beta1-1-ge4188de alpha 9.15 KB Aug 30, 2015 6.2.0 50 download LibItemUpgradeInfo-1.0 1.1.0-Beta1-1-ge4188de alphaDownload
v1.0.9-2-gac1c8cb alpha 8.45 KB Jul 9, 2015 6.2.0 35 download LibItemUpgradeInfo-1.0 v1.0.9-2-gac1c8cb alphaDownload
v1.0.9-1-gdcbb53a alpha 8.42 KB Jul 9, 2015 6.0.3 58 download LibItemUpgradeInfo-1.0 v1.0.9-1-gdcbb53a alphaDownload
v1.0-1-g47b98be alpha 7.07 KB Feb 15, 2013 5.1.0 135 download LibItemUpgradeInfo-1.0 v1.0-1-g47b98be alphaDownload
r20130215060338 alpha 7.11 KB Feb 15, 2013 5.1.0 35 download LibItemUpgradeInfo-1.0 r20130215060338 alphaDownload

Description

Share this:

LibItemUpgradeInfo-1.0 provides information about item upgrades applied to items.


Functions

:GetUpgradeID(itemString)

Arguments

itemString
String – An itemLink or itemString denoting the item

Returns

upgradeID
Number – The upgrade ID (possibly 0), or nil if the input is invalid or does not contain upgrade info

 

:GetCurrentUpgrade(id)

Returns the current upgrade level of the item, e.g. 1 for a 1/2 item.

Arguments

id
Number – The upgrade ID of the item (obtained via GetUpgradeID())

Returns

upgradeLevel
Number – The current upgrade level of the item, or nil if the item cannot be upgraded

 

:GetMaximumUpgrade(id)

Returns the maximum upgrade level of the item, e.g. 2 for a 1/2 item.

Arguments

id
Number – The upgrade ID of the item (obtained via GetUpgradeID())

Returns

upgradeLevel
Number – The maximum upgrade level of the item, or nil if the item cannot be upgraded

 

:GetItemLevelUpgrade(id)

Returns the item level increase that this upgrade is worth, e.g. 4 for a 1/2 item or 8 for a 2/2 item.

Arguments

id
Number – The upgrade ID of the item (obtained via GetUpgradeID())

Returns

ilvlDelta
Number – The item level increase of the item, or 0 if the item cannot be or has not been upgraded

 

:GetItemUpgradeInfo(itemString)

Returns the current upgrade level, maximum upgrade level, and item level increase for an item.

Arguments

itemString
String – An itemLink or itemString denoting the item

Returns

nil if the item is invalid or cannot be upgraded, otherwise:

curUpgradeLevel
Number – The current upgrade level of the item
maxUpgradeLevel
Number – The maximum upgrade level of the item
lvlDelta
Number – The item level increase of the item

 

:GetHeirloomTrueLevel(itemString)

Returns the true item level for an heirloom.

Arguments

itemString
String – An itemLink or itemString denoting the item

Returns

ilvl
Number – The true item level of the item, or nil if the input is invalid
isTrue
Boolean – true if the returned item level is the "true" item level of an heirloom, or false if the item was not an heirloom or some error occurred while scanning the tooltip.

 

:GetUpgradedItemLevel(itemString)

Returns the true item level of the item, including upgrades and heirlooms.

Arguments

itemString
String – An itemLink or itemString denoting the item

Returns

ilvl
Number – The true item level of the item, or nil if the input is invalid

 

:IsBop(itemString)

Checks if an item is Bind On Pikcup.

Arguments

itemString
String – An itemLink or itemString denoting the item

Returns

flag
Boolean – True if item is Bind on Pickup

 

:IsBoe(itemString)

Checks if an item is Bind On Equip.

Arguments

itemString
String – An itemLink or itemString denoting the item

Returns

flag
Boolean – True if item is Bind on Equip

Example

local ItemUpgradeInfo = LibStub("LibItemUpgradeInfo-1.0")
local item = GetInventoryItemLink("player", 1)
local upgrade, max, delta = ItemUpgradeInfo:GetItemUpgradeInfo(item)
if upgrade then
	local ilvl = ItemUpgradeInfo:GetUpgradedItemLevel(item)
	DEFAULT_CHAT_FRAME:AddMessage(("%s %d/%d (+%d -> %d)"):format(item, upgrade, max, delta, ilvl))
else
	DEFAULT_CHAT_FRAME:AddMessage(item .. " cannot be upgraded")
end

 

Same code using the GetItemUpgradeInfo() convenience function:

local ItemUpgradeInfo = LibStub("LibItemUpgradeInfo-1.0")
local item = GetInventoryItemLink("player", 1)
local upgrade, max, delta = ItemUpgradeInfo:GetItemUpgradeInfo(item)
if upgrade then
	local ilvl = ItemUpgradeInfo:GetUpgradedItemLevel(item)
	DEFAULT_CHAT_FRAME:AddMessage(("%s %d/%d (+%d -> %d)"):format(item, upgrade, max, delta, ilvl))
else
	DEFAULT_CHAT_FRAME:AddMessage(item .. " cannot be upgraded")
end

 

Comments

Add a comment