WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Legendary cloak and real itemlevel (https://www.wowinterface.com/forums/showthread.php?t=57859)

flow0284 03-02-20 01:31 PM

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.

Kanegasi 03-02-20 02:26 PM

https://wow.gamepedia.com/API_GetDetailedItemLevelInfo

Xrystal 03-02-20 02:28 PM

Have you tried this ?

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

https://wow.gamepedia.com/API_GetDetailedItemLevelInfo

rofl snap

flow0284 03-03-20 03:41 PM

Thats what I'm looking for.

Thank you so much @Kanegasi and @Xrystal

flow0284 03-15-20 11:17 AM

Hmm just another question. Is there a way to get the Rank/Upgradelevel of the cloak?

Xrystal 03-15-20 12:05 PM

That might be in the regular ItemInfo function as one of its return values.

flow0284 03-15-20 03:36 PM

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.

SDPhantom 03-15-20 06:35 PM

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


ivanicus 03-17-20 03:50 PM

Quote:

Originally Posted by SDPhantom (Post 335356)
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?

flow0284 03-17-20 04:42 PM

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.

SDPhantom 03-17-20 06:17 PM

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.


All times are GMT -6. The time now is 03:17 AM.

vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI