Quantcast WoWInterface - View Single Post - [Classic] Convert recipe item name to spellID
View Single Post
09-10-19, 02:53 AM   #10
wildcard25
An Aku'mai Servant
 
wildcard25's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2012
Posts: 30
Code:
spellID = select(7, GetSpellInfo(spellName))
Can return nil if not cached yet.

edit: Whoops, pretty sure this doesn't work with Tradeskills. It's been a few years, but I think we had to build our own lookup table in Gnomeworks for recipeIDs.

Last edited by wildcard25 : 09-10-19 at 03:01 AM.
  Reply With Quote