~ruther/NosSmooth

ref: 063ebd5232ea3af5494efae26a63818cf3adc264 NosSmooth/Packets/NosSmooth.Packets/Server/Maps/DropPacket.cs -rw-r--r-- 1.1 KiB
063ebd52 — Rutherther fix(packets): make correct fields in drop packet 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
//  DropPacket.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using NosSmooth.PacketSerializer.Abstractions.Attributes;

namespace NosSmooth.Packets.Server.Maps;

/// <summary>
/// An item drop packet.
/// </summary>
/// <param name="ItemVNum">The item vnum identifier.</param>
/// <param name="DropId">The drop id.</param>
/// <param name="X">The map x.</param>
/// <param name="Y">The map y.</param>
/// <param name="Amount">The amount of the items on the ground.</param>
/// <param name="IsQuestRelated">Whether the item is a quest related item.</param>
/// <param name="OwnerId">The id of the owner. (only the owner is able to pick up the item)</param>
[PacketHeader("drop", PacketSource.Server)]
[GenerateSerializer(true)]
public record DropPacket
(
    [PacketIndex(0)]
    int ItemVNum,
    [PacketIndex(1)]
    long DropId,
    [PacketIndex(2)]
    short X,
    [PacketIndex(3)]
    short Y,
    [PacketIndex(4)]
    short Amount,
    [PacketIndex(5)]
    bool IsQuestRelated,
    [PacketIndex(6)]
    long? OwnerId
) : IPacket;
Do not follow this link