View Single Post
07/09/21, 11:39 AM   #4
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,970
zo_strformat("<<1>>", player) is just removing any special gender suffix ^f e.g. at the end of the character name.
And I guess the ZO_LinkHandler will just use the @displayName in the link and if you click it use the @displayName as well.
As you can see here:
https://github.com/esoui/esoui/blob/...ndler.lua#L100

Lua Code:
  1. function ZO_LinkHandler_CreatePlayerLink(displayOrCharacterName)
  2.     if(IsDecoratedDisplayName(displayOrCharacterName)) then
  3.         return ZO_LinkHandler_CreateDisplayNameLink(displayOrCharacterName)
  4.     else
  5.         return ZO_LinkHandler_CreateCharacterLink(displayOrCharacterName)
  6.     end
  7. end
It would be using ZO_LinkHandler_CreateDisplayNameLink then as the @ is given in the name.

Afai found out Shadowfen is completely correct here.
You would need any kind of "lookup" tables which are given if you are in the same group/guild.
Else you'd have to build and safe your own lookup tables for the server and enhance it each time someone writs with a charactername in chat.
And I would not recommand doing/building such a big table. It will grow your SavedVariables and make every loading screen slow after a short time already, as the filesize would grow constantly and would need a transfer to file/read from file on each reloadui/zone change/login/logout.

Last edited by Baertram : 07/09/21 at 11:43 AM.
  Reply With Quote