Difference between revisions of "ChatOnSendRoomMessage"

From SWGANH Wiki
Jump to: navigation, search
 
(Sample Packet)
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{PageHeader|Server Packet|ChatOnSendRoomMessage (E7B61633)}}
{|
+
|- 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"
 
|-
 
|-
|align="center" style="background:#B3C0DE; color:white;"|'''BYTE'''||'''uint8'''
+
|{{int}}||'''Operand Count'''
 
|-
 
|-
|align="center" style="background:#6C86BF; color:white;"|'''SHORT'''||'''uint16'''
+
|{{int}}||'''Opcode'''
 
|-
 
|-
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''uint32'''
+
|{{int}}||'''ErrorCode'''
 
|-
 
|-
|align="center" style="background:#3C5466; color:white;"|'''FLOAT'''||'''uint32'''
+
|{{int}}||'''MessageID'''
|-
+
|align="center" style="background:#3C4565; color:white;"|'''LONG'''||'''uint64'''
+
|-
+
|align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''ASCII String'''
+
|-
+
|align="center" style="background:#8BD9A3; color:white;"|'''U_STRING'''||'''Unicode String'''
+
|-
+
|align="center" style="background:#3EC166; color:white;"|'''C_STRING'''||'''Customization String'''
+
|-
+
|align="center" style="background:#25733D; color:white;"|'''B_STRING'''||'''Byte String'''
+
|-
+
|align="center" style="background:#C6C600; color:white;"|'''{ }'''||'''LIST Component'''
+
|-
+
|align="center" style="background:#DF97A7; color:white;"|'''?'''||'''Uncertain Values'''
+
|-
+
|align="center" style="background:#C84966; color:white;"|'''?? '''||'''Unknown Variable Name'''
+
 
|-
 
|-
 +
|}
 
|}
 
|}
  
Line 43: Line 24:
 
----
 
----
  
Opperand_Count     = '''9'''
+
Opperand_Count     = '''3'''
  
Opcode     = '''FFFFFFFF'''
+
Opcode     = '''E7B61633'''
 
----
 
----
  
* Additional Descriptions go here...
+
* '''ErrorCode'''
* --
+
:A integer containing a code for the error that occured. Used to determine what error message to display.
* ---
+
::0:Success: [PlayerName]: [Message]
* ----
+
::9: Your message to [RoomPathName] was not sent because you are not a moderator.
 +
::16: Your message to [RoomPathName] was not sent because it was too long.
 +
::Default: Your message to [RoomPathName] was not sent.
 +
 
 +
* '''MessageID'''
 +
:Every message sent from the client contains a unique ID number. It is incremented with each message sent. For server replies, send back the same ID number to ACK the message. You can use the ID number to safeguard against multiple/duplicate messages.
 +
 
 +
'''Allways send this before [[ChatRoomMessage]], build it in the same funtion and multi.'''
  
 
|valign=top|
 
|valign=top|
 +
 
===Tags===
 
===Tags===
 
----
 
----
Line 60: Line 49:
 
||{{ServerPacket}}
 
||{{ServerPacket}}
 
|-
 
|-
||{{0%}}
+
||{{100%}}
 
|-
 
|-
 
|}
 
|}
 
 
|}
 
|}
 
----
 
 
==Sample Code==
 
----
 
 
<pre>
 
Insert Code Snippet Here...
 
</pre>
 
  
 
==Sample Packet==
 
==Sample Packet==
  
 
<pre>
 
<pre>
Insert Sample Packet Here...
+
03 00
 +
33 16 B6 E7 // ChatOnSendRoomMessage
 +
00 00 00 00 // Error Code
 +
01 00 00 00 // MessageID
 +
   
 
</pre>
 
</pre>

Latest revision as of 06:37, 11 May 2008

Server Packet - ChatOnSendRoomMessage (E7B61633)

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

Struct


INT Operand Count
INT Opcode
INT ErrorCode
INT MessageID

Variable Descriptions


Opperand_Count = 3

Opcode = E7B61633


  • ErrorCode
A integer containing a code for the error that occured. Used to determine what error message to display.
0:Success: [PlayerName]: [Message]
9: Your message to [RoomPathName] was not sent because you are not a moderator.
16: Your message to [RoomPathName] was not sent because it was too long.
Default: Your message to [RoomPathName] was not sent.
  • MessageID
Every message sent from the client contains a unique ID number. It is incremented with each message sent. For server replies, send back the same ID number to ACK the message. You can use the ID number to safeguard against multiple/duplicate messages.

Allways send this before ChatRoomMessage, build it in the same funtion and multi.

Tags


S→C This packet originates on the server.

100% This packet has been completely reversed.

Sample Packet

03 00 
33 16 B6 E7 // ChatOnSendRoomMessage
00 00 00 00 // Error Code
01 00 00 00 // MessageID