ChatRoomList

From SWGANH Wiki
Revision as of 18:54, 20 June 2007 by Spety (Talk | contribs) (Variable Descriptions)

Jump to: navigation, search


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.

75% This packet has been partially 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 
53 57 47 2E 47 6F 72 61 
74 68 2E 67 72 6F 75 70     	// RoomName :  "SWG.Gorath.group.161418309221.GroupChat"
2E 31 36 31 34 31 38 33     	
30 39 32 32 31 2E 47 72 
6F 75 70 43 68 61 74 

03 00 
53 57 47     	            	// ChannelOwner :  "SWG"

06 00				
47 6F 72 61 74 68    		// ChannelCreator : "Gorath"
    
06 00 
73 79 73 74 65 6D               // RoomTitle : "system"

03 00 
53 57 47   			// "SWG" ?

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 




01 00 00 00 			// moderator count


03 00 				
53 57 47  			// "SWG"

06 00 
47 6F 72 61 74 68 		// "Gorath"

06 00 
73 79 73 74 65 6D 		// "system"




02 00 00 00 			// user count


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"