Linking Multiple Items (With Ranks) to Macro

Hi,

I have every crafting profession and I’m trying to encourage crafting orders by posting a link to the profession with popular items and their ranks.

I’m able to link my profession and one item, but I’m having trouble linking the profession and multiple. Is this due to the character limit? I’ve seen others link but they haven’t been kind enough to tell me how they’re doing it yet.

I don’t know code and am pretty limited in my understanding of anything but the most rudimentary macro creation…

Appreciate any help!

Yes. There’s a lot of hidden characters in links that don’t appear visually in the macro edit screen but take up space.

Are there any addons that can assist with this?

I know Autoflood could work but that only allows me to post one message; what I want is a custom one for each crafting profession.

1 Like

There’s macro addons that bypass the 255 limit: Macro Toolkit, BindPad, etc. I’m not sure how they interact with item links. Also, chat has its own character limits (which is why you can only link 3-4 items) separate from the macro limit.

As an example of how it might work:

/run local link1, link2, link3 = select(2, GetItemInfo(181177)), select(2, GetItemInfo(181217)), select(2, GetItemInfo(181704)) print("I can make:",link1, link2, link3)
1 Like

Wouldn’t it need to leverage SendChatMessage rather than print?

1 Like

I did say example :wink:. I wasn’t sure if the “how to add more than one link” was part of the problem.

So yes, SendChatMessage would be required to get the output any further than just your computer.

1 Like

/run local link1, link2, link3 = select(2, GetItemInfo(181177)), select(2, GetItemInfo(181217)), select(2, GetItemInfo(181704)) print(“I can make:”,link1, link2, link3)

So I just copy and paste this into a macro-assisting addon you’re saying?

local link1, link2, link3 = select(2, GetItemInfo(181177)), select(2, GetItemInfo(181217)), select(2, GetItemInfo(181704)) 

creates 3 variabls containing different links (link1, link2, link3) which can be “cobbled” together when creating you output string eg:

local link1, link2, link3 = select(2, GetItemInfo(181177)), select(2, GetItemInfo(181217)), select(2, GetItemInfo(181704)) 
local messagetoSend = "Awesome Tailor. Can create:" .. link1 .. " or " .. link2 .. "and yes, even " .. link3
SendChatMessage(messagetoSend, ...)

Apart from the usual macro slimming methods if required, there are more overall convenient ways of doing this but they would be best done with the help of a personal addon if one doesn’t exist to do this already.

Even if I use the item info won’t it be too long with the rank items? I think these wrecking havoc on macros.

It’s the differnce between somthing like:

"|cff0070dd|Hitem:181177::::::::70:261:::::::::|h[Soul-Siphoner's Handwraps]|h|r"

and:

"|cffffffff|Hitem:191384::::::::70:261:::::::::|h[Aerated Mana Potion |A:Professions-ChatIcon-Quality-Tier1:17:15::1|a]|h|r"

82 vs 125 or there abouts…ish.

With something M6 (or the personal addon) that should work for multiples.
https://www.curseforge.com/wow/addons/m6x

Macro (fits in a standard macro space) with 3 different quality items (sends a SAY message)

/run local link1, link2, link3 = select(2, GetItemInfo(191384)), select(2, GetItemInfo(191386)), select(2, GetItemInfo(191380)) SendChatMessage("Awesome xxx: I can make: " ..link1 .. " or ".. link2 .. "or even " .. link3, "SAY")