the_chomper.lua 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. --[[
  2. Script Name : Quests/Blackburrow/the_chomper.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.07.23 10:07:58
  5. Script Purpose :
  6. Zone : Blackburrow
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepZoneLoc(Quest, 1, "I need to go to the Brewery in Blackburrow and find some leather straps they use bind the barley and hops.", 10, "With a little effort, I believe I can transform this broken morningstar into something better.", 11, 21, -40, 61, 17)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. -- Add dialog here for when the quest is accepted
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function Step1Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I've found enough leather straps.")
  26. AddQuestStepKill(Quest, 2, "I need to kill gnolls until I can find enough chain links for the morningstar.", 12, 100, "With a little effort, I believe I can transform this broken morningstar into something better.", 1012, 170017, 170040, 170014, 170023, 170003, 170035, 170083, 170026, 170044, 170019, 170041, 170029, 170022, 170057, 170051, 170018, 170010, 170042, 170002, 170032, 170031, 170043, 170004, 170033, 170039, 170030, 170086, 170056, 170046, 170038, 170027, 170084, 170050, 170028, 170085, 170011)
  27. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  28. end
  29. function Step2Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I've collected a number of chain links for the morningstar.")
  31. AddQuestStepKill(Quest, 3, "I need to obtain sturdy mining pick to break open all of the links. The Sabertooth miners are the likeliest source.", 1, 100, "With a little effort, I believe I can transform this broken morningstar into something better.", 11, 170010, 170029)
  32. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  33. end
  34. function Step3Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 3, "I've found a sturdy mining pick.")
  36. AddQuestStepKill(Quest, 4, "I need to kill the Sabertooth guards until I find enough spikes for the ball of the flail.", 16, 100, "With a little effort, I believe I can transform this broken morningstar into something better.", 1019, 170022)
  37. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  38. end
  39. function Step4Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 4, "I've found a number of spikes for the flail head.")
  41. AddQuestStepKill(Quest, 5, "I need to kill Crugybar the Rock so that I can break the spike tips off the mace", 1, 100, "With a little effort, I believe I can transform this broken morningstar into something better.", 611, 170038)
  42. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  43. end
  44. function QuestComplete(Quest, QuestGiver, Player)
  45. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  46. UpdateQuestStepDescription(Quest, 5, "I've killed Crugybar the Rock")
  47. UpdateQuestTaskGroupDescription(Quest, 1, "I've been able to change the broken morningstar into the Chomper.")
  48. if Hasitem(Player, 1285) then
  49. RemoveItem(Player, 1285)
  50. end
  51. UpdateQuestDescription(Quest, "Applying a little bit of effort, I've been able to change the broken morningstar into the Chomper. <br> <br>")
  52. GiveQuestReward(Quest, Player)
  53. end
  54. function Reload(Quest, QuestGiver, Player, Step)
  55. if Step == 1 then
  56. Step1Complete(Quest, QuestGiver, Player)
  57. elseif Step == 2 then
  58. Step2Complete(Quest, QuestGiver, Player)
  59. elseif Step == 3 then
  60. Step3Complete(Quest, QuestGiver, Player)
  61. elseif Step == 4 then
  62. Step4Complete(Quest, QuestGiver, Player)
  63. elseif Step == 5 then
  64. QuestComplete(Quest, QuestGiver, Player)
  65. end
  66. end