searching_for_a_scroll.lua 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : Quests/StarcrestCommune/searching_for_a_scroll.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.03 08:07:08
  5. Script Purpose :
  6. Zone : StarcrestCommune
  7. Quest Giver: Zentomaron Croosinaden
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to pick up a scroll from Scribe Varion Smitelin in Nettleville.", 1, "I'm to retrieve a scroll from the scribe Varion Smitelin in Nettleville.", 11,2330056)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"Nettleville")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. Dialog.AddDialog("Ah! That would solve our troubles indeed! His name is Sage Varion Smitelin. Travel to Nettleville, find his shop, and tell him Zentomaron Croosinaden demands he relinquish the ancient scroll of erudite lore! I will reward you upon your return.")
  21. PlayFlavor(QuestGiver, "", "", "nod", 0, 0, Player)
  22. Dialog.AddVoiceover("voiceover/english/zentomaron_croosinaden/qey_village02/zentomaroncroosinaden001.mp3", 613750984, 1133411541)
  23. Dialog.AddOption("Varion will know your demands. I'll return once I let him know!")
  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. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  34. UpdateQuestStepDescription(Quest, 1, "I've been to Scribe Varion Smitelin.")
  35. UpdateQuestTaskGroupDescription(Quest, 1, "I've been to Varion, and he refuses to give up the scroll.")
  36. UpdateQuestZone(Quest,"Starcrest Commune")
  37. AddQuestStepChat(Quest, 2, "I should return to Zentomaron Croosinaden in Starcrest.", 1, "Zentomaron will not be pleased to hear the news on the scroll. I last saw him in Starcrest Commune.", 11,2340020)
  38. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  39. end
  40. function QuestComplete(Quest, QuestGiver, Player)
  41. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  42. UpdateQuestStepDescription(Quest, 2, "I've given Zentomaron the news on the scroll.")
  43. UpdateQuestTaskGroupDescription(Quest, 2, "I've given Zentomaron the news on the scroll")
  44. UpdateQuestDescription(Quest, "Scribe Varion would not divulge the scroll's location to Zentomaron. I fear whatever debate he's having will go on forever. I passed on the scribe's message to leave his nephew alone, but I don't know how seriously Zentomaron will take that request.")
  45. GiveQuestReward(Quest, Player)
  46. end
  47. function Reload(Quest, QuestGiver, Player, Step)
  48. if Step == 1 then
  49. Step1Complete(Quest, QuestGiver, Player)
  50. elseif Step == 2 then
  51. QuestComplete(Quest, QuestGiver, Player)
  52. end
  53. end