public override void GiveGift( Mobile mob )
		{
			GiftBox box = new GiftBox();
			box.Hue = Utility.RandomList( 38, 1166 );

			box.DropItem( new PinkChampagne() );
			box.DropItem( new ChampagneFlute() );
			box.DropItem( new CandleOfLove() );

			LongStemRose rose = new LongStemRose();
			rose.Name = "a whispering rose from " + mob.Name;
			box.DropItem( rose );

			int random = Utility.Random( 100 );

			if ( random < 50 )
				box.DropItem( new HeartShapedRugEastAddonDeed() );
			else
				box.DropItem( new HeartShapedRugSouthAddonDeed() );

			switch ( GiveGift( mob, box ) )
			{
				case GiftResult.Backpack:
					mob.SendMessage( 0x482, "Happy Valentines Day from the team!  Gift items have been placed in your backpack." );
					break;
				case GiftResult.BankBox:
					mob.SendMessage( 0x482, "Happy Valentines Day from the team!  Gift items have been placed in your bank box." );
					break;
			}
		}
Exemple #2
0
		public override void GiveGift( Mobile mob )
		{
			GiftBox box = new GiftBox();

			box.DropItem( new MistletoeDeed() );
			box.DropItem( new PileOfGlacialSnow() );
			box.DropItem( new LightOfTheWinterSolstice() );

			int random = Utility.Random( 100 );

			if ( random < 60 )
				box.DropItem( new DecorativeTopiary() );
			else if ( random < 84 )
				box.DropItem( new FestiveCactus() );
			else
				box.DropItem( new SnowyTree() );

			switch ( GiveGift( mob, box ) )
			{
				case GiftResult.Backpack:
					mob.SendMessage( 0x482, "Happy Holidays from the team!  Gift items have been placed in your backpack." );
					break;
				case GiftResult.BankBox:
					mob.SendMessage( 0x482, "Happy Holidays from the team!  Gift items have been placed in your bank box." );
					break;
			}
		}
		public override void GiveGift( Mobile mob )
		{
			GiftBox box = new GiftBox();
			box.Hue = Utility.RandomList( 38, 1166 );

			box.DropItem( new PinkChampagne() );
			box.DropItem( new ChampagneFlute() );
			box.DropItem( new CandleOfLove1() );
			box.DropItem( new ValCandy() );
			box.DropItem( new ValCandy() );
			box.DropItem( new ValCandy() );
			box.DropItem( new ValCandy() );
			box.DropItem( new ValCandy() );

			LongStemRose rose = new LongStemRose();
			rose.Name = "a whispering rose from " + mob.Name;
			box.DropItem( rose );
			
			ValCandy candy = new ValCandy();
			candy.Name = "Valentine's Candy from " + mob.Name;
			box.DropItem( candy );

            ValCandy candy1 = new ValCandy();
            candy1.Name = "Valentine's Candy from " + mob.Name;
            box.DropItem(candy1);

            ValCandy candy2 = new ValCandy();
            candy2.Name = "Valentine's Candy from " + mob.Name;
            box.DropItem(candy2);

            ValCandy candy3 = new ValCandy();
            candy3.Name = "Valentine's Candy from " + mob.Name;
            box.DropItem(candy3);

            ValCandy candy4 = new ValCandy();
            candy4.Name = "Valentine's Candy from " + mob.Name;
            box.DropItem(candy4);
			
			

			int random = Utility.Random( 100 );

			if ( random < 30 )
				box.DropItem( new CupidsBow() );
			else
				box.DropItem( new CupidsHarp() );


			switch ( GiveGift( mob, box ) )
			{
				case GiftResult.Backpack:
					mob.SendMessage( 0x482, "Happy Valentines Day from the Staff!  Gift items have been placed in your backpack." );
					break;
				case GiftResult.BankBox:
					mob.SendMessage( 0x482, "Happy Valentines Day from the Staff!  Gift items have been placed in your bank box." );
					break;
			}
		}
        public void GiveGift(Mobile from)
        {
            GiftBox box = new GiftBox();

            Item gift = new GingerBreadCookie
            {
                LootType = LootType.Regular
            };

            box.DropItem(gift);

            if (Utility.Random(100) < 60)
            {
                box.DropItem(new Poinsettia(33));
            }
            else
            {
                box.DropItem(new Poinsettia(1154));
            }

            switch (Gift)
            {
            case HolidayGift2018.RecipeBook:
            {
                box.DropItem(new RecipeBook());
                break;
            }

            case HolidayGift2018.Sign:
            {
                box.DropItem(new HolidaysSign());
                break;
            }

            case HolidayGift2018.Wreath:
            {
                box.DropItem(new HolidayWreath());
                break;
            }
            }

            from.AddToBackpack(box);

            Delete();
        }
Exemple #5
0
		public override void GiveGift( Mobile mob )
		{
			GiftBox bag = new GiftBox();

			bag.DropItem( new HarvestWine() );
			bag.DropItem( new MurkyMilk( BeverageType.Milk ) );
			bag.DropItem( new CreepyCake() );
			bag.DropItem( new MrPlainsCookies() );
			bag.DropItem( new SmallHalloweenWeb() );

			switch ( GiveGift( mob, bag ) )
			{
				case GiftResult.Backpack:
					mob.SendMessage( String.Format( "Have a creepy Halloween 2011 from the entire {0} Staff Team. We have placed a goddie bag for you in your backpack.", Environment.Config.ServerName ) );
					break;
				case GiftResult.BankBox:
					mob.SendMessage( String.Format( "Have a creepy Halloween 2011 from the entire {0} Staff Team. We have placed a goddie bag for you in your bank box.", Environment.Config.ServerName ) );
					break;
			}
		}
		public override void GiveGift( Mobile mob )
		{
			GiftBox box = new GiftBox();
			box.Hue = Utility.RandomList( 124, 1166 );

            box.DropItem(new EasterBonnet2009());
            box.DropItem(new ChocolateEasterBunny2009());
            box.DropItem(new EasterCard2009());
            box.DropItem(new EasterCarrot2009());
            box.DropItem(new BagOfJellyBeans());
            box.DropItem(new EasterLily2009());
            box.DropItem(new BubbleGumEasterGrass2009());
            box.DropItem(new MarshmallowPeep2009());

			switch ( GiveGift( mob, box ) )
			{
				case GiftResult.Backpack:
					mob.SendMessage( 0x482, "Happy Easter! from the Staff of COV!  Gift items have been placed in your backpack." );
					break;
				case GiftResult.BankBox:
                    mob.SendMessage( 0x482, "Happy Easter! from the Staff of COV!  Gift items have been placed in your bank box.");
					break;
			}
		}
		public override void GiveGift( Mobile mob )
		{
			GiftBox box = new GiftBox();

			box.DropItem( new MistletoeDeed2008() );
			box.DropItem( new PileOfGlacialSnow2008() );
			box.DropItem( new SnowPile2008() );
			box.DropItem( new LightOfTheWinterSolstice2008() );
			box.DropItem( new DecorativeTopiary2008() );
			box.DropItem( new FestiveCactus2008() );
			box.DropItem( new SnowyTree2008() );
			box.DropItem( new RedStockin() );
			box.DropItem( new SantasSleighDeed() );
			box.DropItem( new CandyCane() );
			box.DropItem( new HolidayBell2008() );
			box.DropItem( new SnowGlobe2008() );
			box.DropItem( new HolidayBell2008() );
			box.DropItem( new Snowman2008() );
			box.DropItem( new RedPoinsettia() );
			box.DropItem( new WhitePoinsettia() );
			box.DropItem( new HolidayTreeDeed() );
			box.DropItem( new CandyCane() );
			box.DropItem( new GingerBreadCookie() );
			box.DropItem( new GingerbreadHouseAddonDeed() );


			switch ( GiveGift( mob, box ) )
			{
				case GiftResult.Backpack:
					mob.SendMessage( 0x482, "Happy Holidays from the staff!  Gift items have been placed in your backpack." );
					break;
				case GiftResult.BankBox:
					mob.SendMessage( 0x482, "Happy Holidays from the staff!  Gift items have been placed in your bank box." );
					break;
			}
		}
		private Container CreateRewardContainer()
		{
			Container rewardCont = new GiftBox();

			if(m_bUseRandom)
			{
				for(int i=0;i<m_iRandomNum;i++)
				{
					int iArrayLoc = m_iRandomRangeMax;
					if(m_iRandomRangeMax > m_alList.Count)
						m_iRandomRangeMax = m_alList.Count;
					AddRewardToContainer( rewardCont, (RewardEntry) m_alList[Utility.Random(m_iRandomRangeMax)] );
				}

				for(int i=m_iRandomRangeMax;i<m_alList.Count;i++)
					AddRewardToContainer( rewardCont, (RewardEntry) m_alList[i] );
			}
			else
			{
				foreach( RewardEntry entry in m_alList )
					AddRewardToContainer( rewardCont, entry );
			}
			return rewardCont;
		}
Exemple #9
0
        public override void OnDoubleClick(Mobile from)
        {
            PlayerMobile pl = (PlayerMobile)from;

            if (from.InLOS(this) && from.InRange(Location, 2))
            {
                if (m_XmasList > 0)
                {
                    if (!m_MobileList.ContainsKey(from.Serial))
                    {
                        GiftBox gb = new GiftBox();
                        gb.Hue  = 2881;
                        gb.Name = "Happy Holidays!";
                        switch (Utility.Random(5))

                        #region Gifts
                        {
                        case 0:

                            gb.DropItem(new GreenCandyCane());
                            gb.DropItem(new SnowCoveredTree());
                            gb.DropItem(new WhitePoinsettia());
                            gb.DropItem(new RandomReindeer());
                            gb.DropItem(new BlueSnowflake());
                            break;

                        case 1:

                            gb.DropItem(new HolidayWreath());
                            gb.DropItem(new WhiteSnowflake());
                            gb.DropItem(new Snowman());
                            gb.DropItem(new MiniXmasTree());
                            gb.DropItem(new RandomReindeer());
                            break;

                        case 2:

                            gb.DropItem(new HolidayCactus());
                            gb.DropItem(new GreenStocking());
                            gb.DropItem(new LumpOfCoal());
                            gb.DropItem(new RedCandyCane());
                            gb.DropItem(new RandomReindeer());
                            break;

                        case 3:

                            gb.DropItem(new GingerBreadMan());
                            gb.DropItem(new FestiveShrub());
                            gb.DropItem(new DecorativeMistletoe());
                            gb.DropItem(new HolidayCandle());
                            gb.DropItem(new RandomReindeer());
                            break;

                        case 4:
                            gb.DropItem(new RedStocking());
                            gb.DropItem(new RedPoinsettia());
                            gb.DropItem(new SnowGlobe());
                            gb.DropItem(new Snowball());
                            gb.DropItem(new RandomReindeer());
                            break;
                        }

                        #endregion

                        pl.Backpack.DropItem(gb);

                        m_MobileList.Add(from.Serial, from);
                        pl.SendAsciiMessage("Happy Holidays from INX Staff!");
                    }
                    else
                    {
                        pl.SendAsciiMessage("You already received the gift that Santa left for you!");
                    }
                }
                else
                {
                    pl.SendAsciiMessage("There are no gifts for you under the tree right now.");
                }
            }
            else
            {
                from.SendAsciiMessage("You can't reach that");
            }
        }
        public void GiveGift(Mobile from)
        {
            GiftBox box = new GiftBox();

            Item gift = new GingerBreadCookie();

            gift.LootType = LootType.Regular;
            box.DropItem(gift);

            if (Utility.Random(100) < 60)
            {
                box.DropItem(new Poinsettia(33));
            }
            else
            {
                box.DropItem(new Poinsettia(1154));
            }

            switch (Gift)
            {
            case HolidayGift2019.JollyHolidayTree:
            {
                box.DropItem(new JollyHolidayTreeDeed());
                break;
            }

            case HolidayGift2019.DoveCage:
            {
                box.DropItem(new DoveCage());
                break;
            }

            case HolidayGift2019.HolidayWallArt:
            {
                switch (Utility.Random(2))
                {
                case 0:
                {
                    box.DropItem(new HolidayWallArt1());
                    break;
                }

                case 1:
                {
                    box.DropItem(new HolidayWallArt2());
                    break;
                }

                case 2:
                {
                    box.DropItem(new HolidayWallArt3());
                    break;
                }
                }

                break;
            }
            }

            from.SendLocalizedMessage(1062306); // Your gift has been created and placed in your backpack.
            from.AddToBackpack(box);

            Delete();
        }
Exemple #11
0
        public override void OnDoubleClick(Mobile from)
        {
            PlayerMobile pl = (PlayerMobile)from;
            
            if (from.InLOS(this) && from.InRange(Location, 2))
            {
                if (m_XmasList > 0)
                {

                    if (!m_MobileList.ContainsKey(from.Serial))
                    {
                        GiftBox gb = new GiftBox();
                        gb.Hue = 2881;
                        gb.Name = "Happy Holidays!";
                        switch (Utility.Random(5))

                            #region Gifts
                        {
                            case 0:

                                gb.DropItem(new GreenCandyCane());
                                gb.DropItem(new SnowCoveredTree());
                                gb.DropItem(new WhitePoinsettia());
                                gb.DropItem(new RandomReindeer());
                                gb.DropItem(new BlueSnowflake());
                                break;
                            case 1:

                                gb.DropItem(new HolidayWreath());
                                gb.DropItem(new WhiteSnowflake());
                                gb.DropItem(new Snowman());
                                gb.DropItem(new MiniXmasTree());
                                gb.DropItem(new RandomReindeer());
                                break;
                            case 2:

                                gb.DropItem(new HolidayCactus());
                                gb.DropItem(new GreenStocking());
                                gb.DropItem(new LumpOfCoal());
                                gb.DropItem(new RedCandyCane());
                                gb.DropItem(new RandomReindeer());
                                break;
                            case 3:

                                gb.DropItem(new GingerBreadMan());
                                gb.DropItem(new FestiveShrub());
                                gb.DropItem(new DecorativeMistletoe());
                                gb.DropItem(new HolidayCandle());
                                gb.DropItem(new RandomReindeer());
                                break;
                            case 4:
                                gb.DropItem(new RedStocking());
                                gb.DropItem(new RedPoinsettia());
                                gb.DropItem(new SnowGlobe());
                                gb.DropItem(new Snowball());
                                gb.DropItem(new RandomReindeer());
                                break;
                        }

                        #endregion

                        pl.Backpack.DropItem(gb);

                        m_MobileList.Add(from.Serial, from);
                        pl.SendAsciiMessage("Happy Holidays from INX Staff!");
                    }
                    else
                        pl.SendAsciiMessage("You already received the gift that Santa left for you!");
                }
                else
                    pl.SendAsciiMessage("There are no gifts for you under the tree right now.");
            }
            else
                from.SendAsciiMessage("You can't reach that");
        }
		public override bool OnDragDrop( Mobile from, Item dropped )
		{
			BankBox box = from.BankBox;
			if ( box == null )
				return false;

			if ( dropped is HolidayDeed )
			{
				if(message != null)
					SayTo(from, message);
				Item random = null;
				int randomitem = Utility.RandomMinMax(0, 3);

                if (randomitem == 0)
                {
                    random = new Snowman();
                    random.Name = "snowman";
                }

				if(randomitem == 1)
					random = new SnowPile();

				if(randomitem == 2)
					random = new EternalEmbers();

				if(randomitem == 3)
				{
					if(Utility.RandomBool() )
						random = new RedPoinsettia();
					else
						random = new WhitePoinsettia();

                    random.Name = "poinsettia";
				}

				Item roast = new RoastPig();
                roast.Name = "roast pig";

				Item candle = new CandleLong();
                candle.Name = "candle";
				candle.Hue = Utility.RandomList(0, 3343, 72, 7, 1274, 53);

				Item cookie = new Cookies();
                cookie.Name = "Christmas cookies";

				GiftBox Giftbox = new GiftBox();

                string year = DateTime.Now.Year.ToString();
                string Signature = "Christmas " + year;

                Giftbox.Name = Signature;

                roast.Name += " - " + Signature;
				Giftbox.DropItem(roast);
                candle.Name += " - " + Signature;
				Giftbox.DropItem(candle);
                random.Name += " - " + Signature;
				Giftbox.DropItem(random);
                cookie.Name += " - " + Signature;
				Giftbox.DropItem(cookie);

				//drop it all to bank
				// Adam: This method fails if the bank is full!
				// box.TryDropItem( from, Giftbox, false );
				// this one won't 
				box.AddItem( Giftbox );

				//delete deed.
				dropped.Delete();
				return true;
			}
			else //if not a holiday deed dont accept anything
				return false;
		}