9
3

gathering_sealant_components.lua 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : Quests/IsleofRefuge/gathering_sealant_components.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.11 12:09:06
  5. Script Purpose :
  6. Zone : IsleofRefuge
  7. Quest Giver: Mizan Vaeolin
  8. Preceded by: Destroying the Goblin's Supplies
  9. Followed by: Striking Back at the Goblins
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to kill five mire bogs.", 5, 100, "I need to kill and collect the remains of five mire bogs found in the island's central grove northwest of the outpost.", 343, 3250073)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. Dialog.New(QuestGiver, Player)
  19. Dialog.AddDialog("Excellent. For months I've been studying a goo-like creature with some very unique properties. It's called a mire bog and it's impervious to physical damage but susceptible to magic spells. The death of a mire bog creates a strange effect. Its remains produce a highly fire retardant substance. If you provide me with the remains of several mire bogs, I can fashion a sealant to use on the barricades.")
  20. Dialog.AddVoiceover("voiceover/english/mizan_vaeoulin/tutorial_island02/mizanvaeoulin007.mp3", 3025597607, 3927222327)
  21. PlayFlavor(QuestGiver, "", "", "agree", 0, 0, Player)
  22. Dialog.AddOption("I will return with the components you require.")
  23. Dialog.Start()
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. -- Add dialog here for when the quest is declined
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. -- Remove any quest specific items here when the quest is deleted
  30. end
  31. function Step1Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 1, "I collected the remains of five mire bogs.")
  33. UpdateQuestTaskGroupDescription(Quest, 1, "I collected the remains of five mire bogs.")
  34. AddQuestStepChat(Quest, 2, "I need to return to Mizan.", 1, "I must return the mire bog remains I've collected to Mizan in the outpost.", 11, 3250057)
  35. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  39. UpdateQuestStepDescription(Quest, 2, "I gave the remains to Mizan.")
  40. UpdateQuestTaskGroupDescription(Quest, 2, "I gave the remains to Mizan.")
  41. UpdateQuestDescription(Quest, "I was able to collect the remains of mire bogs for Mizan. He is going to use them to create a sealant that will be spread on the wooden barricades to protect them against the impending goblin fire attacks.")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. QuestComplete(Quest, QuestGiver, Player)
  49. end
  50. end