Difference between revisions of "ChatRoomList"

From SWGANH Wiki
Jump to: navigation, search
(Tags)
(Sample Packet)
Line 134: Line 134:
 
<pre>
 
<pre>
 
02 00  
 
02 00  
97 B1 DE 70 // ChatRoomList
+
97 B1 DE 70 // ChatRoomList
01 00 00 00 // Numberof_Chatrooms
+
01 00 00 00 // Numberof_Chatrooms
5D 0A 72 02 // ChatRoom_ID
+
5D 0A 72 02 // ChatRoom_ID
01 00 00 00 // NumberOf_RoomNames
+
01 00 00 00 // NumberOf_RoomNames
00                             // byte flag
+
00         // byte flag
 
+
27 00                                 // string count
27 00  
+
53 57 47 2E 47 6F 72 61 74 68         // SWG.Gorath
53 57 47 2E 47 6F 72 61  
+
2E 67 72 6F 75 70 2E                  // .group.
74 68 2E 67 72 6F 75 70     // RoomName :  "SWG.Gorath.group.161418309221.GroupChat"
+
31 36 31 34 31 38 33 30 39 32 32 31 2E // 161418309221. 
2E 31 36 31 34 31 38 33    
+
47 72 6F 75 70 43 68 61 74             // GroupChat
30 39 32 32 31 2E 47 72  
+
03 00             // string count
6F 75 70 43 68 61 74  
+
53 57 47         // SWG
 
+
06 00           // string count
03 00  
+
47 6F 72 61 74 68 // Gorath
53 57 47                 // ChannelOwner :  "SWG"
+
06 00             // string count
 
+
73 79 73 74 65 6D // system
06 00
+
03 00             // string count
47 6F 72 61 74 68   // ChannelCreator : "Gorath"
+
53 57 47         // SWG
   
+
06 00             // string count
06 00  
+
47 6F 72 61 74 68 // Gorath  
73 79 73 74 65 6D               // RoomTitle : "system"
+
06 00             // string count
 
+
73 79 73 74 65 6D // system
03 00  
+
0C 00 00 00                                 // u-string count
53 57 47   // "SWG" ?
+
31 00 36 00 31 00 34 00 31 00 38 00 33 00 30 // 161418309221
 
+
06 00  
+
47 6F 72 61 74 68 // "Gorath" ?
+
 
+
06 00  
+
73 79 73 74 65 6D // "system" ?
+
 
+
0C 00 00 00  
+
31 00 36 00 31 00 34 00 31 00 38 00 33 00 30     // "161418309221"  ?
+
 
00 39 00 32 00 32 00 31 00  
 
00 39 00 32 00 32 00 31 00  
 
+
01 00 00 00 // moderator count
 
+
03 00             // string count
 
+
53 57 47         // SWG
 
+
06 00             // string count
01 00 00 00 // moderator count
+
47 6F 72 61 74 68 // Gorath  
 
+
06 00             // string count
 
+
73 79 73 74 65 6D // system
03 00
+
02 00 00 00   // user count
53 57 47 // "SWG"
+
03 00             // string count
 
+
53 57 47         // SWG
06 00  
+
06 00             // string count
47 6F 72 61 74 68 // "Gorath"
+
47 6F 72 61 74 68 // Gorath
 
+
08 00                   // string count
06 00  
+
70 61 74 72 69 7A 69 61 // patrizia
73 79 73 74 65 6D // "system"
+
03 00             // string count
 
+
53 57 47         // SWG
 
+
06 00             // string count
 
+
47 6F 72 61 74 68 // Gorath
 
+
06 00             // string count
02 00 00 00 // user count
+
73 79 73 74 65 6D // system
 
+
 
+
03 00
+
53 57 47 // "SWG"
+
 
+
06 00  
+
47 6F 72 61 74 68 // "Gorath"
+
 
+
08 00  
+
70 61 74 72 69 7A 69 61 // "patrizia"
+
 
+
 
+
 
+
03 00
+
53 57 47 // "SWG"
+
 
+
06 00  
+
47 6F 72 61 74 68 // "Gorath"
+
 
+
06 00  
+
73 79 73 74 65 6D // "system"
+
 
+
 
</pre>
 
</pre>
 
[[Category:Nogard]]
 
[[Category:Nogard]]

Revision as of 12:18, 12 February 2008

Server Packet - CharRoomList (70DEB197)

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
INT Numberof_Chatrooms
INT ChatRoom_ID
INT NumberOf_RoomNames
BYTE Moderated Bool
A_STRING RoomName
A_STRING Game
A_STRING Server
A_STRING ChannelCreator
A_STRING Game
A_STRING Server
A_STRING ChannelCreator
U_STRING RoomTitle
INT ModeratorCount
A_STRING Game
A_STRING Server
A_STRING ModeratorName
INT UserCount
A_STRING Game
A_STRING Server
A_STRING UserName

Variable Descriptions


Opperand_Count = 2

Opcode = 70DEB197


Tags


S→C This packet originates on the server.

100% This packet has been completely reversed.

Sample Code


  ByteBuffer *packet_13 = new ByteBuffer();
	packet_13->opcode(SOE_CHL_DATA_A);
    packet_13->sequence(server_sequence);
	*packet_13 << (uint16)2;
	*packet_13 <<(uint32)0x70DEB197;
	*packet_13 <<(uint32)1;
	*packet_13 <<(uint32)0x02720a5d; 
	*packet_13 <<(uint32)1;
	*packet_13 <<(uint8)1;

	*packet_13 <<(uint16)39 <<"SWG.Gorath.group.161418309221.GroupChat";
	*packet_13 <<(uint16)3 <<"SWG";
	*packet_13 <<(uint16)6 <<"Gorath";
	*packet_13 <<(uint16)6 <<"system";
	*packet_13 <<(uint16)3 <<"SWG";
	*packet_13 <<(uint16)6 <<"Gorath";
	*packet_13 <<(uint16)6 <<"system";
	*packet_13 <<(uint32)2; 
	*packet_13 << (uint8)0x68;
	*packet_13 << (uint8)0x00;
	*packet_13 << (uint8)0x69;
	*packet_13 << (uint8)0x00;
	*packet_13 << (uint32)1;
	*packet_13 <<(uint16)3 <<"Swg"; 
	*packet_13 <<(uint16)6 <<"Gorath";
	*packet_13 <<(uint16)6 <<"system";
	*packet_13 << (uint32)2;
	*packet_13 <<(uint16)3 <<"Swg"; 
	*packet_13 <<(uint16)6 <<"Gorath";
	*packet_13 <<(uint16)8 <<"partizia";
	*packet_13 <<(uint16)3 <<"Swg"; 
	*packet_13 <<(uint16)6 <<"Gorath";
	*packet_13 <<(uint16)6 <<"system";
	*packet_13 << (uint8)0x00 << (uint8)0x00 << (uint8)0x00;
	 server_sequence = queue->Add(packet_13, server_sequence);

Sample Packet

02 00 
97 B1 DE 70 // ChatRoomList
01 00 00 00 // Numberof_Chatrooms
5D 0A 72 02 // ChatRoom_ID
01 00 00 00 // NumberOf_RoomNames
00          // byte flag
27 00                                  // string count
53 57 47 2E 47 6F 72 61 74 68          // SWG.Gorath
2E 67 72 6F 75 70 2E                   // .group.
31 36 31 34 31 38 33 30 39 32 32 31 2E // 161418309221.   	
47 72 6F 75 70 43 68 61 74             // GroupChat
03 00             // string count
53 57 47          // SWG
06 00	          // string count	
47 6F 72 61 74 68 // Gorath
06 00             // string count
73 79 73 74 65 6D // system
03 00             // string count
53 57 47          // SWG
06 00             // string count
47 6F 72 61 74 68 // Gorath 
06 00             // string count
73 79 73 74 65 6D // system
0C 00 00 00                                  // u-string count
31 00 36 00 31 00 34 00 31 00 38 00 33 00 30 // 161418309221
00 39 00 32 00 32 00 31 00 
01 00 00 00  // moderator count
03 00             // string count
53 57 47          // SWG
06 00             // string count
47 6F 72 61 74 68 // Gorath 
06 00             // string count
73 79 73 74 65 6D // system
02 00 00 00   // user count
03 00             // string count
53 57 47          // SWG
06 00             // string count
47 6F 72 61 74 68 // Gorath
08 00                   // string count
70 61 74 72 69 7A 69 61 // patrizia
03 00             // string count
53 57 47          // SWG
06 00             // string count
47 6F 72 61 74 68 // Gorath
06 00             // string count
73 79 73 74 65 6D // system