ImpeliaAbettus.lua 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/ImpeliaAbettus.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.02.18 09:02:26
  5. Script Purpose :
  6. :
  7. --]]
  8. ZarvonLegacy = 446
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, ZarvonLegacy)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. PlayFlavor(NPC, "voiceover/english/impelia_abettus/commonlands/qst_impeliaabettus.mp3", "", "", 1488175295, 2563794, Spawn)
  15. conversation = CreateConversation()
  16. if not HasQuest(Spawn, ZarvonLegacy) and not HasCompletedQuest(Spawn, ZarvonLegacy) then
  17. AddConversationOption(conversation, "What disease have you contracted?", "dlg1")
  18. end
  19. AddConversationOption(conversation, "Thanks for the warning.")
  20. StartConversation(conversation, NPC, Spawn, "Please. Don't come near me. I'm very sick right now, and I don't want to harm anyone else. Let me just pass. In peace.")
  21. end
  22. function respawn(NPC)
  23. end
  24. function dlg1(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. conversation = CreateConversation()
  27. AddConversationOption(conversation, "What were you originally seeking?", "dlg2")
  28. AddConversationOption(conversation, "What was this other threat?", "dlg7")
  29. AddConversationOption(conversation, "I don't have time for the feverish ravings of the mortally ill. Begone, leper.")
  30. StartConversation(conversation, NPC, Spawn, "There ... maybe I can talk for a few minutes without coughing up a lung. I don't know what I have, but I know where I got it. The irony is that I was looking for information about the source of one threat, and wound up learning more about a completely different, yet just as deadly, menace.")
  31. end
  32. function dlg2(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. conversation = CreateConversation()
  35. AddConversationOption(conversation, "So what you're saying is that he was making zombies?", "dlg3")
  36. StartConversation(conversation, NPC, Spawn, "While I was pursuing my original assignment, I came across an old manuscript that I traced back to being penned by Zarvonn, the Mad Mage. It took me a great while to translate it, but it seems he was researching how to reanimate dead bodies using the flesh of others.")
  37. end
  38. function dlg3(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. conversation = CreateConversation()
  41. AddConversationOption(conversation, "What do you mean by first hand experience?", "dlg4")
  42. StartConversation(conversation, NPC, Spawn, "I'm not too sure about that anymore. I think he was trying to make something different, but wound up using Necromancy rather than whatever other force he was using to create his original versions. In his research, he was using specimens that already existed, but weren't undead. I can attest to that from first hand experience.")
  43. end
  44. function dlg4(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. conversation = CreateConversation()
  47. AddConversationOption(conversation, "You mean the Dark Elves allowed someone to build a castle in their forest?", "dlg5")
  48. StartConversation(conversation, NPC, Spawn, "I tracked down where he found his original test subjects, and it led me into the Nektulos Forest. It seems the ''golems'' he was originally using were coming from a mysterious manor, more a castle, actually. I wasn't able to find out too much about the origins of the place, but it surely wasn't Teir'Dal in origin.")
  49. end
  50. function dlg5(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. conversation = CreateConversation()
  53. AddConversationOption(conversation, "Why so?", "dlg6")
  54. StartConversation(conversation, NPC, Spawn, "There's a rather lengthy story to the whole place, but I'm not sure what to believe anymore, considering what I saw in there. Apparently, the place is called Nektropos Castle, and was originally built by someone named Everling. This was so long ago that the facts have been lost through time. Maybe some of the Teir'Dal that live in that dark forest might know more, but I already know more than I want to.")
  55. end
  56. function dlg6(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. conversation = CreateConversation()
  59. AddConversationOption(conversation, "I'm interested in learning more about this Zarvonn you mentioned.", "dlg7")
  60. AddConversationOption(conversation, "I'd like to track down this tower you mentioned. Where can I find these nomads?", "offer")
  61. StartConversation(conversation, NPC, Spawn, "I wasn't able to find out if Zarvonn ever moved to Nektropos Castle, but if he did, he'd be dead by now. That place is crawling with golems, and I'm certain malevolent spirits roam those halls. I don't know if my sickness came from those golems, the spirits, or even something more ... frightening. Look, I don't want to talk about this anymore. If my benefactors want to know more about Zarvonn's tower, they can go speak with the nomads.")
  62. end
  63. function dlg7(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. conversation = CreateConversation()
  66. AddConversationOption(conversation, "What happened to him?", "dlg8")
  67. StartConversation(conversation, NPC, Spawn, "I have been ... commissioned ... to find out what happened to Zarvonn, the Mad Mage. Several hundred years ago, before Necromancy was widely accepted as a scholarly pursuit, Zarvonn explored the mysteries of the dead. As a matter of fact, much of his initial research is still being taught at the Academy of Arcane Sciences.")
  68. end
  69. function dlg8(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. conversation = CreateConversation()
  72. AddConversationOption(conversation, "Did he ever take his revenge out on Freeport?", "dlg9")
  73. StartConversation(conversation, NPC, Spawn, "He was kicked out of the Academy for his practices and vowed revenge upon all of Freeport. He ventured out into the Commonlands and continued his research, taking up residence in a tower made from bone. As time went on, he eventually remodeled the tower into a more contemporary design, one fashioned from old stones he specially selected.")
  74. end
  75. function dlg9(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. conversation = CreateConversation()
  78. AddConversationOption(conversation, "So he wasn't behind the raising of the undead?", "dlg10")
  79. StartConversation(conversation, NPC, Spawn, "Not exactly. A hundred years ago, undead started appearing in much greater frequency in the Commonlands. This alarmed the Academy to the point that they convinced the Militia to stop his threat by force. When they arrived at his tower, he was gone. The story goes, that when they searched the place, they found evidence proving he had been gone for a number of decades.")
  80. end
  81. function dlg10(NPC, Spawn)
  82. FaceTarget(NPC, Spawn)
  83. conversation = CreateConversation()
  84. AddConversationOption(conversation, "Who are these benefactors you're referring to and why do they care?", "dlg11")
  85. StartConversation(conversation, NPC, Spawn, "Or so the Academy believed ... they just wrote it off to the undead venturing out from the Kithicor Forest. There was once a forest to the west of the Commonlands before the Shattering. Now that a decade has passed since the Shattering ended, my... benefactors... wish to continue their research into the mysterious disappearance of Zarvonn.")
  86. end
  87. function dlg11(NPC, Spawn)
  88. FaceTarget(NPC, Spawn)
  89. conversation = CreateConversation()
  90. AddConversationOption(conversation, "Oh. Ummm... perhaps we could just talk about why they care about this Zarvonn guy?", "dlg12")
  91. StartConversation(conversation, NPC, Spawn, "It would be best if I didn't mention them. The less you know, the safer you are. I hate them with a seething passion, and if I still had my strength I'd slit every one of their throats ... who am I kidding ... I'm powerless against them. They own me more than any thrall could ever be owned.")
  92. end
  93. function dlg12(NPC, Spawn)
  94. FaceTarget(NPC, Spawn)
  95. conversation = CreateConversation()
  96. AddConversationOption(conversation, "Have you found any truth to this story?", "dlg13")
  97. StartConversation(conversation, NPC, Spawn, "Yes, back to what I was saying. They feel that Zarvonn is still around ... somewhere. According to the information I was given, they think there is truth to his promise, and that he will return. The recent return of the undead is making them think he's still alive and is about to follow through with his vow.")
  98. end
  99. function dlg13(NPC, Spawn)
  100. FaceTarget(NPC, Spawn)
  101. conversation = CreateConversation()
  102. AddConversationOption(conversation, "What do the nomads have to do with this tale?", "dlg14")
  103. StartConversation(conversation, NPC, Spawn, "I found an old manuscript of his that detailed his attempts at reanimating dead bodies, which ultimately led me to a dark, dark place. Unfortunately, it was a false lead. All I gained from that place was this wasting sickness. But I do believe the nomads may know more.")
  104. end
  105. function dlg14(NPC, Spawn)
  106. FaceTarget(NPC, Spawn)
  107. conversation = CreateConversation()
  108. AddConversationOption(conversation, "You mentioned a couple of times that you found something else. What was that?", "dlg2")
  109. AddConversationOption(conversation, "I'd like to pick up where you left off. Where can I find these nomads?", "offer")
  110. StartConversation(conversation, NPC, Spawn, "The nomads have been in the Commonlands longer than anyone can remember, at least four hundred years, according to my research. I found an old scroll that hinted that they may have come from the Thundering Steppes. Their oral tradition of history through story telling may reveal more. I have no plans on pursuing this matter anymore, though. I accept my fate, and don't expect to leave this tower until I've taken my final breath.")
  111. end
  112. function offer(NPC, Spawn)
  113. FaceTarget(NPC, Spawn)
  114. OfferQuest(NPC, Spawn, ZarvonLegacy)
  115. end