TheKeepOfTheArdentNeedle.lua 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : TheKeepoftheArdentNeedle.lua
  3. Script Purpose : Handles the quest, "The Keep of the Ardent Needle"
  4. Script Author : geordie0511
  5. Script Date : 19.03.2019
  6. Script Notes : Updated Dialog (Dorbin 5/10/2023)
  7. Zone : Antonica
  8. Quest Giver : Captain Eitoa
  9. Preceded by : None
  10. Followed by : Gnoll Report
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepLocation(Quest, 1, "Search the Keep of the Ardent Needle.", 30, "I must check the Keep of the Ardent Needle thoroughly.", 11, -555, -12, -327)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "Searched the Keep of the Ardent Needle.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I've inspected the Keep of the Ardent Needle, and found nothing suspicious.")
  20. AddQuestStepChat(Quest, 2, "Speak with Captain Eitoa.", 1, "I must return to Captain Eitoa and inform her of the keep's status.", 11, 120069)
  21. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  22. end
  23. function QuestComplete(Quest, QuestGiver, Player)
  24. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  25. UpdateQuestStepDescription(Quest, 2, "Spoken with Captain Eitoa.")
  26. UpdateQuestTaskGroupDescription(Quest, 2, "I've spoken with Captain Eitoa and informed her of the keep's status.")
  27. UpdateQuestDescription(Quest, "Captain Eitoa's suspicions were unfounded, yet for a moment she still seemed concerned. Guard Loxley's work defending the tower remains unquestioned, and the keep remains clear of any form of wrong-doing.")
  28. GiveQuestReward(Quest, Player)
  29. end
  30. function Reload(Quest, QuestGiver, Player, Step)
  31. if Step == 1 then
  32. Step1Complete(Quest, QuestGiver, Player)
  33. elseif Step == 2 then
  34. QuestComplete(Quest, QuestGiver, Player)
  35. end
  36. end
  37. function Accepted(Quest, QuestGiver, Player)
  38. FaceTarget(QuestGiver, Player)
  39. Dialog.New(QuestGiver, Player)
  40. Dialog.AddDialog("Go then. You'll find the Keep on the north side of the ridge, just this side of the Tower of the Oracles. It's one of the few keeps in pristine condition.")
  41. Dialog.AddVoiceover("voiceover/english/captain_eitoa/antonica/captaineitoa002.mp3", 2766073172, 817198256)
  42. PlayFlavor(QuestGiver,"","","agree",0,0,Player)
  43. Dialog.AddOption("I'll return after I've performed the inspection.")
  44. Dialog.Start()
  45. end
  46. function Declined(Quest, QuestGiver, Player)
  47. -- Add dialog here for when the quest is declined
  48. end