ChatRoomList

From SWGANH Wiki
Revision as of 17:08, 2 June 2007 by Mugly (Talk | contribs) (Struct)

Jump to: navigation, search


Struct


SHORT Operand_Count
INT Opcode
INT Numberof_Chatrooms
INT ChatRoom_ID
INT NumberOf_RoomNames
BYTE ChannelType?
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


  • NumberOf_ChatRooms
Add 1 to the count, for each chatroom listed in the packet
  • chatroom_id
Add each chatroom id, for the Number of Chatrooms
  • NumberOf_RoomNames
Add 1 to the count,for each Roomname Listed in the packet
  • Unknown
(ByteFlag) Needs Looking into, thinking its for Moderated,private or Public
  • SizeOf_RoomName
The size of the roomname listed in packet
  • Roomname
Name of the room, Repeat For each room in above size
  • ChannelOwner
Add Size and NAme for each Name u add onto the First, Example SWG Add tony to the bottom will make SWG.tony
  • ChannelCreator
Same Rule Applys to Above
  • Roomtitle
Name of room title In Unicode
  • RoomModeratorNumber
Add 1 to the list of moderators
  • ChannelModerator
Add Size and NAme for each Name u add onto the First, Example SWG Add tony to the bottom will make SWG.tony
  • Users
Add size and name and +1 to the NumberOfUsers Int

Tags


S→C This packet originates on the server.

75% This packet has been partially reversed.


Sample Code


Insert Code Snippet Here...

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"