Ejemplo n.º 1
0
        public bool Demolish(Mobile m)
        {
            var deed = new CharacterStatueDeed(null);

            if (m.PlaceInBackpack(deed))
            {
                Delete();

                deed.Statue     = this;
                deed.StatueType = m_Type;

                if (Plinth != null)
                {
                    Plinth.Delete();
                    Plinth = null;
                }

                return(true);
            }

            m.SendLocalizedMessage(500720); // You don't have enough room in your backpack!
            deed.Delete();

            return(false);
        }
Ejemplo n.º 2
0
        public override void OnAfterDelete()
        {
            base.OnAfterDelete();

            if (Plinth == null)
            {
                return;
            }

            Plinth.Delete();
            Plinth = null;
        }