public ChristmasDonationBox()
		{
			Weight = 1.0;
			//Hue = 38;
			Item item = null;
			Name = "christmas gift box";

			PlaceItemIn( 35, 30, (item = new RedStocking()) );
                        PlaceItemIn( 48, 30, (item = new RedStocking()) );
			PlaceItemIn( 35, 75, (item = new FreshGinger()) );
                        PlaceItemIn( 46, 63, (item = new FreshGinger()) );

                        PlaceItemIn( 80, 26, (item = new GingerbreadCookie()) );
                        PlaceItemIn( 80, 36, (item = new GingerbreadCookie()) );
                        PlaceItemIn( 80, 46, (item = new GingerbreadCookie()) );
                        PlaceItemIn( 80, 56, (item = new GingerbreadCookie()) );
                        PlaceItemIn( 80, 66, (item = new GingerbreadCookie()) );
                        PlaceItemIn( 80, 76, (item = new GingerbreadCookie()) );

                        PlaceItemIn( 146, 31, (item = new RedCandyCane()) );
                        PlaceItemIn( 146, 41, (item = new RedCandyCane()) );
                        PlaceItemIn( 146, 51, (item = new RedCandyCane()) );
                        PlaceItemIn( 146, 61, (item = new RedCandyCane()) );

                        BaseContainer cont;
			PlaceItemIn( 123, 55, (cont = new Bag()) );
			cont.Hue = 38;

			cont.PlaceItemIn( 131, 75, (item = new ChristmasHouseAddonDeed()) );
                        cont.PlaceItemIn( 131, 85, (item = new ChristmasCastleAddonDeed()) );


		}
예제 #2
0
        public override void GiveGift( Mobile mob )
        {
            Container stocking = null;

            if ( Utility.RandomBool() )
                stocking = new GreenStocking();
            else
                stocking = new RedStocking();

            stocking.DropItem( new SnowPile() );
            stocking.DropItem( new HolidayCard( mob.Name ) );
            stocking.DropItem( new GingerbreadCookie( true ) );
            stocking.DropItem( new GingerbreadCookie( true ) );
            stocking.DropItem( new RecipeScroll( 93 ) );
            stocking.DropItem( new RedCandyCane( 0x2BDD ) );
            stocking.DropItem( new RedCandyCane( 0x2BDE ) );
            stocking.DropItem( new GreenCandyCane( 0x2BDF ) );
            stocking.DropItem( new GreenCandyCane( 0x2BE0 ) );
            stocking.DropItem( new GingerbreadHouseDeed() );

            switch ( GiveGift( mob, stocking ) )
            {
                case GiftResult.Backpack:
                    mob.SendMessage( String.Format( "Happy Holidays from the entire {0} Staff Team. We have placed a stocking for you in your backpack.", Environment.Config.ServerName ) );
                    break;
                case GiftResult.BankBox:
                    mob.SendMessage( String.Format( "Happy Holidays from the entire {0} Staff Team. We have placed a stocking for you in your bank box.", Environment.Config.ServerName ) );
                    break;
            }
        }