Quantcast WoWInterface - View Single Post - [Classic] Convert recipe item name to spellID
View Single Post
09-06-19, 09:03 PM   #1
A Cyclonian
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 45
[Classic] Convert recipe item name to spellID

In BfA, you can do the following with a crafting recipe spell name, and get the related spellID:

local spellLink = GetSpellLink(spellName);
    if spellLink then
        return tonumber(spellLink:match("spell:(%d+)"));
However in Classic this just returns an empty string in the spellLink variable.

I used to use GetTradeSkillLink with an index to get this information, but that function has been removed.

Does anyone know the correct way to get the spellID from a crafted name with WoW Classic, such as:
  • Smelt Bronze
  • Murloc Fin Soup
  • Heavy Linen Bandage

  Reply With Quote