a_visit_to_the_tower_of_the_oracles.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : Quests/SouthQeynos/a_visit_to_the_tower_of_the_oracles.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.15 09:05:59
  5. Script Purpose :
  6. Zone : SouthQeynos
  7. Quest Giver: Eoradalanu Otuden
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepLocation(Quest, 1, "I need to find the Tower of the Oracles.", 5, "I should see if I can locate the Tower of the Oracles out in the Antonican hills.", 11, -1033.25, 14.12, -627.10)
  13. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  14. UpdateQuestZone(Quest,"Antonica")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "voiceover/english/eoradalanu_otuden/qey_south/eoradalanuotuden003.mp3", "", "no", 1979895616, 4053136415, Player)
  20. AddConversationOption(conversation, "I'll keep that in mind.")
  21. StartConversation(conversation, QuestGiver, Player, "I doubt they appreciate visitors, so walk carefully if you plan on visiting their tower! They do not tolerate dissruptions to their research.")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function QuestComplete(Quest, QuestGiver, Player)
  30. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  31. UpdateQuestStepDescription(Quest, 1, "I visited the Tower of the Oracles.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I found the Tower of the Oracles out in the Antonican hills.")
  33. UpdateQuestDescription(Quest, "I journeyed to the Tower of the Oracles and saw the structure first hand. It was an impressive tower but not as spectacular as the Three Towers in Qeynos, but can anything compare to that...?")
  34. GiveQuestReward(Quest, Player)
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. QuestComplete(Quest, QuestGiver, Player)
  39. end
  40. end