Originally Posted by ayradyss
Anyone know if there's a function to extract enchant info from an itemID like there is for items? GetItemInfo() doesn't seem to actually work for enchants...
|
Well, the very nature of an item id implies that there's no attached enchant data. If you have a chat link or item hyperlink, enchant data is stored in a field of the item data string.
So really, the question becomes: which items are you wanting enchant info from?
(or maybe I've misunderstood your question and you really mean chat links for the actual enchants, in which case,
Code:
local _,_, id = string.find(link, "enchant:(%d+)")
will pluck an enchant id out of an enchant link for you.)