9
3

ending_the_fury.lua 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : ending_the_fury.lua
  3. Script Purpose : Handles the quest, "Ending the Fury"
  4. Script Author : torsten
  5. Script Date : 23.07.2022
  6. Script Notes :
  7. Zone : Scale Yard
  8. Quest Giver : Dunn Coldbrow
  9. Preceded by : None
  10. Followed by : Avoiding the Sea Beasties
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepKill(Quest, 1, "I must kill five Darkblade furies.", 5, 100, "I need to kill five Darkblade furies in order to ensure the Barbarians' place on the front lines of the upcoming Orc assault. I should be able to find them living in the sewers.", 611, 8430024, 8430004)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. UpdateQuestZone(Quest,"Thieves Way")
  17. end
  18. function Step1Complete(Quest, QuestGiver, Player)
  19. UpdateQuestStepDescription(Quest, 1, "I have killed the Darkblade furies.")
  20. UpdateQuestTaskGroupDescription(Quest, 1, "I've killed all five of the Darkblade furies like I said I would.")
  21. UpdateQuestZone(Quest,"Scale Yard")
  22. AddQuestStepChat(Quest, 2, "I should return to Dunn.", 1, "I should return to Dunn and let him know that the furies are now dead.", 11, 1390036)
  23. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  24. end
  25. function QuestComplete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 2, "I've spoken with Dunn.")
  27. UpdateQuestTaskGroupDescription(Quest, 2, "I've informed Dunn that I've killed the furies. He seemed quite pleased by this.")
  28. UpdateQuestDescription(Quest, "I've helped kill the Darkblade furies in the sewers. I have no idea what this has to do with the Barbarians killing the Orcs, though. I have a feeling Dunn's Iksar advisor, Verin Ithelz, is pursuing his own agenda rather than helping the Barbarians.")
  29. GiveQuestReward(Quest, Player)
  30. end
  31. function Accepted(Quest, QuestGiver, Player)
  32. FaceTarget(QuestGiver, Player)
  33. Dialog.New(QuestGiver, Player)
  34. Dialog.AddDialog("You, brave warrior, must use your might and bear down upon the furies. The more slugs you kill, the more likely the Overlord is to consider letting barbarians on the front lines during the orc invasion. Go to the sewers and kill those filthy Darkblade slugs. This deed shall gain you the respect of Dunn Coldbrow, Warchief of the People.")
  35. Dialog.AddVoiceover("voiceover/english/dunn_coldbrow/fprt_hood06/quests/dunncoldbrow/dunn_x1_accept.mp3",92877347,212315096)
  36. PlayFlavor(QuestGiver, "","","agree",0,0, Player)
  37. Dialog.AddOption("They don't stand a chance!")
  38. Dialog.Start()
  39. end
  40. function Declined(Quest, QuestGiver, Player)
  41. -- Add dialog here for when the quest is declined
  42. end
  43. function Deleted(Quest, QuestGiver, Player)
  44. -- Remove any quest specific items here when the quest is deleted
  45. end
  46. function Reload(Quest, QuestGiver, Player, Step)
  47. if Step == 1 then
  48. Step1Complete(Quest, QuestGiver, Player)
  49. elseif Step == 2 then
  50. QuestComplete(Quest, QuestGiver, Player)
  51. end
  52. end