forked from Elfocrash/L2dotNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDropItem.cs
More file actions
30 lines (27 loc) · 724 Bytes
/
DropItem.cs
File metadata and controls
30 lines (27 loc) · 724 Bytes
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
using L2dotNET.model.items;
namespace L2dotNET.Network.serverpackets
{
class DropItem : GameserverPacket
{
private readonly int _id;
private readonly L2Item _item;
public DropItem(L2Item item)
{
_item = item;
_id = item.Dropper;
}
public override void Write()
{
WriteByte(0x0c);
WriteInt(_id);
WriteInt(_item.ObjId);
WriteInt(_item.Template.ItemId);
WriteInt(_item.X);
WriteInt(_item.Y);
WriteInt(_item.Z);
WriteInt(_item.Template.Stackable ? 1 : 0);
WriteLong(_item.Count);
WriteInt(1); // ?
}
}
}