In the past, it was possible to iterate through GetNumTradeSkills(), in something like the following:
for i = 1, GetNumTradeSkills() do
local recipe, hdr = GetTradeSkillInfo(i)
if (recipe and hdr ~= "header") then
local itemLink = GetTradeSkillRecipeLink(i)
local ID_Spell = itemLink:match("enchant:(%d+)")
However GetTradeSkillLink() does not exist in WoW Classic UI, and I'm not having any luck so far being able to get the ID_Spell via other methods. Anyone know the way to do this via the Classic API? The new Tradeskill UI stuff doesn't appear to exist in the Classic.
Thanks, I'm familiar with it, but it gives me the itemID rather than the SpellID. This can work for me since I have an internal table which has both the itemID and spellID, so I can get the spellID from that table, but I was hoping for a method to always get the spellID so it's valid for items not in my table too.