Example #1
0
 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;
 }
Example #2
0
 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;
 }
Example #3
0
 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);
     }
 }