how_did_their_garden_grow.lua 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. function Init(Quest)
  12. 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)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/darmen_sproutmore/antonica/darmensproutmore003.mp3", "", "", 1491369381, 2303497363, Player)
  19. AddConversationOption(conversation, "Thank you for the concern.")
  20. StartConversation(conversation, QuestGiver, Player, "That's very generous of you. I'm curious to a fault, you know. However ... if you do go into Stormhold, please use caution.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I found the atrium.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I found an atrium in Stormhold where it looks like they grew plants even underground.")
  31. 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)
  32. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  36. UpdateQuestStepDescription(Quest, 2, "I told Daremn of the atrium.")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I told Darmen of the atrium in Stormhold.")
  38. 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>")
  39. GiveQuestReward(Quest, Player)
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. Step1Complete(Quest, QuestGiver, Player)
  44. elseif Step == 2 then
  45. QuestComplete(Quest, QuestGiver, Player)
  46. end
  47. end