forked from Elfocrash/L2dotNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExRpItemLink.cs
More file actions
38 lines (32 loc) · 961 Bytes
/
Copy pathExRpItemLink.cs
File metadata and controls
38 lines (32 loc) · 961 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
31
32
33
34
35
36
37
38
using L2dotNET.Models.Items;
namespace L2dotNET.Network.serverpackets
{
class ExRpItemLink : GameserverPacket
{
private readonly L2Item _item;
public ExRpItemLink(L2Item item)
{
_item = item;
}
public override void Write()
{
WriteByte(0xfe);
WriteShort(0x6c);
WriteInt(_item.ObjectId);
WriteInt(_item.Template.ItemId);
WriteInt(0);
WriteLong(_item.Count);
WriteShort(_item.Template.Type2);
WriteShort(0);
WriteShort(0);
WriteInt((int) _item.Template.BodyPart);
WriteShort(_item.Enchant);
WriteShort(0);
WriteInt(_item.AugmentationId);
WriteInt(_item.Durability);
WriteInt(_item.LifeTimeEnd());
WriteShort(_item.AttrAttackType);
WriteShort(_item.AttrAttackValue);
}
}
}