Skip to content

Commit

Permalink
Added missing packet definitions C->S
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-n committed Sep 23, 2023
1 parent ba02650 commit 1747b60
Show file tree
Hide file tree
Showing 102 changed files with 25,582 additions and 5,887 deletions.
5 changes: 3 additions & 2 deletions docs/Packets/C1-1B-MagicEffectCancelRequest_by-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The effect is cancelled and an update is sent to the player and all surrounding
| Index | Length | Data Type | Value | Description |
|-------|--------|-----------|-------|-------------|
| 0 | 1 | Byte | 0xC1 | [Packet type](PacketTypes.md) |
| 1 | 1 | Byte | 5 | Packet header - length of the packet |
| 1 | 1 | Byte | 7 | Packet header - length of the packet |
| 2 | 1 | Byte | 0x1B | Packet header - packet type identifier |
| 3 | 2 | ShortBigEndian | | SkillId |
| 3 | 2 | ShortBigEndian | | SkillId |
| 5 | 2 | ShortBigEndian | | PlayerId |
5 changes: 3 additions & 2 deletions docs/Packets/C1-34-RepairItemRequest_by-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The item is repaired if the player has enough money in its inventory. A correspo
| Index | Length | Data Type | Value | Description |
|-------|--------|-----------|-------|-------------|
| 0 | 1 | Byte | 0xC1 | [Packet type](PacketTypes.md) |
| 1 | 1 | Byte | 4 | Packet header - length of the packet |
| 1 | 1 | Byte | 5 | Packet header - length of the packet |
| 2 | 1 | Byte | 0x34 | Packet header - packet type identifier |
| 3 | 1 | Byte | | ItemSlot; Inventory item slot of the target item. If it's 0xFF, the player wants to repair all items - this is only possible with some opened NPC dialogs. Repairing the pet item slot (8) is only possible when the pet trainer npc is opened. |
| 3 | 1 | Byte | | ItemSlot; Inventory item slot of the target item. If it's 0xFF, the player wants to repair all items - this is only possible with some opened NPC dialogs. Repairing the pet item slot (8) is only possible when the pet trainer npc is opened. |
| 4 | 1 | Boolean | | IsSelfRepair; If the player repairs it over his inventory, it's true. However, a server should never rely on this flag and do his own checks. |
2 changes: 1 addition & 1 deletion docs/Packets/C1-3A-SetTradeMoney_by-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ It's taken from the available money of the inventory. If the new money amount is
| Index | Length | Data Type | Value | Description |
|-------|--------|-----------|-------|-------------|
| 0 | 1 | Byte | 0xC1 | [Packet type](PacketTypes.md) |
| 1 | 1 | Byte | 5 | Packet header - length of the packet |
| 1 | 1 | Byte | 8 | Packet header - length of the packet |
| 2 | 1 | Byte | 0x3A | Packet header - packet type identifier |
| 4 | 4 | IntegerLittleEndian | | Amount |
3 changes: 2 additions & 1 deletion docs/Packets/C1-41-PartyInviteResponse_by-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ If the sender accepts the request, it's added to the party.
| 0 | 1 | Byte | 0xC1 | [Packet type](PacketTypes.md) |
| 1 | 1 | Byte | 4 | Packet header - length of the packet |
| 2 | 1 | Byte | 0x41 | Packet header - packet type identifier |
| 3 | 1 | Boolean | | Accepted |
| 3 | 1 | Boolean | | Accepted |
| 4 | 2 | ShortBigEndian | | RequesterId |
5 changes: 3 additions & 2 deletions docs/Packets/C1-51-GuildJoinResponse_by-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ If the request was accepted by the guild master, the previously requesting playe
| Index | Length | Data Type | Value | Description |
|-------|--------|-----------|-------|-------------|
| 0 | 1 | Byte | 0xC1 | [Packet type](PacketTypes.md) |
| 1 | 1 | Byte | 4 | Packet header - length of the packet |
| 1 | 1 | Byte | 6 | Packet header - length of the packet |
| 2 | 1 | Byte | 0x51 | Packet header - packet type identifier |
| 3 | 1 | Boolean | | Accepted |
| 3 | 1 | Boolean | | Accepted |
| 4 | 2 | ShortBigEndian | | RequesterId |
17 changes: 17 additions & 0 deletions docs/Packets/C1-71-PingResponse_by-client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# C1 71 - PingResponse (by client)

## Is sent when

After the server sent a ping request.

## Causes the following actions on the server side

The server knows the latency between server and client.

## Structure

| Index | Length | Data Type | Value | Description |
|-------|--------|-----------|-------|-------------|
| 0 | 1 | Byte | 0xC1 | [Packet type](PacketTypes.md) |
| 1 | 1 | Byte | 3 | Packet header - length of the packet |
| 2 | 1 | Byte | 0x71 | Packet header - packet type identifier |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# C1 82 00 - UnlockVault (by client)
# C1 83 00 - UnlockVault (by client)

## Is sent when

Expand All @@ -14,6 +14,6 @@ The vault lock state on the server is updated. VaultProtectionInformation is sen
|-------|--------|-----------|-------|-------------|
| 0 | 1 | Byte | 0xC1 | [Packet type](PacketTypes.md) |
| 1 | 1 | Byte | 7 | Packet header - length of the packet |
| 2 | 1 | Byte | 0x82 | Packet header - packet type identifier |
| 2 | 1 | Byte | 0x83 | Packet header - packet type identifier |
| 3 | 1 | Byte | 0x00 | Packet header - sub packet type identifier |
| 4 | 2 | ShortLittleEndian | | Pin |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# C1 82 01 - SetVaultPin (by client)
# C1 83 01 - SetVaultPin (by client)

## Is sent when

Expand All @@ -14,7 +14,7 @@ The vault pin is set. VaultProtectionInformation is sent as response.
|-------|--------|-----------|-------|-------------|
| 0 | 1 | Byte | 0xC1 | [Packet type](PacketTypes.md) |
| 1 | 1 | Byte | 27 | Packet header - length of the packet |
| 2 | 1 | Byte | 0x82 | Packet header - packet type identifier |
| 2 | 1 | Byte | 0x83 | Packet header - packet type identifier |
| 3 | 1 | Byte | 0x01 | Packet header - sub packet type identifier |
| 4 | 2 | ShortLittleEndian | | Pin |
| 6 | 20 | String | | Password; The password of the account, which is required to set a new vault pin. |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# C1 82 02 - RemoveVaultPin (by client)
# C1 83 02 - RemoveVaultPin (by client)

## Is sent when

Expand All @@ -14,6 +14,6 @@ The vault pin is removed. VaultProtectionInformation is sent as response.
|-------|--------|-----------|-------|-------------|
| 0 | 1 | Byte | 0xC1 | [Packet type](PacketTypes.md) |
| 1 | 1 | Byte | 27 | Packet header - length of the packet |
| 2 | 1 | Byte | 0x82 | Packet header - packet type identifier |
| 2 | 1 | Byte | 0x83 | Packet header - packet type identifier |
| 3 | 1 | Byte | 0x02 | Packet header - sub packet type identifier |
| 6 | 20 | String | | Password; The password of the account, which is required to remove the vault pin. |
1 change: 1 addition & 0 deletions docs/Packets/C1-8E-02-WarpCommandRequest_by-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ If the player has enough money and is allowed to enter the map, it's getting mov
| 1 | 1 | Byte | 10 | Packet header - length of the packet |
| 2 | 1 | Byte | 0x8E | Packet header - packet type identifier |
| 3 | 1 | Byte | 0x02 | Packet header - sub packet type identifier |
| 4 | 4 | IntegerLittleEndian | | CommandKey; A command key, which is generated by a 'secret' algorithm. Not considered in OpenMU. |
| 8 | 2 | ShortLittleEndian | | WarpInfoIndex; The index of the entry in the warp list. |
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Defines the type of the mini game.
| 0 | Undefined | Undefined mini game type. |
| 1 | DevilSquare | The devil square mini game. |
| 2 | BloodCastle | The blood castle mini game. |
| 3 | CursedTemple | The cursed temple mini game. |
| 4 | ChaosCastle | The chaos castle mini game. |
| 5 | IllusionTemple | The illusion temple mini game. |
| 6 | Doppelganger | The doppelgänger mini game. |
1 change: 1 addition & 0 deletions docs/Packets/C1-91-MiniGameOpeningState_by-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Defines the type of the mini game.
| 0 | Undefined | Undefined mini game type. |
| 1 | DevilSquare | The devil square mini game. |
| 2 | BloodCastle | The blood castle mini game. |
| 3 | CursedTemple | The cursed temple mini game. |
| 4 | ChaosCastle | The chaos castle mini game. |
| 5 | IllusionTemple | The illusion temple mini game. |
| 6 | Doppelganger | The doppelgänger mini game. |
19 changes: 19 additions & 0 deletions docs/Packets/C1-95-EventChipRegistrationRequest_by-client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# C1 95 - EventChipRegistrationRequest (by client)

## Is sent when

The player registers an event item at an NPC, usually the golden archer.

## Causes the following actions on the server side

A response is sent back to the client with the current event chip count.

## Structure

| Index | Length | Data Type | Value | Description |
|-------|--------|-----------|-------|-------------|
| 0 | 1 | Byte | 0xC1 | [Packet type](PacketTypes.md) |
| 1 | 1 | Byte | 5 | Packet header - length of the packet |
| 2 | 1 | Byte | 0x95 | Packet header - packet type identifier |
| 3 | 1 | Byte | | Type |
| 4 | 1 | Byte | | ItemIndex |
17 changes: 17 additions & 0 deletions docs/Packets/C1-96-MutoNumberRequest_by-client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# C1 96 - MutoNumberRequest (by client)

## Is sent when

The player requests information about the Muto number. Unused.

## Causes the following actions on the server side

A response is sent back to the client with the current Muto number.

## Structure

| Index | Length | Data Type | Value | Description |
|-------|--------|-----------|-------|-------------|
| 0 | 1 | Byte | 0xC1 | [Packet type](PacketTypes.md) |
| 1 | 1 | Byte | 3 | Packet header - length of the packet |
| 2 | 1 | Byte | 0x96 | Packet header - packet type identifier |
17 changes: 17 additions & 0 deletions docs/Packets/C1-97-EventChipExitDialog_by-client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# C1 97 - EventChipExitDialog (by client)

## Is sent when

The player requests to close the event chip dialog.

## Causes the following actions on the server side

The event chip dialog will be closed.

## Structure

| Index | Length | Data Type | Value | Description |
|-------|--------|-----------|-------|-------------|
| 0 | 1 | Byte | 0xC1 | [Packet type](PacketTypes.md) |
| 1 | 1 | Byte | 3 | Packet header - length of the packet |
| 2 | 1 | Byte | 0x97 | Packet header - packet type identifier |
18 changes: 18 additions & 0 deletions docs/Packets/C1-98-EventChipExchangeRequest_by-client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# C1 98 - EventChipExchangeRequest (by client)

## Is sent when

The player requests to exchange the event chips to something else.

## Causes the following actions on the server side

A response is sent back to the client with the exchange result.

## Structure

| Index | Length | Data Type | Value | Description |
|-------|--------|-----------|-------|-------------|
| 0 | 1 | Byte | 0xC1 | [Packet type](PacketTypes.md) |
| 1 | 1 | Byte | 4 | Packet header - length of the packet |
| 2 | 1 | Byte | 0x98 | Packet header - packet type identifier |
| 3 | 1 | Byte | | Type |
20 changes: 20 additions & 0 deletions docs/Packets/C1-9D-LuckyNumberRequest_by-client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# C1 9D - LuckyNumberRequest (by client)

## Is sent when

The player requests to redeem a coupon code (lucky number) which is 12 alphanumeric digits long.

## Causes the following actions on the server side

A response is sent back to the client with the result. An item could be rewarded to the inventory.

## Structure

| Index | Length | Data Type | Value | Description |
|-------|--------|-----------|-------|-------------|
| 0 | 1 | Byte | 0xC1 | [Packet type](PacketTypes.md) |
| 1 | 1 | Byte | 18 | Packet header - length of the packet |
| 2 | 1 | Byte | 0x9D | Packet header - packet type identifier |
| 3 | 4 | String | | Serial1 |
| 8 | 4 | String | | Serial2 |
| 13 | 4 | String | | Serial3 |
32 changes: 32 additions & 0 deletions docs/Packets/C1-9F-MiniGameEventCountRequest_by-client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# C1 9F - MiniGameEventCountRequest (by client)

## Is sent when

The player requests to get the entering count of the specified mini game.

## Causes the following actions on the server side

The remaining time is sent back to the client. However, it's not really handled on the known server sources.

## Structure

| Index | Length | Data Type | Value | Description |
|-------|--------|-----------|-------|-------------|
| 0 | 1 | Byte | 0xC1 | [Packet type](PacketTypes.md) |
| 1 | 1 | Byte | 4 | Packet header - length of the packet |
| 2 | 1 | Byte | 0x9F | Packet header - packet type identifier |
| 3 | 1 | MiniGameType | | MiniGame |

### MiniGameType Enum

Defines the type of the mini game.

| Value | Name | Description |
|-------|------|-------------|
| 0 | Undefined | Undefined mini game type. |
| 1 | DevilSquare | The devil square mini game. |
| 2 | BloodCastle | The blood castle mini game. |
| 3 | CursedTemple | The cursed temple mini game. |
| 4 | ChaosCastle | The chaos castle mini game. |
| 5 | IllusionTemple | The illusion temple mini game. |
| 6 | Doppelganger | The doppelgänger mini game. |
20 changes: 20 additions & 0 deletions docs/Packets/C1-AF-02-ChaosCastlePositionSet_by-client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# C1 AF 02 - ChaosCastlePositionSet (by client)

## Is sent when

The game client noticed, that the coordinates of the player is not on the ground anymore. It requests to set the specified coordinates.

## Causes the following actions on the server side

The server sets the player on the new coordinates. Not handled on OpenMU.

## Structure

| Index | Length | Data Type | Value | Description |
|-------|--------|-----------|-------|-------------|
| 0 | 1 | Byte | 0xC1 | [Packet type](PacketTypes.md) |
| 1 | 1 | Byte | 6 | Packet header - length of the packet |
| 2 | 1 | Byte | 0xAF | Packet header - packet type identifier |
| 3 | 1 | Byte | 0x02 | Packet header - sub packet type identifier |
| 4 | 1 | Byte | | PositionX |
| 5 | 1 | Byte | | PositionY |
18 changes: 18 additions & 0 deletions docs/Packets/C1-B2-00-CastleSiegeStatusRequest_by-client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# C1 B2 00 - CastleSiegeStatusRequest (by client)

## Is sent when

The player opened a castle siege npc and requests the current castle siege status information.

## Causes the following actions on the server side

The server returns the status of the castle siege event.

## Structure

| Index | Length | Data Type | Value | Description |
|-------|--------|-----------|-------|-------------|
| 0 | 1 | Byte | 0xC1 | [Packet type](PacketTypes.md) |
| 1 | 1 | Byte | 4 | Packet header - length of the packet |
| 2 | 1 | Byte | 0xB2 | Packet header - packet type identifier |
| 3 | 1 | Byte | 0x00 | Packet header - sub packet type identifier |
18 changes: 18 additions & 0 deletions docs/Packets/C1-B2-01-CastleSiegeRegistrationRequest_by-client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# C1 B2 01 - CastleSiegeRegistrationRequest (by client)

## Is sent when

The player opened a castle siege npc to register his guild alliance.

## Causes the following actions on the server side

The server returns the result of the castle siege registration.

## Structure

| Index | Length | Data Type | Value | Description |
|-------|--------|-----------|-------|-------------|
| 0 | 1 | Byte | 0xC1 | [Packet type](PacketTypes.md) |
| 1 | 1 | Byte | 4 | Packet header - length of the packet |
| 2 | 1 | Byte | 0xB2 | Packet header - packet type identifier |
| 3 | 1 | Byte | 0x01 | Packet header - sub packet type identifier |
18 changes: 18 additions & 0 deletions docs/Packets/C1-B2-02-CastleSiegeUnregisterRequest_by-client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# C1 B2 02 - CastleSiegeUnregisterRequest (by client)

## Is sent when

The player opened a castle siege npc to un-register his guild alliance.

## Causes the following actions on the server side

The server returns the result of the castle siege un-registration.

## Structure

| Index | Length | Data Type | Value | Description |
|-------|--------|-----------|-------|-------------|
| 0 | 1 | Byte | 0xC1 | [Packet type](PacketTypes.md) |
| 1 | 1 | Byte | 4 | Packet header - length of the packet |
| 2 | 1 | Byte | 0xB2 | Packet header - packet type identifier |
| 3 | 1 | Byte | 0x02 | Packet header - sub packet type identifier |
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# C1 B2 03 - CastleSiegeRegistrationStateRequest (by client)

## Is sent when

The player opened a castle siege npc and requests the state about the own registration.

## Causes the following actions on the server side

The server returns the state of the castle siege registration, which includes the number of submitted guild marks.

## Structure

| Index | Length | Data Type | Value | Description |
|-------|--------|-----------|-------|-------------|
| 0 | 1 | Byte | 0xC1 | [Packet type](PacketTypes.md) |
| 1 | 1 | Byte | 4 | Packet header - length of the packet |
| 2 | 1 | Byte | 0xB2 | Packet header - packet type identifier |
| 3 | 1 | Byte | 0x03 | Packet header - sub packet type identifier |
Loading

0 comments on commit 1747b60

Please sign in to comment.