need help in making a Trade chat macro

90 Human Warlock
7905
Hi I am looking to make a macro that says the below in a cities trade.
(with tailoring, and the items are clickable links.)

*OPEN FOR BUSINESS* [Tailoring] making [Dreamwraps of the Light] and/or [Bracers of Unconquered Power] (bring your mats plus 1k gold) pst for mats required.

I tried looking aroung on line for suggestions, but must be missing something.

Thank you in advance.
Reply Quote
90 Tauren Druid
8545
I'm not sure you can add an ItemLink to a macro like this but you can use the SendChatMessage function, but something like this might work

/script c = GetChannelName("Trade"); SendChatMessage("*OPEN FOR BUSINESS* blah blah blah", "CHANNEL", nil , c )

NOTE: UNTESTED
Reply Quote
90 Human Warlock
7905
Thank you. :) I will give it a try once back in a city.

Is there a way to get the links to work?
Reply Quote
90 Gnome Warrior
12005
You're going to have space issues in that macro.

The [Tailoring] link is about 150 characters. Each item link is about 60 characters not including the name itself. So you're looking at 310 characters with only the links. With the ~100 characters of text you want to add around it, you're about 150 characters over budget for a chat.

Ironically, you can cram it all into a macro, but as I said it's going to cut off half the macro when it chats due to the length of the links' control codes:

/cast Tailoring
/run local function f(i) return (select(2,GetItemInfo(i))) end SendChatMessage("*OPEN FOR BUSINESS* "..GetTradeSkillListLink().." making "..f(71990)..f(71989).." your mats and 1k gold","channel",nil,2) HideUIPanel(TradeSkillFrame)

But, you could spread it out into two chats:

/cast Tailoring
/run local s,f=function(m)SendChatMessage(m,"channel",nil,2)end,function(i)return select(2,GetItemInfo(i))end s("*OPEN FOR BUSINESS* "..GetTradeSkillListLink())s(f(71990)..f(71989).." your mats + 1k gold") HideUIPanel(TradeSkillFrame)

I'd recommend just chatting the tradeskill link and the item names that aren't clickable in one chat.
Reply Quote

Please report any Code of Conduct violations, including:

Threats of violence. We take these seriously and will alert the proper authorities.

Posts containing personal information about other players. This includes physical addresses, e-mail addresses, phone numbers, and inappropriate photos and/or videos.

Harassing or discriminatory language. This will not be tolerated.

Forums Code of Conduct

Report Post # written by

Reason
Explain (256 characters max)
Submit Cancel

Reported!

[Close]