how_did_their_garden_grow.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : Quests/Antonica/how_did_their_garden_grow.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.09.17 03:09:24
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver: Darmen Sproutmore
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepZoneLoc(Quest, 1, "I should go to Stormhold to find the atrium.", 10, "I should go to Stormhold and find out for Darmen how the Knights provided food for themselves.", 11, -55, -25, -100, 15)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"Stormhold")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. PlayFlavor(QuestGiver, "", "", "", 0, 0, Player)
  19. FaceTarget(QuestGiver, Player)
  20. Dialog.New(QuestGiver, Player)
  21. Dialog.AddDialog("That's very generous of you. I'm curious to a fault, you know. However ... if you do go into Stormhold, please use caution.")
  22. Dialog.AddVoiceover("voiceover/english/darmen_sproutmore/antonica/darmensproutmore003.mp3", 1491369381, 2303497363)
  23. PlayFlavor(QuestGiver, "", "", "applaude", 0, 0, Player)
  24. Dialog.AddOption("Thank you for the concern.")
  25. Dialog.Start()
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. -- Add dialog here for when the quest is declined
  29. end
  30. function Deleted(Quest, QuestGiver, Player)
  31. -- Remove any quest specific items here when the quest is deleted
  32. end
  33. function Step1Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 1, "I found the atrium.")
  35. UpdateQuestTaskGroupDescription(Quest, 1, "I found an atrium in Stormhold where it looks like they grew plants even underground.")
  36. UpdateQuestZone(Quest,"Antonica")
  37. AddQuestStepChat(Quest, 2, "I need to return to Darmen.", 1, "I need to return to Darmen to let her know about the atrium.", 11, 120366)
  38. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  39. end
  40. function QuestComplete(Quest, QuestGiver, Player)
  41. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  42. UpdateQuestStepDescription(Quest, 2, "I told Daremn of the atrium.")
  43. UpdateQuestTaskGroupDescription(Quest, 2, "I told Darmen of the atrium in Stormhold.")
  44. UpdateQuestDescription(Quest, "After exploring Stormhold I was able to find an atrium on a lower level. It did appear that plants were grown here. Darmen believed that Karana provided the light and water to sustain these plants' lives. <br> <br>")
  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. QuestComplete(Quest, QuestGiver, Player)
  52. end
  53. end