corroborating_the_existence_of_the_stormhold_library.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : Quests/Antonica/corroborating_the_existence_of_the_stormhold_library.lua
  3. Script Author : Premierio015
  4. Script Date : 2023.04.01 10:04:40
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepZoneLoc(Quest, 1, "I need to find the Stormhold library.", 1, "I need to find the library inside Stormhold to verify Timothus Yelrow's information.", 11, 3, -26, -129, 12)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone("Stormhold")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. Dialog.AddDialog("You? Hmm ... you do look sufficiently clever in a peasant-like way. Perhaps you could survive a minute or two inside Stormhold. I will gladly pay you if you can penetrate Stormhold and return to me with information that verifies the existence of the library.")
  21. Dialog.AddVoiceover("voiceover/english/timothus_yerlow/antonica/timothusyelrow003.mp3", 911702811, 1037330518)
  22. PlayFlavor(QuestGiver,"","","ponder",0,0,Player)
  23. Dialog.AddOption("I'll find it. A library doesn't have too many places to hide.")
  24. Dialog.Start()
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. -- Add dialog here for when the quest is declined
  28. end
  29. function Deleted(Quest, QuestGiver, Player)
  30. -- Remove any quest specific items here when the quest is deleted
  31. end
  32. function Step1Complete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 1, "I found the library.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "I found the library inside Stormhold.")
  35. UpdateQuestZone("Antonica")
  36. AddQuestStepChat(Quest, 2, "I need to return to Timothus Yelrow.", 1, "I need to return to Timothus Yelrow to tell him of my findings.", 11, 120299)
  37. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  38. end
  39. function QuestComplete(Quest, QuestGiver, Player)
  40. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  41. UpdateQuestStepDescription(Quest, 2, "I told Timothus Yelrow what I found.")
  42. UpdateQuestTaskGroupDescription(Quest, 2, "I told Timothus Yelrow of my findings in the library.")
  43. UpdateQuestDescription(Quest, "I was able to find the library in Stormhold and provided Timothus Yelrow with information to verify what he previous heard. It looks like Timothus has plans concerning the uncovered library.")
  44. GiveQuestReward(Quest, Player)
  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