Exemplo n.º 1
0
        public void DoDamage(Mobile to)
        {
            to.Send(new AsciiMessage(Serial, ItemID, MessageType.Regular, 0x3B2, 3, "", "The generator shoots an arc of electricity at you!"));
            //to.Send(new UnicodeMessage(Serial, ItemID, MessageType.Regular, 0x3B2, 3, "", "", "The generator shoots an arc of electricity at you!"));
            to.BoltEffect(0);
            to.LocalOverheadMessage(MessageType.Regular, 0xC9, true, "* Your body convulses from electric shock *");
            to.NonlocalOverheadMessage(MessageType.Regular, 0xC9, true, string.Format("* {0} spasms from electric shock *", to.Name));

            AOS.Damage(to, to, 60, 0, 0, 0, 0, 100);

            if (!to.Alive)
            {
                return;
            }

            if (m_DamageTable[to] == null)
            {
                to.Frozen = true;

                DamageTimer timer = new DamageTimer(this, to);
                m_DamageTable[to] = timer;

                timer.Start();
            }
        }
Exemplo n.º 2
0
        public void DoDamage(Mobile to)
        {
            to.SendLocalizedMessage(1152372);                                                       // The Nexus shoots an arc of energy at you!
            to.BoltEffect(0);
            to.LocalOverheadMessage(Server.Network.MessageType.Regular, 0x21, 1114443);             // * Your body convulses from electric shock *
            to.NonlocalOverheadMessage(Server.Network.MessageType.Regular, 0x21, 1114443, to.Name); //  * ~1_NAME~ spasms from electric shock *

            AOS.Damage(to, to, 60, 0, 0, 0, 0, 100);

            if (!to.Alive)
            {
                return;
            }

            if (!DamageTable.ContainsKey(to))
            {
                DamageTimer timer = new DamageTimer(this, to);

                to.Frozen       = true;
                DamageTable[to] = timer;
                timer.Start();
            }
        }
Exemplo n.º 3
0
        public void DoDamage( Mobile to )
        {
            to.Send( new UnicodeMessage( Serial, ItemID, MessageType.Regular, 0x3B2, 3, "", "", "The generator shoots an arc of electricity at you!" ) );
            to.BoltEffect( 0 );
            to.LocalOverheadMessage( MessageType.Regular, 0xC9, true, "* Your body convulses from electric shock *" );
            to.NonlocalOverheadMessage( MessageType.Regular, 0xC9, true, string.Format( "* {0} spasms from electric shock *", to.Name ) );

            AOS.Damage( to, to, 60, 0, 0, 0, 0, 100, 0, 0, 0 );

            if ( !to.Alive )
                return;

            if ( m_DamageTable[to] == null )
            {
                to.Frozen = true;

                DamageTimer timer = new DamageTimer( this, to );
                m_DamageTable[to] = timer;

                timer.Start();
            }
        }
Exemplo n.º 4
0
 public override void OnDamage(int amount, Mobile from, bool willKill)
 {
     m_DamageTimer = new DamageTimer(this);
     m_DamageTimer.Start();
 }
Exemplo n.º 5
0
 public override void OnDamage(int amount, Mobile from, bool willKill)
 {
     m_DamageTimer = new DamageTimer(this);
     m_DamageTimer.Start();
 }