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 PlentifulHarvest()); box.DropItem(new RoastedTurkey()); 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 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.", Core.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.", Core.Config.ServerName)); break; } }
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.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; } }
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 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); } }