Difference between revisions of "ChatOnDestroyRoom"

From SWGANH Wiki
Jump to: navigation, search
(Variable Descriptions)
(Variable Descriptions)
 
(20 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{PageHeader|Packet|ChatOnDestroyRoom (E8EC5877)}}
{|
+
|- 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:#6C86BF; color:white;"|'''SHORT'''||'''Operand Count'''
 
|align="center" style="background:#6C86BF; color:white;"|'''SHORT'''||'''Operand Count'''
 
|-
 
|-
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''CRC:ChatOnDestroyRoom'''
+
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''Opcode'''
 
|-
 
|-
 
|align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''Game'''
 
|align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''Game'''
Line 22: Line 18:
 
|align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''Server'''
 
|align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''Server'''
 
|-
 
|-
|align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''Type'''
+
|align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''Owner'''
 
|-
 
|-
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''unknown'''
+
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''ErrorCode'''
 
|-
 
|-
 
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''Room ID'''
 
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''Room ID'''
 
|-
 
|-
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''unknown'''
+
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''RequestID'''
 
|-
 
|-
 +
|}
 
|}
 
|}
  
Line 37: Line 34:
 
Opperand_Count     = '''5'''
 
Opperand_Count     = '''5'''
  
Opcode     = '''E8EC5877'''
+
Opcode     = '''0xE8EC5877'''
 
----
 
----
  
* Additional Descriptions go here...
+
* '''Game''':
* --
+
:The name of the game ("SWG") this player is on. Part of ChatAvatarId: 3 ASTRINGs representing the player on the ChatServer. "Game.Server.name" name is the lowercase of the first name for the player.
* ---
+
 
* ----
+
* '''Server''':
 +
:The name of the server (Galaxy) this player is on. Part of ChatAvatarId object.
 +
 
 +
* '''Owner''':
 +
:The firstname of the player who current owns the chatroom. Must be only firstname and lowercase. Part of ChatAvatarId object. Only this player can request to delete the chatroom.
 +
 
 +
* '''ErrorCode''':
 +
:A integer containing a code for the error that occured. Used to determine what error message to display. 0:Success: [RoomName] You have destroyed the channel. Default: You don't have permission to delete '[RoomPathName]'.
 +
 
 +
* '''RoomID''':
 +
:The unique ID number assigned to identify this Room. Generated on room creation.
 +
 
 +
* '''RequestID''':
 +
: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 this packet responses send back a RequestID of 0 for success. Otherwise, The request ID is sent with an ErrorCode to generate the proper error.
  
 
|valign=top|
 
|valign=top|
Line 53: Line 63:
 
||{{ServerPacket}}
 
||{{ServerPacket}}
 
|-
 
|-
||{{50%}}
+
||{{100%}}
 
|-
 
|-
 
|}
 
|}
Line 60: Line 70:
  
 
----
 
----
 
==Sample Code==
 
----
 
 
<pre>
 
Insert Code Snippet Here...
 
</pre>
 
  
 
==Sample Packet==
 
==Sample Packet==
Line 85: Line 88:
 
06 00                        // string count
 
06 00                        // string count
 
73 79 73 74 65 6D            // system
 
73 79 73 74 65 6D            // system
00 00 00 00  
+
00 00 00 00                   // string spacer
4C 06 29 03                  //Room id Maybe????????????????
+
4C 06 29 03                  // Room id  
 
00 00 00 00  
 
00 00 00 00  
 
2B  
 
2B  
Line 97: Line 100:
 
06 00                        // string count
 
06 00                        // string count
 
73 79 73 74 65 6D            // system
 
73 79 73 74 65 6D            // system
00 00 00 00  
+
00 00 00 00                   // string spacer
4A 06 29 03                  //Room id maybe ????????????????
+
4A 06 29 03                  // Room id
 
00 00 00 00             
 
00 00 00 00             
06 01 00 AF F9 6C A1 0A 3D    // heartbeat
+
 
 
</pre>
 
</pre>

Latest revision as of 00:54, 11 May 2008

Packet - ChatOnDestroyRoom (E8EC5877)

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
A_STRING Server
A_STRING Owner
INT ErrorCode
INT Room ID
INT RequestID

Variable Descriptions


Opperand_Count = 5

Opcode = 0xE8EC5877


  • Game:
The name of the game ("SWG") this player is on. Part of ChatAvatarId: 3 ASTRINGs representing the player on the ChatServer. "Game.Server.name" name is the lowercase of the first name for the player.
  • Server:
The name of the server (Galaxy) this player is on. Part of ChatAvatarId object.
  • Owner:
The firstname of the player who current owns the chatroom. Must be only firstname and lowercase. Part of ChatAvatarId object. Only this player can request to delete the chatroom.
  • ErrorCode:
A integer containing a code for the error that occured. Used to determine what error message to display. 0:Success: [RoomName] You have destroyed the channel. Default: You don't have permission to delete '[RoomPathName]'.
  • RoomID:
The unique ID number assigned to identify this Room. Generated on room creation.
  • RequestID:
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 this packet responses send back a RequestID of 0 for success. Otherwise, The request ID is sent with an ErrorCode to generate the proper error.

Tags


S→C This packet originates on the server.

100% This packet has been completely reversed.


Sample Packet

ChatOnDestroyRoom

00 09 
0C 6B 
00 19 
2B 
05 00                         // op_count
77 58 EC E8                   // ChatOnDestroyRoom
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
73 79 73 74 65 6D             // system
00 00 00 00                   // string spacer
4C 06 29 03                   // Room id 
00 00 00 00 
2B 
05 00                         // op_count
77 58 EC E8                   // ChatOnDestroyRoom
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
73 79 73 74 65 6D             // system
00 00 00 00                   // string spacer 
4A 06 29 03                   // Room id
00 00 00 00