ChatOnBanAvatarFromRoom

From SWGANH Wiki
Jump to: navigation, search





Server Packet - ChatOnBanAvatarFromRoom (5A38538D)

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
INT Opcode
A_STRING Room Name
A_STRING Game
A_STRING Galaxy
A_STRING Moderator
A_STRING Game
A_STRING Galaxy
A_STRING Target
INT Success Bitmask
INT RequestID

Variable Descriptions


Opperand_Count = 6

Opcode = 0x5A38538D


  • Room Name:

The full ChatServer path and name for the room including the RoomName specified on creation. Example: "SWG.TestCenter.Chat.tcpa"

  • 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.
  • 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.
  • Target:
The first name of the player the moderator is targeting with this packet. 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: [Target] has been banned from [RoomName].
4: Ban [Target] from [RoomName] failed: Avatar not found.
5: Ban [Target] from [RoomName] failed: Room does not exist.
12: Ban [Target] from [RoomName] failed: Already Banned.
16: Ban [Target] from [RoomName] failed: Insufficient Privileges
Default: Ban [Target] from [RoomName] failed: Unknown Error
  • 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

Insert Sample Packet Here...