Difference between revisions of "ChatInstantMessageToClient"

From SWGANH Wiki
Jump to: navigation, search
 
m (Protected "ChatInstantMessageToClient": Page is complete. [edit=sysop:move=sysop])
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{PageHeader|Server Packet|ChatInstantMessageToClient (3C565CED)}}
 
+
 
{| border="0" width="90%" cellpadding=6
 
{| border="0" width="90%" cellpadding=6
 
|-
 
|-
Line 6: Line 5:
 
===Struct===
 
===Struct===
 
----
 
----
 
+
{| align="center"
 +
|-
 +
||
 
{| class="wikitable"
 
{| class="wikitable"
 +
|{{short}}||'''Opperand_Count'''
 
|-
 
|-
|align="center" style="background:#6C86BF; color:white;"|'''SHORT'''||'''Opperand_Count'''
+
|{{int}}||'''Opcode'''
 
|-
 
|-
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''Opcode'''
+
|{{a_string}}||'''Game ID'''
 
|-
 
|-
|align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''Game ID'''
+
|{{a_string}}||'''Galaxy Name'''
 
|-
 
|-
|align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''Galaxy Name'''
+
|{{a_string}}||'''Playername'''
 
|-
 
|-
|align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''Playername'''
+
|{{u_string}}||'''Message'''
 
|-
 
|-
|align="center" style="background:#8BD9A3; color:white;"|'''U_STRING'''||'''Message'''
+
|{{int}}|'''0'''
|-
+
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''<font color=red>??</font>'''
+
 
|-
 
|-
 +
|}
 
|}
 
|}
  
Line 34: Line 35:
  
 
* '''Game ID''':
 
* '''Game ID''':
The abreviation for the game. For us it will always be 'SWG'.
+
::The abreviation for the game. For us it will always be 'SWG'.
  
 
* '''Galaxy Name''':
 
* '''Galaxy Name''':
Galaxy in which the sending cleint is from.
+
::Galaxy in which the sending cleint is from.
  
 
* '''Message''':
 
* '''Message''':
Message to send to the target client in unicode.
+
::Message to send to the target client in unicode.
 
|valign=top|
 
|valign=top|
 +
 
===Tags===
 
===Tags===
 
----
 
----
Line 48: Line 50:
 
||{{ServerPacket}}
 
||{{ServerPacket}}
 
|-
 
|-
||{{75%}}
+
||{{100%}}
 
|-
 
|-
 
|}
 
|}
 
 
|}
 
|}
 
 
----
 
----
 
==Sample Code==
 
----
 
 
<pre>
 
Insert Code Snippet Here...
 
</pre>
 
  
 
==Sample Packet==
 
==Sample Packet==
  
 
<pre>
 
<pre>
Insert Sample Packet Here...
+
04 00            // Op Count
 +
ED 5C 56 3C      // ChatInstantMessageToClient
 +
03 00            // string count
 +
53 57 47          // SWG = Game type
 +
05 00            // string count
 +
4C 6F 77 63 61    // Lowca = Server name
 +
05 00            // string count
 +
68 69 72 65 64    // hired = Player name
 +
03 00 00 00      // u-string count
 +
6C 00 6F 00 6C 00 // lol = message
 +
00 00 00 00
 
</pre>
 
</pre>

Latest revision as of 21:48, 6 January 2008

Server Packet - ChatInstantMessageToClient (3C565CED)

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 Opperand_Count
INT Opcode
A_STRING Game ID
A_STRING Galaxy Name
A_STRING Playername
U_STRING Message
INT 0

Variable Descriptions


Opperand_Count = 4

Opcode = 3C565CED


  • Game ID:
The abreviation for the game. For us it will always be 'SWG'.
  • Galaxy Name:
Galaxy in which the sending cleint is from.
  • Message:
Message to send to the target client in unicode.

Tags


S→C This packet originates on the server.

100% This packet has been completely reversed.


Sample Packet

04 00             // Op Count
ED 5C 56 3C       // ChatInstantMessageToClient
03 00             // string count
53 57 47          // SWG = Game type
05 00             // string count
4C 6F 77 63 61    // Lowca = Server name
05 00             // string count
68 69 72 65 64    // hired = Player name
03 00 00 00       // u-string count
6C 00 6F 00 6C 00 // lol = message
00 00 00 00