maid_for_the_mist__part_I.lua 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. --[[
  2. Script Name : Quests/NektulosForest/maid_for_the_mist__part_I.lua
  3. Script Author : Premierio015
  4. Script Date : 2023.03.23 09:03:20
  5. Script Purpose : Access Quest "Maid for the Mist Part I"
  6. Zone : NektulosForest
  7. Quest Giver: Daisy Winterhope
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to obtain 25 Nerius crab carapaces.", 25, 25, "I need to obtain 25 crab carapaces in Nektulos and then tell Daisy Winterhope.", 141, 1790036, 1790342)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. Dialog.New(QuestGiver, Player)
  19. Dialog.AddVoiceover("voiceover/english/daisy_winterhope/hallmark/sea_of_mist/winterhope_dialog006.mp3", 4126545806, 2664999676)
  20. Dialog.AddOption("I'll be back.")
  21. Dialog.AddDialog("Great! What I need first off are some ironshell carapaces. You can get them off them Nerius crabs. About twenty-five would protect the hull. Let me know when you've got those, and then we'll see if we need anything else.")
  22. Dialog.Start()
  23. end
  24. function Declined(Quest, QuestGiver, Player)
  25. -- Add dialog here for when the quest is declined
  26. end
  27. function Deleted(Quest, QuestGiver, Player)
  28. -- Remove any quest specific items here when the quest is deleted
  29. end
  30. function Step1Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 1, "I have obtained 25 Nerius crab carapaces.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I have obtained 25 crab carapaces and need to tell Daisy Winterhope in Nektulos.")
  33. AddQuestStepChat(Quest, 2, "I must return to Daisy Winterhope in Nektulos with the crab carapaces.", 1, "I must return to speak with Daisy Winterhope in Nektulos.", 11, 1790042)
  34. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  35. end
  36. function Step2Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 2, "I have returned to Daisy Winterhope in Nektulos with the crab carapaces.")
  38. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken with Daisy Winterhope in Nektulos.")
  39. AddQuestStepKill(Quest, 3, "I must obtain 13 owlbear sinews for Daisy Winterhope in Nektulos.", 13, 25, "I need to obtain 13 ash owlbear sinews in Nektulos and then tell Daisy Winterhope.", 139, 1790131)
  40. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  41. end
  42. function Step3Complete(Quest, QuestGiver, Player)
  43. UpdateQuestStepDescription(Quest, 3, "I have obtained 13 owlbear sinews for Daisy Winterhope in Nektulos.")
  44. UpdateQuestTaskGroupDescription(Quest, 3, "I have obtained 13 ash owlbear sinews in Nektulos and must tell Daisy Winterhope.")
  45. AddQuestStepChat(Quest, 4, "I obtained 13 owlbear sinews and need to return to Daisy Winterhope in Nektulos.", 1, "I must return to speak with Daisy Winterhope in Nektulos.", 11, 1790042)
  46. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  47. end
  48. function QuestComplete(Quest, QuestGiver, Player)
  49. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  50. UpdateQuestStepDescription(Quest, 4, "I returned to Daisy Winterhope in Nektulos with the owlbear sinews.")
  51. UpdateQuestTaskGroupDescription(Quest, 4, "I have spoken with Daisy Winterhope in Nektulos.")
  52. UpdateQuestDescription(Quest, "I have obtained 25 Nerius crab carapaces and 13 ash owlbear sinews and need to tell Daisy Winterhope in Nektulos. I hope this is enough for passage on her ship.")
  53. GiveQuestReward(Quest, Player)
  54. end
  55. function Reload(Quest, QuestGiver, Player, Step)
  56. if Step == 1 then
  57. Step1Complete(Quest, QuestGiver, Player)
  58. elseif Step == 2 then
  59. Step2Complete(Quest, QuestGiver, Player)
  60. elseif Step == 3 then
  61. Step3Complete(Quest, QuestGiver, Player)
  62. elseif Step == 4 then
  63. QuestComplete(Quest, QuestGiver, Player)
  64. end
  65. end