Beispiel #1
0
 private void StartingSound(BBTravelEnd gate)
 {
     if (gate != null)
     {
         Sound_Timer = new SoundTimer(gate);
         Sound_Timer.Start();
     }
 }
Beispiel #2
0
        private static void IdanVis_OnCommand(CommandEventArgs args)
        {
            TeiravonMobile m_Player = ( TeiravonMobile )args.Mobile;

            SoundTimer stimer = new SoundTimer(args.Mobile);

            stimer.Start();
        }
Beispiel #3
0
        private static void ParticleTest_OnCommand( CommandEventArgs e )
        {
            Mobile mob = e.Mobile;
            ParticleTest.mob = mob;
            SoundTimer timer = new SoundTimer();
            timer.Start();
            //CombatSystemAttachment.GetCSA( mob ).DoTrip( 3 );
            /*Timer.DelayCall( TimeSpan.FromMilliseconds( 500*1 ),
                new TimerStateCallback( Callback ), "0x4A9" );
            Timer.DelayCall( TimeSpan.FromMilliseconds( 500*2 ),
                new TimerStateCallback( Callback ), "0x4A9" );
            Timer.DelayCall( TimeSpan.FromMilliseconds( 500*3 ),
                new TimerStateCallback( Callback ), "0x4AB" );
            Timer.DelayCall( TimeSpan.FromMilliseconds( 500*4 ),
                new TimerStateCallback( Callback ), "0x4AF" );
            Timer.DelayCall( TimeSpan.FromMilliseconds( 500*5 ),
                new TimerStateCallback( Callback ), "0x4AF" );
                Timer.DelayCall( TimeSpan.FromMilliseconds( 500*6 ),
                new TimerStateCallback( Callback ), "0x4AB" );
            Timer.DelayCall( TimeSpan.FromMilliseconds( 500*7 ),
                new TimerStateCallback( Callback ), "0x4A9" );
            Timer.DelayCall( TimeSpan.FromMilliseconds( 500*8 ),
                new TimerStateCallback( Callback ), "0x4A5" );
            Timer.DelayCall( TimeSpan.FromMilliseconds( 500*9 ),
                new TimerStateCallback( Callback ), "0x4A1" );
            Timer.DelayCall( TimeSpan.FromMilliseconds( 500*10 ),
                new TimerStateCallback( Callback ), "0x4A1" );
            Timer.DelayCall( TimeSpan.FromMilliseconds( 500*11 ),
                new TimerStateCallback( Callback ), "0x4A5" );
            Timer.DelayCall( TimeSpan.FromMilliseconds( 500*12 ),
                new TimerStateCallback( Callback ), "0x4A9" );
            Timer.DelayCall( TimeSpan.FromMilliseconds( 500*13 ),
                new TimerStateCallback( Callback ), "0x4A5" );
            Timer.DelayCall( TimeSpan.FromMilliseconds( 500*14 ),
                new TimerStateCallback( Callback ), "0x4A1" );
            Timer.DelayCall( TimeSpan.FromMilliseconds( 500*15 ),
                new TimerStateCallback( Callback ), "0x4A1" );*/
            /*mob.PlaySound( 0x4A8 );
            mob.PlaySound( 0x4A8 );
            mob.PlaySound( 0x4AA );
            mob.PlaySound( 0x4AE );
            mob.PlaySound( 0x4AE );
            mob.PlaySound( 0x4AA );
            mob.PlaySound( 0x4A8 );
            mob.PlaySound( 0x4A4 );
            mob.PlaySound( 0x49F );
            mob.PlaySound( 0x49F );
            mob.PlaySound( 0x4A4 );-
            mob.PlaySound( 0x4A8 );
            mob.PlaySound( 0x4A4 );
            mob.PlaySound( 0x49F );
            mob.PlaySound( 0x49F );*/

            if (e.Length < 10)
                return;

            /*IEntity from = new Entity( Server.Serial.Zero, new Point3D( mob.X, mob.Y, mob.Z ), mob.Map );
            IEntity to = new Entity( Server.Serial.Zero, new Point3D( mob.X, mob.Y, mob.Z + 50 ), mob.Map );
            Effects.SendMovingParticles( from, to, Convert.ToInt32(e.Arguments[0]), Convert.ToInt32(e.Arguments[1]), Convert.ToInt32(e.Arguments[2]), Convert.ToBoolean(e.Arguments[3]), Convert.ToBoolean(e.Arguments[4]), Convert.ToInt32(e.Arguments[5]), Convert.ToInt32(e.Arguments[6]), Convert.ToInt32(e.Arguments[7]), Convert.ToInt32(e.Arguments[8]), Convert.ToInt32(e.Arguments[9]), EffectLayer.Head, 0x100 );
            */
            /*for ( int i=-5; i<5; i++)
            {
                for (int j=-5; j<5; j++)
                {
                    Packet regular = null;
                    NetState state = mob.NetState;
                    if ( state != null )
                    {
                        IEntity entity = new Entity( Server.Serial.Zero, new Point3D( mob.X+(i*2), mob.Y+(j*2), mob.Z + 5 ), mob.Map );
                        regular = new LocationEffect( entity, 8391, 5, -1, 4410, 500 );

                        state.Send( regular );
                    }
                }
            }
            for ( int i=-5; i<5; i++)
            {
                for (int j=-5; j<5; j++)
                {
                    Packet regular = null;
                    NetState state = mob.NetState;
                    if ( state != null )
                    {
                        IEntity entity = new Entity( Server.Serial.Zero, new Point3D( mob.X+(i*2+1), mob.Y+(j*2+1), mob.Z + 5 ), mob.Map );
                        regular = new LocationEffect( entity, 8391, 5, -1, 4410, 500 );

                        state.Send( regular );
                    }
                }
            }*/
        }