Originally Posted by loff93
I guess I have to do something like
name, link, quality, iLevel, reqLevel, class, subclass, maxStack, equipSlot, texture, vendorPrice = GetItemInfo(itemID) or GetItemInfo("itemName") or GetItemInfo("itemLink")
To actually store what I need.
|
You guessed it right.
GetItemInfo returns raw values, they aren't packed, it's not a table. So obv there's no
itemTexture member of
name,
name is just a string.
-- edit #1
Lua Code:
local function normal_loop()
-- guess numMaterials and craftingMaterials are defined elsewhere :p
for index = 1, numMaterials do
local itemID = craftingMaterials[index]
local name, _, _, _, _, _, _, _, _, texture = GetItemInfo(itemID)
if name then
print(texture)
else
-- you don't write anything to wait[itemID] table
-- simple true should be enough
wait[itemID] = true
end
end
end