9
3

YaranaDVen.lua 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. --[[
  2. Script Name : SpawnScripts/LongshadowAlley/YaranaDVen.lua
  3. Script Purpose : Yarana D'Ven
  4. Script Author : torsten//Dorbin
  5. Script Date : 2022.07.18
  6. Script Notes : Added Dialog/VOs/Level & Faction checks -16/10/2023 Dorbin
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local NoRivalsForYarana = 5675
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, NoRivalsForYarana)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. if GetFactionAmount(Spawn,12) <0 then
  18. FaceTarget(NPC, Spawn)
  19. PlayFlavor(NPC, "","","shakefist",0,0, Spawn)
  20. else
  21. Dialog1(NPC,Spawn)
  22. end
  23. end
  24. function Dialog1(NPC,Spawn)
  25. FaceTarget(NPC, Spawn)
  26. Dialog.New(NPC, Spawn)
  27. Dialog.AddDialog("Do not waste my precious time by begging for attention.")
  28. PlayFlavor(NPC, "","","no",0,0, Spawn)
  29. Dialog.AddVoiceover("voiceover/english/yarana_d_ven/fprt_hood05/quests/yaranadven/yarana_dven.mp3",1141324184,3432577979)
  30. if CanReceiveQuest(Spawn, NoRivalsForYarana) then
  31. Dialog.AddOption("Oh, sorry to bother you.", "Dialog1a")
  32. elseif GetQuestStepProgress(Spawn, NoRivalsForYarana)==2 then
  33. Dialog.AddOption("I found some of the ingredients you requested. Is this enough?", "Dialog2")
  34. elseif GetQuestStepProgress(Spawn, NoRivalsForYarana)==4 then
  35. Dialog.AddOption("These ingredients were hard to come by. Is this enough?", "Dialog3")
  36. elseif GetQuestStepProgress(Spawn, NoRivalsForYarana)==6 then
  37. Dialog.AddOption("Here. The deed is done... and I am done with all of this!", "Dialog4")
  38. end
  39. Dialog.AddOption("I wasn't even talking to you.")
  40. Dialog.Start()
  41. end
  42. function Dialog1a(NPC,Spawn)
  43. FaceTarget(NPC, Spawn)
  44. Dialog.New(NPC, Spawn)
  45. Dialog.AddDialog("Wait! Are you looking for work? My husband is an official in Longshadow. If you do as I ask, you won't find yourself on the wrong side of the militia, if you know what I mean...")
  46. Dialog.AddVoiceover("voiceover/english/yarana_d_ven/fprt_hood05/quests/yaranadven/yarana_dven000.mp3",1434779341,1687984253)
  47. Dialog.AddOption("What is it you need?", "Dialog1b")
  48. Dialog.AddOption("Seems like your husband has his hands full!","Pout")
  49. Dialog.AddOption("I don't want ANYTHING to do with you!")
  50. Dialog.Start()
  51. end
  52. function Pout (NPC,Spawn)
  53. PlayFlavor(NPC, "","","pout",0,0, Spawn)
  54. end
  55. function Dialog1b(NPC,Spawn)
  56. FaceTarget(NPC, Spawn)
  57. Dialog.New(NPC, Spawn)
  58. Dialog.AddDialog("I cannot risk being overheard. Come closer and I will whisper to you what I need. You must write these instructions down in your journal. Do what I say, and I will reward you.")
  59. Dialog.AddVoiceover("voiceover/english/yarana_d_ven/fprt_hood05/quests/yaranadven/yarana_dven001.mp3",4193738982,2153468807)
  60. PlayFlavor(NPC, "","","snicker",0,0, Spawn)
  61. Dialog.AddOption("It sounds like I don't have a choice.", "OfferQuest1")
  62. Dialog.AddOption("I don't want ANYTHING to do with you!")
  63. Dialog.Start()
  64. end
  65. function OfferQuest1(NPC,Spawn)
  66. if CanReceiveQuest(Spawn, NoRivalsForYarana) then
  67. OfferQuest(NPC, Spawn, NoRivalsForYarana)
  68. end
  69. end
  70. function Dialog2(NPC,Spawn)
  71. SetStepComplete(Spawn,NoRivalsForYarana,2)
  72. FaceTarget(QuestGiver, Player)
  73. Dialog.New(QuestGiver, Player)
  74. Dialog.AddDialog("Excellent. It seems one of my rivals is harvesting these things for revolutionary necromantic research--research I wish to halt. This brings me to your next task...")
  75. Dialog.AddVoiceover("voiceover/english/yarana_d_ven/fprt_hood05/quests/yaranadven/yarana_dven002.mp3",1415851457,630090694)
  76. Dialog.AddOption("Fine. Here is my journal. Write down what is needed.")
  77. Dialog.Start()
  78. end
  79. function Dialog3(NPC,Spawn)
  80. FaceTarget(QuestGiver, Player)
  81. Dialog.New(QuestGiver, Player)
  82. Dialog.AddDialog("Her research nears completion. I must put an end to her once and for all. She cannot surpass my power! I have one last task for you.")
  83. Dialog.AddVoiceover("voiceover/english/yarana_d_ven/fprt_hood05/quests/yaranadven/yarana_dven004.mp3",2781035509,2447510323)
  84. PlayFlavor(NPC, "","","stare",0,0, Spawn)
  85. Dialog.AddOption("You need me to end her and be done with all this?","Dialog3a")
  86. Dialog.Start()
  87. end
  88. function Dialog3a(NPC,Spawn)
  89. SetStepComplete(Spawn,NoRivalsForYarana,4)
  90. FaceTarget(QuestGiver, Player)
  91. Dialog.New(QuestGiver, Player)
  92. Dialog.AddDialog("I'll deal with her myself. But she's never alone. She often employs bodyguards. I need you to make the guards question their relationship with that horrible wretch. This note tells you where to find them.")
  93. Dialog.AddVoiceover("voiceover/english/yarana_d_ven/fprt_hood05/quests/yaranadven/yarana_dven005.mp3",4178387219,3896524803)
  94. PlayFlavor(NPC, "","","no",0,0, Spawn)
  95. Dialog.AddOption("Alright. I'll deal with them...")
  96. Dialog.Start()
  97. end
  98. function Dialog4(NPC,Spawn)
  99. SetStepComplete(Spawn,NoRivalsForYarana,6)
  100. FaceTarget(QuestGiver, Player)
  101. Dialog.New(QuestGiver, Player)
  102. Dialog.AddDialog("Yes! With those bodyguards out of the way, nothing can protect her! I'll take her research, and she'll no longer plague my life or consort with my husband. Take this as a token of my thanks.")
  103. Dialog.AddVoiceover("voiceover/english/yarana_d_ven/fprt_hood05/quests/yaranadven/yarana_dven006.mp3",4178387219,3896524803)
  104. PlayFlavor(NPC, "","","yes",0,0, Spawn)
  105. Dialog.AddOption("Finally! Thanks, but I hope we see less of eachother in the future.")
  106. Dialog.Start()
  107. end