TheFreeportCitizensGuidetoOpportunity.lua 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. --[[
  2. Script Name : ItemScripts/TheFreeportCitizensGuidetoOpportunity.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.06.26 02:06:12
  5. Script Purpose :
  6. :
  7. --]]
  8. function examined(Item, Player)
  9. conversation = CreateConversation()
  10. AddConversationOption(conversation, "Next Page","Page1")
  11. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  12. StartDialogConversation(conversation, 2, Item, Player, "Now that you are a citizen of Freeport, you will want to do your part to bring glory to the Overlord. There are many ways to gain prestige and earn coin. As you grow and learn, your efforts will reflect on our city. Journey through Norrath and know that your efforts will inspire our foes to reconsider their allegiance. Might is not only demonstrated by the sword, but by knowing what can be used to our benefit.")
  13. end
  14. function Page1(Item, Player)
  15. conversation = CreateConversation()
  16. AddConversationOption(conversation, "Next Page","Page2")
  17. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  18. StartDialogConversation(conversation, 2, Item, Player, "Collections\n\nOn your journeys you may encounter items which are part of a larger series. You can collect these items as you travel, inspecting them to determine whether they are worthy of retention. You will find this hobby quite rewarding as you learn to identify different animals and their parts.")
  19. end
  20. function Page2(Item, Player)
  21. conversation = CreateConversation()
  22. AddConversationOption(conversation, "Next Page","Page3")
  23. AddConversationOption(conversation, "Previous Page","Page1")
  24. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  25. StartDialogConversation(conversation, 2, Item, Player, "Once you have completed a collection, you should present them to Renny Parvat in East Freeport. He will offer rewards for your completed collections. And should you complete an entire series of collectable items, you may receive something special for your home as well. Go, then, and investigate the wilds to find the rewards beneath your feet.")
  26. end
  27. function Page3(Item, Player)
  28. conversation = CreateConversation()
  29. AddConversationOption(conversation, "Next Page","Page4")
  30. AddConversationOption(conversation, "Previous Page","Page2")
  31. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  32. StartDialogConversation(conversation, 2, Item, Player, "Exploration\n\nFreeport's history is filled with the greatest explorers of all times. Now that you belong to the Overlord, your finds will add to his glory throughout Norrath. You may have already identified key features throughout the city, such as the Fountain of the Fallen Soldier in the Scale Yard. You are strongly urged to take this moment to look upon the ExecutionPlaza in West Freeport. Go, now.")
  33. end
  34. function Page4(Item, Player)
  35. conversation = CreateConversation()
  36. AddConversationOption(conversation, "Next Page","Page5")
  37. AddConversationOption(conversation, "Previous Page","Page3")
  38. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  39. StartDialogConversation(conversation, 2, Item, Player, "As you explore lands new to you, remember that you represent Freeport and the Overlord. He will not be well-served if you are unable to put the glory of our city before your own insignificant life. Therefore, go without fear through the lands. Should you see something interesting, investigate it more closely that you may learn more about it for your sake.")
  40. end
  41. function Page5(Item, Player)
  42. conversation = CreateConversation()
  43. AddConversationOption(conversation, "Next Page","Page6")
  44. AddConversationOption(conversation, "Previous Page","Page4")
  45. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  46. StartDialogConversation(conversation, 2, Item, Player, "Literature\n\nThe Overlord is proud of the high literacy rate among Freeport's citizens and he strongly encourages those who do not read to learn immediately. To this end, he has graciously allowed Sage Navarius Orvalis to set up shop in North Freeport, even though many of the tomes he sells are incomplete. Despite their lack of pages, Sage Orvalis's tomes are fascinating.")
  47. end
  48. function Page6(Item, Player)
  49. conversation = CreateConversation()
  50. AddConversationOption(conversation, "Next Page","Page7")
  51. AddConversationOption(conversation, "Previous Page","Page5")
  52. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  53. StartDialogConversation(conversation, 2, Item, Player, "By purchasing a tome such as \"Bird Watching: The Do's and Don'ts of Nektulos Forest,\" you will explore Norrath and gain new insight into its creatures, history and the folk who inhabit our world.\n\nYou can also gain new skills by completing any of the Mastery tomes available.\n\nIndeed, you are very strongly urged by the Overlord to take advantage of the Sage's stock and to also read any tomes you find while in the wilds.")
  54. end
  55. function Page7(Item, Player)
  56. conversation = CreateConversation()
  57. AddConversationOption(conversation, "Next Page","Page8")
  58. AddConversationOption(conversation, "Previous Page","Page6")
  59. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  60. StartDialogConversation(conversation, 2, Item, Player, "Lost and Found\n\nAn active mind is an active soldier for Freeport. While you are going about your work for the glory of the Overlord, you must always carefully observe your surroundings. Is anything out of place? Is there an unusual object jutting up through the ground? Investigate these things, for they may provide clues to activities with which you will want to concern yourself.")
  61. end
  62. function Page8(Item, Player)
  63. conversation = CreateConversation()
  64. AddConversationOption(conversation, "Next Page","Page9")
  65. AddConversationOption(conversation, "Previous Page","Page7")
  66. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  67. StartDialogConversation(conversation, 2, Item, Player, "Many unusual items you will find in your travels hold the keys to mysteries in which the Overlord is interested. It would behoove you to find these items and complete any task necessary to determine their exact nature. This way, if the Overlord should summon you into his Presence Chamber, you will be able to explain exactly what you know and how you came to learn these things.")
  68. end
  69. function Page9(Item, Player)
  70. conversation = CreateConversation()
  71. AddConversationOption(conversation, "Next Page","Page10")
  72. AddConversationOption(conversation, "Previous Page","Page8")
  73. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  74. StartDialogConversation(conversation, 2, Item, Player, "Adventure\n\nOne of the hallmarks of a citizen of Freeport is his willingness to take on tasks to further the reputation of the Overlord. Freeport has long been a center of commerce throughout Norrath. Look to assist the Far Seas Trading Company's taskmasters where you find them. Strengthening our ties to commerce strengthens our economy as a whole.")
  75. end
  76. function Page10(Item, Player)
  77. conversation = CreateConversation()
  78. AddConversationOption(conversation, "Next Page","Page11")
  79. AddConversationOption(conversation, "Previous Page","Page9")
  80. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  81. StartDialogConversation(conversation, 2, Item, Player, "Now that you are a citizen of Freeport, you will want to do your part to bring glory to the Overlord. There are many ways to gain prestige and earn coin. As you grow and learn, your efforts will reflect on our city. Journey through Norrath and know that your efforts will inspire our foes to reconsider their allegiance.\n\nMight is not only demonstrated by the sword, but by knowing what can be used to our benefit.")
  82. end
  83. function Page11(Item, Player)
  84. conversation = CreateConversation()
  85. AddConversationOption(conversation, "Final Page","Page12")
  86. AddConversationOption(conversation, "Previous Page","Page10")
  87. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  88. StartDialogConversation(conversation, 2, Item, Player, "Heritage\n\nThroughout Norrath's history, there are certain items which seem to offer their owners greater protections or abilities. The Overlord is interested in these items and therefore, so must you be. Use your keen observation skills to identify those items, such as the greater lightstones.\n\nLearn how to obtain these things and you will please the Overlord.")
  89. end
  90. function Page12(Item, Player)
  91. if CanReceiveQuest(Player,5865) then
  92. OfferQuest(Item,Player,5865)
  93. elseif GetQuestStep(Player,5865) ==8 then
  94. AddConversationOption(conversation, "Final Page","Page13")
  95. end
  96. endconversation = CreateConversation()
  97. AddConversationOption(conversation, "Previous Page","Page10")
  98. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  99. StartDialogConversation(conversation, 2, Item, Player, "Making Yourself Useful\n\nThe Overlord requires that all citizens be of some use to the city by advancing their training in their current adventuring profession. We will not have deadbeats and mendicants within the walls of Freeport.\n\nFighters report to Commandant Tychus in the Temple of War.\n\nPriests report to Priest Kelian, also within the Temple of War.\n\nMages are to speak with Arcanist Sonius within the Academy of Arcane Sciences.\n\nScouts are to seek out Emissary Millia, she can be found operating out of the Jade Tiger Inn.\n\nThese locations are all found within the North Freeport section of the city. The prosperity of Freeport will be achieved through blood and sweat! -- Grand Duke Hazran")
  100. end
  101. function Page13(Item, Player)
  102. SetStepComplete(Player,5865,8)
  103. conversation = CreateConversation()
  104. AddConversationOption(conversation, "Previous Page","Page10")
  105. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  106. StartDialogConversation(conversation, 2, Item, Player, "This book is only a guide to what you will be expected to look for and achieve on the Overlord's behalf. Do not waste your time by lazing about. The Age of Destiny is upon us and only those who act quickly will reap the benefits that the world offers.")
  107. end