tanairas_picnic_spot.lua 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : Quests/StarcrestCommune/tanairas_picnic_spot.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.04 03:07:51
  5. Script Purpose :
  6. Zone : StarcrestCommune
  7. Quest Giver: Tanaira
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepZoneLoc(Quest, 1, "I need to find the picnic spot near the waterfall in Oakmyst Forest.", 6, "I need to find the spot near the waterfall in Oakmyst Forest and see if it is a good site for a picnic.", 185, 976.82, 2.23, -209.86, 830)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest, "Oakmyst Forest")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. Dialog.AddDialog("Wonderful! I am very bad with directions! Do you think you could make a map on this page when you find it? I heard the best spot is next to the waterfall there.")
  21. PlayFlavor(QuestGiver, "", "", "thanks", 0, 0, Player)
  22. Dialog.AddVoiceover("voiceover/english/merchant_tanaira/qey_village02/merchanttanaira001.mp3", 613556213, 3041708852)
  23. Dialog.AddOption("I'd be happy to. I'll return when I've mapped out the area.")
  24. Dialog.Start()
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. -- Add dialog here for when the quest is declined
  28. end
  29. function Deleted(Quest, QuestGiver, Player)
  30. -- Remove any quest specific items here when the quest is deleted
  31. end
  32. function Step1Complete(Quest, QuestGiver, Player)
  33. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  34. UpdateQuestStepDescription(Quest, 1, "I found the spot near the waterfall.")
  35. UpdateQuestTaskGroupDescription(Quest, 1, "I found the spot near the waterfall and made a map. It looks like a pretty good area for a picnic.")
  36. UpdateQuestZone(Quest, "Starcrest Commune")
  37. AddQuestStepChat(Quest, 2, "I should give this map to Tanaira.", 1, "Tanaira will be pleased to know her picnic spot is ideal. She was selling at her stall in Starcrest.", 185, 2340040)
  38. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  39. end
  40. function QuestComplete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 2, "I returned to Tanaira.")
  42. UpdateQuestTaskGroupDescription(Quest, 2, "I told Tanaira about the picnic spot in Oakmyst.")
  43. UpdateQuestDescription(Quest, "Tanaira seemed pleased with the map and my report that the location was a pretty good spot for a picnic. I hope she is able to get Grekin to take time off from being a merchant and to go on the picnic with her.")
  44. GiveQuestReward(Quest, Player)
  45. end
  46. function Reload(Quest, QuestGiver, Player, Step)
  47. if Step == 1 then
  48. Step1Complete(Quest, QuestGiver, Player)
  49. end
  50. if Step == 2 then
  51. QuestComplete(Quest, QuestGiver, Player)
  52. end
  53. end