Exemplo n.º 1
0
        public override bool TryDropItem(Mobile from, Item dropped, bool sendFullMessage)
        {
            if (m_Participant == null || !m_Participant.Contains(from))
            {
                if (sendFullMessage)
                {
                    from.SendMessage("You are not allowed to place items here.");
                }

                return(false);
            }

            if (dropped is Container || dropped.Stackable)
            {
                if (sendFullMessage)
                {
                    from.SendMessage("That item cannot be used as stakes.");
                }

                return(false);
            }

            if (!base.TryDropItem(from, dropped, sendFullMessage))
            {
                return(false);
            }

            if (from != null)
            {
                m_Owners[dropped] = from;
            }

            return(true);
        }