public ChristmasDonationBox() { Weight = 1.0; //Hue = 38; Item item = null; Name = "christmas gift box"; PlaceItemIn(35, 30, (item = new RedStockingOSI())); PlaceItemIn(48, 30, (item = new RedStockingOSI())); 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())); }
public InternalTimer(GingerBreadCookie cookie, Mobile m, int sequencer, TimeSpan delay) : base(delay) { Priority = TimerPriority.OneSecond; i_cookie = cookie; i_mobile = m; i_sequencer = sequencer; }
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(); }
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(); }