NauticalDisaster.lua 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. --[[
  2. Script Name : Quests/ButcherblockMountains/NauticalDisaster.lua
  3. Script Purpose : Handles the quest, "Nautical Disaster"
  4. Script Author : jakejp
  5. Script Date : 6/2/2018
  6. Script Notes :
  7. Zone : Butcherblock Mountains
  8. Quest Giver : Dockmaster Waulon
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. local NauticalDisaster = 252
  13. function Init(Quest)
  14. AddQuestStepObtainItem(Quest, 1, "I need to find the stolen tome.", 1, 100, "I need to look for the lost tome somewhere on the aqua goblin islands.", 11, 1081016)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I found the tome.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I have found the tome.")
  20. AddQuestStepChat(Quest, 2, "I need to return the tome to Dockmaster Waulon.", 1, "I need to bring the tome back to Dockmaster Waulon.", 11, 1080008)
  21. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  22. end
  23. function Step2Complete(Quest, QuestGiver, Player)
  24. UpdateQuestStepDescription(Quest, 2, "I have returned the tome to Dockmaster Waulon.")
  25. UpdateQuestTaskGroupDescription(Quest, 2, "I returned the tome to Dockmaster Waulon. Alas, it was missing several pages!")
  26. AddQuestStepKill(Quest, 3, "I need to look for the missing pages on the bodies of several aqua goblin wizards.", 5, 100, "I need to look for the missing pages on the bodies of the aqua goblin wizards.", 185, 1080057, 1080166)
  27. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  28. end
  29. function Step3Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 3, "I found all the missing pages!")
  31. UpdateQuestTaskGroupDescription(Quest, 3, "I have recovered all the pages off the aqua goblin wizards.")
  32. AddQuestStepChat(Quest, 4, "I need to return the recovered pages to Dockmaster Waulon.", 1, "I need to return the recovered pages to Dockmaster Waulon.", 11, 1080008)
  33. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  34. end
  35. function QuestComplete(Quest, QuestGiver, Player)
  36. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  37. UpdateQuestStepDescription(Quest, 4, "I have returned the recovered pages to Dockmaster Waulon.")
  38. UpdateQuestTaskGroupDescription(Quest, 4, "I've returned the pages to Dockmaster Waulon.")
  39. UpdateQuestDescription(Quest, "After finding the tome and recovering the missing pages from the clutches of several aqua goblin wizards, I returned the completed book to Dockmaster Waulon. As per our agreement, I was paid handsomely for my efforts.")
  40. GiveQuestReward(Quest, Player)
  41. end
  42. function Reload(Quest, QuestGiver, Player, Step)
  43. if Step == 1 then
  44. Step1Complete(Quest, QuestGiver, Player)
  45. elseif Step == 2 then
  46. Step2Complete(Quest, QuestGiver, Player)
  47. elseif Step == 3 then
  48. Step3Complete(Quest, QuestGiver, Player)
  49. elseif Step == 4 then
  50. QuestComplete(Quest, QuestGiver, Player)
  51. end
  52. end
  53. function Accepted(Quest, QuestGiver, Player)
  54. -- Add dialog here for when the quest is accepted
  55. end
  56. function Declined(Quest, QuestGiver, Player)
  57. -- Add dialog here for when the quest is declined
  58. end