9
3

FillingtheCoffers.lua 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. --[[
  2. Script Name : filling_the_coffers.lua
  3. Script Purpose : Handles the quest, "Filling the Coffers"
  4. Script Author : premierio015
  5. Script Date : 14.03.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver : Captain Feralis
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "I need to collect Zaikik's taxes", 1, 100, "I need to collect taxes from the ratongas and kerrans south west of the Crossroads.", 2167)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. AddConversationOption(conversation, "All right.")
  20. StartConversation(conversation, QuestGiver, Player, "Good. I've had too many softies under my watch. Here's a list of their names and how much they owe. I'll be here when you're done.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I have collected Zaikik's taxes.")
  30. AddQuestStep(Quest, 2, "I need to collect Kadek's taxes", 1, 100, "I need to collect taxes from the ratongas and kerrans south west of the Crossroads.", 2167)
  31. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  32. end
  33. function Step2Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I have collected Kadek's taxes.")
  35. AddQuestStep(Quest, 3, "I need to collect Mnemir's taxes", 1, 100, "I need to collect taxes from the ratongas and kerrans south west of the Crossroads.", 2167)
  36. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  37. end
  38. function Step3Complete(Quest, QuestGiver, Player)
  39. UpdateQuestStepDescription(Quest, 3, "I have collected Mnemir's taxes.")
  40. AddQuestStepChat(Quest, 4, "I need to collect Rootka's taxes", 1, "I need to collect taxes from the ratongas and kerrans south west of the Crossroads.", 2167, 330052)
  41. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  42. end
  43. function Step4Complete(Quest, QuestGiver, Player)
  44. UpdateQuestStepDescription(Quest, 4, "I have collected Rootka's taxes.")
  45. AddQuestStep(Quest, 5, "I need to collect Maharai's taxes", 1, 100, "I need to collect taxes from the ratongas and kerrans south west of the Crossroads.", 2167)
  46. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  47. end
  48. function Step5Complete(Quest, QuestGiver, Player)
  49. UpdateQuestStepDescription(Quest, 5, "I have collected Maharai's taxes.")
  50. AddQuestStepChat(Quest, 6, "I need to collect Leldwana's taxes", 1, "I need to collect taxes from the ratongas and kerrans south west of the Crossroads.", 2167, 330061)
  51. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  52. end
  53. function Step6Complete(Quest, QuestGiver, Player)
  54. UpdateQuestStepDescription(Quest, 6, "I have collected Leldwana's taxes.")
  55. AddQuestStep(Quest, 7, "I need to collect Entui's taxes", 1, 100, "I need to collect taxes from the ratongas and kerrans south west of the Crossroads.", 2167)
  56. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  57. end
  58. function Step7Complete(Quest, QuestGiver, Player)
  59. UpdateQuestStepDescription(Quest, 7, "I have collected Entui's taxes.")
  60. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected the taxes.")
  61. AddQuestStepChat(Quest, 8, "I need to return to Captain Feralis", 1, "Now that I have done as he asked, I should return to Captain Feralis.", 10, 330184)
  62. AddQuestStepCompleteAction(Quest, 8, "QuestComplete")
  63. end
  64. function QuestComplete(Quest, QuestGiver, Player)
  65. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  66. UpdateQuestStepDescription(Quest, 8, "I have given Captain Feralis the tax money.")
  67. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken with Captain Feralis.")
  68. UpdateQuestDescription(Quest, "I have given the collected taxes to Captain Feralis.")
  69. GiveQuestReward(Quest, Player)
  70. end
  71. function Reload(Quest, QuestGiver, Player, Step)
  72. if Step == 1 then
  73. Step1Complete(Quest, QuestGiver, Player)
  74. elseif Step == 2 then
  75. Step2Complete(Quest, QuestGiver, Player)
  76. elseif Step == 3 then
  77. Step3Complete(Quest, QuestGiver, Player)
  78. elseif Step == 4 then
  79. Step4Complete(Quest, QuestGiver, Player)
  80. elseif Step == 5 then
  81. Step5Complete(Quest, QuestGiver, Player)
  82. elseif Step == 6 then
  83. Step6Complete(Quest, QuestGiver, Player)
  84. elseif Step == 7 then
  85. Step7Complete(Quest, QuestGiver, Player)
  86. elseif Step == 8 then
  87. QuestComplete(Quest, QuestGiver, Player)
  88. end
  89. end