deliver_help_to_janus_fieri.lua 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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
  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
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. 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)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "Located Janus Fieri.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I found Janus Fieri and delivered Marcus' note.")
  19. AddQuestStep(Quest, 2, "Investigate the nomad's camp and find the journal.", 1, "Investigate the nomad's camp in the Commonlands and find the journal.", 11)
  20. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  21. end
  22. function Step2Complete(Quest, QuestGiver, Player)
  23. UpdateQuestStepDescription(Quest, 2, "I found the journal.")
  24. UpdateQuestTaskGroupDescription(Quest, 2, "I found the journal in a stack of books.")
  25. AddQuestStepChat(Quest, 3, "I should return to Janus.", 1, "I should return to Janus in the Crossroads to deliver the journal.", 75, 330171)
  26. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  27. end
  28. function Step3Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 3, "I returned to Janus.")
  30. UpdateQuestTaskGroupDescription(Quest, 3, "I returned to Janus in the Crossroads and delivered the journal.")
  31. AddQuestStepKill(Quest, 4, "I need to kill ten Bloodskull lumberjacks.", 10, 100, "I need to kill ten Bloodskull lumberjacks in theCommonlands.", 611, 330125, 331138)
  32. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  33. end
  34. function Step4Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 4, "I killed the Bloodskull lumberjacks.")
  36. UpdateQuestTaskGroupDescription(Quest, 4, "I killed the Bloodskull lumberjacks in the Commonlands.")
  37. AddQuestStepChat(Quest, 5, "I should return to Janus.", 1, "I should return to Janus in the Crossroads.", 75, 330171)
  38. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  39. end
  40. function QuestComplete(Quest, QuestGiver, Player)
  41. 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.")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Accepted(Quest, QuestGiver, Player)
  45. -- Add dialog here for when the quest is accepted
  46. end
  47. function Declined(Quest, QuestGiver, Player)
  48. -- Add dialog here for when the quest is declined
  49. end
  50. function Deleted(Quest, QuestGiver, Player)
  51. -- Remove any quest specific items here when the quest is deleted
  52. end
  53. function Reload(Quest, QuestGiver, Player, Step)
  54. if Step == 1 then
  55. QuestComplete(Quest, QuestGiver, Player)
  56. end
  57. end