Macro: Advertising Your Profession

09 Jul

Over the last week I have seen a lot of searches coming to my blog relating to macros used to advertise your profession, so I’m going to give it to you.

Now, while it may not make a whole lot of difference as far as what you have to do to make it work and so forth, you cannot actually do this with a macro. What you can do it with, is a Script. So, while you still go to the /macro screen to set it up and access it and so forth, it is technically different.

Macros are used to simulate existing keystrokes, functions, or actions. Basically they are shortcuts.

Scripts actually use code within the gaming system to make something happen.

Not a huge difference, and I’m not going to go into full details or anything, just know that there are differences between the two and that you may find better results when searching for certain things if you use the proper terminology.

Now, on to the whole reason why this post is being made in the first place: advertising your professions.

Step 1: Open Your Macro Window
This can be done either by simply entering /macro in the chat window, or by hitting Escape and then clicking on Macros in the options that pop up.

Step 2: Name and Icon Selection
Every time you make a macro/script you have to pick an icon for it and you have to give it a name. Any time I make a macro for something other than casting spells, I pick a cool looking icon that my character wouldn’t normally have available to them and name it something appropriate.

Since I am a programmer by profession I also use what we call Naming Conventions. So if I make a macro for a certain class then I start its name with the class name, and then add to the name based on it’s functionality. If I make a macro that I know will not be modified often, then I start its name with a ‘z’ so that it appears at the bottom of my list since the macro interface sorts them all alphabetically, and likewise I start the name for a macro that is frequently changed with an ‘a’ so it appears at the top of the list.

Example Naming Conventions:

  • Portal to Org: magePortOrg
  • Target Specific NPC/Player: aTarget
  • LFG Broadcast: aLFG

Step 3: Write the “code” for the Macro/Script
This is where you write the actual code to do whatever it is you want to accomplish. This post is about advertising your professions, so that’s what we’ll do.

The part that is Red is where you put the name of whatever profession you want to show up, in the example we use Enchanting, but it can be whatever profession you have (Engineering, Leatherworking, Tailoring, etc). And yes, it does have to be in double-quotes.

The part that is Green is where you type in whatever message you want to appear along with the link. In this example I note that I have “Mongoose, Crusader, Surefooted and more” because those are enchants frequently asked for in trade chat on my server. So I try to draw a little extra attention to the link by noting those enchants. And that message also needs to be in the double-quotes.

/script CastSpellByName(“Enchanting“);SendChatMessage(“Mongoose, Crusader, Surefooted and more “..GetTradeSkillListLink(),”CHANNEL”,nil,GetChannelName(“Trade – City”));CloseTradeSkill();

You can copy/paste that right into your own macro, change the Profession (if needed) and the message to whatever you want and start spamming it right away. When you use this particular macro, the result will be something like this:

“Mongoose, Crusader, Surefooded and more [Enchanting]”

Step 4: Drag the Icon to your Action Bar
Place the icon wherever you want. I personally have action bars set up all over my screen, and keep all of my profession-related icons on the right side of my screen. I also frequently have them on the bottom of my screen since I use the Dominos addon and go a bit overboard with action bars.

But, just make sure it’s somewhere convenient to access and out of the way since you will not be using it frequently in any setting other than cities.

Step 5: Click Away!
Now all you have to do is click it when you want to use it. This particular macro is set up to broadcast only into the Trade chat, and that’s really the only place it belongs. If someone is asking in General chat out in the middle of a zone for someone to link their profession, it’s not too hard to just do a quick click over there to do it manually.

Note: If you try to use this macro anywhere where you are not in Trade chat, it will give you an error. You will also receive errors if you already have your profession book open. So if you are browsing through your profession to see what items you can make and then activate the script it will not work. So just make sure you have the window closed when you activate it and that you do so when you are actually in Trade chat and you will be fine.

These errors will not cause any damage or freeze you up or anything, they just won’t work and will give you error messages.


Posted by on July 9, 2009 in World of Warcraft


24 responses to “Macro: Advertising Your Profession

  1. Nepenthe

    August 22, 2009 at 8:38 AM

    Doesn’t work in 3.2

    • Psynister

      August 24, 2009 at 10:03 AM

      It still works just fine for me. I will test it again tonight on all proffessions to be sure, but I used it two days ago and had people requesting enchants that are reputation-only enchants, so either they were good at guessing which ones I had or the macro worked.

  2. Rubidium - Caelestrasz

    October 17, 2009 at 8:54 PM

    You will need to retype the ” marks after you paste it, the blog software as converted some of them to stupid smart quotes causing the script to break

  3. WhoFlungPoo

    May 5, 2010 at 7:20 PM

    How do I make it so my profession goes before my message?

    example: [Enchanting] GET’EM RIGHT HERE!

    • Psynister

      May 13, 2010 at 10:09 AM

      The easiest way to make professions macros now with recent patches is to open both your macro screen (/macro) and your professions window. From there you want to create a new macro, give it a name and icon, and then click into the textbox to enter the macro code.

      You’ll then type the message as you want it to appear, and clicking the link from your professions window at the appropriate place in the text, finishing with any other text you need, and then saving it.

      So you would type:

      /2 {click the prof link} GET’EM RIGHT HERE!

      Without the curly braces, of course. You would end up seeing: /2 [Enchanting] GET’EM RIGHT HERE!

      You’ll see your professions link inside the macro window in yellow/gold text when you do it much like it appears in regular chat.

  4. Saturas

    May 13, 2010 at 9:56 AM

    /run SendChatMessage(“Your message here “..(select(2, GetSpellLink(“Your profession here”))..” Your message2 here”), “CHANNEL”, nil, 2)

  5. denis st. john

    December 12, 2010 at 4:21 PM

    you look just like my CS TA in college lols.

  6. bonegeras

    December 14, 2010 at 10:49 PM

    Do you know how I would say: Bonegeras [Leatherworking] no longer made from dead woodland critters. ?

    • Psynister

      January 18, 2011 at 7:36 PM

      /script CastSpellByName(“Leatherworking”);SendChatMessage(“Bonegeras “..GetTradeSkillListLink()..” no longer made from dead woodland critters.”,”CHANNEL”,nil,GetChannelName(“Trade – City”));CloseTradeSkill();

  7. JPHasson

    February 13, 2011 at 6:57 AM

    (patch 4.0.6) I have just started using:

    /cast [button:1] Jewelcrafting
    /2 “link to profession here” w/3 tokens, your mats

    This seems to do okay for me. The only problem is if I am in “/2” (trade channel) I cannot left click the macro to bring up the profession without posting the comment. Right clicking the macro while in the trade channel will only post the comment. When out of the channel the right click does nothing and the left only brings up the profession.
    This macro will also give you the profession icon and tooltip for your button.

    Hope this helps someone

  8. Trollenski

    January 5, 2012 at 1:08 PM

    How can i make it like
    LFW [Enchanting] Get it here only 20g tip!
    Thx :)

    • Psynister

      January 5, 2012 at 1:16 PM

      Make a new macro, type “LFW ” then control-click your profession (might be shift-click, I forget), then type ” Get it here only 20g tip!”

      Though if you want to be technical, that’s a 20g fee, since tips are optional.You don’t have to bother with all of this extra syntax anymore, just use the links that the game has built in for you now.

  9. Woodo

    May 14, 2012 at 9:14 AM

    please could you give me working profesion link on 3.3.5a ? (smelting) – “Titanium of Ulduar”

    • Psynister

      May 14, 2012 at 9:24 AM

      The macro in the post worked in 3.3.5 and even before that.

  10. wow professions

    June 23, 2012 at 11:02 AM

    Heya i am for the first time here. I came across this board and I find It really useful & it helped me out much. I’m hoping to offer one thing back and aid others like you helped me.

  11. Kua-Skywall

    July 21, 2012 at 8:44 PM

    If I wanted to make a macro that says:
    [Enchanting] Enchanter LFWork! [Landslide] 1k all day babay! How would I make the second link show in the middle of a sentence?

    • Psynister

      July 23, 2012 at 9:03 AM

      These days its way more simple that what I had in this post. Open your professions window and your macro window. You can make a new macro and then shift-click your [Enchanting] link directly into the macro, followed by your text, followed by another shift-click on [Landslide] and then the rest of your text.

      You don’t even have to bother with all of the complicated syntax that was necessary back in July 2009 when this post was written. They’ve made macros easier than ever now.

  12. Zachariah Lloyd

    October 8, 2012 at 12:27 AM

    Whenever I use a Macro for talking in trade chat that supposedly links a profession, what shows up in the chat is the Macro, in code form, which looks retarded!! The only way I can even get any7thing to post in chat is to start the Macro off with /2. But then whatever code I wrote afterwards does nothing, it just writes it out, letter for letter, in chat??

    • Zachariah Lloyd

      October 8, 2012 at 12:30 AM

      Like for instance, I click the Macro, and in Trade it will say,

      “/script CastSpellByName(First Aid);SendChatMessage(“I’ll create items against mats, look out: “..GetTradeSkillListLink(),”CHANNEL”,nil,GetChannelName(“Trade – City”));CloseTradeSkill();”,

      but this was supposed to place a link to my First Aid in the chat, and not write out the code…

      • Psynister

        October 8, 2012 at 8:15 AM

        You need to put your “First Aid” in double quotes, assuming that after three years this form of macro still works in the first place. However, about 8 patches ago they changed the UI so that you can now easily link your professions into chat by just clicking the Chain Link icon in the top-right corner of the tradeskill window. You can do the same thing with a macro, just type “/2 [click the link] whatever message you want here” and you’re done.

  13. James

    July 12, 2013 at 6:31 PM

    Is there a way to list all items from your profession book ie all crafted items from say tailoring into /2 trade. I have seen someone spam trade chat with what i believe to have been every single item from all primary and secondary professions in one go. Was amazing to see nothing but him spam trade for the better part of 30 sec or so : )

    • Psynister

      July 12, 2013 at 6:39 PM

      As you described it? No. Can it be done in other ways? At least 3 that I can think of. As I find crap like that annoying though, I won’t say anything more on that. ;)


Leave Me a Note

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: