View Single Post
05/27/14, 09:38 AM   #9
ingeniousclown
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 122
Originally Posted by Vuelhering View Post
Well, here's a bit of an annoyance.


ZOS added the GetItemArmorType(link) and GetItemWeaponType(link), but that is quite incomplete compared to existing ItemFunctions(bag,slot).

Specifically, there's no way to tell what traits are on an item just using the link.

This matters a lot, because you also cannot call GetItemTrait(bag,slot) on an item in the loot window (e.g.).

So now we need something like GetItemTraitLink(link).

Anyone see a workaround to get trait info just from the info that can be gleaned from a link (or the loot window)?
I don't think that means that the new functions are incomplete, it just means that the whole item API is just kinda... everywhere. I was pretty surprised when I first saw the announcement of the two new functions, as the new functions using ItemLink to get that info kind of clashes with the rest of the functions that use bagId and slotIndex.

As a result, it is easy to get all the necessary information of an item from the API if it exists in a bagId and slotIndex space. Is the loot window set in some temporary bag for the player, by chance? Like the guild bank? I'm guessing no, but it's worth asking.

I was under the impression that the community (more specifically, Aiiane I believe) had deciphered all the itemlink information, but the new functions almost seem to suggest that the information was in the itemLink the whole time. I kinda wanna research this more, but I don't even know if I'll remember any of this once I get home from work :P

But assuming what I said is true... all relevant information may be in the itemLink as one of the many optional variables... And if so, someone may need to write a library to parse out that information.
  Reply With Quote