Difference between revisions of "ChatOnDestroyRoom"

From SWGANH Wiki
Jump to: navigation, search
(Sample Packet)
(Variable Descriptions)
 
(25 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:#B3C0DE; color:white;"|'''BYTE'''||'''uint8'''
+
|align="center" style="background:#6C86BF; color:white;"|'''SHORT'''||'''Operand Count'''
 
|-
 
|-
|align="center" style="background:#6C86BF; color:white;"|'''SHORT'''||'''uint16'''
+
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''Opcode'''
 
|-
 
|-
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''uint32'''
+
|align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''Game'''
 
|-
 
|-
|align="center" style="background:#3C5466; color:white;"|'''FLOAT'''||'''uint32'''
+
|align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''Server'''
 
|-
 
|-
|align="center" style="background:#3C4565; color:white;"|'''LONG'''||'''uint64'''
+
|align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''Owner'''
 
|-
 
|-
|align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''ASCII String'''
+
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''ErrorCode'''
 
|-
 
|-
|align="center" style="background:#8BD9A3; color:white;"|'''U_STRING'''||'''Unicode String'''
+
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''Room ID'''
 
|-
 
|-
|align="center" style="background:#3EC166; color:white;"|'''C_STRING'''||'''Customization String'''
+
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''RequestID'''
|-
+
|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 32:
 
----
 
----
  
Opperand_Count     = '''9'''
+
Opperand_Count     = '''5'''
  
Opcode     = '''FFFFFFFF'''
+
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|
 +
 
===Tags===
 
===Tags===
 
----
 
----
Line 60: Line 63:
 
||{{ServerPacket}}
 
||{{ServerPacket}}
 
|-
 
|-
||{{0%}}
+
||{{100%}}
 
|-
 
|-
 
|}
 
|}
Line 67: Line 70:
  
 
----
 
----
 
==Sample Code==
 
----
 
 
<pre>
 
Insert Code Snippet Here...
 
</pre>
 
  
 
==Sample Packet==
 
==Sample Packet==
Line 92: 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 104: 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