In BfA, you can do the following with a crafting recipe spell name, and get the related spellID:
Code:
local spellLink = GetSpellLink(spellName);
if spellLink then
return tonumber(spellLink:match("spell:(%d+)"));
end
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
Thanks!