9
3

Adun.lua 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. --[[
  2. Script Name : SpawnScripts/CryptBetrayal/Adun.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.10.15 02:10:09
  5. Script Purpose :
  6. :
  7. --]]
  8. local VegalysKeldranesBetrayal = 5371
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. if GetQuestStep(Spawn, VegalysKeldranesBetrayal) == 1 then
  14. local conversation = CreateConversation()
  15. PlayFlavor(NPC, "voiceover/english/adun/qey_catacomb03/adun_dialog000.mp3", "", "", 356482937, 2267048198, Spawn)
  16. AddConversationOption(conversation, "Who are you?", "Option1")
  17. AddConversationOption(conversation, "I do not meddle with the dead.")
  18. StartConversation(conversation, NPC, Spawn, "There is no rest amongst the dead and those who seem dead. A miserable existence.")
  19. else
  20. PlayFlavor(NPC, "", "", "hail", 0, 0, Spawn)
  21. end
  22. end
  23. function Option1(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. local conversation = CreateConversation()
  26. PlayFlavor(NPC, "voiceover/english/adun/qey_catacomb03/adun_dialog001.mp3", "", "", 865378902, 137121651, Spawn)
  27. AddConversationOption(conversation, "What happened?", "Option2")
  28. AddConversationOption(conversation, "That is unfortunate, but I have no time for this.")
  29. StartConversation(conversation, NPC, Spawn, "I'm Adun the Unfortunate, former lieutenant under Captain Vegalys Keldrane. We were like brothers, Keldrane and I. Until the War, that is.")
  30. end
  31. function Option2(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. local conversation = CreateConversation()
  34. PlayFlavor(NPC, "voiceover/english/adun/qey_catacomb03/adun_dialog002.mp3", "", "", 1068027381, 4022019359, Spawn)
  35. AddConversationOption(conversation, "How do you know he is to blame?", "Option3")
  36. AddConversationOption(conversation, "You blame him for your family's deaths.", "Option3")
  37. AddConversationOption(conversation, "I have no time to help you.")
  38. StartConversation(conversation, NPC, Spawn, "Keldrane sent my wife and daughters out of the city to certain death. He claimed to be protecting them, saving them from the pestilence sweeping the lands. I learned of their deaths in the plague mere hours before my own death.")
  39. end
  40. function Option3(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. local conversation = CreateConversation()
  43. PlayFlavor(NPC, "voiceover/english/adun/qey_catacomb03/adun_dialog003.mp3", "", "", 430011699, 748481122, Spawn)
  44. AddConversationOption(conversation, "You sound bitter; did you betray him?", "Option4")
  45. AddConversationOption(conversation, "You are indeed unfortunate.")
  46. StartConversation(conversation, NPC, Spawn, "Keldrane is to blame, may he rot forever. My family's suffering was nothing to him, the lives of the citizens were nothing. Everything Keldrane did was for the glory of his own family. He rose in power on the backbones of stout-hearted men like me, who trusted him.")
  47. end
  48. function Option4(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. local conversation = CreateConversation()
  51. PlayFlavor(NPC, "voiceover/english/adun/qey_catacomb03/adun_dialog004.mp3", "", "", 1124379121, 1005458113, Spawn)
  52. AddConversationOption(conversation, "Do you know who might have betrayed him?", "Option5")
  53. AddConversationOption(conversation, "I'll leave now.")
  54. StartConversation(conversation, NPC, Spawn, "Betray him? And become what he was - a miserable leader and a sorrier excuse for a Guard Captain? No, whatever his fate, I had no hand in it -- much as I now regret that he died before I could tell him how my family died.")
  55. end
  56. function Option5(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. local conversation = CreateConversation()
  59. PlayFlavor(NPC, "voiceover/english/adun/qey_catacomb03/adun_dialog005.mp3", "", "", 1652098263, 1145272387, Spawn)
  60. AddConversationOption(conversation, "Who are they?", "Option6")
  61. AddConversationOption(conversation, "I've had enough of this for now.")
  62. StartConversation(conversation, NPC, Spawn, "Keldrane made many enemies amongst his former friends. My spirit needs rest, but his bitterness keeps me here. If you find who betrayed Keldrane, you also set me free, so I am eager to help. Why don't you speak with Vargon? Or with Borthen?")
  63. end
  64. function Option6(NPC, Spawn)
  65. SetStepComplete(Spawn, VegalysKeldranesBetrayal, 1)
  66. FaceTarget(NPC, Spawn)
  67. local conversation = CreateConversation()
  68. PlayFlavor(NPC, "voiceover/english/adun/qey_catacomb03/adun_dialog006.mp3", "", "", 2119328697, 497852443, Spawn)
  69. AddConversationOption(conversation, "I will do as you suggest.")
  70. AddConversationOption(conversation, "No, thank you.")
  71. StartConversation(conversation, NPC, Spawn, "Vargon thought Keldrane could do no wrong, to his own similar misfortune. I hear his spirit, lost and confused, abandoned as we all were when Keldrane died. Speak with Vargon about the day we drew our last breaths, side by side. Borthen was another of our closest friends; I sense his spirit in this cursed lair, too.")
  72. end
  73. function respawn(NPC)
  74. spawn(NPC)
  75. end