[Classic] WoW API - Enchanting not considered as TradeSkill

Hi there,

I would like to write addon to export all TradeSkill recipes available to player. I manually open Tailoring and run:

/run local x = GetNumTradeSkills() ; print(x)

And it returns correct number of skills I have learned(including headers - as expected). I can work with it futher. It works fine for all skills, expect for Enchanting.
For enchanting if I run it, it returns 0, even if Enchanting window is open and I have there 3 different items available to me.

Is this a bug? Or is there any other API that should be used to interact with enchanting recipes?

1 Like

Yes, you need to use GetNumCrafts() since Enchanting uses the CraftFrame
See https://wow.gamepedia.com/World_of_Warcraft_API#Crafting

1 Like

Thanks a lot! This is what I was looking for.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.