public Drop(Item item, MapObject dropper, int x, int y, int secondsToLive) { Item = new DroppedItem(item); DroppedBy = dropper; Position = new Vector2(x, y); Expire = Program.CurrentTime.AddSeconds(secondsToLive); CanTake = true; }
public static void ObtainedItem(ZoneCharacter character, DroppedItem item, ObtainedItemStatus status) { using (var packet = new Packet(SH12Type.ObtainedItem)) { packet.WriteUShort(item.ItemID); packet.WriteInt(item.Amount); packet.WriteUShort((ushort)status); packet.WriteUShort(0xffff); character.Client.SendPacket(packet); } }