striking_back_at_the_goblins.lua 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : Quests/IsleofRefuge/striking_back_at_the_goblins.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.13 09:09:56
  5. Script Purpose :
  6. Zone : IsleofRefuge
  7. Quest Giver: Nathinia Sparklebright (3250014)
  8. Preceded by: Venom Sac Collection
  9. Followed by: Removing the Orc Menace
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to collect 4 goblin totems from Gruttooth Brutes.", 4, 70, "I need to collect four goblin totems for Nathinia. The totems can be obtained by killing Gruttooth brutes in the main goblin encampments found on the northern part of the island.", 372, 3250134,3250123,3250124)
  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("I believe the goblin shaman may be stirring up their people into an aggressive frenzy using the power of their vile totems. Go with the other adventurers. If you see some of these totems fall from the defeated goblins' hands, please collect them and bring them to me. I would like to learn what is causing these goblins to be so hostile.")
  20. Dialog.AddVoiceover("voiceover/english/nathinia_sparklebright/tutorial_island02/nathiniasparklebright010.mp3", 2848196169,4101313986)
  21. PlayFlavor(QuestGiver, "", "", "agree", 0, 0, Player)
  22. Dialog.AddOption("I will gather the totems for you.")
  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 4 goblin totems.")
  33. UpdateQuestTaskGroupDescription(Quest, 1, "I collected four goblin totems for Nathinia while attacking the goblin village.")
  34. AddQuestStepChat(Quest, 2, "I need to take these totems to Nathinia.", 1, "I need to take these goblin totems to Nathinia back at 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 totems to Nathinia.")
  40. UpdateQuestTaskGroupDescription(Quest, 2, "I gave the totems to Nathinia.")
  41. UpdateQuestDescription(Quest, "I was able to collect four goblin totems for Nathinia and gave them to her for her study. She may be able to determine the power of the totems and if they are the reason the goblins have become so aggressive.")
  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