Hello everyone,
first of all a big thank you to everyone here. I have often found solutions to my problems here.
Unfortunately not today
My goal:
To create a "CSV" list of transmog to filter them in Excel etc.
Lua Code:
--example for Legs
local index = 1
local output = {}
output[index]=table.concat({"appearanceCollected","visualId","sourceId","sourceCollected","itemId","sourceType"},";")
local sourceNames = {"","Boss Drop","Quest","Vendor","World Drop","Achievement","Profession"}
local appearancesList = C_TransmogCollection.GetCategoryAppearances(10) --Legs
for appearanceIndex = 1, #appearancesList do
local appearancesCollected = appearancesList[appearanceIndex].isCollected
local appearancesVisualID = appearancesList[appearanceIndex].visualID
local appearanceInfos = {}
local sourcesList = C_TransmogCollection.GetAppearanceSources(appearancesVisualID)
for sourceIndex = 1, #sourcesList do
index = index + 1
appearanceInfos[1] = tostring(appearancesCollected)
appearanceInfos[2] = appearancesVisualID
appearanceInfos[3] = sourcesList[sourceIndex].sourceID
appearanceInfos[4] = tostring(sourcesList[sourceIndex].isCollected)
appearanceInfos[5] = sourcesList[sourceIndex].itemID
appearanceInfos[6] = sourceNames[(sourcesList[sourceIndex].sourceType or 0) + 1]
output[index] = table.concat(appearanceInfos,";")
end
end
output = table.concat(output,"\n")
--output is then sent to an editbox
This works syntactically.
My problem:
For example:
C_TransmogCollection.GetAppearanceSources(11296) creates
three entries
Code:
visualId sourceId itemId
11296 21670 45141
11296 21968 45536
11296 22087 45846
However, there should be at least
four (maybe more), since the item (itemID=155942) also has the appearance (appearanceID=11296) (see C_TransmogCollection.GetItemInfo(155942)).
I am on the correct character to wear these items (Level 50 Feral Druid).
My question:
Is this a bug in C_TransmogCollection.GetAppearanceSources or am I missing something somewhere?
Greetings
Partholan