Example #1
0
        public override bool OnDragDropInto(Mobile from, Item item, Point3D p)
        {
            if (item is LinkedBag)
            {
                return(false);
            }

            if (mate == null)
            {
                return(base.OnDragDropInto(from, item, p));
            }

            if (!mate.CheckHold(from, item, true, true))
            {
                return(false);
            }

            try
            {
                mate.DropItem(item);
            }
            catch
            {
                from.SendMessage("Unable to do that.");
                return(false);
            }

            return(true);
        }
Example #2
0
        public override bool OnDragDropInto(Mobile from, Item item, Point3D p)
        {
            if (m_IsRewardItem && !RewardSystem.CheckIsUsableBy(from, this, null))
            {
                from.SendMessage("This does not belong to you!!");
                return(false);
            }

            if (item is LinkedBag)
            {
                return(false);
            }
            if (mate == null)
            {
                return(base.OnDragDropInto(from, item, p));
            }
            if (!mate.CheckHold(from, item, true, true))
            {
                return(false);
            }
            try
            {
                mate.DropItem(item);
            }
            catch
            {
                from.SendMessage("Unable to do that.");
                return(false);
            }
            return(true);
        }