Ejemplo n.º 1
0
            public InternalTimer(NavreysWeb web, PlayerMobile target)
                : base(TimeSpan.FromSeconds(1.0), TimeSpan.FromSeconds(1.0))
            {
                m_Target = target;
                m_Web    = web;

                m_Ticks = 10;
            }
Ejemplo n.º 2
0
        private void BurnWeb_Callback(Mobile from, object targeted)
        {
            NavreysWeb web = targeted as NavreysWeb;

            if (web != null)
            {
                from.SendLocalizedMessage(1113240);                   // The acid popper bursts and burns away the webbing.
                from.Frozen = false;

                Effects.SendPacket(from.Location, from.Map, new TargetParticleEffect(this, 0x374A, 1, 10, 0x557, 0, 0x139D, 3, 0));

                from.PlaySound(0x3E);
                from.PlaySound(0x22F);

                web.Burn();
                Consume();
            }
        }
Ejemplo n.º 3
0
        public override void OnDamage( int amount, Mobile from, bool willKill )
        {
            base.OnDamage( amount, from, willKill );

            if ( 0.1 >= Utility.RandomDouble() )
            {
                PlayerMobile target = SelectWebTarget() as PlayerMobile;

                if ( target != null )
                {
                    Direction = this.GetDirectionTo( target );

                    if ( 0.25 > Utility.RandomDouble() )
                        target.MoveToWorld( TeleportLocations[Utility.Random( TeleportLocations.Length )], target.Map );
                    else
                        Combatant = target;

                    target.PlaySound( 0x389 );

                    Effects.SendPacket( Location, Map, new HuedEffect( EffectType.Moving, Serial.Zero, Serial.Zero, 0xEE3 + Utility.Random( 4 ), Location, target.Location, 10, 0, false, false, 0, 0 ) );

                    NavreysWeb web = new NavreysWeb( (PlayerMobile) target );

                    web.MoveToWorld( target.Location, target.Map );
                    web.Movable = false;

                    target.Frozen = true;
                    target.SendLocalizedMessage( 1113247 ); // You are wrapped in spider webbing and cannot move!
                }
            }
        }