ChatFromViewer

From Second Life Wiki
Revision as of 21:06, 20 September 2024 by Wulfie Reanimator (talk | contribs) (Not zerocoded.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Message Layout

{
	ChatFromViewer Low 80 NotTrusted
	{
		AgentData			Single
		{	AgentID			LLUUID		}
		{	SessionID		LLUUID		}
	}
	{
		ChatData			Single
		{	Message			Variable 2	}
		{	Type			U8			}
		{	Channel			S32			}
	}
}

Usage and Notes

Although this message is currently marked as 'Zerocoded' in the message template, in fact it hasn't been zerocoded for some time. (Noted in 2024)

Message a client sends to a simulator to chat on a non-negative chat channel. Channel 0 is normal public chat. Attempting to chat on a negative channel with this message fails.

If negative channel chat is required, use ScriptDialogReply.

Values for use with Type

ChatType Value Notes
Whisper 0 5m radius - "Test User whispers: message"
Normal 1 10/20m radius - "Test User: message"
Shout 2 100m radius - "Test User shouts: message"
Say 3 Not sure if this is used for anything - "Test User say, message"
StartTyping 4 Lets others know you are typing
StopTyping 5 Lets others know you've stopped typing
Debug 6 Unknown

Official Client Behavior

Notes

Does not play animations if non zero channel.

Agents are looked at for up to 2 seconds when they begin typing.