avoiding_the_sea_beasties.lua 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : avoiding_the_sea_beasties.lua
  3. Script Purpose : Handles the quest, "Avoiding the Sea Beasties"
  4. Script Author : torsten\\Dorbin
  5. Script Date : 23.07.2022
  6. Script Notes :
  7. Zone : Scale Yard
  8. Quest Giver : Dunn Coldbrow
  9. Preceded by : Ending the Fury
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepKill(Quest, 1, "I need to kill ten orcs in the Commonlands.", 10, 100, "I need to travel to the Commonlands and kill ten orcs.", 611, 330068, 330126, 330128, 330129, 330202, 330204, 330218, 330249, 330250, 330268, 330265, 330323, 330327)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. UpdateQuestZone(Quest,"The Commonlands")
  17. end
  18. function Step1Complete(Quest, QuestGiver, Player)
  19. UpdateQuestStepDescription(Quest, 1, "I've killed the orcs in the Commonlands.")
  20. UpdateQuestTaskGroupDescription(Quest, 1, "I have killed the orcs as I was tasked by the Warchief.")
  21. UpdateQuestZone(Quest,"Scale Yard")
  22. AddQuestStepChat(Quest, 2, "I should return to Dunn.", 1, "I should return to Dunn in Scale Yard and tell him about the orcs.", 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 the orcs have been destroyed and Lucan's men didn't intervene.")
  28. UpdateQuestDescription(Quest, "Dunn Coldbrow has chosen to ask Verin why I wasn't killed by Lucan when I killed the orcs. I think I can see how his 'advisor' may be the real Warchief. Dunn doesn't seem to have much common sense, only a very strong presence.")
  29. GiveQuestReward(Quest, Player)
  30. end
  31. function Accepted(Quest, QuestGiver, Player)
  32. FaceTarget(QuestGiver, Player)
  33. Dialog.New(QuestGiver, Player)
  34. Dialog.AddDialog("And face the wrath of Lucan? Do you think I'm mad? Verin says we're not to kill orcs without the Overlord's command. But you could do it! You seem eager for battle. Arm yourself well, journey beyond the gates, and fight the Bloodskulls. Crush them! If you die, you'll die with honor; and if you return alive and victorious ... may the mighty fist of Lucan spare your life.")
  35. Dialog.AddVoiceover("voiceover/english/dunn_coldbrow/fprt_hood06/quests/dunncoldbrow/dunn_x2_accept.mp3",2604399476,564355703)
  36. PlayFlavor(QuestGiver, "","","boggle",0,0, Player)
  37. Dialog.AddOption("We'll just see about that.")
  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