public void Carve(Mobile from, Item item) { Item ribcage = new BaseItem( 6935 ); Item heart = new BaseItem( 7405 ); Item liver = new BaseItem( 7406 ); Item entrails = new BaseItem( 7407 ); if ( m_Owner != null ) { ribcage.Name = "ribcage of " + m_Owner.Name; liver.Name = "liver of " + m_Owner.Name; heart.Name = "heart of " + m_Owner.Name; entrails.Name = "entrails of " + m_Owner.Name; } if ( !(Parent is Container) ) { ribcage.MoveToWorld( GetWorldLocation(), Map ); liver.MoveToWorld( GetWorldLocation(), Map ); heart.MoveToWorld( GetWorldLocation(), Map ); entrails.MoveToWorld( GetWorldLocation(), Map ); } else { Container cont = (Container)Parent; cont.DropItem( ribcage ); cont.DropItem( liver ); cont.DropItem( heart ); cont.DropItem( entrails ); } Delete(); }
public void Carve(Mobile from, Item item) { Item brain = new BaseItem( 7408 ); Item skull = new BaseItem( 6882 ); if ( m_Owner != null ) { brain.Name = "brain of " + m_Owner.Name; skull.Name = "skull of " + m_Owner.Name; } if ( !(Parent is Container) ) { brain.MoveToWorld( GetWorldLocation(), Map ); skull.MoveToWorld( GetWorldLocation(), Map ); } else { Container cont = (Container)Parent; cont.DropItem( brain ); cont.DropItem( skull ); } Delete(); }
public GiftBag( bool nice ) { Item item = null; Hue = Utility.RandomList( 32, 64, 2301 ); if ( nice ) { Name = "Happy Holidays!"; DropItem( MakeNewbie( new WristWatch() ) ); if ( Utility.RandomBool() ) { item = new Food( 4164 ); item.Hue = 432; item.Name = "fruit cake"; DropItem( MakeNewbie( item ) ); } else { DropItem( MakeNewbie( new Pizza() ) ); } if ( Utility.RandomBool() ) DropItem( MakeNewbie( new BeverageBottle( BeverageType.Champagne ) ) ); else DropItem( MakeNewbie( new BeverageBottle( BeverageType.EggNog ) ) ); switch ( Utility.Random( 7 ) ) { default: case 0: DropItem( MakeNewbie( new Apple() ) ); break; case 1: DropItem( MakeNewbie( new Pear() ) ); break; case 2: DropItem( MakeNewbie( new Bananas() ) ); break; case 3: DropItem( MakeNewbie( new Dates() ) ); break; case 4: DropItem( MakeNewbie( new Coconut() ) ); break; case 5: DropItem( MakeNewbie( new Peach() ) ); break; case 6: DropItem( MakeNewbie( new Grapes() ) ); break; } item = new Goblet(); item.Name = "a champagne glass"; item.Hue = 71; DropItem( MakeNewbie( item ) ); item = new Goblet(); item.Name = "a champagne glass"; item.Hue = 34; DropItem( MakeNewbie( item ) ); DropItem( MakeNewbie( new FireworksWand( 100 ) ) ); item = new BaseItem( 5359 ); item.Hue = Utility.RandomList( 32, 64, 2301 ); item.Name = "Seasons Greetings"; DropItem( MakeNewbie( item ) ); } else { Name = "You were naughty this year!"; DropItem( MakeNewbie( new Food( 4164 ) ) ); // spam DropItem( MakeNewbie( new Coal() ) ); item = new Kindling(); item.Name = "switches"; DropItem( item ); // not newbied... item = new BaseItem( 5359 ); item.Hue = Utility.RandomList( 32, 64, 2301 ); item.Name = "Maybe next year you will get a nicer gift."; DropItem( MakeNewbie( item ) ); } }
public override void OnResponse( NetState sender, RelayInfo info ) { int count = m_Count; Mobile m = sender.Mobile; for ( int i = 0; i<6 && count > 0; i++ ) { Item item = null; if ( !m_Old && i>=3 ) break; if ( !info.IsSwitched( i + 100 ) ) continue; count--; switch ( i ) { case 0: if ( m_Abyss ) m.AddToBackpack( new BankCheck( 5000 ) ); else m.AddToBackpack( new FireworksWand() ); break; case 1: if ( m_Abyss ) { m.AddToBackpack( new BagOfReagents( 100 ) ); } else { m.AddToBackpack( item=new Spyglass() ); item.LootType = LootType.Newbied; } break; case 2: m.AddToBackpack( new HairRestylingDeed() ); break; case 3: switch ( Utility.Random( 5 ) ) { case 0: item = new RangerArms(); break; case 1: item = new RangerChest(); break; case 2: item = new RangerGloves(); break; case 3: item = new RangerGorget(); break; case 4: item = new RangerLegs(); break; } if ( item != null ) m.AddToBackpack( item ); break; case 4: if ( m_Abyss ) { item = new BaseItem( Utility.Random( 6 ) + 0xEf4 ); item.Name = "I survived the Abyss!"; item.LootType = LootType.Newbied; m.AddToBackpack( item ); } else { m.AddToBackpack( new ClothingBlessDeed() ); } break; case 5: if ( m_Abyss ) m.AddToBackpack( new Server.Multis.SmallDragonBoatDeed() ); else m.AddToBackpack( new StrongBoxDeed() ); break; } } m.SendAsciiMessage( "Enjoy!" ); if ( count > 0 ) { ((Account)m.Account).SetTag( "Rewards", count.ToString() ); m.SendAsciiMessage( "You have {0} reward{1} left.", count, count == 1 ? "" : "s" ); } else { ((Account)m.Account).RemoveTag( "Rewards" ); ((Account)m.Account).RemoveTag( "GoodRewards" ); } }