TheLadyoftheLake.lua 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. --[[
  2. Script Name : ItemScripts/TheLadyoftheLake.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.07 03:06:23
  5. Script Purpose :
  6. :
  7. --]]
  8. local Lake = 5583
  9. function examined(Item, Player)
  10. conversation = CreateConversation()
  11. AddConversationOption(conversation, "Entry One","Page1")
  12. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  13. StartDialogConversation(conversation, 2, Item, Player, "Waiting for an inevitable war is never easy. In this book, we meet two Qeynosian Guards at an outpost on LakeRathetear who find themselves on the edge of war and far from home.")
  14. end
  15. function Page1(Item, Player)
  16. conversation = CreateConversation()
  17. if not HasQuest(Spawn,Lake) and not HasCompletedQuest(Spawn,Lake)then
  18. QuestStart(Item,Player)
  19. end
  20. if GetQuestStep(Player,Lake) >=2 then
  21. AddConversationOption(conversation, "Entry Two","Page2")
  22. end
  23. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  24. StartDialogConversation(conversation, 2, Item, Player, "The drums echoed in the RatheMountains and reverberated through the deep waters of LakeRathetear. They were victory drums, sounded by the ogres of the new Rallosian Army. They had taken the mountains and now their drums warned of their advance to the Lake itself. Aviak scouts reported their progress and numbers. There were so many ogres and trolls, it was said that the road was blackened by their shadows as far as the aviak eye could see.")
  25. end
  26. function Page2(Item, Player)
  27. conversation = CreateConversation()
  28. if GetQuestStep(Player,Lake)==2 then
  29. QuestStepIsComplete(Player,Lake,2)
  30. end
  31. if GetQuestStep(Player,Lake) >=4 then
  32. AddConversationOption(conversation, "Entry Three","Page3")
  33. end
  34. AddConversationOption(conversation, "Turn back to previous entry.","Page1")
  35. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  36. StartDialogConversation(conversation, 2, Item, Player, "\"Why do they come here?\" asked Ilkalla, one of the Qeynosian guards stationed at the Lake. \"Because they can,\" responded Gerren, the other guard. \"And here we are, unable to send word to Qeynos. We will die fighting alongside these savages.\" \"Do not say such a thing,\" Ilkalla said uncomfortably. \"They have treated us very kindly since word of the Rallosian Army reached them. You may not like them, but the aviaks have offered us shelter in these uncertain times.\"")
  37. end
  38. function Page3(Item, Player)
  39. conversation = CreateConversation()
  40. if GetQuestStep(Player,Lake)==4 then
  41. QuestStepIsComplete(Player,Lake,4)
  42. end
  43. if GetQuestStep(Player,Lake) >=6 then
  44. AddConversationOption(conversation, "Entry Four","Page4")
  45. end
  46. AddConversationOption(conversation, "Turn back to previous entry.","Page2")
  47. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  48. StartDialogConversation(conversation, 2, Item, Player, "Smoke curled on the opposite shore of the LakeRathetear, which obscured whatever the Rallosian Army was doing. The drums in the mountains had stopped. Other than the acrid tang of smoke drifting across the water, one might forget that the ogres were there. A squadron of aviaks swooped low into the smoke to get a closer look; their report was not encouraging. The ogres were apparently cutting down massive numbers of trees, stripping their bark and sharpening their ends into spikes.")
  49. end
  50. function Page4(Item, Player)
  51. conversation = CreateConversation()
  52. if GetQuestStep(Player,Lake)==6 then
  53. QuestStepIsComplete(Player,Lake,6)
  54. end
  55. if GetQuestStep(Player,Lake) >=8 then
  56. AddConversationOption(conversation, "Entry Five","Page5")
  57. end
  58. AddConversationOption(conversation, "Turn back to previous entry.","Page3")
  59. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  60. StartDialogConversation(conversation, 2, Item, Player, "Ilkalla wondered what the ogres would do with spikes the size of trees. It seemed unlikely they would build a fortification; they were on the offense not defense. \"We must get closer...but so far the aqua goblins in the Lake are not cooperating with us. I must make them understand the danger to us all. If I can get safe passage, I could find out what the Rallosians are planning.\" The aqua goblins had for the most part retreated to their lairs in the midst of the Lake, trusting its deep waters to keep them safe.")
  61. end
  62. function Page5(Item, Player)
  63. conversation = CreateConversation()
  64. if GetQuestStep(Player,Lake)==8 then
  65. QuestStepIsComplete(Player,Lake,8)
  66. end
  67. if GetQuestStep(Player,Lake) >=10 then
  68. AddConversationOption(conversation, "Entry Six","Page6")
  69. end
  70. AddConversationOption(conversation, "Turn back to previous entry.","Page4")
  71. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  72. StartDialogConversation(conversation, 2, Item, Player, "One of the aviaks that Ilkalla had befriended went with her to the aqua goblins' chief. The discussion was disappointing to some extent, as the chief was more interested in the baubles Ilkalla had brought as gifts than he was in the danger posed by the Rallosians. It took the better part of the morning before he agreed to allow her safe conduct through the Lake. \"I don't speak for them sharks, though,\" the chief said with a snicker. Ilkalla was a strong swimmer though and knew how to deal with the sharks.")
  73. end
  74. function Page6(Item, Player)
  75. conversation = CreateConversation()
  76. if GetQuestStep(Player,Lake)==10 then
  77. QuestStepIsComplete(Player,Lake,10)
  78. end
  79. if GetQuestStep(Player,Lake) >=12 then
  80. AddConversationOption(conversation, "Entry Seven","Page7")
  81. end
  82. AddConversationOption(conversation, "Turn back to previous entry.","Page5")
  83. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  84. StartDialogConversation(conversation, 2, Item, Player, "Under cover of darkness, Ilkalla slipped off through the black water. She opted for a small coracle and paddled silently across the Lake. The smoke that drifted across the water may have hidden the ogres' activities but it also provided Ilkalla with excellent concealment from any watching eyes. She soon found out that if anyone were watching her, it wasn't the ogres. They were apparently so confident of victory that they set no watch along the shore.")
  85. end
  86. function Page7(Item, Player)
  87. conversation = CreateConversation()
  88. if GetQuestStep(Player,Lake)==12 then
  89. QuestStepIsComplete(Player,Lake,12)
  90. end
  91. if GetQuestStep(Player,Lake) >=14 then
  92. AddConversationOption(conversation, "Entry Eight","Page8")
  93. end
  94. AddConversationOption(conversation, "Turn back to previous entry.","Page6")
  95. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  96. StartDialogConversation(conversation, 2, Item, Player, "Though she was tired from her trip across the Lake, Ilkalla knew she could not stop to rest. She must find out what the ogres were doing and then paddle back across the Lake without being caught. Pausing to listen for indications that she had been seen, Ilkalla methodically investigated the narrow beach until she found what she was seeking. The ogres were not using the sharpened tree trunks to build a fort; they were building a raft.")
  97. end
  98. function Page8(Item, Player)
  99. conversation = CreateConversation()
  100. if GetQuestStep(Player,Lake)==14 then
  101. QuestStepIsComplete(Player,Lake,14)
  102. end
  103. if GetQuestStep(Player,Lake) >=16 then
  104. AddConversationOption(conversation, "Entry Nine","Page9")
  105. end
  106. AddConversationOption(conversation, "Turn back to previous entry.","Page7")
  107. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  108. StartDialogConversation(conversation, 2, Item, Player, "Quickly, Ilkalla returned to the coracle and paddled quickly back where Gerren and the aviak leaders waited for her. \"They're planning to transport themselves across the Lake,\" Ilkalla panted as soon as she stepped ashore. \"They are building a raft, a barge of immense size to carry their troops. It is nearly done.\" She sank to the shore and inhaled deeply. \"We need help.\"")
  109. end
  110. function Page9(Item, Player)
  111. conversation = CreateConversation()
  112. if GetQuestStep(Player,Lake)==16 then
  113. QuestStepIsComplete(Player,Lake,16)
  114. end
  115. if GetQuestStep(Player,Lake) >=18 then
  116. AddConversationOption(conversation, "Entry Ten","Page10")
  117. end
  118. AddConversationOption(conversation, "Turn back to previous entry.","Page8")
  119. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  120. StartDialogConversation(conversation, 2, Item, Player, "Gerren pushed back his hair and said, \"The time to send for help is long past. The aqua goblins may have let you pass once, but they will surely side with the ogres and trolls.\" Ilkalla nodded, adding, \"We must make for Karana and thence to Qeynos.\" Gerren laughed, \"I would not let you take all the glory, my friend. You crossed the Lake; I will cross the mountains. The aviaks will not be able to stand alone.\"")
  121. end
  122. function Page10(Item, Player)
  123. conversation = CreateConversation()
  124. if GetQuestStep(Player,Lake)==18 then
  125. QuestStepIsComplete(Player,Lake,18)
  126. end
  127. AddConversationOption(conversation, "Turn back to previous entry.","Page9")
  128. AddConversationOption(conversation, "Close the book.","CloseItemConversation")
  129. StartDialogConversation(conversation, 2, Item, Player, "\"They stand not alone,\" said a deep, rumbling voice nearby. Ilkalla and Gerren turned, startled to see a centaur. He bowed and said, \"The aviaks sent word to us. While we have not always agreed on things, this is different. This is war.\" Ilkalla slowly stood, looking over her shoulder across the dark water. \"Yes,\" she said softly, \"This is definitely war.\"")
  130. end
  131. function QuestStart(Item,Player)
  132. CloseItemConversation(Item,Player)
  133. OfferQuest(nil, Player, Lake)
  134. end