I would like to have a single button that I can press that performs a given Profession task upon press; for example, “Tailoring > Bolt of (X) Cloth > Create All”. Is this doable? If so, is it possible to do so for Enchanting as well?
Thanks in advance.
/cast cooking
/run TradeSkillSkill3:Click()
/run TradeSkillCreateAllButton:Click()
In classic. I havn’t figured out how to make it scroll yet; that would be necessary to get to the recipe you want.
1 Like
Oh, thank you, but I’m not using Classic; I’m using Shadowlands. I totally forgot to add that, sorry.
My alchemist (skill 171) made 2 Potion of Spectral Intellect (recipe 307096)
/run C_TradeSkillUI.OpenTradeSkill(171)
/run C_TradeSkillUI.CraftRecipe(307096, 2)
So if I had to guess… this would work for a tailor (197) with bolt of linen cloth (2963) to convert all available linen (2589), divided by 2, rounded down.
/run C_TradeSkillUI.OpenTradeSkill(197)
/run C_TradeSkillUI.CraftRecipe(2963, math.floor(GetItemCount(2589)/2))
I just grabbed the spellID and itemID values off wowhead… I don’t know if it works since I don’t have a tailor on retail.
Reference: https://wowpedia.fandom.com/wiki/API_C_TradeSkillUI.CraftRecipe
2 Likes
Thank you, I’ll try this tomorrow. About to sleep, cat’s cranky 