Difference between revisions of "ChatFromSimulator"

From Second Life Wiki
Jump to navigation Jump to search
Line 46: Line 46:




Whisper = 0
{| class="sortable" {{Prettytable}}
 
|- {{Hl2}}
5m radius
! ChatType
 
! Value
"Test User whispers: message"
! Notes
 
|-
 
| Whisper
Normal = 1
| 0
 
| 5m radius - "Test User whispers: message"
10/20m radius
|-
 
| Normal
"Test User: message"
| 1
 
| 10/20m radius - "Test User: message"
 
|-
Shout = 2
| Shout
 
| 2
100m radius
| 100m radius - "Test User shouts: message"
 
|-
"Test User shouts: message"
| Say
 
| 3
 
| Not sure if this is used for anything - "Test User say, message"
Say = 3
|-
 
| StartTyping
Not sure if this is used for anything
| 4
 
| Lets others know you are typing
"Test User say, message"
|-
 
| StopTyping
 
| 5
StartTyping = 4
| Lets others know you've stopped typing
 
|-
This user started typing
| Debug
 
| 6
 
| Unknown
StopTyping = 5
|-
 
| OwnerSay
This user stopped typing
| 8
 
| Private chat message from an object owned by you; this chat is only sent to you
 
|}
Debug = 6
 
(Unknown)
 
 
OwnerSay = 8
 
Private chat message from an object owned by you; this chat is only sent to you

Revision as of 15:25, 4 May 2008

Message Layout

{
	ChatFromSimulator Low Trusted Unencoded
	{
		ChatData			Single
		{	FromName		Variable 1	}
		{	SourceID		LLUUID		}	
		{	OwnerID			LLUUID		}	
		{	SourceType		U8			}
		{	ChatType		U8			}
		{	Audible			U8			}
		{	Position		LLVector3	}
		{	Message			Variable 2	}	
	}
}

Usage and Notes

With this message the simulator notifies clients of new chat messages.

If Audible is 0, the message may be blank (because you're too far away).


SourceType values

System = 0

Chat from the grid or simulator


Agent = 1

Chat from another avatar


Object = 2

Chat from an object


ChatType values

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
OwnerSay 8 Private chat message from an object owned by you; this chat is only sent to you