9
3

GnollReport.lua 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. function Init(Quest)
  13. 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)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "Spoke with Captain Beltho.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I've spoken with Captain Beltho, though he does not have the report ready at this time.")
  19. AddQuestStepLocation(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)
  20. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  21. end
  22. function Step2Complete(Quest, QuestGiver, Player)
  23. UpdateQuestStepDescription(Quest, 2, "Found the hidden entrance of Blackburrow.")
  24. UpdateQuestTaskGroupDescription(Quest, 2, "I've found the hidden entrance to the gnoll lair at the base of the southern range in Antonica.")
  25. 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)
  26. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  27. end
  28. function Step3Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 3, "Spoke to Captain Beltho.")
  30. UpdateQuestTaskGroupDescription(Quest, 3, "I've picked up the report from Captain Beltho in Gnollslayer Keep.")
  31. 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)
  32. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  36. UpdateQuestStepDescription(Quest, 4, "Spoke to Captain Eitoa.")
  37. UpdateQuestTaskGroupDescription(Quest, 4, "I've safely delivered Captain Beltho's report to Captain Eitoa.")
  38. 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.")
  39. GiveQuestReward(Quest, Player)
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. Step1Complete(Quest, QuestGiver, Player)
  44. elseif Step == 2 then
  45. Step2Complete(Quest, QuestGiver, Player)
  46. elseif Step == 3 then
  47. Step3Complete(Quest, QuestGiver, Player)
  48. elseif Step == 4 then
  49. QuestComplete(Quest, QuestGiver, Player)
  50. end
  51. end
  52. function Accepted(Quest, QuestGiver, Player)
  53. -- Add dialog here for when the quest is accepted
  54. end
  55. function Declined(Quest, QuestGiver, Player)
  56. -- Add dialog here for when the quest is declined
  57. end