9
3

venom_sac_collection.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : Quests/IsleofRefuge/venom_sac_collection.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.11 12:09:28
  5. Script Purpose :
  6. Zone : IsleofRefuge
  7. Quest Giver: Nathinia Sparklebright (3250014)
  8. Preceded by: War Statues
  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 collect five giant spider venom sacs.", 5, 100, "I need to slay five giant spiders and collect their venom sacs for Nathinia. The spiders can be found in the island's central grove northwest of the outpost.", 170, 3250084,3250085)
  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("Thank you. I need enough venom sacs to create an antidote for the poisonous goblin spears. Good luck. Please be cautious.")
  20. Dialog.AddVoiceover("voiceover/english/nathinia_sparklebright/tutorial_island02/nathiniasparklebright007.mp3", 2105546738,492895253)
  21. PlayFlavor(QuestGiver, "", "", "agree", 0, 0, Player)
  22. Dialog.AddOption("I will return shortly.")
  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 was able to collect five venom sacs.")
  33. UpdateQuestTaskGroupDescription(Quest, 1, "I was able to collect five venom sacs.")
  34. AddQuestStepChat(Quest, 2, "I need to take these venom sacs to Nathinia.", 1, "I need to return these venom sacs to Nathinia in the outpost.", 11, 3250014)
  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 venom sacs to Nathinia.")
  40. UpdateQuestTaskGroupDescription(Quest, 2, "I gave the venom sacs to Nathinia.")
  41. UpdateQuestDescription(Quest, "I was able to collect five giant spider venom sacs and give them to Nathinia. She is going to get to work immediately on creating an antidote.")
  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