public static DropItemInfo RecvDropItem(Packet p) { p.Skip(2); byte frombag = p.ReadByte(); byte fromslot = p.ReadByte(); int itemid = p.ReadInt(); short tox = p.ReadShort(); short toy = p.ReadShort(); byte toz = p.ReadByte(); int something = p.ReadInt(); DropItemInfo drop = new DropItemInfo { FromBag = frombag, FromSlot = fromslot, ItemID = itemid, ToX = tox, ToY = toy, ToZ = toz, Something = something }; return drop; }
public ClientDropItemEventArgs(DropItemInfo dii) { this.dropinfo = dii; }