9
3

widgetklornbooksfictionstack.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. --[[
  2. Script Name : SpawnScripts/Neriak/widgetklornbooksfictionstack.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.31 11:05:51
  5. Script Purpose :
  6. :
  7. --]]
  8. local PureMagic = 5572
  9. function casted_on(NPC, Spawn, SpellName)
  10. if SpellName == 'Search Books' then
  11. local con = CreateConversation()
  12. AddConversationOption(con, "\"The Words of Pure Magic\"", "Magic")
  13. AddConversationOption(con, "Stop Browsing.","Close")
  14. StartDialogConversation(con, 1, NPC, Spawn, "This stack of books seems to be filled with fictional material. Novels intended for both entertainment and mythical accounts can be found here. ")
  15. end
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end
  20. function Close(NPC,Spawn)
  21. CloseConversation(NPC,Spawn)
  22. end
  23. function Magic(NPC, Spawn, SpellName)
  24. local con = CreateConversation()
  25. AddConversationOption(con, "Next page.", "Magic1")
  26. AddConversationOption(con, "Close the book.","Close")
  27. StartDialogConversation(con, 1, NPC, Spawn, "Dear reader, I bring to you what you already have. This world of ours is crossed by a great many powers that bind life together as nails and glue bind two boards. Without the nails and glue there would be no hull or no wall to a greater thing. All that we know is bound by forces greater than the planes themselves. And from one of these forces the gift of Druzaic comes to us.")
  28. end
  29. function Magic1(NPC, Spawn, SpellName)
  30. local con = CreateConversation()
  31. AddConversationOption(con, "Next page.", "Magic2")
  32. AddConversationOption(con, "Previous page.","Magic")
  33. AddConversationOption(con, "Close the book.","Close")
  34. StartDialogConversation(con, 1, NPC, Spawn, "Druzaic is the true language of the arcane. The forces of magic can only be represented by most powerful of symbols, symbols so complex and enlightened that they breathe a sentience to the beholder, but only the beholder that can understand the language of Druzaic. I comprehend this language of true magic and I offer my knowledge to you.")
  35. end
  36. function Magic2(NPC, Spawn, SpellName)
  37. local con = CreateConversation()
  38. AddConversationOption(con, "Next page.", "Magic3")
  39. AddConversationOption(con, "Previous page.","Magic1")
  40. AddConversationOption(con, "Close the book.","Close")
  41. StartDialogConversation(con, 1, NPC, Spawn, "Druzaic originates in a well of knowledge greater than all New Tanaan can offer. This well is all around us and is part of everything we see and are, it is the binding force of magic. Although this force is one of many that bind our realm, it is the only one to my knowledge that has presented corporeal gifts unto our world. It is from these gifts that I have deciphered Druzaic.")
  42. end
  43. function Magic3(NPC, Spawn, SpellName)
  44. local con = CreateConversation()
  45. AddConversationOption(con, "Next page.", "Magic4")
  46. AddConversationOption(con, "Previous page.","Magic2")
  47. AddConversationOption(con, "Close the book.","Close")
  48. StartDialogConversation(con, 1, NPC, Spawn, "Druzaic has always existed, but only now has it made its way to Norrath. I am a seeker of knowledge bound to no emperor or overlord. The knowledge of this world shall not be bound to a state and confined within vaults of knowledge. I trek for the freedom of knowledge and in my journeys across these Shattered Lands I have encountered sights both wondrous and shocking, but I have yet to encounter anything like the Druzaic Shrines. ")
  49. end
  50. function Magic4(NPC, Spawn, SpellName)
  51. local con = CreateConversation()
  52. AddConversationOption(con, "Next page.", "Magic5")
  53. AddConversationOption(con, "Previous page.","Magic3")
  54. AddConversationOption(con, "Close the book.","Close")
  55. StartDialogConversation(con, 1, NPC, Spawn, "As I traverse the stormy highlands of the once plains I first gazed upon the beauty of the Druzaic Shrine. At first it was a glint from afar that called to me, beckoned me in some hypnotic fashion like a siren to the sailor. As I drew closer I could see the aura of magnificence sparkling and swirling about, I added haste to my steps.")
  56. end
  57. function Magic5(NPC, Spawn, SpellName)
  58. local con = CreateConversation()
  59. AddConversationOption(con, "Next page.", "Magic6")
  60. AddConversationOption(con, "Previous page.","Magic4")
  61. AddConversationOption(con, "Close the book.","Close")
  62. StartDialogConversation(con, 1, NPC, Spawn, "I came upon the Druzaic Shrine and found myself in awe of the splendor that danced all about. I must have been in a trance for days my thirst and hunger fed by the song of the shrine. Finally my eyes began to clear and I found myself bolts away from the shrine, partially bathed in its brilliance. Now with my senses intact I was finally able to gaze upon the shrine and record my sight.")
  63. end
  64. function Magic6(NPC, Spawn, SpellName)
  65. local con = CreateConversation()
  66. AddConversationOption(con, "Next page.", "Magic7")
  67. AddConversationOption(con, "Previous page.","Magic5")
  68. AddConversationOption(con, "Close the book.","Close")
  69. StartDialogConversation(con, 1, NPC, Spawn, "All about the image I found runes, symbols... a form of alphabet. As I stood there studying these runes thinking I would never be able to decipher such a complex code the shrine began to hum. The rhythm of the shrine began to seep into my mind and for an instance I could begin to read the runes, and then the unexpected occurred- the shrine vanished!")
  70. end
  71. function Magic7(NPC, Spawn, SpellName)
  72. local con = CreateConversation()
  73. AddConversationOption(con, "Next page.", "Magic8")
  74. AddConversationOption(con, "Previous page.","Magic6")
  75. AddConversationOption(con, "Close the book.","Close")
  76. StartDialogConversation(con, 1, NPC, Spawn, "Where once it did sit the Druzaic Shrine was no more! The beauty of the shrine had vanished before my eyes taking with it the key to a new language, a language of magic. I was on the brink of discovery and in an instant it was swiped from me. I wept for the grandeur that was almost comprehended, having seen a glimpse of arcane purity.")
  77. end
  78. function Magic8(NPC, Spawn, SpellName)
  79. local con = CreateConversation()
  80. AddConversationOption(con, "Next page.", "Magic9")
  81. AddConversationOption(con, "Previous page.","Magic7")
  82. AddConversationOption(con, "Close the book.","Close")
  83. StartDialogConversation(con, 1, NPC, Spawn, "The days went on and my exploration of the Shattered Lands had only begun. I continued on recording my sights, sights that could not compare to the song of the Druzaic Shrine. I had met up with my friend from ages past as he toured the land taking notes to be shared with all Norrathians. I too wished to share my knowledge and wished to share what would have been a new arcane language if the shrine would never have left me. I was alone with memories from within and beyond, words of pure magic.")
  84. end
  85. function Magic9(NPC, Spawn, SpellName)
  86. local con = CreateConversation()
  87. AddConversationOption(con, "Next page.", "Magic10")
  88. AddConversationOption(con, "Previous page.","Magic8")
  89. AddConversationOption(con, "Close the book.","Close")
  90. StartDialogConversation(con, 1, NPC, Spawn, "We had sailed to new lands together, my old friend and I. We walked over dangerous lands and all the while I believed the shrine to be gone forever. It was at this end of hope that the sound overtook my mind yet again, I could hear the song of the shrine! I swiped my friend's magic boots, boots of great haste, with them I soon found myself face to face with the shrine again, or so I thought.")
  91. end
  92. function Magic10(NPC, Spawn, SpellName)
  93. local con = CreateConversation()
  94. AddConversationOption(con, "Next page.", "Magic11")
  95. AddConversationOption(con, "Previous page.","Magic9")
  96. AddConversationOption(con, "Close the book.","Close")
  97. StartDialogConversation(con, 1, NPC, Spawn, "What I saw before me sang the song of the shrine, but contained runes of a different sort. This shrine was a member of the greatness that the first shrine was. With it I listened and learned more of the language unknown. I was yet again in a trance when my old friend awoke me, he had finally found me after three moons passed. As he shouted at me for foolish ventures we both were interrupted by the farewell of the new shrine. It was gone in an instant just as the one before. ")
  98. end
  99. function Magic11(NPC, Spawn, SpellName)
  100. local con = CreateConversation()
  101. AddConversationOption(con, "Next page.", "Magic12")
  102. AddConversationOption(con, "Previous page.","Magic10")
  103. AddConversationOption(con, "Close the book.","Close")
  104. StartDialogConversation(con, 1, NPC, Spawn, "Weeks passed and my friend and I had almost lost interest in our conversations of the shrine. We found ourselves on a more terrestrial wonder, the extreme grandeur of a land ablaze- Lavastorm! It was on this land that I encountered another friend from my past, the first shrine!")
  105. end
  106. function Magic12(NPC, Spawn, SpellName)
  107. local con = CreateConversation()
  108. AddConversationOption(con, "Next page.", "Magic13")
  109. AddConversationOption(con, "Previous page.","Magic11")
  110. AddConversationOption(con, "Close the book.","Close")
  111. StartDialogConversation(con, 1, NPC, Spawn, "The shrine had appeared to me, popped into existence in the blink of an eye right before us as if it was there all the time. What was amazing was that when at first I met the shrine it was spellbinding and it's runes indecipherable, but now I could partially comprehend what I read upon the shrine. The shrine's language was almost mine, but I could learn no more from this one.")
  112. end
  113. function Magic13(NPC, Spawn, SpellName)
  114. local con = CreateConversation()
  115. AddConversationOption(con, "Next page.", "Magic14")
  116. AddConversationOption(con, "Previous page.","Magic12")
  117. AddConversationOption(con, "Close the book.","Close")
  118. StartDialogConversation(con, 1, NPC, Spawn, "My friend and I stayed at the shrine and planned to make camp there, but the dangers of the region forced us to abandon our safe haven. I left that land with more than the sights I had seen, I knew now that there were a few more of these shrines, I could feel them. I bid farewell to my friend as he boarded the Far Trotter for other sights. I must go on alone in search of the remaining shrines.")
  119. end
  120. function Magic14(NPC, Spawn, SpellName)
  121. local con = CreateConversation()
  122. if not HasQuest(Quest,PureMagic) and not HasCompletedQuest(Spawn,PureMagic)then
  123. AddConversationOption(con, "Commit this tale to memory.", "MagicStart")
  124. end
  125. AddConversationOption(con, "Previous page.","Magic13")
  126. AddConversationOption(con, "Close the book.","Close")
  127. StartDialogConversation(con, 1, NPC, Spawn, "I could tell you the end of this tale dear reader, but the mystery must not be destroyed. In a sense the mystery was what aided in my comprehension of the new language of arch mages and magical beasts. I know Druzaic and you now know it lives in our realm. Seek the splendor and song when you are in your journeys. Seek the dancing lights and the brilliant spheres of Kab, Zet, Uzu and Myr. These are your keys to Druzaic, language of pure magic.")
  128. end
  129. function MagicStart(NPC, Spawn, SpellName)
  130. OfferQuest(NPC,Spawn,PureMagic)
  131. CloseConversation(NPC,Spawn)
  132. end