lord_grimrots_scythe.lua 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. --[[
  2. Script Name : Quests/Antonica/lord_grimrots_scythe.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.05.08 10:05:57
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver: Ignar Steadirt
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "Grel Stoneshearer overlooks the Keep of the Ardent Needle from a nearby hilltop.", 1, "I need to speak with the dwarven knights in Antonica.", 11, 120204)
  14. AddQuestStepChat(Quest, 2, "Grelda Stoneshearer is near the Keep of the Gnollslayers.", 1, "I need to speak with the dwarven knights in Antonica.", 11, 120314)
  15. AddQuestStepChat(Quest, 3, "Morte Winghammer is near a covered bridge.", 1, "I need to speak with the dwarven knights in Antonica.", 11, 120308)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  17. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  18. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  19. end
  20. function Accepted(Quest, QuestGiver, Player)
  21. FaceTarget(QuestGiver, Player)
  22. Dialog.New(QuestGiver, Player)
  23. Dialog.AddDialog("I need those darned dispatches brought back to me! You'd think that folks who get to run around looking for danger would realize how important it is to send word back to ... well, me. Since they haven't, I need someone to knock them upside their heads and get the information, then bring it back to me.")
  24. Dialog.AddVoiceover("voiceover/english/ignar_steadirt/antonica/quests/firemyst/ignar_steadirt_006.mp3", 3647805338, 2173571937)
  25. PlayFlavor(QuestGiver, "", "", "grumble", 0, 0, Player)
  26. Dialog.AddOption("I can do that.")
  27. Dialog.Start()
  28. end
  29. function Declined(Quest, QuestGiver, Player)
  30. -- Add dialog here for when the quest is declined
  31. end
  32. function Deleted(Quest, QuestGiver, Player)
  33. -- Remove any quest specific items here when the quest is deleted
  34. end
  35. function Step1Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 1, "I spoke with Grel.")
  37. CheckProgress(Quest, QuestGiver, Player)
  38. end
  39. function Step2Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 2, "I've spoken with Grelda.")
  41. CheckProgress(Quest, QuestGiver, Player)
  42. end
  43. function Step3Complete(Quest, QuestGiver, Player)
  44. UpdateQuestStepDescription(Quest, 3, "No one told me Morte was a human!")
  45. CheckProgress(Quest, QuestGiver, Player)
  46. end
  47. function Step4Complete(Quest, QuestGiver, Player)
  48. UpdateQuestStepDescription(Quest, 4, "I spoke with Ignar.")
  49. UpdateQuestTaskGroupDescription(Quest, 2, "I've spoken with Ignar Steadirt.")
  50. AddQuestStepKill(Quest, 5, "The Sabertooth rune casters possess a part of the scythe. They are northeast of Archer's Wood, east down the path, approaching Bramble Woods in Antonica.", 1, 100, "I need to obtain Lord Grimrot's scythe from the gnolls.", 640, 120300, 121409)
  51. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  52. end
  53. function Step5Complete(Quest, QuestGiver, Player)
  54. UpdateQuestStepDescription(Quest, 5, "I located and destroyed part of Lord Grimrot's scythe.")
  55. UpdateQuestTaskGroupDescription(Quest, 3, "I've destroyed part of Lord Grimrot's scythe.")
  56. AddQuestStepChat(Quest, 6, "Ignar is near the Qeynos' Claymore memorial.", 1, "I need to report to Ignar Steadirt.", 11, 120414)
  57. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  58. end
  59. function Step6Complete(Quest, QuestGiver, Player)
  60. UpdateQuestStepDescription(Quest, 6, "I've spoken with Ignar.")
  61. UpdateQuestTaskGroupDescription(Quest, 4, "I've spoken with Ignar.")
  62. AddQuestStepKill(Quest, 7, "This piece is with the Darkpaw rune casters in Bramble Woods in Antonica.", 1, 100, "I must destroy the remaining piece of Lord Grimrot's war scythe.", 640, 120309, 121415)
  63. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  64. end
  65. function Step7Complete(Quest, QuestGiver, Player)
  66. UpdateQuestStepDescription(Quest, 7, "I've obtained and destroyed the war scythe.")
  67. UpdateQuestTaskGroupDescription(Quest, 5, "I've destroyed the remaining piece of the war scythe.")
  68. AddQuestStepChat(Quest, 8, "Ignar Steadirt is near the Qeynos Claymore memorial.", 1, "I need to return to Ignar Steadirt.", 11, 120414)
  69. AddQuestStepCompleteAction(Quest, 8, "Step8Complete")
  70. end
  71. function Step8Complete(Quest, QuestGiver, Player)
  72. UpdateQuestStepDescription(Quest, 8, "I reported the destruction of the war scythe to Ignar.")
  73. UpdateQuestTaskGroupDescription(Quest, 6, "I've spoken to Ignar Steadirt.")
  74. AddQuestStepChat(Quest, 9, "Grimbold Steadirt is near the entrance to Firemyst Gully.", 1, "I need to seek Grimbold Steadirt, the dwarven centurion.", 11, 120010)
  75. AddQuestStepCompleteAction(Quest, 9, "QuestComplete")
  76. end
  77. function QuestComplete(Quest, QuestGiver, Player)
  78. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  79. UpdateQuestStepDescription(Quest, 9, "I spoke with Grimbold.")
  80. UpdateQuestTaskGroupDescription(Quest, 7, "I've spoken to Grimbold Steadirt.")
  81. UpdateQuestDescription(Quest, "Ignar Steadirt is still frustrated that he has to remain at the Claymore monument, but he was very grateful for living the battles vicariously through my reports. It has been my pleasure.")
  82. GiveQuestReward(Quest, Player)
  83. end
  84. function CheckProgress(Quest, QuestGiver, Player)
  85. if QuestStepIsComplete(Player, 5522, 1) and QuestStepIsComplete(Player, 5522, 2) and QuestStepIsComplete(Player, 5522, 3) then
  86. UpdateQuestTaskGroupDescription(Quest, 1, "I've spoken with three dwarven knights. Well, two dwarves and one human dwarven knight, anyway.")
  87. AddQuestStepChat(Quest, 4, "Ignar Steadirt is near the Qeynos' Claymore memorial.", 1, "I need to report back to Ignar Steadirt.", 11, 120414)
  88. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  89. end
  90. end
  91. function Reload(Quest, QuestGiver, Player, Step)
  92. if Step == 1 then
  93. Step1Complete(Quest, QuestGiver, Player)
  94. elseif Step == 2 then
  95. Step2Complete(Quest, QuestGiver, Player)
  96. elseif Step == 3 then
  97. Step3Complete(Quest, QuestGiver, Player)
  98. elseif Step == 4 then
  99. Step4Complete(Quest, QuestGiver, Player)
  100. elseif Step == 5 then
  101. Step5Complete(Quest, QuestGiver, Player)
  102. elseif Step == 6 then
  103. Step6Complete(Quest, QuestGiver, Player)
  104. elseif Step == 7 then
  105. Step7Complete(Quest, QuestGiver, Player)
  106. elseif Step == 8 then
  107. Step8Complete(Quest, QuestGiver, Player)
  108. elseif Step == 9 then
  109. QuestComplete(Quest, QuestGiver, Player)
  110. end
  111. end