PageRenderTime 55ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/Scripts/Customs/Mondain's Legacy/Engines/Community Collections/Britain Library/FoldedSteel.cs

http://svnmlserverall.codeplex.com
C# | 138 lines | 102 code | 20 blank | 16 comment | 1 complexity | 818d205ed0487132e6cca79af554919d MD5 | raw file
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using Server;
  5. using Server.Mobiles;
  6. using Server.Items;
  7. namespace Server.Items
  8. {
  9. public class FoldedSteel : BaseCollectionMobile
  10. {
  11. public override Collection CollectionID{ get{ return Collection.FoldedSteel; } }
  12. public override int MaxTier{ get{ return 1; } }
  13. [Constructable]
  14. public FoldedSteel() : base( "Arabella", "the samurai" )
  15. {
  16. StartTier = 10000000;
  17. DailyDecay = 100000;
  18. DonationLabel = 1073448; // Folded Steel Section Donation Representative.
  19. }
  20. public FoldedSteel( Serial serial ) : base( serial )
  21. {
  22. }
  23. public override void InitBody()
  24. {
  25. InitStats( 100, 100, 25 );
  26. Female = true;
  27. CantWalk = true;
  28. Race = Race.Human;
  29. Hue = 0x83EA;
  30. HairItemID = 0x2048;
  31. HairHue = 0x476;
  32. }
  33. public override void InitOutfit()
  34. {
  35. AddItem( new Backpack() );
  36. AddItem( new NoDachi() );
  37. AddItem( new SamuraiTabi( 0x589 ) );
  38. AddItem( new LeatherSuneate() );
  39. AddItem( new LeatherJingasa() );
  40. AddItem( new LeatherDo() );
  41. AddItem( new LeatherHiroSode() );
  42. }
  43. public override void Init()
  44. {
  45. base.Init();
  46. Donations.Add( new CollectionItem( typeof( Gold ), 0xEEF, 1073116, 0x0, 0.06666 ) );
  47. Donations.Add( new CollectionItem( typeof( BankCheck ), 0x14F0, 1075013, 0x34, 0.06666 ) );
  48. Donations.Add( new CollectionItem( typeof( BrownBook ), 0xFEF, 1074906, 0x0, 3 ) );
  49. Donations.Add( new CollectionItem( typeof( TanBook ), 0xFF0, 1074906, 0x0, 3 ) );
  50. Donations.Add( new CollectionItem( typeof( Bokuto ), 0x27A8, 1074913, 0x0, 8 ) );
  51. Donations.Add( new CollectionItem( typeof( Daisho ), 0x27A9, 1074914, 0x0, 22 ) );
  52. Donations.Add( new CollectionItem( typeof( NoDachi ), 0x27A2, 1074915, 0x0, 27 ) );
  53. Donations.Add( new CollectionItem( typeof( BookOfBushido ), 0x238C, 1070814, 0x0, 30 ) );
  54. int[] hues = new int[] { 0x1E0, 0x190, 0x151 };
  55. Rewards.Add( new CollectionHuedItem( typeof( LibraryFriendBodySash ), 0x1541, 1073346, 0x190, 100000.0, hues ) );
  56. Rewards.Add( new CollectionHuedItem( typeof( LibraryFriendFeatheredHat ), 0x171A, 1073347, 0x190, 100000.0, hues ) );
  57. Rewards.Add( new CollectionHuedItem( typeof( LibraryFriendSurcoat ), 0x1FFD, 1073348, 0x190, 100000.0, hues ) );
  58. Rewards.Add( new CollectionHuedItem( typeof( LibraryFriendPants ), 0x1539, 1073349, 0x190, 100000.0, hues ) );
  59. Rewards.Add( new CollectionHuedItem( typeof( LibraryFriendCloak ), 0x1515, 1073350, 0x190, 100000.0, hues ) );
  60. Rewards.Add( new CollectionHuedItem( typeof( LibraryFriendDoublet ), 0x1F7B, 1073351, 0x190, 100000.0, hues ) );
  61. Rewards.Add( new CollectionHuedItem( typeof( LibraryFriendSkirt ), 0x1537, 1073352, 0x190, 100000.0, hues ) );
  62. Rewards.Add( new CollectionTitle( 1073341, 1073859, 100000.0 ) ); // Britain Public Library Contributor
  63. hues = new int[] { 0x0, 0x1C2, 0x320, 0x190, 0x1E0 };
  64. Rewards.Add( new CollectionHuedItem( typeof( LibraryFriendLantern ), 0xA25, 1073339, 0x1C2, 200000.0, hues ) );
  65. Rewards.Add( new CollectionHuedItem( typeof( LibraryFriendReadingChair ), 0x2DEB, 1073340, 0x1C2, 200000.0, hues ) );
  66. Rewards.Add( new CollectionTitle( 1073342, 1073860, 200000.0 ) ); // Distinguished Library Contributor
  67. Rewards.Add( new CollectionHuedItem( typeof( SherryTheMouseQuotes ), 0xFBD, 1073300, 0x1C2, 350000.0, hues ) );
  68. Rewards.Add( new CollectionHuedItem( typeof( WyrdBeastmasterQuotes ), 0xFBD, 1073310, 0x1C2, 350000.0, hues ) );
  69. Rewards.Add( new CollectionHuedItem( typeof( MercenaryJustinQuotes ), 0xFBD, 1073317, 0x1C2, 350000.0, hues ) );
  70. Rewards.Add( new CollectionHuedItem( typeof( HeigelOfMoonglowQuotes ), 0xFBD, 1073327, 0x1C2, 350000.0, hues ) );
  71. Rewards.Add( new CollectionHuedItem( typeof( TraderHoraceQuotes ), 0xFBD, 1073338, 0x1C2, 350000.0, hues ) );
  72. Rewards.Add( new CollectionTitle( 1073343, 1073861, 350000.0 ) ); // Honored Library Contributor
  73. Rewards.Add( new CollectionItem( typeof( TreatiseonAlchemyTalisman ), 0x2F58, 1073353, 0x0, 550000.0 ) );
  74. Rewards.Add( new CollectionItem( typeof( PrimerOnArmsTalisman ), 0x2F59, 1073354, 0x0, 550000.0 ) );
  75. Rewards.Add( new CollectionItem( typeof( MyBookTalisman ), 0x2F5A, 1073355, 0x0, 550000.0 ) );
  76. Rewards.Add( new CollectionItem( typeof( TalkingtoWispsTalisman ), 0x2F5B, 1073356, 0x0, 550000.0 ) );
  77. Rewards.Add( new CollectionItem( typeof( GrammarOfOrchishTalisman ), 0x2F59, 1073358, 0x0, 550000.0 ) );
  78. Rewards.Add( new CollectionItem( typeof( BirdsofBritanniaTalisman ), 0x2F5A, 1073359, 0x0, 550000.0 ) );
  79. Rewards.Add( new CollectionItem( typeof( TheLifeOfTravelingMinstrelTalisman ), 0x2F5A, 1073360, 0x0, 550000.0 ) );
  80. Rewards.Add( new CollectionTitle( 1073344, 1073862, 550000.0 ) ); // Prominent Library Contributor
  81. Rewards.Add( new CollectionTitle( 1073345, 1073863, 800000.0 ) ); // Eminent Library Contributor
  82. Rewards.Add( new CollectionItem( typeof( FoldedSteelGlasses ), 0x2FB8, 1073380, 0x47E, 800000.0 ) );
  83. }
  84. public override bool CanDonate( PlayerMobile player )
  85. {
  86. bool can = player.LibraryFriend;
  87. if ( !can )
  88. player.SendLocalizedMessage( 1074273 ); // You must speak with Librarian Verity before you can donate to this collection.
  89. return can;
  90. }
  91. /*public override void IncreaseTier()
  92. {
  93. base.IncreaseTier();
  94. List<object> list = new List<object>();
  95. Item c;
  96. switch ( Tier )
  97. {
  98. }
  99. if ( list.Count > 0 )
  100. Tiers.Add( list );
  101. }*/
  102. public override void Serialize( GenericWriter writer )
  103. {
  104. base.Serialize( writer );
  105. writer.Write( (int) 0 ); // version
  106. }
  107. public override void Deserialize( GenericReader reader )
  108. {
  109. base.Deserialize( reader );
  110. int version = reader.ReadInt();
  111. }
  112. }
  113. }