Difference between revisions of "ChatOnBanAvatarFromRoom"

From SWGANH Wiki
Jump to: navigation, search
(Variable Descriptions)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{MissingPacket}}
 
{{PageHeader|Server Packet|ChatOnBanAvatarFromRoom (5A38538D)}}
 
{{PageHeader|Server Packet|ChatOnBanAvatarFromRoom (5A38538D)}}
 
{| border="0" width="90%" cellpadding=6
 
{| border="0" width="90%" cellpadding=6
Line 5: Line 6:
 
===Struct===
 
===Struct===
 
----
 
----
 
+
{| align="center"
 +
|-
 +
||
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 28: Line 31:
 
|{{int}}||'''Success Bitmask'''
 
|{{int}}||'''Success Bitmask'''
 
|-
 
|-
|{{int}}||'''Nothing'''
+
|{{int}}||'''RequestID'''
 +
|}
 
|}
 
|}
  
Line 38: Line 42:
 
Opcode     = '''0x5A38538D'''
 
Opcode     = '''0x5A38538D'''
 
----
 
----
 +
* '''Room Name''':
 +
The full ChatServer path and name for the room including the RoomName specified on creation. Example: "SWG.TestCenter.Chat.tcpa"
  
*Success Bitmask
+
* '''Game''':
:0: '''XXX has been banned from XXX'''
+
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.
:0x4: '''Avatar not found.'''
+
:0x10: '''Insufficient Privileges'''
+
  
*Nothing
+
* '''Server''':
:This is a counter on live but the client doesn't care about it, send 0.
+
: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.
  
 
|valign=top|
 
|valign=top|
Line 58: Line 80:
 
|-
 
|-
 
|}
 
|}
 
 
|}
 
|}
 
----
 
 
==Sample Code==
 
----
 
 
<pre>
 
Insert Code Snippet Here...
 
</pre>
 
  
 
==Sample Packet==
 
==Sample Packet==

Latest revision as of 01:23, 11 May 2008





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...