RSS

Macro: Linking Both Professions

24 Jul

After quite a bit of searching, I finally found a macro that will allow you to link two trade skills at once.

Since I receive hits on my blog almost every day concerning this very thing, I figured it would probably be a good idea to share it with you. So here you have it, a macro that will post both of your Professions into chat with a single click, and from a single macro.

/script SendChatMessage(select(2,GetSpellLink(“Tailoring“))..select(2,GetSpellLink(“Enchanting“)),”CHANNEL”,nil,GetChannelName(“Trade – City”));

Just change the two professions I have underlined up there to whatever your own professions happen to be, and away you go.

UPDATE: When you copy this macro you also need to replace the quotation marks as well as the dash in “Trade – City”. I assume that the problem is caused by the font used in the blog, but I cannot say for sure. Just delete the quotes and dash and then type them back in and it will work.

Copy & Paste
Prof_Macro_Error

Copy & Paste after replacing quotes/dash
Prof_Macro_Fix

About these ads
 
6 Comments

Posted by on July 24, 2009 in Macro, Professions

 

Tags: ,

6 responses to “Macro: Linking Both Professions

  1. Colt

    September 22, 2009 at 9:22 PM

    I get this error when trying this.

    [string “SendChatMessage(select(2,GetSpellLink(”Tailoring“))..select…”]:1: unexpected symbol near ‘?[C]: ?
    [C]: in function `RunScript’
    Interface\FrameXML\ChatFrame.lua:1879: in function `?’
    Interface\FrameXML\ChatFrame.lua:3508: in function
    [C]: in function `ChatEdit_ParseText’
    Interface\FrameXML\ChatFrame.lua:3177: in function `ChatEdit_SendText’
    Interface\FrameXML\ChatFrame.lua:2275: in function
    [C]: in function `UseAction’
    Interface\FrameXML\SecureTemplates.lua:310: in function `handler’
    Interface\FrameXML\SecureTemplates.lua:529: in function

     
    • Psynister

      September 23, 2009 at 8:02 AM

      Interesting. Do you have the professions that you’re trying to link?

      I have never seen those error messages before. Let me do a little looking around and I will get back to you.

       
  2. Malign - Farstriders

    October 4, 2009 at 6:57 PM

    Psynister I’m getting the above LUA errors as well. I read your blog and the how too, and now I’m getting those errors.

    ../script CastSpellByName(”Jewelcrafting“);SendChatMessage(”LFW “..GetTradeSkillListLink(),”CHANNEL”,nil,GetChannelName(”Trade – City”));CloseTradeSkill();

    is coming up with the same error as the poster above me showed you.

    Message: [string “SendChatMessage(select(2,GetSpellLink(”Jewelcrafting“)) LFW…”]:1: unexpected symbol near ‘?Time: 10/04/09 19:56:33
    Count: 1
    Stack: [string “Interface\FrameXML\BasicControls.xml:<Scrip…"]:18: in function <[string "Interface\FrameXML\BasicControls.xml:
    [C]: ?
    [C]: in function `RunScript’
    Interface\FrameXML\ChatFrame.lua:1879: in function `?’
    Interface\FrameXML\ChatFrame.lua:3508: in function `ChatEdit_ParseText’
    Interface\FrameXML\ChatFrame.lua:3177: in function `ChatEdit_SendText’
    Interface\FrameXML\ChatFrame.lua:2275: in function
    [C]: in function `UseAction’
    Interface\FrameXML\SecureTemplates.lua:310: in function `handler’
    Interface\FrameXML\SecureTemplates.lua:529: in function

    Locals: (*temporary) = “SendChatMessage(select(2,GetSpellLink(”Jewelcrafting“)) LFW.. ,”CHANNEL”,nil,GetChannelName(”Trade – City”));”

    I also tried the one you had up there .. the dual link prof one and just took out 1 of the profs. Same error.

    Thanks man =)

     
    • Psynister

      October 5, 2009 at 7:40 AM

      /script SendChatMessage(select(2,GetSpellLink(“Tailoring”))..select(2,GetSpellLink(“Enchanting”)),”CHANNEL”,nil,GetChannelName(“Trade – City”));
      /script SendChatMessage(select(2,GetSpellLink(”Tailoring“))..select(2,GetSpellLink(”Enchanting“)),”CHANNEL”,nil,GetChannelName(”Trade – City”));

      Alright, take a look at the two examples I have here. The first line is the one that I copied straight out of the game. The second is the one that I copied out of my text up above.

      What I found here is that the double-quotes and the dash between “Trade – City” are what causes the error. Technically, it’s the quotes that cause the error and the dash simply causes it not to work at all. I’m not sure if it’s the font that’s the problem, or what, but if you copy the macro and then replace all of the quotes and the dash then this will work.

       
  3. Lizzia620

    March 6, 2011 at 8:55 AM

    If you look at the second quotes mark at the end of Tailoring and Enchanting, you’ll see it’s the same as the first quotes mark — This is probably what’s causing the error. As for the dash, when typing in Word and other text editors, you can type a double hyphen “–” and the editor will autocorrect it to an en dash “–” which the game may not have coding to do this auto correction (as the two are separate ASCII codes).

    yes, I am a HUGE nerd.

    Great script tho! Will definitely use it. :)

     

Leave Me a Note

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

Join 2,155 other followers

%d bloggers like this: