DyymonaKVexx.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. --[[
  2. Script Name : SpawnScripts/Freeport/DyymonaKVexx.lua
  3. Script Author : premierio015
  4. Script Date : 2020.06.07 01:06:08
  5. Script Purpose : Offer Dark Elf Racial Questlines
  6. :
  7. --]]
  8. QUEST1 = 566
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, QUEST1)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. local conversation = CreateConversation()
  18. if GetRace(Spawn) == 1 then
  19. if not HasQuest(Spawn, QUEST1) and not HasCompletedQuest(Spawn, QUEST1) then
  20. AddConversationOption(conversation, "Are those the only choices?", "Option1")
  21. AddConversationOption(conversation, "The Overlord.", "Option2")
  22. AddConversationOption(conversation, "Queen Cristanos.", "Option2")
  23. AddConversationOption(conversation, "Talvus Thex.", "Talvus")
  24. StartConversation(conversation, NPC, Spawn, "I greet you, fellow child of Hate. But this is where our conversation must end, without knowledge of your allegiance. Do you bend your knee to Queen Cristanos, The Overlord, or Talvus Thex?")
  25. elseif GetQuestStep(Spawn, QUEST1) == 1 and GetQuestStep(Spawn, QUEST1) == 2 then
  26. PlayFlavor(NPC, "", "I was blessed with hate and cunning, not patience. You have agreed to kill Thexians and obtain Arasai zealot torture instruments in Longshadow Alley. Now, do it.", "", 1689589577, 4560189, Spawn)
  27. elseif GetQuestStep(Spawn, QUEST1) == 3 then
  28. Option5(NPC, Spawn)
  29. elseif not HasQuest(Spawn, QUEST2) and HasCompletedQuest(Spawn, QUEST1) then
  30. Option8(NPC, Spawn)
  31. end
  32. end
  33. end
  34. function Option1(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. local conversation = CreateConversation()
  37. AddConversationOption(conversation, "Queen Cristanos.", "Option2")
  38. AddConversationOption(conversation, "The Overlord.", "Option2")
  39. AddConversationOption(conversation, "Talvus Thex.", "Talvus")
  40. AddConversationOption(conversation, "None of your concern. Farewell.")
  41. StartConversation(conversation, NPC, Spawn, "The only ones that influence this conversation, yes.")
  42. end
  43. function Option2(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. local conversation = CreateConversation()
  46. AddConversationOption(conversation, "Yes, actually, I am.", "Option3")
  47. AddConversationOption(conversation, "No, I am not.", "Knowledge")
  48. StartConversation(conversation, NPC, Spawn, "Delicious. Let us continue then. Are you aware of the situation in Longshadow Alley?")
  49. end
  50. function Knowledge(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. local conversation = CreateConversation()
  53. PlayFlavor(NPC, "dyymona_k_vexx/freeport_combined/quest/racial/darkelf/dyymona_kvexx_004.mp3", "", "", 1720881107, 1177602499, Spawn)
  54. AddConversationOption(conversation, "Until?", "Knowledge2")
  55. StartConversation(conversation, NPC, Spawn, "Allow me to provide you with the knowledge, "..GetName(Spawn).." Longshadow Alley, the slum that our dear Overlord saw fit to designate for us Teir'Dal, became a hotbed of Thexians, particulary during the years of Neriak's selusion.")
  56. end
  57. function Knowledge2(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. local conversation = CreateConversation()
  60. PlayFlavor(NPC, "dyymona_k_vexx/freeport_combined/quest/racial/darkelf/dyymona_kvexx_005.mp3", "", "", 1685256981, 4197957080, Spawn)
  61. AddConversationOption(conversation, "The Overlord would never stand for that.", "Knowledge3")
  62. StartConversation(conversation, NPC, Spawn, "Until they proved to be a nuisance that could no longer be dismissed. During The Overlord's unfortunate absence, the Would-Be-Prince Talvus Thex came out of hiding and led his delusional caste of Thexians in a bid for the throne of Freeport.")
  63. end
  64. function Knowledge3(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. local conversation = CreateConversation()
  67. PlayFlavor(NPC, "dyymona_k_vexx/freeport_combined/quest/racial/darkelf/dyymona_kvexx_006.mp3", "", "", 3377812319, 220561527, Spawn)
  68. AddConversationOption(conversation, "But not all of them?", "Knowledge4")
  69. StartConversation(conversation, NPC, Spawn, "That is an understatement. They were depending on his death. Thankfully, that was not to be the situation. The Overlord returned victorious and immediately reestablished order. The Would-Be-Prince and the majority of his followers fled the city, choosing to cower within caves in Darklight Woods.")
  70. end
  71. function Knowledge4(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. local conversation = CreateConversation()
  74. PlayFlavor(NPC, "dyymona_k_vexx/freeport_combined/quest/racial/darkelf/dyymona_kvexx_007.mp3", "", "", 1471843234, 2678928120, Spawn)
  75. AddConversationOption(conversation, "Which is why you asked about my allegiance?", " Knowledge5")
  76. StartConversation(conversation, NPC, Spawn, "No. Those that were apprehended were first forced to labor, making vast improvements to the city of Freeport. Now that the construction is complete, they are being put to death. But there are still more Thexians hiding about.")
  77. end
  78. function Knowledge5(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. local conversation = CreateConversation()
  81. PlayFlavor(NPC, "dyymona_k_vexx/freeport_combined/quest/racial/darkelf/dyymona_kvexx_008.mp3", "", "", 1466260974, 1982510737, Spawn)
  82. AddConversationOption(conversation, "How can we do this, when they hide amongst us?", "Knowledge6")
  83. StartConversation(conversation, NPC, Spawn, "Precisely. They have long proved difficult to identify and remove due to their ability to hide amongst us loyal Teir'Dal. They are a threat and must be cut out!")
  84. end
  85. function Knowledge6(NPC, Spawn)
  86. FaceTarget(NPC, Spawn)
  87. local conversation = CreateConversation()
  88. PlayFlavor(NPC, "dyymona_k_vexx/freeport_combined/quest/racial/darkelf/dyymona_kvexx_009.mp3", "", "", 3175038054, 3023396310, Spawn)
  89. AddConversationOption(conversation, "I am a true Teir'Dal and superior child of Hate!", "Option4")
  90. AddConversationOption(conversation, "Flattery will get you nowhere. Farewell.")
  91. StartConversation(conversation, NPC, Spawn, "With an uncaring amount of error. It is more important that we remove the Thexian disease from within Longshadow Alley. I believe that you are the perfect Teir'Dal for this job, or are you not the superior child of Hate that you appear to be?")
  92. end
  93. function Option3(NPC, Spawn)
  94. FaceTarget(NPC, Spawn)
  95. local conversation = CreateConversation()
  96. AddConversationOption(conversation, "I am a true Teir'Dal and superior child of Hate!", "Option4")
  97. AddConversationOption(conversation, "Flattery will get you nowhere. Farewell.")
  98. StartConversation(conversation, NPC, Spawn, "Then we may cut to the meat of this inquiry. The Thexian disease must be removed from within Longshadow Alley. I believe that you are the perfect Teir'Dal for this job, or are you not the superior child of Hate that you appear to be?")
  99. end
  100. function Option4(NPC, Spawn)
  101. FaceTarget(NPC, Spawn)
  102. local conversation = CreateConversation()
  103. AddConversationOption(conversation, "Arasai and Thexians? This should be interesting.", "offer")
  104. AddConversationOption(conversation, "Arasai and Thexians? No way!")
  105. StartConversation(conversation, NPC, Spawn, "Delicious. Enter Longshadow Alley and kill as many Thexians as you find. And while you are there, bring me back whatever torture instruments the Arasai zealots are using in their Thexian inquiries. Their use will become clear, later.")
  106. end
  107. function Option5(NPC, Spawn)
  108. FaceTarget(NPC, Spawn)
  109. local conversation = CreateConversation()
  110. PlayFlavor(NPC, "dyymona_k_vexx/freeport_combined/quest/racial/darkelf/dyymona_kvexx_012.mp3", "", "", 1391663293, 2393163292, Spawn)
  111. AddConversationOption(conversation, "What's that?", "Option6")
  112. StartConversation(conversation, NPC, Spawn, "Oh, how you reek of death and torment, Ukaop. I am almost jealous of you! But don't let the fun you just experienced overshadow the lesson to be learned.")
  113. end
  114. function Option6(NPC, Spawn)
  115. FaceTarget(NPC, Spawn)
  116. local conversation = CreateConversation()
  117. PlayFlavor(NPC, "dyymona_k_vexx/freeport_combined/quest/racial/darkelf/dyymona_kvexx_013.mp3", "", "", 917183823, 3670205303, Spawn)
  118. AddConversationOption(conversation, "Okay...", "Option7")
  119. StartConversation(conversation, NPC, Spawn, "We Teir'Dal, by Innoruuk's great design, are deceitful, opportunistic and power hungry. These are useful and admirable traits in all of us, but they must be tempered with patience and a measure of the consequences, both guaranteed and possible.")
  120. end
  121. function Option7(NPC, Spawn)
  122. FaceTarget(NPC, Spawn)
  123. local conversation = CreateConversation()
  124. PlayFlavor(NPC, "dyymona_k_vexx/freeport_combined/quest/racial/darkelf/dyymona_kvexx_014.mp3", "", "", 433459849, 3163112108, Spawn)
  125. AddConversationOption(conversation, "Oh! You're right.", "Complete1")
  126. StartConversation(conversation, NPC, Spawn, "The Would-Be-Prince and his delusional caste of Thexians failed to do this. They made a grab for power, revealing themselves as a threat to both The Overlord and to Queen Cristanos of Neriak, while they were still vulnerable.")
  127. end
  128. function Option8(NPC, Spawn)
  129. FaceTarget(NPC, Spawn)
  130. local conversation = CreateConversation()
  131. PlayFlavor(NPC, "dyymona_k_vexx/freeport_combined/quest/racial/darkelf/dyymona_kvexx_016.mp3", "", "", 4167407616, 1182222079, Spawn)
  132. AddConversationOption(conversation, "I did, yes.", "Option9")
  133. AddConversationOption(conversation, "A few may have run into my blade.", "Option9")
  134. StartConversation(conversation, NPC, Spawn, "Doubtless, you ran into some of those flittering upstarts known as Arasai, within Longshadow Alley.")
  135. end
  136. function Option9(NPC, Spawn)
  137. FaceTarget(NPC, Spawn)
  138. local conversation = CreateConversation()
  139. PlayFlavor(NPC, "dyymona_k_vexx/freeport_combined/quest/racial/darkelf/dyymona_kvexx_017.mp3", "", "", 3264193808, 1800689916, Spawn)
  140. AddConversationOption(conversation, "That could be fun.", "Option10")
  141. StartConversation(conversation, NPC, Spawn, "That is to be expected, "..GetName(Spawn).."! I can't tell you how many times I've been tempted to pluck their wings off, just to watch them squirm.")
  142. end
  143. function Option10(NPC, Spawn)
  144. FaceTarget(NPC, Spawn)
  145. local conversation = CreateConversation()
  146. PlayFlavor(NPC, "dyymona_k_vexx/freeport_combined/quest/racial/darkelf/dyymona_kvexx_018.mp3", "", "", 3983587076, 1125050295, Spawn)
  147. AddConversationOption(conversation, "On that, we agree!")
  148. AddConversationOption(conversation, "Not even Innoruuk?")
  149. StartConversation(conversation, NPC, Spawn, "It escapes my web how Queen Cristanos favors them to her own kin. Yes, she made them, but we are the superior species! There are none above the Teir'Dal!")
  150. end
  151. function Talvus(NPC, Spawn)
  152. FaceTarget(NPC, Spawn)
  153. PlayFlavor(NPC, "", "Turn around and put heel to pavestones, immediately!", "", 1689589577, 4560189, Spawn)
  154. end
  155. function offer(NPC, Spawn)
  156. OfferQuest(NPC, Spawn, QUEST1)
  157. end
  158. function Complete1(NPC, Spawn)
  159. FaceTarget(NPC, Spawn)
  160. SetStepComplete(Spawn, QUEST1, 3)
  161. local conversation = CreateConversation()
  162. PlayFlavor(NPC, "dyymona_k_vexx/freeport_combined/quest/racial/darkelf/dyymona_kvexx_015.mp3", "", "", 3400123354, 2823025646, Spawn)
  163. AddConversationOption(conversation, "What more do you have in mind?", "Option8")
  164. AddConversationOption(conversation, "I'm sure we will, but it will have to wait.")
  165. StartConversation(conversation, NPC, Spawn, "Of course I am. It's what drew you to me. Together, we will accomplish much in this great city!")
  166. end