ChatOnRemoveModeratorFromRoom

From SWGANH Wiki
Jump to: navigation, search

Server Packet - ChatOnRemoveModeratorFromRoom (1342FC47)

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 SWG
A_STRING Galaxy
A_STRING Target
A_STRING SWG
A_STRING Galaxy
A_STRING Moderator
INT Success Bitmask
A_STRING ErrorCode
INT RequestID

Variable Descriptions


Opperand_Count = 9

Opcode = 1342FC47


  • 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.
  • Target:
The first name of the player the moderator is targeting with this packet. Must be only firstname and lowercase. Part of ChatAvatarId object.
  • Moderator:
The first name of the player who is a moderator for the room this action is affecting. Must be only firstname and lowercase. Part of ChatAvatarId object.
  • ErrorCode:
A integer containing a code for the error that occured. Used to determine what error message to display.
0:Success: You deop'd [Target] in [RoomPathName].
4: Failed to deop [Target] in [RoomPathName]: avatar not found.
5: Failed to deop [Target] in [RoomPathName]: room does not exist.
9: Failed to deop [Target] in [RoomPathName]: room not moderated.
16: Failed to deop [Target] in [RoomPathName]: You are not a moderator.
Default: Failed to deop [Target] in [RoomPathName].
  • RoomPathName:
The full ChatServer path and name for the room including the RoomName specified on creation.

Example: "SWG.TestCenter.Chat.tcpa"

  • 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 every response that had a request with a RequestID, the same RequestID must be sent back. It is used to identify key information regarding the response, such as what the full RoomPathName was and it is used in error message generation. Also can be used to eliminate duplicate requests.

Tags


S→C This packet originates on the server.

100% This packet has been completely reversed.

Sample Packet

00 09 
05 C7 
00 19 
69 
06 00 
47 FC 42 13                                       // ChatOnRemoveModeratorFromRoom
03 00                                             // string count
53 57 47                                          // SWG
0A 00                                             // string count
53 68 61 64 6F 77 66 69 72 65                     // Shadowfire
09 00                                             // string count 
73 70 65 74 79 6E 65 73 73                        // spetyness  / person removed from chat
03 00                                             // string count
53 57 47                                          // SWG
0A 00                                             // string count
53 68 61 64 6F 77 66 69 72 65                     // Shadowfire
08 00                                             // string count
72 75 62 69 6E 6C 65 65                           // rublinlee / mod that removed the person
00 00 00 00 
22 00                                             // string count 
53 57 47 2E 53 68                                 // SWG.Sh
61 64 6F 77 66 69 72 65 2E 74 75 74 6F 72 69 61   // adowfire.tutoria
6C 2E 43 68 61 74 2E 72 6F 75 73 65               // l.Chat.rouse
01 00 00 00