Beispiel #1
0
        public override bool OnDragDrop(Mobile from, Item dropped)
        {
            if (m_Altar == null)
            {
                return(false);
            }

            if (m_Altar.Activated)
            {
                from.SendLocalizedMessage(1075213);                   // The master of this realm has already been summoned and is engaged in combat.  Your opportunity will come after he has squashed the current batch of intruders!
                return(false);
            }

            if (!m_Altar.TryDrop(from, dropped, m_ID))
            {
                from.SendLocalizedMessage(1072682);                   // This is not the proper key.
                return(false);
            }
            else
            {
                return(true);
            }
        }