deliver_help_to_janus_fieri.lua 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. --[[
  2. Script Name : deliver_help_to_janus_fieri.lua
  3. Script Purpose : Handles the quest, "Deliver Help to Janus Fieri"
  4. Script Author : torsten\\Dorbin
  5. Script Date : 16.07.2022
  6. Script Notes :
  7. Zone : Beggar's Court
  8. Quest Giver : Marcus Cantarius
  9. Preceded by : Marcus Cantarius's Monumental Hatred -- Not required
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "Deliver note to Janus Fieri.", 1, "I need to deliver this note to Janus Fieri at the Crossroads in the Commonlands.", 75, 330171)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. UpdateQuestZone(Quest,"The Commonlands")
  17. end
  18. function Step1Complete(Quest, QuestGiver, Player)
  19. UpdateQuestStepDescription(Quest, 1, "Located Janus Fieri.")
  20. UpdateQuestTaskGroupDescription(Quest, 1, "I found Janus Fieri and delivered Marcus' note.")
  21. AddQuestStep(Quest, 2, "Investigate the nomad's camp and look for evidence.", 1, "Janus Fieri asked me to investigate the nomad's camp to find any documents left behind by the victim.", 11)
  22. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  23. end
  24. function Step2Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 2, "I found a tattered journal.")
  26. UpdateQuestTaskGroupDescription(Quest, 2, "I've found a tattered journal in the nomad's camp.")
  27. AddQuestStepChat(Quest, 3, "I need to take this journal to Janus Fieri.", 1, "I should return to Janus in the Crossroads to deliver the journal.", 75, 330171)
  28. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  29. end
  30. function Step3Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 3, "I gave Janus Fieri the tattered journal.")
  32. UpdateQuestTaskGroupDescription(Quest, 3, "I gave Janus Fieri the tattered journal.")
  33. AddQuestStepKill(Quest, 4, "I need to kill ten Bloodskull lumberjacks.", 10, 100, "I must avenge Janus Fieri's brother by slaying his killers.", 611, 330125, 331138)
  34. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  35. end
  36. function Step4Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 4, "I have avenged Janus Fieri's brother.")
  38. UpdateQuestTaskGroupDescription(Quest, 4, "I have avenged Janus Fieri's brother.")
  39. AddQuestStepChat(Quest, 5, "I should return to Janus.", 1, "I must tell Janus Fieri that his brother has been avenged.", 11, 330171)
  40. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  41. end
  42. function QuestComplete(Quest, QuestGiver, Player)
  43. UpdateQuestStepDescription(Quest, 5, "I've spoken with Janus Fieri.")
  44. UpdateQuestTaskGroupDescription(Quest, 5, "I told Janus Fieri that his brother was avenged.")
  45. UpdateQuestDescription(Quest, "I've delivered Marcus' note to Janus and helped Janus with his murder investigation. Turns out he was investigating his own brother's death. It was a pleasure to help him take vengeance.")
  46. GiveQuestReward(Quest, Player)
  47. end
  48. function Accepted(Quest, QuestGiver, Player)
  49. FaceTarget(QuestGiver, Player)
  50. Dialog.New(QuestGiver, Player)
  51. Dialog.AddDialog("Thanks, friend. I was waiting for someone like you to show up. No need to report back to me. Janus'll take care of you.")
  52. Dialog.AddVoiceover("voiceover/english/marcus_cantarius/fprt_hood04/quests/marcuscantarius/marcus_cantarius2_003.mp3", 2562832727, 2431599798)
  53. Dialog.AddOption("Alright.")
  54. Dialog.Start()
  55. end
  56. function Declined(Quest, QuestGiver, Player)
  57. -- Add dialog here for when the quest is declined
  58. end
  59. function Deleted(Quest, QuestGiver, Player)
  60. -- Remove any quest specific items here when the quest is deleted
  61. end
  62. function Reload(Quest, QuestGiver, Player, Step)
  63. if Step == 1 then
  64. QuestComplete(Quest, QuestGiver, Player)
  65. end
  66. end