9
3

silenced_speech.lua 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : silenced_speech.lua
  3. Script Purpose : Handles the quest, "Silenced Speech"
  4. Script Author : torsten
  5. Script Date : 20.07.2022
  6. Script Notes :
  7. Zone : Longshadow Alley
  8. Quest Giver : Captain L`Nek
  9. Preceded by : The Truth is out There
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepKill(Quest, 1, "Slay Dervish crooks in the Sprawl until Kirs' signet ring is found.", 1, 30, " I need to find out which one of the Dervish crooks is Kirs. I'll need to slay all of the crooks until I find something indentifying him... or her.", 596, 1260000)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. UpdateQuestZone(Quest,"Sprawl")
  17. end
  18. function Step1Complete(Quest, QuestGiver, Player)
  19. UpdateQuestStepDescription(Quest, 1, " I've found a signet ring on who I believe to be Kirs.")
  20. UpdateQuestTaskGroupDescription(Quest, 1, "I found a ring with the name Kirs on it. I'm pretty certain this Dervish crook was the one causing all of these problems.")
  21. UpdateQuestZone(Quest,"Longshadow Alley")
  22. AddQuestStepChat(Quest, 2, "Captain L'Nek should know the deed is done.", 1, "I should let Captain L'Nek know that Kirs won't be a problem any longer.", 11, 1380010)
  23. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  24. end
  25. function QuestComplete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 2, "I returned to Captain L`Nek with the news.")
  27. UpdateQuestTaskGroupDescription(Quest, 2, "The Captain didn't necessarily give me the reward I was expecting for helping him with Kirs.")
  28. UpdateQuestDescription(Quest, "The Captain didn't necessarily give me the reward I was expecting for helping him with Kirs. I guess I shouldn't have expected much.")
  29. GiveQuestReward(Quest, Player)
  30. end
  31. function Accepted(Quest, QuestGiver, Player)
  32. FaceTarget(QuestGiver, Player)
  33. Dialog.New(QuestGiver, Player)
  34. Dialog.AddDialog("That's my worthy servant! A gangrenous limb must be cut off before it infects the rest of the body. If we do not want this traitorous sentiment to spread, we must ... cut ... Kirs G'Viz. You will find him hiding among the Dervish crooks in the Sprawl, wearing some pathetic disguise. Go to the Sprawl and kill until you find the one who is Kirs G'Viz. I will pretend this conversation did not occur.")
  35. PlayFlavor(QuestGiver,"","","shakefist",0,0,Player)
  36. Dialog.AddVoiceover("voiceover/english/captain_l_nek/fprt_hood05/quests/captainlnek/lnek_x2_accept.mp3", 346613900, 1400494910)
  37. Dialog.AddOption("What conversation?...")
  38. Dialog.Start()
  39. end
  40. function Declined(Quest, QuestGiver, Player)
  41. -- Add dialog here for when the quest is declined
  42. end
  43. function Deleted(Quest, QuestGiver, Player)
  44. -- Remove any quest specific items here when the quest is deleted
  45. end
  46. function Reload(Quest, QuestGiver, Player, Step)
  47. if Step == 1 then
  48. Step1Complete(Quest, QuestGiver, Player)
  49. elseif Step == 2 then
  50. QuestComplete(Quest, QuestGiver, Player)
  51. end
  52. end