Difference between revisions of "ChatRoomMessage"

From SWGANH Wiki
Jump to: navigation, search
(Struct)
(Tags)
 
(14 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{PageHeader|Server Packet|ChatRoomMessage (CD4CE444)}}
{|
+
|- align="center"
+
||{{PacketGuide}}
+
|-
+
|}
+
 
+
 
{| border="0" width="90%" cellpadding=6
 
{| border="0" width="90%" cellpadding=6
 
|-
 
|-
Line 11: Line 5:
 
===Struct===
 
===Struct===
 
----
 
----
 
+
{| align="center"
 +
|-
 +
||
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
|{{short}}||'''Operand Count'''
+
|{{short}}|'''Operand Count'''
 
|-
 
|-
|{{int}}||'''Opcode'''
+
|{{int}}|'''Opcode'''
 
|-
 
|-
|{{short}}||'''Game Name Size'''
+
|{{a_string}}|'''Game Name'''
 
|-
 
|-
|{{a_string}}||'''Game Name'''
+
|{{a_string}}|'''Galaxy Name'''
 
|-
 
|-
|{{short}}||'''Galaxy Name Size'''
+
|{{a_string}}|'''Character Name'''
 
|-
 
|-
|{{a_string}}||'''Galaxy Name'''
+
|{{int}}|'''Room ID'''
 
|-
 
|-
|{{short}}||'''Character Name Size'''
+
|{{u_string}}|'''Message'''
 
|-
 
|-
|{{a_string}}||'''Character Name'''
+
|{{u_string}}|'''OutOfBandPackage'''
|-
+
|{{int}}||'''Size of Chat'''
+
|-
+
|{{u_string}}||'''Chat'''
+
|-
+
|{{int}}||'''<font color=red>Unknown</font>'''
+
 
|-
 
|-
 +
|}
 
|}
 
|}
  
Line 68: Line 59:
  
 
* '''Chat'''
 
* '''Chat'''
:Chat in Unicode From the client
+
:The unicode text of the message being sent.
  
* '''<font color=red>Unknown</font>'''
+
* '''OutOfBandPackage'''
:Could be Chatroom Id, needs Looking into
+
:OutOfBand Packages are structures used to send objects with a message. They are available here, but are only USED in emails. The client will not send one for chat.
 +
HOWEVER: The server can be coded to send one as a script or system event. The STRUCT is not filled out because they can be big. They have their own seperate page, see Additional Info.
  
 
|valign=top|
 
|valign=top|
Line 81: Line 73:
 
||{{ServerPacket}}
 
||{{ServerPacket}}
 
|-
 
|-
||{{75%}}
+
||{{100%}}
 
|-
 
|-
 
|}
 
|}
 
 
|}
 
|}
 
----
 
 
==Sample Code==
 
----
 
 
<pre>
 
Insert Code Snippet Here...
 
</pre>
 
  
 
==Sample Packet==
 
==Sample Packet==
  
 
<pre>
 
<pre>
Insert Sample Packet Here...
+
05 00
 +
44 E4 4C CD                      // ChatRoomMessage
 +
03 00                            // string count
 +
53 57 47                          // SWG
 +
0A 00                            // String count
 +
53 68 61 64 6F 77 66 69 72 65    // Shadowfire
 +
05 00                            // string count
 +
65 73 27 65 6D                    // es'em
 +
68 D5 28 03                      // Room ID
 +
0D 00 00 00                                    // string count
 +
61 00 6E 00 79 00                              // a.n.y.
 +
6F 00 6E 00 65 00 20 00 61 00 72 00 6F 00 75 00 // o.n.e...a.r.o.u.
 +
6E 00 64 00                                    // n.d
 +
00 00 00 00
 
</pre>
 
</pre>
 +
[[Category:Nogard]]

Latest revision as of 07:50, 11 May 2008

Server Packet - ChatRoomMessage (CD4CE444)

SWGANH Wiki is a repository of Star Wars Galaxies Developer information. This site is only meant to be used by SWGANH Developer team.

Struct


SHORT Operand Count
INT Opcode
A_STRING Game Name
A_STRING Galaxy Name
A_STRING Character Name
INT Room ID
U_STRING Message
U_STRING OutOfBandPackage

Variable Descriptions


Opperand_Count = 5

Opcode = CD4CE444


  • Game Name Size
Size of the Game Name, only seen SWG.
  • Game Name
As above SWG
  • Galaxy Name Size
Size of the Galaxy Name
  • Galaxy Name
Example 'Bria'
  • Character Name Size
Size of belows Character name
  • Character Name
Character name thats Sending the Chat
  • Chat Size
Size of Unicode Chat Coming from client
  • Chat
The unicode text of the message being sent.
  • OutOfBandPackage
OutOfBand Packages are structures used to send objects with a message. They are available here, but are only USED in emails. The client will not send one for chat.

HOWEVER: The server can be coded to send one as a script or system event. The STRUCT is not filled out because they can be big. They have their own seperate page, see Additional Info.

Tags


S→C This packet originates on the server.

100% This packet has been completely reversed.

Sample Packet

05 00 
44 E4 4C CD                       // ChatRoomMessage
03 00                             // string count
53 57 47                          // SWG
0A 00                             // String count
53 68 61 64 6F 77 66 69 72 65     // Shadowfire
05 00                             // string count
65 73 27 65 6D                    // es'em
68 D5 28 03                       // Room ID
0D 00 00 00                                     // string count
61 00 6E 00 79 00                               // a.n.y.
6F 00 6E 00 65 00 20 00 61 00 72 00 6F 00 75 00 // o.n.e...a.r.o.u.
6E 00 64 00                                     // n.d
00 00 00 00