View Single Post
  #7  
Unread 03-16-2021, 09:39 PM
Garan's Avatar
Garan Garan is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Oct 2010
Posts: 340
Quote:
Originally Posted by soulos90
So Garan,
I know in terrainmap you embed the sending character name in the data because "there is a bug" in the sender parameter of the chat listener callback. what bug is there? and where do you see documentation about that parameter?
The bug is that the "Sender" parameter will always be the local character no matter who the original sender of the message is. The documentation is the API documentation found here:
https://www.lotrointerface.com/downl...mentation.html
The relevant documentation is for the Received event of the Turbine.Chat object.
Note, there are two sender values, the parameter directly passed to the event handler and the args.Sender value. The one in question is not the sender passed directly as that just references the object that fired the event. The args.Sender value, however, should be the original Sender of the message and is not. The args.ChatType and args.Message work as documented.
Quote:
function Chat:Received(sender, args)
Quote:
This event is fired whenever any chat message is received from the game or other users. The arguments for this event will contain a combination of a Sender, a ChatType, and the Message itself. The ChatType enumeration can be used to determine what kind of message was received.

Last edited by Garan : 03-16-2021 at 09:45 PM.
Reply With Quote