Originally Posted by lightspark
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
|
Awesome, wasn't sure how to write
Code:
local name, _, _, _, _, _, _, _, _, texture = GetItemInfo(itemID)
without storing everything etc. Works really well , but only if the character has already cached the texture.
How do I solve this issue:
When character has already "GET_ITEM_INFO_RECEIVE" the item ID but still needs the texture?
Code:
if name and texture then
testing2(name,texture)
else
wait[itemID] = {}
end