GnollReport.lua 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. --[[
  2. Script Name : GnollReport.lua
  3. Script Purpose : Handles the quest, "Gnoll Report"
  4. Script Author : geordie0511
  5. Script Date : 19.03.2019
  6. Script Notes :
  7. Zone : Antonica
  8. Quest Giver : Captain Eitoa
  9. Preceded by : The Keep of the Ardent Needle
  10. Followed by : A Captain's Communique: Eitoa to Sturman
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "Speak with Captain Beltho at Gnollslayer Keep.", 1, "I must go to Gnollslayer Keep. Follow the eastward road running from the North Gate of Qeynos. It leads towards the Thundering Steppes. Along the way I shall find the keep.", 11, 120400)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "Spoke with Captain Beltho.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I've spoken with Captain Beltho, though he does not have the report ready at this time.")
  20. AddQuestStepZoneLoc(Quest, 2, "Go to the hidden entrance of the gnoll lair.", 30, "I must find the hidden entrance to the gnoll lair somewhere near the southern islands.", 11, -1214, -3, 912, 12)
  21. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  22. end
  23. function Step2Complete(Quest, QuestGiver, Player)
  24. UpdateQuestStepDescription(Quest, 2, "Found the hidden entrance of Blackburrow.")
  25. UpdateQuestTaskGroupDescription(Quest, 2, "I've found the hidden entrance to the gnoll lair at the base of the southern range in Antonica.")
  26. AddQuestStepChat(Quest, 3, "Speak to Captain Beltho at Gnollslayer Keep.", 1, "I must return with the location of the entrance to Captain Beltho in Gnollslayer Keep in Antonica.", 11, 120400)
  27. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  28. end
  29. function Step3Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 3, "Spoke to Captain Beltho.")
  31. UpdateQuestTaskGroupDescription(Quest, 3, "I've picked up the report from Captain Beltho in Gnollslayer Keep.")
  32. AddQuestStepChat(Quest, 4, "Speak to Captain Eitoa near the North Qeynos gate.", 1, "I must deliver Captain Beltho's report safely to Captain Eitoa at the gates of Qeynos.", 75, 120069)
  33. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  34. end
  35. function QuestComplete(Quest, QuestGiver, Player)
  36. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  37. UpdateQuestStepDescription(Quest, 4, "Spoke to Captain Eitoa.")
  38. UpdateQuestTaskGroupDescription(Quest, 4, "I've safely delivered Captain Beltho's report to Captain Eitoa.")
  39. UpdateQuestDescription(Quest, "Not only have I returned the report to Captain Eitoa, I've also discovered the origin of the gnoll presence in Antonica. Perhaps I can venture inside later. Who knows what waits within? The entrance has thought to have been sealed for ages.")
  40. GiveQuestReward(Quest, Player)
  41. end
  42. function Reload(Quest, QuestGiver, Player, Step)
  43. if Step == 1 then
  44. Step1Complete(Quest, QuestGiver, Player)
  45. elseif Step == 2 then
  46. Step2Complete(Quest, QuestGiver, Player)
  47. elseif Step == 3 then
  48. Step3Complete(Quest, QuestGiver, Player)
  49. elseif Step == 4 then
  50. QuestComplete(Quest, QuestGiver, Player)
  51. end
  52. end
  53. function Accepted(Quest, QuestGiver, Player)
  54. FaceTarget(QuestGiver, Player)
  55. Dialog.New(QuestGiver, Player)
  56. Dialog.AddDialog("It's a fair distance, but not hard to find. Take the south path around the mountain range that splits Antonica. Once you cross the bridge at the far side of the valley, follow the river a hundred cogs or so, then turn east until you see a small keep with a moat. Captain Beltho should be there. If he's not, I'll want to know why he's not at his post.")
  57. Dialog.AddVoiceover("voiceover/english/captain_eitoa/antonica/captaineitoa005.mp3", 1672181328, 1405369900)
  58. Dialog.AddOption("I'll return when I'm finished.")
  59. Dialog.Start()
  60. end
  61. function Declined(Quest, QuestGiver, Player)
  62. -- Add dialog here for when the quest is declined
  63. end