Macro to craft a specific item

I’m looking for how to make a macro to craft a specific profession item. For example, I would like to be able to perform the Alchemy Transmute “Herbs to Anchors” by clicking a button.

The following macro code used to do this, but it stopped working some time ago and I have not found another way to do this:

#showtooltip __descriptive_icon__
/cast __profession_name__
/run for i=1,GetNumTradeSkills() do if GetTradeSkillInfo(i)=="__trade_skill_name__" then CloseTradeSkill() DoTradeSkill(i) break end end

Thanks!

1 Like

Ok, here’s a way to do this. It can’t let you select the icon or do anything clever like macros can, but the following works.

Look up the spell on WowHead[dot]com, for example, www[dot]wowhead[dot]com/spell=286547/transmute-herbs-to-anchors

Then take that number from the spell= in the URL and enter it into the following slash command while logged into that character.

/run PickupSpell(286547)

It will create an icon being dragged by your mouse. Drop it on a toolbar and that’s it.

Enjoy!

P.S. WTF is up with an editor that automatically parses text as hyperlinks (even without the http: or https:) and then forbids it? Sheesh!

P.P.S. “Please wait for other users to respond before replying”. OMG, this is sooooo retarded!

P.P.P.S. “Slow down, too Many Requests from this IP Address”? Alright, this forum software is completely worthless.

15 Likes

Just wrap your links in code tags (like you did) and you can include them without modification.
https://www.wowhead.com/spell=286547/transmute-herbs-to-anchors

You’re doing the Lord’s work. Thank you.

IT WORKED! Thank you Mithril

In case anyone else comes here looking for this you now need to use
/run C_Spell.PickupSpell(442655)