lord_grimrots_scythe.lua 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. function Init(Quest)
  12. 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)
  13. 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)
  14. AddQuestStepChat(Quest, 3, "Morte Winghammer is near a covered bridge.", 1, "I need to speak with the dwarven knights in Antonica.", 11, 120308)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  17. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  18. end
  19. function Accepted(Quest, QuestGiver, Player)
  20. FaceTarget(QuestGiver, Player)
  21. local conversation = CreateConversation()
  22. PlayFlavor(QuestGiver, "voiceover/english/ignar_steadirt/antonica/quests/firemyst/ignar_steadirt_006.mp3", "", "", 3647805338, 2173571937, Player)
  23. AddConversationOption(conversation, "I can do that.")
  24. StartConversation(conversation, QuestGiver, Player, "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.")
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. -- Add dialog here for when the quest is declined
  28. end
  29. function Deleted(Quest, QuestGiver, Player)
  30. -- Remove any quest specific items here when the quest is deleted
  31. end
  32. function Step1Complete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 1, "I spoke with Grel.")
  34. CheckProgress(Quest, QuestGiver, Player)
  35. end
  36. function Step2Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 2, "I've spoken with Grelda.")
  38. CheckProgress(Quest, QuestGiver, Player)
  39. end
  40. function Step3Complete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 3, "No one told me Morte was a human!")
  42. CheckProgress(Quest, QuestGiver, Player)
  43. end
  44. function Step4Complete(Quest, QuestGiver, Player)
  45. UpdateQuestStepDescription(Quest, 4, "I spoke with Ignar.")
  46. UpdateQuestTaskGroupDescription(Quest, 2, "I've spoken with Ignar Steadirt.")
  47. 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)
  48. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  49. end
  50. function Step5Complete(Quest, QuestGiver, Player)
  51. UpdateQuestStepDescription(Quest, 5, "I located and destroyed part of Lord Grimrot's scythe.")
  52. UpdateQuestTaskGroupDescription(Quest, 3, "I've destroyed part of Lord Grimrot's scythe.")
  53. AddQuestStepChat(Quest, 6, "Ignar is near the Qeynos' Claymore memorial.", 1, "I need to report to Ignar Steadirt.", 11, 120414)
  54. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  55. end
  56. function Step6Complete(Quest, QuestGiver, Player)
  57. UpdateQuestStepDescription(Quest, 6, "I've spoken with Ignar.")
  58. UpdateQuestTaskGroupDescription(Quest, 4, "I've spoken with Ignar.")
  59. 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)
  60. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  61. end
  62. function Step7Complete(Quest, QuestGiver, Player)
  63. UpdateQuestStepDescription(Quest, 7, "I've obtained and destroyed the war scythe.")
  64. UpdateQuestTaskGroupDescription(Quest, 5, "I've destroyed the remaining piece of the war scythe.")
  65. AddQuestStepChat(Quest, 8, "Ignar Steadirt is near the Qeynos Claymore memorial.", 1, "I need to return to Ignar Steadirt.", 11, 120414)
  66. AddQuestStepCompleteAction(Quest, 8, "Step8Complete")
  67. end
  68. function Step8Complete(Quest, QuestGiver, Player)
  69. UpdateQuestStepDescription(Quest, 8, "I reported the destruction of the war scythe to Ignar.")
  70. UpdateQuestTaskGroupDescription(Quest, 6, "I've spoken to Ignar Steadirt.")
  71. AddQuestStepChat(Quest, 9, "Grimbold Steadirt is near the entrance to Firemyst Gully.", 1, "I need to seek Grimbold Steadirt, the dwarven centurion.", 11, 120010)
  72. AddQuestStepCompleteAction(Quest, 9, "QuestComplete")
  73. end
  74. function QuestComplete(Quest, QuestGiver, Player)
  75. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  76. UpdateQuestStepDescription(Quest, 9, "I spoke with Grimbold.")
  77. UpdateQuestTaskGroupDescription(Quest, 7, "I've spoken to Grimbold Steadirt.")
  78. 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.")
  79. GiveQuestReward(Quest, Player)
  80. end
  81. function CheckProgress(Quest, QuestGiver, Player)
  82. if QuestStepIsComplete(Player, 5522, 1) and QuestStepIsComplete(Player, 5522, 2) and QuestStepIsComplete(Player, 5522, 3) then
  83. UpdateQuestTaskGroupDescription(Quest, 1, "I've spoken with three dwarven knights. Well, two dwarves and one human dwarven knight, anyway.")
  84. AddQuestStepChat(Quest, 4, "Ignar Steadirt is near the Qeynos' Claymore memorial.", 1, "I need to report back to Ignar Steadirt.", 11, 120414)
  85. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  86. end
  87. end
  88. function Reload(Quest, QuestGiver, Player, Step)
  89. if Step == 1 then
  90. Step1Complete(Quest, QuestGiver, Player)
  91. elseif Step == 2 then
  92. Step2Complete(Quest, QuestGiver, Player)
  93. elseif Step == 3 then
  94. Step3Complete(Quest, QuestGiver, Player)
  95. elseif Step == 4 then
  96. Step4Complete(Quest, QuestGiver, Player)
  97. elseif Step == 5 then
  98. Step5Complete(Quest, QuestGiver, Player)
  99. elseif Step == 6 then
  100. Step6Complete(Quest, QuestGiver, Player)
  101. elseif Step == 7 then
  102. Step7Complete(Quest, QuestGiver, Player)
  103. elseif Step == 8 then
  104. Step8Complete(Quest, QuestGiver, Player)
  105. elseif Step == 9 then
  106. QuestComplete(Quest, QuestGiver, Player)
  107. end
  108. end