Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using Server.Network;
- using System.Collections;
- using System.Collections.Generic;
- namespace Server.Items
- {
- public class LootBox : Container
- {
- public LootBox(Serial serial)
- : base(serial)
- {
- }
- public override void Serialize(GenericWriter writer)
- {
- base.Serialize(writer);
- writer.Write((int)0); // version
- }
- public override void Deserialize(GenericReader reader)
- {
- base.Deserialize(reader);
- int version = reader.ReadInt();
- switch (version)
- {
- case 0:
- {
- break;
- }
- }
- }
- private static bool m_SendRemovePacket;
- public static bool SendDeleteOnClose { get { return m_SendRemovePacket; } set { m_SendRemovePacket = value; } }
- public override void OnSingleClick(Mobile from)
- {
- }
- public override void OnDoubleClick(Mobile from)
- {
- }
- public override DeathMoveResult OnParentDeath(Mobile parent)
- {
- return DeathMoveResult.RemainEquiped;
- }
- public override bool IsPublicContainer { get { return true; } }
- [Constructable]
- public LootBox()
- : base(0xE75)
- {
- Layer = Layer.Bank;
- Movable = false;
- }
- public override void DisplayTo(Mobile to)
- {
- to.Send(new ContainerDisplay(this));
- to.Send(new ContainerContent(to, this));
- if (ObjectPropertyList.Enabled)
- {
- List<Item> items = this.Items;
- for (int i = 0; i < items.Count; ++i)
- to.Send(items[i].OPLPacket);
- }
- }
- public override bool CheckLift(Mobile from, Item item, ref LRReason reject)
- {
- return true;
- }
- public override bool IsAccessibleTo(Mobile m)
- {
- return true;
- }
- public override bool OnDragDrop(Mobile from, Item dropped)
- {
- return true;
- }
- public override bool OnDragDropInto(Mobile from, Item item, Point3D p)
- {
- return false;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement