9
3

refugee_rescue.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : Quests/IsleofRefuge/refugee_rescue.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.11 12:09:10
  5. Script Purpose :
  6. Zone : IsleofRefuge
  7. Quest Giver: Braksan Steelforge (3250017)
  8. Preceded by: Goblin Supply Raid
  9. Followed by: Striking Back at the Goblins
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "I need to taunt and kill five Gruttooth aggressors.", 5, 100, "I need to find the refugees being held captive on the west most part of the island and use my taunt ability to distract, and then kill their goblin aggressors.", 91)
  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("Be discreet when you enter the alcove. You don't want to jeopardize the refugees' lives. Taunt those green critters... make them chase you away from the prisoners. If you divert the goblins and rescue the captives, I'll reward you with more gear.")
  20. Dialog.AddVoiceover("voiceover/english/braksan_steelforge/tutorial_island02/braksansteelforge007.mp3", 584535724,1918263116)
  21. PlayFlavor(QuestGiver, "", "", "nod", 0, 0, Player)
  22. Dialog.AddOption("I'll take care of the goblin problem.")
  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 killed five Gruttooth aggressors.")
  33. UpdateQuestTaskGroupDescription(Quest, 1, "I killed five Gruttooth aggressors.")
  34. AddQuestStepChat(Quest, 2, "I need to speak with Braksan.", 1, "I need to return to Braksan and tell him of my deeds.", 11, 3250017)
  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 spoke to Braksan.")
  40. UpdateQuestTaskGroupDescription(Quest, 2, "I spoke to Braksan.")
  41. UpdateQuestDescription(Quest, "I dispatched five of those Gruttooth aggressors that were holding the refugees captive and told Braksan that the refugees should be able to return to the outpost now. He rewarded me with a new pair of protective leggings.")
  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