Quantcast
Legendary cloak and real itemlevel - WoWInterface
Thread Tools Display Modes
03-02-20, 01:31 PM   #1
flow0284
An Aku'mai Servant
Join Date: Jan 2015
Posts: 39
Legendary cloak real itemlevel and rank (upgradelevel)

Is there a "simple" way to get the real itemlevel from the Legendary Cloak?
With select(4, GetItemInfo(169223)) I only get the "base" itemlevel 470 but not the upgraded.

Last edited by flow0284 : 03-15-20 at 11:18 AM.
  Reply With Quote
03-02-20, 02:26 PM   #2
Kanegasi
A Firelord
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 499
https://wow.gamepedia.com/API_GetDetailedItemLevelInfo
  Reply With Quote
03-02-20, 02:28 PM   #3
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,510
Have you tried this ?

effectiveILvl, isPreview, baseILvl = GetDetailedItemLevelInfo(itemID or "itemString" or "itemName" or "itemLink")

https://wow.gamepedia.com/API_GetDetailedItemLevelInfo

rofl snap
__________________
  Reply With Quote
03-03-20, 03:41 PM   #4
flow0284
An Aku'mai Servant
Join Date: Jan 2015
Posts: 39
Thats what I'm looking for.

Thank you so much @Kanegasi and @Xrystal
  Reply With Quote
03-15-20, 11:17 AM   #5
flow0284
An Aku'mai Servant
Join Date: Jan 2015
Posts: 39
Hmm just another question. Is there a way to get the Rank/Upgradelevel of the cloak?
  Reply With Quote
03-15-20, 12:05 PM   #6
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,510
That might be in the regular ItemInfo function as one of its return values.
__________________
  Reply With Quote
03-15-20, 03:36 PM   #7
flow0284
An Aku'mai Servant
Join Date: Jan 2015
Posts: 39
Ok maybe i am blind or stupid, i dont know. But GetItemInfo just returns
itemName, itemLink, itemRarity, itemLevel, itemMinLevel, itemType, itemSubType, itemStackCount,
itemEquipLoc, itemIcon, itemSellPrice, itemClassID, itemSubClassID, bindType, expacID, itemSetID,
isCraftingReagent

there is no Rank/Upgrade information. Maybe i have to figure out how to scan the hidde tooltip for a specific equipped item. Thats new for me so i have to read and try a lot.
  Reply With Quote
03-15-20, 06:35 PM   #8
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 1,961
It appears to go up 2 ilvls every rank, so this should work:
Code:
function GetCloakRank(itemlink)
	local current,_,base=GetDetailedItemLevelInfo(itemlink);
	return math.min((current-base)/2+1,15);
end
__________________
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 03-17-20 at 06:14 PM.
  Reply With Quote
03-17-20, 03:50 PM   #9
ivanicus
A Kobold Labourer
Join Date: Jul 2009
Posts: 1
Originally Posted by SDPhantom View Post
It appears to go up 2 ilvls every rank, so this should work:
Code:
function GetCloakRank(itemlink)
	local current,_,base=GetDetailedItemLevelInfo(itemlink);
	return (current-base)/2+1;
end
Sadly this is not the case anymore. New level went up by 4, up to 500. Source: https://www.wowhead.com/news=311672/...-now-available

Perhaps the best we can do is a hardcoded map of level->rank then?
  Reply With Quote
03-17-20, 04:42 PM   #10
flow0284
An Aku'mai Servant
Join Date: Jan 2015
Posts: 39
You have to know I only need this for my raidleader... He wants a weakaura to post the cloakrank of each player...

I solved my "problems". If anyone is interested I can post a wago.io link.

Last edited by flow0284 : 03-17-20 at 05:52 PM.
  Reply With Quote
03-17-20, 06:17 PM   #11
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 1,961
Fixed in the previous post to cap at rank 15, as the only outlier in the list, it'll still work. From the data available, 15 is supposed to be the final rank anyway with item drops that just upgrade the resist.
__________________
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Legendary cloak and real itemlevel

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off