Difference between revisions of "ChatOnAddModeratorToRoom"
From SWGANH Wiki
(→Sample Packet) |
(→Struct) |
||
(17 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{PageHeader|Server Packet|ChatOnAddModeratorToRoom (36A03858)}} | |
− | {| | + | |
− | | | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
{| border="0" width="90%" cellpadding=6 | {| border="0" width="90%" cellpadding=6 | ||
|- | |- | ||
Line 11: | Line 5: | ||
===Struct=== | ===Struct=== | ||
---- | ---- | ||
− | + | {| align="center" | |
+ | |- | ||
+ | || | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | |align="center" style="background:# | + | |align="center" style="background:#3C548A; color:white;"|'''SHORT'''||'''OperandCount''' |
|- | |- | ||
− | |align="center" style="background:# | + | |align="center" style="background:#3C548A; color:white;"|'''INT'''||'''Opcode''' |
|- | |- | ||
− | |align="center" style="background:# | + | |align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''Game''' |
|- | |- | ||
− | |align="center" style="background:# | + | |align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''Server''' |
|- | |- | ||
− | |align="center" style="background:# | + | |align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''Target''' |
|- | |- | ||
− | |align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||''' | + | |align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''Game''' |
|- | |- | ||
− | |align="center" style="background:# | + | |align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''Server''' |
|- | |- | ||
− | |align="center" style="background:# | + | |align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''Moderator''' |
|- | |- | ||
− | |align="center" style="background:# | + | |align="center" style="background:#3C548A; color:white;"|'''INT'''||'''ErrorCode''' |
|- | |- | ||
− | |align="center" style="background:# | + | |align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''RoomPathName''' |
|- | |- | ||
− | |align="center" style="background:# | + | |align="center" style="background:#3C548A; color:white;"|'''INT'''||'''RequestID''' |
− | + | ||
− | + | ||
|- | |- | ||
+ | |} | ||
|} | |} | ||
Line 48: | Line 43: | ||
---- | ---- | ||
− | * | + | * '''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: Moderator status has been granted to [Target]. | ||
+ | :4: Failed to op [Game.Server.Target] in [RoomPathName]: avatar not found. | ||
+ | :5: Failed to op [Game.Server.Target] in [RoomPathName]: room does not exist. | ||
+ | :9: Failed to op [Game.Server.Target] in [RoomPathName]: room not moderated. | ||
+ | :16: Failed to op [Game.Server.Target] in [RoomPathName]: You are not a moderator. | ||
+ | :Default: Failed to op [Game.Server.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. | ||
|valign=top| | |valign=top| | ||
Line 61: | Line 78: | ||
||{{ServerPacket}} | ||{{ServerPacket}} | ||
|- | |- | ||
− | ||{{ | + | ||{{100%}} |
|- | |- | ||
|} | |} | ||
− | |||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Sample Packet== | ==Sample Packet== |
Latest revision as of 01:07, 11 May 2008
Server Packet - ChatOnAddModeratorToRoom (36A03858)
SWGANH Wiki is a repository of Star Wars Galaxies Developer information. This site is only meant to be used by SWGANH Developer team.
Struct
Variable DescriptionsOpperand_Count = 6 Opcode = 0x36A03858
|
Tags
|
Sample Packet
06 00 58 38 A0 36 // ChatOnAddModeratorToRoom 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 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 // rubinlee 00 00 00 00 22 00 // string count 53 57 47 2E 53 68 61 64 6F // SWG.Shado 77 66 69 72 65 2E 74 75 74 6F 72 69 61 6C 2E 43 // wfire.tutorial.C 68 61 74 2E 72 6F 75 73 65 // hat.rouse....O. 01 00 00 00