the_truth_is_out_there.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : the_truth_is_out_there.lua
  3. Script Purpose : Handles the quest, "The Truth is out There"
  4. Script Author : torsten
  5. Script Date : 19.07.2022
  6. Script Notes :
  7. Zone : Longshadow Alley
  8. Quest Giver : Captain L`Nek
  9. Preceded by : None
  10. Followed by : Silenced Speech
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "I need to speak with Imnat D'Vren, a secret informant to the Militia. He supposedly lives near the courtyard of Longshadow Alley.", 1, "Talk to Imnat D'Vren, a secret informant to the Militia. He is in a building to the Southwest of the Destroyed Knowledge Portal.", 11, 1380031)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I've spoken with Imnat.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "Imnat D'Vren, the informant, has given me the identity of the propagandist.")
  20. AddQuestStepChat(Quest, 2, "I should return to Captain L`Nek.", 1, "I need to let Captain L'Nek know that the Thexian is a person by the name of Kirs G'Viz.", 11, 1380010)
  21. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  22. end
  23. function QuestComplete(Quest, QuestGiver, Player)
  24. UpdateQuestStepDescription(Quest, 2, "I returned to Captain L`Nek with the news.")
  25. UpdateQuestTaskGroupDescription(Quest, 2, "I've let the Captain know that Kirs G'Viz is the one who's been spreading the propaganda.")
  26. UpdateQuestDescription(Quest, "I returned to Captain L'Nek and let him know what Imnat told me.")
  27. GiveQuestReward(Quest, Player)
  28. end
  29. function Accepted(Quest, QuestGiver, Player)
  30. FaceTarget(QuestGiver, Player)
  31. Dialog.New(QuestGiver, Player)
  32. Dialog.AddDialog("Excellent. You may not be completely worthless after all, sirrah. The Overlord tires of hearing about the Thexians, and wants this canker rooted out. So, listen carefully and do not force me to repeat myself: there is an informant named Imnat D'Vren, who discreetly plies his trade near the Central Courtyard. Tell him you seek the font of Thexian propaganda. Discover what he knows.")
  33. PlayFlavor(QuestGiver,"","","nod",0,0,Player)
  34. Dialog.AddVoiceover("voiceover/english/captain_l_nek/fprt_hood05/quests/captainlnek/lnek_x1_accept.mp3", 3738122891, 1112622069)
  35. Dialog.AddOption("At once.")
  36. Dialog.Start()
  37. end
  38. function Declined(Quest, QuestGiver, Player)
  39. -- Add dialog here for when the quest is declined
  40. end
  41. function Deleted(Quest, QuestGiver, Player)
  42. -- Remove any quest specific items here when the quest is deleted
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. QuestComplete(Quest, QuestGiver, Player)
  49. end
  50. end