9
3

gnasher.lua 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. --[[
  2. Script Name : Quests/TheSerpentSewer/gnasher.lua
  3. Script Purpose : Handles the quest, "Gnasher"
  4. Script Author : premierio015
  5. Script Date : 02.07.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Serpent Sewer
  8. Quest Giver : an axe edge( Item)
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I should try to find an unsharpened axehead on the Murkwater inducts.", 1, 10, "I need to find a proper axe head so that I can merge this fine edge onto it. Perhaps some of the Murkwaters in the sewers might have something like that on them. I'm thinking the newly inducted ones might have something like that.", 679, 1550011, 1550048)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I have found an unsharpened axehead on a Murkwater induct")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I've been able to find an axehead that hasn't been sharpened on one of the Murkwater inducts. I'm hoping I can work this existing edge onto the axehead.")
  28. AddQuestStepKill(Quest, 2, "I should try to find a sanded axe shaft on the Murkwater stewards.", 1, 10, "I now have an axehead with a vicious edge to it. It's still not in usable conditon, however. I now need to find a shaft to fit through this axehead. Maybe one of Murkwater stewards might have something like that on them.", 838, 1550010, 1550047)
  29. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  30. end
  31. function Step2Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I have found a sanded axe shaft.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I've been able to find a shaft from the murkwater steward.")
  34. AddQuestStepKill(Quest, 3, "I should try to find a strong leather cord on the Murkwater abettors", 1, 10, "The last piece I'm going to need is a strong leather cord to wrap the axe to the shaft. Maybe one of the Murkwater abettors might have something like that on them.", 1102, 1550008, 1550009, 1550045, 1550046)
  35. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  39. UpdateQuestStepDescription(Quest, 3, "I have found a strong leather cord.")
  40. UpdateQuestTaskGroupDescription(Quest, 3, "I've been able to find a leather cord on one of the Murkwater abettors. Hopefully this will be all I need to make my axe.")
  41. if HasItem(Player, 3560) then
  42. RemoveItem(Player, 3560)
  43. end
  44. UpdateQuestDescription(Quest, "I've been able to reconstruct this axe to its former glory. I've name it The Gnasher in honor of its numerous, little teeth. I'm certain this axe will inflict much pain to my opponents.")
  45. GiveQuestReward(Quest, Player)
  46. end
  47. function Reload(Quest, QuestGiver, Player, Step)
  48. if Step == 1 then
  49. Step1Complete(Quest, QuestGiver, Player)
  50. elseif Step == 2 then
  51. Step2Complete(Quest, QuestGiver, Player)
  52. elseif Step == 3 then
  53. QuestComplete(Quest, QuestGiver, Player)
  54. end
  55. end