Quantcast WoWInterface - View Single Post - [Classic] Convert recipe item name to spellID
View Single Post
09-07-19, 08:21 PM   #7
A Cyclonian
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 45
Originally Posted by kernighan View Post
a) LibRecipes does not appear to have a version for Classic, so it's out.

b) Its API takes an ID. An ID I don't have, because the entire point of this post is me asking how do I take the TEXTUAL NAME returned by GetTradeSkillInfo and get it CONVERTED into an ID.
Well, I figured a way to get it converted to the itemID using GetTradeSkillItemLink which still exists, which I can then use my internal DB to map to the spellID, I believe. So I think I have a working solution.

Generally, I think libRecipes could work in this case IF it had a classic version, since I can get the itemID now.
  Reply With Quote