I'm trying to understand ItemType and ItemSubtype parameters returned from GetItemInfo(item).
1) Is there a way/another function which returns item categories (types + subtypes) in language independent way?
2) Why the ItemType "Money" has subtype "Money(OBSOLETE)". (returned for item:20558 = [Warsong Gulch Mark of Honor]) This seems pretty weird, because the ItemSubtypes are likely to be displayed to the user by some addon... Are there any other weird ItemTypes/ItemSubtypes?
3) For HandyNotes_Vendors I want to parse vendor's list and mark his type (Poison vendor, Reagents vendor, ...) according to his goods. Without language independent ItemTypes this is very hard. (I don't want to use PeriodicTable) Any other ideas, how to accomplish this?
3b) How the Blizzard tracking recognizes vendor types? How does it decide, which vendors to display on Minimap when tracking Reagents vendors?
Bonus question: When the itemcache is emptyGetMerchantItemLink(idx) returns nil on MERCHANT_SHOW. How can I know the links are ready for scanning?
Egingell please just stop posting, every single post of yours that I've seen in the past week has been flat out wrong.
I welcome even a wrong answer instead of no answer at all ;) For instance I've learned about the existence of GameTooltip:SetMerchantItem(?idx?) function from egingell's post.
I've checked CurseProfiler and it checks vendor's list on each OnUpdate, until all items return relevant data.
if recheckMerchant then
recheckMerchant = false
if not UnitExists('npc') then
for i = 1, GetMerchantNumItems() do
local link = GetMerchantItemLink(i)
if not link then
recheckMerchant = true