a_visit_to_the_tower_of_the_oracles.lua 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/eoradalanu_otuden/qey_south/eoradalanuotuden003.mp3", "", "no", 1979895616, 4053136415, Player)
  19. AddConversationOption(conversation, "I'll keep that in mind.")
  20. 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.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function QuestComplete(Quest, QuestGiver, Player)
  29. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  30. UpdateQuestStepDescription(Quest, 1, "I visited the Tower of the Oracles.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I found the Tower of the Oracles out in the Antonican hills.")
  32. 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...?")
  33. GiveQuestReward(Quest, Player)
  34. end
  35. function Reload(Quest, QuestGiver, Player, Step)
  36. if Step == 1 then
  37. QuestComplete(Quest, QuestGiver, Player)
  38. end
  39. end