How to get item texture path
Hey,
Finally done with exams and wanna progress on my addon. I'm quite new to lua but I'm starting to see how it works. I got a function tha grabs item info, so I get the item name. My issue is that I can't get access to the itemTexture and it doesn't seem like GetItemInfo is actually returning anything but ID/Name of the item? Might be me using it wrong or so.. Could anyone explain how I can for example access Item Path or vendorPrice ? Code:
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. |
Quote:
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:
|
Quote:
Code:
local name, _, _, _, _, _, _, _, _, texture = GetItemInfo(itemID) 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 |
Quote:
Lua Code:
-- edit #1 But if you need only icon textures, you're better off using GetItemInfoInstant instead. This way you can avoid this cache voodoo. |
Quote:
|
All times are GMT -6. The time now is 10:00 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI