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

mehoo

Sorceror
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();
        }
    }
}
Well i just uncommented the lines!! ALL THE BUNNIES DIE IN 5 SECONS HAHAHAH!!!!!!!
...............................
 

Jarrod

Sorceror
actually wouldnt that crash your server if you send an NPC a message? Im not talking about overhead, I mean the sendmessage...
 

Kenko

Page
Ok, I've just kidnapped this little boy and his Ethereal Dodo Bird Statuette. You better sign.

 

Kenko

Page
Anti-Basic's Succubi (he had more inhiding.) have been slaughtered in a painful way (they met me)
 
Top