diff --git a/src/Network/Packets/ClientToServer/ClientToServerPackets.xml b/src/Network/Packets/ClientToServer/ClientToServerPackets.xml index 6d4ca95..1cc0c02 100644 --- a/src/Network/Packets/ClientToServer/ClientToServerPackets.xml +++ b/src/Network/Packets/ClientToServer/ClientToServerPackets.xml @@ -4268,6 +4268,18 @@ + + C1HeaderWithSubCode + F5 + 00 + ChatCommandListRequest + Request chat command list + 4 + ClientToServer + A client which supports a user interface for chat commands requests the list of commands which are available to the player. It's usually sent after the character entered the game world. + The server sends a ChatCommandInfo for each available chat command. + + diff --git a/src/Network/Packets/ServerToClient/ServerToClientPackets.xml b/src/Network/Packets/ServerToClient/ServerToClientPackets.xml index 084c2cb..9646bb3 100644 --- a/src/Network/Packets/ServerToClient/ServerToClientPackets.xml +++ b/src/Network/Packets/ServerToClient/ServerToClientPackets.xml @@ -11240,6 +11240,135 @@ + + C2HeaderWithSubCode + F5 + 01 + ChatCommandInfo + ServerToClient + After the client requested the list of available chat commands. One message is sent for each command which is available to the player. + The client adds the command to its list of known commands, so that it can offer them to the player without requiring him to know or type them. + + + 5 + Byte + Index + The index of this command within the list, starting at 0. + + + 6 + Byte + Count + The total number of commands which are available to the player, so that the client knows when it received all of them. + + + 7 + Enum + CharacterStatus + MinimumCharacterStatus + The character status which is required to execute the command. + + + 8 + Byte + ParameterCount + + + 9 + String + Command + 32 + The command including its slash, e.g. '/item'. + + + 41 + String + Name + 48 + The name of the command, in the language of the player. + + + 89 + String + Description + 256 + The description of the command, in the language of the player. + + + 345 + Structure[] + ChatCommandParameter + Parameters + ParameterCount + The parameters of the command, in the order in which they are expected when they are entered without their short names. + + + + + ChatCommandParameter + Describes one parameter of a chat command, so that a user interface can offer an input for it. + 102 + + + 0 + Boolean + IsRequired + Defines if the parameter has to be specified to execute the command. + + + 1 + Enum + ChatCommandParameterType + Type + The kind of value which is expected, so that a fitting input can be shown. + + + 2 + String + Name + 32 + + + 34 + String + ShortName + 20 + The short name which is used in the 'shortName=value' notation. It's empty when the parameter can only be passed by its position. + + + 54 + String + ValidValues + 48 + The accepted values, separated by a pipe. It's empty when the parameter isn't limited to a set of values. + + + + + + + ChatCommandParameterType + The kind of value which a chat command parameter expects. + + + Text + The parameter expects a text. + 0 + + + Number + The parameter expects a number. + 1 + + + Boolean + The parameter expects a 0 or a 1. + 2 + + + + + @@ -11810,4 +11939,4 @@ - \ No newline at end of file +