Пример #1
0
        protected void OnTarget(Mobile from, object targeted)
        {
            if (from.Backpack == null || !IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(1080063);                   // This must be in your backpack to use it.
                return;
            }

            if (targeted is MagicVines)
            {
                MagicVines vines = targeted as MagicVines;

                if (from.InRange(vines, 1))
                {
                    vines.OnAcidSac(from);
                    Consume();
                }
                else
                {
                    from.SendLocalizedMessage(1076766);                       // That is too far away.
                }
            }
            else
            {
                from.SendLocalizedMessage(1046439);                   // That is not a valid target.
            }
        }
Пример #2
0
        public VinesLockedSecretDoor(int closedId, int mediumId)
            : base(closedId, mediumId)
        {
            Movable = false;

            m_Vines = new MagicVines(this);
        }
Пример #3
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            /*int version =*/
            reader.ReadInt();

            m_Vines = reader.ReadItem() as MagicVines;
        }
Пример #4
0
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            /*int version =*/
            reader.ReadInt();

            m_Vines = reader.ReadItem() as MagicVines;
        }
Пример #5
0
        public VinesLockedSecretDoor( int closedId, int mediumId )
            : base(closedId, mediumId)
        {
            Movable = false;

            m_Vines = new MagicVines( this );
        }