Deianeira.lua 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/Deianeira.lua
  3. Script Purpose : Deianeira
  4. Script Author : Scatman
  5. Script Date : 2008.09.20
  6. Script Notes :
  7. --]]
  8. local Tainted = 183
  9. local GhostsAndGoblins = 184
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, Tainted)
  12. ProvidesQuest(NPC, GhostsAndGoblins)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. if HasCompletedQuest(Spawn, Tainted) then
  20. if HasCompletedQuest(Spawn, GhostsAndGoblins) or HasQuest(Spawn, GhostsAndGoblins) then
  21. Quest2RandomSay(NPC, Spawn)
  22. else
  23. NotConvinced(NPC, Spawn)
  24. end
  25. elseif HasQuest(Spawn, Tainted) then
  26. if GetQuestStep(Spawn, Tainted) < 9 then
  27. listenToTheSilence(NPC, Spawn)
  28. elseif GetQuestStep(Spawn, Tainted) == 9 then
  29. listenToTheSilence(NPC, Spawn, 2)
  30. end
  31. else
  32. listenToTheSilence(NPC, Spawn, 1)
  33. end
  34. end
  35. function listenToTheSilence(NPC, Spawn, option)
  36. FaceTarget(NPC, Spawn)
  37. conversation = CreateConversation()
  38. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/deianeira/tutorial_island02_revamp/quests/deianeira/deianeira001.mp3", "", "", 974807054, 1523157599, Spawn)
  39. if option == 1 then
  40. AddConversationOption(conversation, "Listen to the silence?", "quest1_before1")
  41. elseif option == 2 then
  42. AddConversationOption(conversation, "I found a parchment that hinted Direspike was under the influence of something else.", "FoundParchment")
  43. end
  44. AddConversationOption(conversation, "Then I'll leave you in peace.")
  45. StartConversation(conversation, NPC, Spawn, "Shhh...I'm trying to listen to the silence. Whisper please.")
  46. end
  47. function quest1_before1(npc, spawn)
  48. conversation = CreateConversation()
  49. PlayFlavor(npc, "voiceover/english/tutorial_revamp/deianeira/tutorial_island02_revamp/quests/deianeira/deianeira002.mp3", "", "", 1920565588, 3425134667, Spawn)
  50. AddConversationOption(conversation, "The view's not so clear from here.", "quest1_before2")
  51. StartConversation(conversation, npc, spawn, "Away from the noise over in the camp. I like standing here. You can see where you've been and where you can go. You know what awaits you if you go further in. If only everything were as simple as that, where all your choices are clear and you can see what awaits.")
  52. end
  53. function quest1_before2(npc, spawn)
  54. conversation = CreateConversation()
  55. PlayFlavor(npc, "voiceover/english/tutorial_revamp/deianeira/tutorial_island02_revamp/quests/deianeira/deianeira003.mp3", "", "", 3746790389, 1573998689, Spawn)
  56. AddConversationOption(conversation, "What evil do you sense?", "quest1_before3")
  57. AddConversationOption(conversation, "Then I'll have no more dealings with you.")
  58. StartConversation(conversation, npc, spawn, "True, but it's clearer than, say, the difference between good and evil. All those around here who are ''good'' avoid me because I was born ''evil''. I grew up in Freeport. Does that make them better than me somehow, that I chose to leave Freeport to work on behalf of the Queen only recently? Who knows? Yet I must be evil; I can sense the evil in others.")
  59. end
  60. function quest1_before3(npc, spawn)
  61. conversation = CreateConversation()
  62. PlayFlavor(npc, "voiceover/english/tutorial_revamp/deianeira/tutorial_island02_revamp/quests/deianeira/deianeira004.mp3", "", "", 428169630, 2788724653, Spawn)
  63. AddConversationOption(conversation, "I'll do what I can.", "quest1_offerQuest")
  64. AddConversationOption(conversation, "Perhaps some other time.")
  65. StartConversation(conversation, npc, spawn, "They say that there is a taint rising from an unknown source, polluting this place and corrupting the inhabitants. I feel it is much simpler than that. There are spiders in the Tainted Forest, poisonous ones. With their venom, they can cause untold suffering. The search for ''evil'' sometimes has a mundane cause. We must rid the Colony of these spiders.", spawn)
  66. end
  67. function quest1_offerQuest(npc, spawn)
  68. OfferQuest(npc, spawn, Tainted)
  69. end
  70. function FoundParchment(NPC, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. conversation = CreateConversation()
  73. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/deianeira/tutorial_island02_revamp/quests/deianeira/deianeira005.mp3", "", "", 2666912393, 3640169922, Spawn)
  74. AddConversationOption(conversation, "The crawlers were being influenced by a hidden totem.", "dlg_17_2")
  75. AddConversationOption(conversation, "I'm not finished with them yet.")
  76. StartConversation(conversation, NPC, Spawn, "The influence of something else? But I've sensed the evil in them. They aren't capable of planning to be evil. It must be their poison. It must!")
  77. end
  78. function dlg_17_2(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. conversation = CreateConversation()
  81. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/deianeira/tutorial_island02_revamp/quests/deianeira/deianeira006.mp3", "", "", 1022748345, 1750032594, Spawn)
  82. AddConversationOption(conversation, "There is something that runs deeper than spider venom here.", "NotConvinced")
  83. StartConversation(conversation, NPC, Spawn, "I was so sure... Well, there goes that theory. Tell me, you may be less biased than someone like me: do you sense anything in the Tainted Forest? Anything at all?")
  84. end
  85. function NotConvinced(NPC, Spawn)
  86. FaceTarget(NPC, Spawn)
  87. conversation = CreateConversation()
  88. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/deianeira/tutorial_island02_revamp/quests/deianeira/deianeira007.mp3", "", "", 2498899827, 4165283209, Spawn)
  89. AddConversationOption(conversation, "So you moved to Qeynos?", "dlg_17_4")
  90. StartConversation(conversation, NPC, Spawn, "I'm not convinced, but this does throw a gnome wrench into things. I don't believe that there is such a thing as evil. Look at me: I was raised to believe Qeynos was a horrible place filled with mindless drones. Once I came of age I realized that the Overlord's minions were spreading lies.")
  91. end
  92. function dlg_17_4(NPC, Spawn)
  93. FaceTarget(NPC, Spawn)
  94. conversation = CreateConversation()
  95. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/deianeira/tutorial_island02_revamp/quests/deianeira/deianeira008.mp3", "", "", 56356150, 3856145142, Spawn)
  96. AddConversationOption(conversation, "You were wrong about the toxic crawlers' poison.", "dlg_17_5")
  97. StartConversation(conversation, NPC, Spawn, "'Moved' is such a polite way to say it. I betrayed Freeport to do what I felt in my heart was right. And yet...not everyone in Qeynos accepts me or my decision. So I came here, where I could help remove this island's taint. The honorable Qeynosians won't work with me, so I've had to devise my own theories.")
  98. end
  99. function dlg_17_5(NPC, Spawn)
  100. SetStepComplete(Spawn, Tainted, 9)
  101. FaceTarget(NPC, Spawn)
  102. conversation = CreateConversation()
  103. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/deianeira/tutorial_island02_revamp/quests/deianeira/deianeira009.mp3", "", "", 3026175083, 2234137219, Spawn)
  104. AddConversationOption(conversation, "Sure.", "dlg_17_6")
  105. AddConversationOption(conversation, "Not yet.")
  106. StartConversation(conversation, NPC, Spawn, "We all make mistakes. Hopefully, this is not a mistake I'll live to regret. Are you willing to help me test another theory?")
  107. end
  108. function dlg_17_6(NPC, Spawn)
  109. FaceTarget(NPC, Spawn)
  110. conversation = CreateConversation()
  111. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/deianeira/tutorial_island02_revamp/quests/deianeira/deianeira010.mp3", "", "", 3135820636, 1299129722, Spawn)
  112. AddConversationOption(conversation, "I'll check into it.", "OfferQuest2")
  113. AddConversationOption(conversation, "I'll need to do this later.")
  114. StartConversation(conversation, NPC, Spawn, "The Tainted Forest is key. Look for the Forest Keeper, a treant who lives in a nook in the hillside just beyond these trees. It was a guardian of this place and has resisted the taint. It may be willing to speak to you. It chooses not to speak to a betrayer like me.")
  115. end
  116. function OfferQuest2(NPC, Spawn)
  117. OfferQuest(NPC, Spawn, GhostsAndGoblins)
  118. end
  119. function Quest2RandomSay(NPC, Spawn)
  120. FaceTarget(NPC, Spawn)
  121. choice = math.random(1, 5)
  122. if choice == 1 then
  123. Say(NPC, "There's only so much I can do to earn someone's trust.")
  124. elseif choice == 2 then
  125. Say(NPC, "It's up to us to find the answers; they're never handed to us.")
  126. elseif choice == 3 then
  127. Say(NPC, "Evil is not always what it appears to be. That's the danger.")
  128. elseif choice == 4 then
  129. Say(NPC, "We Ayr'Dal are proud, though others may not appreciate us.")
  130. elseif choice == 5 then
  131. Say(NPC, "Freeport isn't that bad of a place, if you like watching over your shoulder all the time.")
  132. end
  133. end