View Single Post
09/04/18, 03:43 PM   #4
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
Originally Posted by ZOS_ChipHilseberg View Post
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

Last edited by sirinsidiator : 09/04/18 at 03:45 PM.
  Reply With Quote