Difference between revisions of "ChatFromViewer"

From Second Life Wiki
Jump to navigation Jump to search
m
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{ProtocolNav}}
{{ProtocolNav}}
==Message Layout==
==Message Layout==
Line 21: Line 20:
==Usage and Notes==
==Usage and Notes==
[[Category:Messages]]
[[Category:Messages]]
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===
{| class="sortable" {{Prettytable}}
|- {{Hl2}}
! 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.

Latest revision as of 04:05, 26 January 2013

Message Layout

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

Usage and Notes

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.