lord_grimrots_scythe.lua 6.3 KB

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