Difference between revisions of "ChatOnLeaveRoom"

From SWGANH Wiki
Jump to: navigation, search
(Variable Descriptions)
(Tags)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{PageHeader|Server Packet|ChatOnLeaveRoom (60B5098B)}}
 
+
 
{| border="0" width="90%" cellpadding=6
 
{| border="0" width="90%" cellpadding=6
 
|-
 
|-
Line 6: Line 5:
 
===Struct===
 
===Struct===
 
----
 
----
 
+
{| align="center"
 +
|-
 +
||
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 19: Line 20:
 
|{{a_string}}|'''Character Name'''
 
|{{a_string}}|'''Character Name'''
 
|-
 
|-
|{{int}}|{{unknown}}
+
|{{int}}||'''Error Code'''
 
|-
 
|-
 
|{{int}}|'''ChatRoom ID'''
 
|{{int}}|'''ChatRoom ID'''
 
|-
 
|-
|{{byte}}|{{unknown}}
+
|{{int}}|'''Request ID'''
 
|-
 
|-
 +
|}
 
|}
 
|}
  
Line 42: Line 44:
  
 
* '''Galaxy_Name_Size'''
 
* '''Galaxy_Name_Size'''
:Size of the Galaxie Name
+
:Size of the Galaxy Name
  
 
* '''Galaxy_Name'''
 
* '''Galaxy_Name'''
Line 51: Line 53:
  
 
* '''Character_Name'''
 
* '''Character_Name'''
:Character name thats leaving the room
+
:The firstname of the player who this packet is targeting. Must be only firstname and lowercase. Part of ChatAvatarId object.
  
* '''Unknown'''
+
* '''Error Code'''
:Some Unknown Maybe a flag something to check into later.
+
:A integer containing a code for the error that occured. Used to determine what error message to display.
 +
::0:Success: You have left the room. OR [PlayerName] has left the room.
  
 
* '''ChatRoom_ID'''
 
* '''ChatRoom_ID'''
 
:Put the Chatroom's Id here
 
:Put the Chatroom's Id here
  
 +
* '''Request ID'''
 +
:For every request made, the client attaches an ID number to identify it. It is unique for each request type (opcode) and incremented for each request. Similar to Update Counters used in Objects. For every response that had a request with a RequestID, the same RequestID must be sent back. It is used to identify key information regarding the response, such as what the full RoomPathName was and it is used in error message generation. Also can be used to eliminate duplicate requests.
 
|valign=top|
 
|valign=top|
  
Line 67: Line 72:
 
||{{ServerPacket}}
 
||{{ServerPacket}}
 
|-
 
|-
||{{75%}}
+
||{{100%}}
 
|-
 
|-
 
|}
 
|}
Line 74: Line 79:
  
 
----
 
----
 
 
  
 
==Sample Packet==
 
==Sample Packet==
  
 
<pre>
 
<pre>
00 09
 
0C 74
 
 
05 00                        // op count
 
05 00                        // op count
 
8B 09 B5 60                  // ChatOnLeaveRoom
 
8B 09 B5 60                  // ChatOnLeaveRoom
Line 90: Line 91:
 
06 00                        // string count
 
06 00                        // string count
 
61 6C 6C 79 6E 61            // allyna
 
61 6C 6C 79 6E 61            // allyna
00 00 00 00  
+
00 00 00 00                   // string spacer
41 01 29 03 00 00 00 00      // room id
+
41 01 29 03                   // room id
00 70 96                      // comp+crc
+
00 00 00 00 // ??
 
+
 
</pre>
 
</pre>

Latest revision as of 23:31, 6 April 2008

Server Packet - ChatOnLeaveRoom (60B5098B)

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 Error Code
INT ChatRoom ID
INT Request ID

Variable Descriptions


Opperand_Count = 5

Opcode = 60B5098B


  • 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
The firstname of the player who this packet is targeting. Must be only firstname and lowercase. Part of ChatAvatarId object.
  • Error Code
A integer containing a code for the error that occured. Used to determine what error message to display.
0:Success: You have left the room. OR [PlayerName] has left the room.
  • ChatRoom_ID
Put the Chatroom's Id here
  • Request ID
For every request made, the client attaches an ID number to identify it. It is unique for each request type (opcode) and incremented for each request. Similar to Update Counters used in Objects. For every response that had a request with a RequestID, the same RequestID must be sent back. It is used to identify key information regarding the response, such as what the full RoomPathName was and it is used in error message generation. Also can be used to eliminate duplicate requests.

Tags


S→C This packet originates on the server.

100% This packet has been completely reversed.


Sample Packet

05 00                         // op count
8B 09 B5 60                   // ChatOnLeaveRoom
03 00                         // string count
53 57 47                      // SWG
0A 00                         // string count
53 68 61 64 6F 77 66 69 72 65 // Shadowfire
06 00                         // string count
61 6C 6C 79 6E 61             // allyna
00 00 00 00                   // string spacer
41 01 29 03                   // room id
00 00 00 00 // ??