PageRenderTime 67ms CodeModel.GetById 0ms RepoModel.GetById 1ms app.codeStats 0ms

/Scripts/Mobiles/Collectors/Zorda.cs

https://bitbucket.org/servuo/servuo
C# | 199 lines | 162 code | 31 blank | 6 comment | 3 complexity | 3d2cdfe0746d5f402553ce091b7b9b8f MD5 | raw file
  1. using System;
  2. using System.Collections.Generic;
  3. using Server.Mobiles;
  4. namespace Server.Items
  5. {
  6. public class ArtsSection : BaseCollectionMobile
  7. {
  8. [Constructable]
  9. public ArtsSection()
  10. : base("Zorda", "the artist")
  11. {
  12. this.StartTier = 10000000;
  13. this.DailyDecay = 100000;
  14. this.DonationLabel = 1073439; // Arts Section Donation Representative.
  15. }
  16. public ArtsSection(Serial serial)
  17. : base(serial)
  18. {
  19. }
  20. public override Collection CollectionID
  21. {
  22. get
  23. {
  24. return Collection.ArtsSection;
  25. }
  26. }
  27. public override int MaxTier
  28. {
  29. get
  30. {
  31. return 1;
  32. }
  33. }
  34. public override void InitBody()
  35. {
  36. this.InitStats(100, 100, 25);
  37. this.Female = true;
  38. this.CantWalk = true;
  39. this.Race = Race.Human;
  40. this.Hue = 0x8405;
  41. this.HairItemID = 0x2045;
  42. this.HairHue = 0x44E;
  43. }
  44. public override void InitOutfit()
  45. {
  46. this.AddItem(new Backpack());
  47. this.AddItem(new Sandals(0x72B));
  48. this.AddItem(new Shirt(0x6BB));
  49. this.AddItem(new HalfApron(0x8FD));
  50. this.AddItem(new Skirt(0x38B));
  51. }
  52. public override void Init()
  53. {
  54. base.Init();
  55. this.Donations.Add(new CollectionItem(typeof(Gold), 0xEEF, 1073116, 0x0, 0.06666));
  56. this.Donations.Add(new CollectionItem(typeof(BankCheck), 0x14F0, 1075013, 0x34, 0.06666));
  57. this.Donations.Add(new CollectionItem(typeof(ScribesPen), 0x0FBF, 1044352, 0x0, 1));
  58. this.Donations.Add(new CollectionItem(typeof(BlankScroll), 0xEF3, 1044377, 0x0, 1));
  59. this.Donations.Add(new CollectionItem(typeof(FertileDirt), 0xF81, 1023969, 0x0, 1));
  60. this.Donations.Add(new CollectionItem(typeof(Board), 0x1BD7, 1015101, 0, 1));
  61. this.Donations.Add(new CollectionItem(typeof(OakBoard), 0x1BD7, 1075052, 0x7DA, 3));
  62. this.Donations.Add(new CollectionItem(typeof(AshBoard), 0x1BD7, 1075053, 0x4A7, 6));
  63. this.Donations.Add(new CollectionItem(typeof(YewBoard), 0x1BD7, 1075054, 0x4A8, 9));
  64. this.Donations.Add(new CollectionItem(typeof(HeartwoodBoard), 0x1BD7, 1075062, 0x4A9, 12));
  65. this.Donations.Add(new CollectionItem(typeof(BloodwoodBoard), 0x1BD7, 1075055, 0x4AA, 24));
  66. this.Donations.Add(new CollectionItem(typeof(FrostwoodBoard), 0x1BD7, 1075056, 0x47F, 48));
  67. this.Donations.Add(new CollectionItem(typeof(BrownBook), 0xFEF, 1074906, 0x0, 3));
  68. this.Donations.Add(new CollectionItem(typeof(TanBook), 0xFF0, 1074906, 0x0, 3));
  69. int[] hues = new int[] { 0x1E0, 0x190, 0x151 };
  70. this.Rewards.Add(new CollectionHuedItem(typeof(LibraryFriendBodySash), 0x1541, 1073346, 0x190, 100000.0, hues));
  71. this.Rewards.Add(new CollectionHuedItem(typeof(LibraryFriendFeatheredHat), 0x171A, 1073347, 0x190, 100000.0, hues));
  72. this.Rewards.Add(new CollectionHuedItem(typeof(LibraryFriendSurcoat), 0x1FFD, 1073348, 0x190, 100000.0, hues));
  73. this.Rewards.Add(new CollectionHuedItem(typeof(LibraryFriendPants), 0x1539, 1073349, 0x190, 100000.0, hues));
  74. this.Rewards.Add(new CollectionHuedItem(typeof(LibraryFriendCloak), 0x1515, 1073350, 0x190, 100000.0, hues));
  75. this.Rewards.Add(new CollectionHuedItem(typeof(LibraryFriendDoublet), 0x1F7B, 1073351, 0x190, 100000.0, hues));
  76. this.Rewards.Add(new CollectionHuedItem(typeof(LibraryFriendSkirt), 0x1537, 1073352, 0x190, 100000.0, hues));
  77. this.Rewards.Add(new CollectionTitle(1073341, 1073859, 100000.0)); // Britain Public Library Contributor
  78. hues = new int[] { 0x0, 0x1C2, 0x320, 0x190, 0x1E0 };
  79. this.Rewards.Add(new CollectionHuedItem(typeof(LibraryFriendLantern), 0xA25, 1073339, 0x1C2, 200000.0, hues));
  80. this.Rewards.Add(new CollectionHuedItem(typeof(LibraryFriendReadingChair), 0x2DEB, 1073340, 0x1C2, 200000.0, hues));
  81. this.Rewards.Add(new CollectionTitle(1073342, 1073860, 200000.0)); // Distinguished Library Contributor
  82. this.Rewards.Add(new CollectionHuedItem(typeof(SherryTheMouseQuotes), 0xFBD, 1073300, 0x1C2, 350000.0, hues));
  83. this.Rewards.Add(new CollectionHuedItem(typeof(WyrdBeastmasterQuotes), 0xFBD, 1073310, 0x1C2, 350000.0, hues));
  84. this.Rewards.Add(new CollectionHuedItem(typeof(MercenaryJustinQuotes), 0xFBD, 1073317, 0x1C2, 350000.0, hues));
  85. this.Rewards.Add(new CollectionHuedItem(typeof(HeigelOfMoonglowQuotes), 0xFBD, 1073327, 0x1C2, 350000.0, hues));
  86. this.Rewards.Add(new CollectionHuedItem(typeof(TraderHoraceQuotes), 0xFBD, 1073338, 0x1C2, 350000.0, hues));
  87. this.Rewards.Add(new CollectionTitle(1073343, 1073861, 350000.0)); // Honored Library Contributor
  88. this.Rewards.Add(new CollectionItem(typeof(TreatiseonAlchemyTalisman), 0x2F58, 1073353, 0x0, 550000.0));
  89. this.Rewards.Add(new CollectionItem(typeof(PrimerOnArmsTalisman), 0x2F59, 1073354, 0x0, 550000.0));
  90. this.Rewards.Add(new CollectionItem(typeof(MyBookTalisman), 0x2F5A, 1073355, 0x0, 550000.0));
  91. this.Rewards.Add(new CollectionItem(typeof(TalkingtoWispsTalisman), 0x2F5B, 1073356, 0x0, 550000.0));
  92. this.Rewards.Add(new CollectionItem(typeof(GrammarOfOrchishTalisman), 0x2F59, 1073358, 0x0, 550000.0));
  93. this.Rewards.Add(new CollectionItem(typeof(BirdsofBritanniaTalisman), 0x2F5A, 1073359, 0x0, 550000.0));
  94. this.Rewards.Add(new CollectionItem(typeof(TheLifeOfTravelingMinstrelTalisman), 0x2F5A, 1073360, 0x0, 550000.0));
  95. this.Rewards.Add(new CollectionTitle(1073344, 1073862, 550000.0)); // Prominent Library Contributor
  96. this.Rewards.Add(new CollectionTitle(1073345, 1073863, 800000.0)); // Eminent Library Contributor
  97. this.Rewards.Add(new CollectionItem(typeof(GlassesOfTheArts), 0x2FB8, 1073363, 0x73, 800000.0));
  98. }
  99. public override bool CanDonate(PlayerMobile player)
  100. {
  101. bool can = player.LibraryFriend;
  102. if (!can)
  103. player.SendLocalizedMessage(1074273); // You must speak with Librarian Verity before you can donate to this collection.
  104. return can;
  105. }
  106. public override void IncreaseTier()
  107. {
  108. base.IncreaseTier();
  109. List<object> list = new List<object>();
  110. Item c;
  111. switch ( this.Tier )
  112. {
  113. case 1:
  114. // easel with canvas
  115. c = new Static(0xF66);
  116. c.MoveToWorld(new Point3D(1417, 1602, 30), this.Map);
  117. list.Add(c);
  118. // table
  119. c = new Static(0xB6B);
  120. c.MoveToWorld(new Point3D(1417, 1606, 30), this.Map);
  121. list.Add(c);
  122. c = new Static(0xB6D);
  123. c.MoveToWorld(new Point3D(1417, 1605, 30), this.Map);
  124. list.Add(c);
  125. c = new Static(0xB6C);
  126. c.MoveToWorld(new Point3D(1417, 1604, 30), this.Map);
  127. list.Add(c);
  128. // bonsai tree
  129. c = new Static(0x28DC);
  130. c.MoveToWorld(new Point3D(1417, 1604, 36), this.Map);
  131. list.Add(c);
  132. // bottles
  133. c = new Static(0xE29);
  134. c.MoveToWorld(new Point3D(1417, 1605, 37), this.Map);
  135. list.Add(c);
  136. c = new Static(0xE28);
  137. c.MoveToWorld(new Point3D(1417, 1605, 36), this.Map);
  138. list.Add(c);
  139. c = new Static(0xE2C);
  140. c.MoveToWorld(new Point3D(1417, 1606, 37), this.Map);
  141. list.Add(c);
  142. // pen and ink
  143. c = new Static(0xFBF);
  144. c.MoveToWorld(new Point3D(1417, 1606, 36), this.Map);
  145. list.Add(c);
  146. // cooking book
  147. c = new Static(0xFBE);
  148. c.MoveToWorld(new Point3D(1418, 1606, 42), this.Map);
  149. c.Name = "A Cookbook";
  150. c.Weight = 5.0;
  151. list.Add(c);
  152. break;
  153. }
  154. if (list.Count > 0)
  155. this.Tiers.Add(list);
  156. }
  157. public override void Serialize(GenericWriter writer)
  158. {
  159. base.Serialize(writer);
  160. writer.Write((int)0); // version
  161. }
  162. public override void Deserialize(GenericReader reader)
  163. {
  164. base.Deserialize(reader);
  165. int version = reader.ReadInt();
  166. }
  167. }
  168. }