Quantcast [Classic] Convert recipe item name to spellID - WoWInterface
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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

WoWInterface » Classic - AddOns, Compliations, Macros » Classic - AddOn Help/Support » [Classic] Convert recipe item name to spellID

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off