Command Question /run PickupSpell()

Is there a version 11 replacement for that API method for the command /run PickupSpell(176090) to put profession crafts on bars (this profession craft being ‘secrets of Draenor Blacksmithing’)? Wanting to know if this is a bug or an intentional removal from API.

C_Spell.PickupSpell()
1 Like

This seems very helpful but I’m slowly losing my mind trying to apply it.

So far I’ve attempted a wide range of things but haven’t been able to get them to work.

I’m attempting to make

with the above I’ve tried

/cast C_Spell.PickupSpell((222833)
/run C_Spell.PickupSpell((222833)
/use C_Spell.PickupSpell(222833)

and some variants off other pages but it pretty much universally just tells me “no” either by error message or just no response.

specifics:

I don’t mind the quality of the material I’m making them from, I just buy the cheapest cloth. the 3 different types used are

222804
222805
222806

respectively. For what it’s worth 222805 tends to be the cheapest so it’s my most frequent used.

So, my question. Is it possible to create a one button press macro (with the tailor window up…or not, i don’t mind either way) to create this item?

Thank you so much for any help anyone can be, I’ve spent a couple days messing with this with no luck or understanding as to what I’m breaking.

You have two brackets after PickupSpell. That will generate an error which should be caught by your debugging addon. If you don’t have any, get BugGrabber AND BugSack from Curse.

You can’t /use or /cast C_Spell.PickupSpell

whoops, yep looks like I mistyped those in here. Double checked the macro in game and it only had the single bracket.

Picked up buggrabber to see if that can help me figure this out. I appreciate the quick response.

and bugsack. Thought that was an entire or then realized it was an “and”

Figured it out.

It looks like the item and the crafting skill have two different ID’s.

I updated to the correct ID but that didn’t work right off the bat so I tried another recommendation I’d seen which was to put the crafting type first so the macro looks like

/run C_TradeSkillUI.OpenTradeSkill(197)
/run C_TradeSkillUI.CraftRecipe(446956)

now and it works.

Thank you again for the response.

Makes a little more sense as C_Spell.PickupSpell is what allows you to drag an spell off an action button etc.