VegalysKeldrane.lua 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. --[[
  2. Script Name : SpawnScripts/CryptBetrayal/VegalysKeldrane.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.10.15 09:10:32
  5. Script Purpose :
  6. :
  7. --]]
  8. local VegalysKeldranesBetrayal = 5371
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, VegalysKeldranesBetrayal)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. if not HasQuest(Spawn, VegalysKeldranesBetrayal) and not HasCompletedQuest(Spawn, VegalysKeldranesBetrayal) then
  15. local conversation = CreateConversation()
  16. PlayFlavor(NPC, "voiceover/english/vegalys_keldrane/qey_catacomb03/keldrane_dialog000.mp3", "", "", 2902748222, 2287363127, Spawn)
  17. AddConversationOption(conversation, "Don't belong here? But...you're dead.", "Option1")
  18. AddConversationOption(conversation, "I do not meddle with the dead.")
  19. StartConversation(conversation, NPC, Spawn, "The air is filled with misery and despair. I add my voice to those tortured and unable to rest, for I do not belong here.")
  20. elseif HasQuest(Spawn, VegalysKeldranesBetrayal) then
  21. local conversation = CreateConversation()
  22. PlayFlavor(NPC, "voiceover/english/vegalys_keldrane/qey_catacomb03/keldrane_dialog006.mp3", "", "", 619626763, 3034717150, Spawn)
  23. if GetQuestStep(Spawn, VegalysKeldranesBetrayal) == 4 then
  24. AddConversationOption(conversation, "Yes, I have spoken with them.", "Option6")
  25. end
  26. AddConversationOption(conversation, "No, I have not spoken with them.", "Option5")
  27. StartConversation(conversation, NPC, Spawn, "You return... did you speak with Adun, Borthen and Vargon?")
  28. elseif HasCompletedQuest(Spawn, VegalysKeldranesBetrayal) then
  29. PlayFlavor(NPC, "", "", "hail", 0, 0, Spawn)
  30. end
  31. end
  32. function Option1(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. local conversation = CreateConversation()
  35. PlayFlavor(NPC, "voiceover/english/vegalys_keldrane/qey_catacomb03/keldrane_dialog001.mp3", "", "", 1352431963, 1925638830, Spawn)
  36. AddConversationOption(conversation, "How did this happen?", "Option2")
  37. AddConversationOption(conversation, "Unfortunate, but I have no time to help you.")
  38. StartConversation(conversation, NPC, Spawn, "Dead, yes, and loyal till the end. Unlike the one who betrayed me. My forefathers fought for Qeynos, and for me to be surrounded by my enemies in life is everlasting torment.")
  39. end
  40. function Option2(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. local conversation = CreateConversation()
  43. PlayFlavor(NPC, "voiceover/english/vegalys_keldrane/qey_catacomb03/keldrane_dialog002.mp3", "", "", 3654990677, 453529663, Spawn)
  44. AddConversationOption(conversation, "[Continue]", "Option3")
  45. AddConversationOption(conversation, "I have no time to help you.")
  46. StartConversation(conversation, NPC, Spawn, "My name is Vegalys Keldrane of the Qeynos' Guard. During the War, I led my troops through the Catacombs to destroy those who bring plague to the city. Surprise was our strongest weapon.")
  47. end
  48. function Option3(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. local conversation = CreateConversation()
  51. PlayFlavor(NPC, "voiceover/english/vegalys_keldrane/qey_catacomb03/keldrane_dialog003.mp3", "", "", 3113159879, 2570757493, Spawn)
  52. AddConversationOption(conversation, "I will help you. What do you need?", "Option4")
  53. AddConversationOption(conversation, "I cannot help you.")
  54. StartConversation(conversation, NPC, Spawn, "Three lieutenants fought beside me; I loved them as brothers. We divided our teams and set forth in secret, only to be destroyed. Who else would have known my strategies? Who else would have known the moment to strike my team unawares? I fear one of my friends betrayed me.")
  55. end
  56. function Option4(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. local conversation = CreateConversation()
  59. PlayFlavor(NPC, "voiceover/english/vegalys_keldrane/qey_catacomb03/keldrane_dialog004.mp3", "", "", 2361294081, 1728540665, Spawn)
  60. AddConversationOption(conversation, "Yes, I can help you.", "offer")
  61. AddConversationOption(conversation, "No, I cannot help you.")
  62. StartConversation(conversation, NPC, Spawn, "The spirits of my former lieutenants are also within these wretched catacombs. Adun, Borthen and Vargon are their names. I feel their presence in these catacombs, yet cannot sense which one tells the entire truth about that final day. Can you find them and learn what they know?")
  63. end
  64. function Option5(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. local conversation = CreateConversation()
  67. PlayFlavor(NPC, "voiceover/english/vegalys_keldrane/qey_catacomb03/keldrane_dialog007.mp3", "", "", 2840695325, 1197443138, Spawn)
  68. AddConversationOption(conversation, "I will.")
  69. StartConversation(conversation, NPC, Spawn, "I cannot solve this riddle until you speak with each of them. Please, return when you have done so.")
  70. end
  71. function Option6(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. local conversation = CreateConversation()
  74. PlayFlavor(NPC, "voiceover/english/vegalys_keldrane/qey_catacomb03/keldrane_dialog008.mp3", "", "", 171966234, 4214550407, Spawn)
  75. AddConversationOption(conversation, "Adun is angry that you sent his family out of the city to their deaths.", "Option7")
  76. AddConversationOption(conversation, "I have no time to unravel this.")
  77. StartConversation(conversation, NPC, Spawn, "Tell me what they said.")
  78. end
  79. function Option7(NPC, Spawn)
  80. FaceTarget(NPC, Spawn)
  81. local conversation = CreateConversation()
  82. PlayFlavor(NPC, "voiceover/english/vegalys_keldrane/qey_catacomb03/keldrane_dialog009.mp3", "", "", 2925967918, 334851667, Spawn)
  83. AddConversationOption(conversation, "Borthen mourns the loss of his betrothed, your daughter Verilys.", "Option8")
  84. AddConversationOption(conversation, "I have no time to unravel this.")
  85. StartConversation(conversation, NPC, Spawn, "Ah, so they perished? I deeply regret that decision, but all choices that day were filled with peril. If they stayed in the city and the Guard failed, they would have met no easier end. I grieve for his loss. What else did you learn?")
  86. end
  87. function Option8(NPC, Spawn)
  88. FaceTarget(NPC, Spawn)
  89. local conversation = CreateConversation()
  90. PlayFlavor(NPC, "voiceover/english/vegalys_keldrane/qey_catacomb03/keldrane_dialog010.mp3", "", "", 1769423545, 1065944833, Spawn)
  91. AddConversationOption(conversation, "I have no time to help you now.")
  92. AddConversationOption(conversation, "Vargon is filled with grief and madness - he said he remembers nothing.", "Option10")
  93. StartConversation(conversation, NPC, Spawn, "Verilys, Verilys - my beloved daughter! How could I have let her stay? And how could I see her go? She must have perished with Adun's daughters, in whose company I sent her forth. This fills me with unbearable pain! My only daughter! What of Vargon, to add to my sorrow?")
  94. end
  95. function Option9(NPC, Spawn)
  96. FaceTarget(NPC, Spawn)
  97. local conversation = CreateConversation()
  98. PlayFlavor(NPC, "voiceover/english/vegalys_keldrane/qey_catacomb03/keldrane_dialog011.mp3", "", "", 975350659, 3929544193, Spawn)
  99. AddConversationOption(conversation, "\"Keldrane means nothing to me. All that is left is pain.\"", "Option10")
  100. AddConversationOption(conversation, "\"All one brings to the world of the dead are one's emotions and thoughts.\"", "Option10")
  101. AddConversationOption(conversation, "I have no time to help you.")
  102. StartConversation(conversation, NPC, Spawn, "He remembers nothing? What did he say?")
  103. end
  104. function Option10(NPC, Spawn)
  105. FaceTarget(NPC, Spawn)
  106. local conversation = CreateConversation()
  107. PlayFlavor(NPC, "voiceover/english/vegalys_keldrane/qey_catacomb03/keldrane_dialog012.mp3", "", "", 3005512365, 2255906253, Spawn)
  108. AddConversationOption(conversation, "But why would he help the enemy?", "Option11")
  109. AddConversationOption(conversation, "Interesting idea. I must go now.")
  110. StartConversation(conversation, NPC, Spawn, "Alas, Vargon! I see now through the veil of years what I did not know before. Vargon lived for the Guard, even more than I did. When I ordered some citizens to leave Qeynos, he alone opposed me. Sending them away was tantamount to admitting failure, he said. A sign of my weakness as a leader.")
  111. end
  112. function Option11(NPC, Spawn)
  113. FaceTarget(NPC, Spawn)
  114. local conversation = CreateConversation()
  115. PlayFlavor(NPC, "voiceover/english/vegalys_keldrane/qey_catacomb03/keldrane_dialog013.mp3", "", "", 702686093, 1152570251, Spawn)
  116. AddConversationOption(conversation, "What happens now?", "Option12")
  117. AddConversationOption(conversation, "I have no time for this.")
  118. StartConversation(conversation, NPC, Spawn, "I suspect he did not think that we could fail, even if the enemy knew our strategy in advance. And we did not fail immediately, for the Guard is strong! He hoped to show me that I was wrong, but at a terrible cost.")
  119. end
  120. function Option14(NPC, Spawn)
  121. SetStepComplete(Spawn, VegalysKeldranesBetrayal, 4)
  122. FaceTarget(NPC, Spawn)
  123. local conversation = CreateConversation()
  124. PlayFlavor(NPC, "voiceover/english/vegalys_keldrane/qey_catacomb03/keldrane_dialog014.mp3", "", "", 743552938, 1449187099, Spawn)
  125. AddConversationOption(conversation, "Be at peace.")
  126. StartConversation(conversation, NPC, Spawn, "I must consider all my options. Thank you for bringing me this news. My spirit may rest now, more than it has been able to in the past.")
  127. end
  128. function offer(NPC, Spawn)
  129. OfferQuest(NPC, Spawn, VegalysKeldranesBetrayal)
  130. end
  131. function respawn(NPC)
  132. spawn(NPC)
  133. end