Originally Posted by ZOS_ChipHilseberg
I don't think we need to add anything for this to be possible. You can look at ZO_LinkHandler.lua for examples of all the link types we've added. You can just make a new one of those and encode all the data you need to and then unpack it on the other side.
|
That was the case long ago, but it no longer works like that. Currently when you send a link via chat that is not one of the types "recognized" by the game, the link will not be rendered as a link and instead shows the plain markup.
The only thing addons can do is filter the chat message and re-add the link locally. That way it will show up as a custom link, but for users that do not have the addon it will look strange.
My current approach for the problem is to hijack a book link and add custom data inside. That way it will show as "[An ancient scroll]" for users that do not use my addon and as a custom link for anyone with the addon