Files
AdamuSw/docs/Packets/C2-1F-AddSummonedMonstersToScope095_by-server.md
2026-07-14 19:00:35 +03:00

40 lines
1.3 KiB
Markdown

# C2 1F - AddSummonedMonstersToScope095 (by server)
## Is sent when
One or more summoned monsters got into the observed scope of the player.
## Causes the following actions on the client side
The client adds the monsters to the shown map.
## Structure
| Index | Length | Data Type | Value | Description |
|-------|--------|-----------|-------|-------------|
| 0 | 1 | Byte | 0xC2 | [Packet type](PacketTypes.md) |
| 1 | 2 | Short | | Packet header - length of the packet |
| 3 | 1 | Byte | 0x1F | Packet header - packet type identifier |
| 4 | 1 | Byte | | MonsterCount |
| 5 | SummonedMonsterData.Length * MonsterCount | Array of SummonedMonsterData | | SummonedMonsters |
### SummonedMonsterData Structure
Contains the data of an NPC.
Length: 20 Bytes
| Index | Length | Data Type | Value | Description |
|-------|--------|-----------|-------|-------------|
| 0 | 2 | ShortBigEndian | | Id |
| 2 | 1 | Byte | | TypeNumber |
| 4 << 0 | 1 bit | Boolean | | IsPoisoned |
| 4 << 1 | 1 bit | Boolean | | IsIced |
| 4 << 2 | 1 bit | Boolean | | IsDamageBuffed |
| 4 << 3 | 1 bit | Boolean | | IsDefenseBuffed |
| 5 | 1 | Byte | | CurrentPositionX |
| 6 | 1 | Byte | | CurrentPositionY |
| 7 | 1 | Byte | | TargetPositionX |
| 8 | 1 | Byte | | TargetPositionY |
| 9 | 4 bit | Byte | | Rotation |
| 10 | 10 | String | | OwnerCharacterName |