PageRenderTime 46ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/Scripts/Mobiles/Collectors/Corey.cs

https://bitbucket.org/servuo/servuo
C# | 161 lines | 122 code | 25 blank | 14 comment | 1 complexity | 0421d268f5f998f8e353f91c64274728 MD5 | raw file
  1. using System;
  2. using Server.Mobiles;
  3. namespace Server.Items
  4. {
  5. public class LightAndMight : BaseCollectionMobile
  6. {
  7. [Constructable]
  8. public LightAndMight()
  9. : base("Corey", "the paladin")
  10. {
  11. this.StartTier = 10000000;
  12. this.DailyDecay = 100000;
  13. this.DonationLabel = 1073446; // Light and Might Section Donation Representative.
  14. }
  15. public LightAndMight(Serial serial)
  16. : base(serial)
  17. {
  18. }
  19. public override Collection CollectionID
  20. {
  21. get
  22. {
  23. return Collection.LightAndMight;
  24. }
  25. }
  26. public override int MaxTier
  27. {
  28. get
  29. {
  30. return 1;
  31. }
  32. }
  33. public override void InitBody()
  34. {
  35. this.InitStats(100, 100, 25);
  36. this.Female = false;
  37. this.CantWalk = true;
  38. this.Race = Race.Human;
  39. this.Hue = 0x8405;
  40. }
  41. public override void InitOutfit()
  42. {
  43. this.AddItem(new Backpack());
  44. this.AddItem(new Halberd());
  45. this.AddItem(new Cloak(0x4E6));
  46. Item item;
  47. item = new PlateLegs();
  48. item.Hue = 0x8A6;
  49. this.AddItem(item);
  50. item = new PlateArms();
  51. item.Hue = 0x8A6;
  52. this.AddItem(item);
  53. item = new PlateChest();
  54. item.Hue = 0x8A6;
  55. this.AddItem(item);
  56. item = new PlateGloves();
  57. item.Hue = 0x8A6;
  58. this.AddItem(item);
  59. item = new PlateHelm();
  60. item.Hue = 0x8A6;
  61. this.AddItem(item);
  62. item = new PlateGorget();
  63. item.Hue = 0x8A6;
  64. this.AddItem(item);
  65. }
  66. public override void Init()
  67. {
  68. base.Init();
  69. this.Donations.Add(new CollectionItem(typeof(Gold), 0xEEF, 1073116, 0x0, 0.06666));
  70. this.Donations.Add(new CollectionItem(typeof(BankCheck), 0x14F0, 1075013, 0x34, 0.06666));
  71. this.Donations.Add(new CollectionItem(typeof(BrownBook), 0xFEF, 1074906, 0x0, 3));
  72. this.Donations.Add(new CollectionItem(typeof(TanBook), 0xFF0, 1074906, 0x0, 3));
  73. this.Donations.Add(new CollectionItem(typeof(BookOfChivalry), 0x2252, 1061666, 0x0, 12));
  74. int[] hues = new int[] { 0x1E0, 0x190, 0x151 };
  75. this.Rewards.Add(new CollectionHuedItem(typeof(LibraryFriendBodySash), 0x1541, 1073346, 0x190, 100000.0, hues));
  76. this.Rewards.Add(new CollectionHuedItem(typeof(LibraryFriendFeatheredHat), 0x171A, 1073347, 0x190, 100000.0, hues));
  77. this.Rewards.Add(new CollectionHuedItem(typeof(LibraryFriendSurcoat), 0x1FFD, 1073348, 0x190, 100000.0, hues));
  78. this.Rewards.Add(new CollectionHuedItem(typeof(LibraryFriendPants), 0x1539, 1073349, 0x190, 100000.0, hues));
  79. this.Rewards.Add(new CollectionHuedItem(typeof(LibraryFriendCloak), 0x1515, 1073350, 0x190, 100000.0, hues));
  80. this.Rewards.Add(new CollectionHuedItem(typeof(LibraryFriendDoublet), 0x1F7B, 1073351, 0x190, 100000.0, hues));
  81. this.Rewards.Add(new CollectionHuedItem(typeof(LibraryFriendSkirt), 0x1537, 1073352, 0x190, 100000.0, hues));
  82. this.Rewards.Add(new CollectionTitle(1073341, 1073859, 100000.0)); // Britain Public Library Contributor
  83. hues = new int[] { 0x0, 0x1C2, 0x320, 0x190, 0x1E0 };
  84. this.Rewards.Add(new CollectionHuedItem(typeof(LibraryFriendLantern), 0xA25, 1073339, 0x1C2, 200000.0, hues));
  85. this.Rewards.Add(new CollectionHuedItem(typeof(LibraryFriendReadingChair), 0x2DEB, 1073340, 0x1C2, 200000.0, hues));
  86. this.Rewards.Add(new CollectionTitle(1073342, 1073860, 200000.0)); // Distinguished Library Contributor
  87. this.Rewards.Add(new CollectionHuedItem(typeof(SherryTheMouseQuotes), 0xFBD, 1073300, 0x1C2, 350000.0, hues));
  88. this.Rewards.Add(new CollectionHuedItem(typeof(WyrdBeastmasterQuotes), 0xFBD, 1073310, 0x1C2, 350000.0, hues));
  89. this.Rewards.Add(new CollectionHuedItem(typeof(MercenaryJustinQuotes), 0xFBD, 1073317, 0x1C2, 350000.0, hues));
  90. this.Rewards.Add(new CollectionHuedItem(typeof(HeigelOfMoonglowQuotes), 0xFBD, 1073327, 0x1C2, 350000.0, hues));
  91. this.Rewards.Add(new CollectionHuedItem(typeof(TraderHoraceQuotes), 0xFBD, 1073338, 0x1C2, 350000.0, hues));
  92. this.Rewards.Add(new CollectionTitle(1073343, 1073861, 350000.0)); // Honored Library Contributor
  93. this.Rewards.Add(new CollectionItem(typeof(TreatiseonAlchemyTalisman), 0x2F58, 1073353, 0x0, 550000.0));
  94. this.Rewards.Add(new CollectionItem(typeof(PrimerOnArmsTalisman), 0x2F59, 1073354, 0x0, 550000.0));
  95. this.Rewards.Add(new CollectionItem(typeof(MyBookTalisman), 0x2F5A, 1073355, 0x0, 550000.0));
  96. this.Rewards.Add(new CollectionItem(typeof(TalkingtoWispsTalisman), 0x2F5B, 1073356, 0x0, 550000.0));
  97. this.Rewards.Add(new CollectionItem(typeof(GrammarOfOrchishTalisman), 0x2F59, 1073358, 0x0, 550000.0));
  98. this.Rewards.Add(new CollectionItem(typeof(BirdsofBritanniaTalisman), 0x2F5A, 1073359, 0x0, 550000.0));
  99. this.Rewards.Add(new CollectionItem(typeof(TheLifeOfTravelingMinstrelTalisman), 0x2F5A, 1073360, 0x0, 550000.0));
  100. this.Rewards.Add(new CollectionTitle(1073344, 1073862, 550000.0)); // Prominent Library Contributor
  101. this.Rewards.Add(new CollectionTitle(1073345, 1073863, 800000.0)); // Eminent Library Contributor
  102. this.Rewards.Add(new CollectionItem(typeof(LightOfWayGlasses), 0x2FB8, 1073378, 0x256, 800000.0));
  103. }
  104. public override bool CanDonate(PlayerMobile player)
  105. {
  106. bool can = player.LibraryFriend;
  107. if (!can)
  108. player.SendLocalizedMessage(1074273); // You must speak with Librarian Verity before you can donate to this collection.
  109. return can;
  110. }
  111. /*public override void IncreaseTier()
  112. {
  113. base.IncreaseTier();
  114. List<object> list = new List<object>();
  115. Item c;
  116. switch ( Tier )
  117. {
  118. }
  119. if ( list.Count > 0 )
  120. Tiers.Add( list );
  121. }*/
  122. public override void Serialize(GenericWriter writer)
  123. {
  124. base.Serialize(writer);
  125. writer.Write((int)0); // version
  126. }
  127. public override void Deserialize(GenericReader reader)
  128. {
  129. base.Deserialize(reader);
  130. int version = reader.ReadInt();
  131. }
  132. }
  133. }