RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Kenko's Guest Book

Kenko

Page
Code:
using System;
using Server;

namespace System.Animals
{
    public sealed class BunnySlaughterHood
    {
        public static void Initialize()
        {
            //Timer.DelayCall( TimeSpan.FromSeconds( 5.0 ), new DelayCallback( SlaughterBunny ) );
        }

        private static void SlaughterBunny()
        {
            foreach( Mobile m in World.Mobiles.Values )
                if( m is Bunny )
                {
                    Slaughter( m as Bunny );
                    return;
                }

            Timer.DelayCall( TimeSpan.FromHours( 1.0 ), new TimerCallback( SlaughterBunny ) );
        }

        private static void Slaughter( Bunny b )
        {
            b.SendMessage( "Somebody didn't sign my Guest Book. You deserve nothing but death." );

            Timer.DelayCall( TimeSpan.FromSeconds( 3.0 ), new TimerStateCallback( Slaughter ), b );            
        }

        private static void Slaughter( object state )
        {
            Bunny b = state as Bunny;

            if( b != null )
                b.Kill();
        }
    }
}

Now you see I'm talking for real. If I uncomment that line and recompile, the bunnies will be gone.
 

Maynza

Formerly DontdroptheSOAD
Kenko said:
Code:
using System;
using Server;

namespace System.Animals
{
    public sealed class BunnySlaughterHood
    {
        public static void Initialize()
        {
            //Timer.DelayCall( TimeSpan.FromSeconds( 5.0 ), new DelayCallback( SlaughterBunny ) );
        }

        private static void SlaughterBunny()
        {
            foreach( Mobile m in World.Mobiles.Values )
                if( m is Bunny )
                {
                    Slaughter( m as Bunny );
                    return;
                }

            Timer.DelayCall( TimeSpan.FromHours( 1.0 ), new TimerCallback( SlaughterBunny ) );
        }

        private static void Slaughter( Bunny b )
        {
            b.SendMessage( "Somebody didn't sign my Guest Book. You deserve nothing but death." );

            Timer.DelayCall( TimeSpan.FromSeconds( 3.0 ), new TimerStateCallback( Slaughter ), b );            
        }

        private static void Slaughter( object state )
        {
            Bunny b = state as Bunny;

            if( b != null )
                b.Kill();
        }
    }
}

Now you see I'm talking for real. If I uncomment that line and recompile, the bunnies will be gone.
Two words: Do it.
 

Kenko

Page
I thought you would never ask.

*Casts dick level 1.000.000*

I can play the white wizard.
(redninja anyone? lolz)
 
Top