9
3

tree_within_a_tree.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : Quests/Antonica/tree_within_a_tree.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.22 08:08:58
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepZoneLoc(Quest, 1, "I need to find the tree in the Thundering Steppes.", 10, "I need to find the special tree that Ulinara saw and gather an acorn from it.", 11, 616, 20, 411, 249)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/oracle_ulinara/antonica/oracleulinara003.mp3", "", "", 3594260827, 1990631889, Player)
  19. AddConversationOption(conversation, "Great, I'm on my way to finding that tree for you.")
  20. StartConversation(conversation, QuestGiver, Player, "When I peered into the Karma Pool, I saw a constellation of stars that told me where the tree could be found. Go to the heart of a region called the Thundering Steppes, near the natives. You will seek a tree within a tree -- one dead and one alive. When you find it, take a Golden Acorn from its branches and return to me.")
  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 Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I found the "Tree within a Tree".")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I found the tree Ulinara sought and foraged an acorn.")
  31. AddQuestStepChat(Quest, 2, "I must return to Ulinara.", 1, "I should give this acorn to Ulinara.", 84, 120018)
  32. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  36. UpdateQuestStepDescription(Quest, 2, "I gave the acorn to Ulinara.")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I gave the acorn to Ulinara.")
  38. UpdateQuestDescription(Quest, "I found the tree that Ulinara saw and was able to gather an acorn from it. That tree was very tall! She was very pleased and showed me how to use the acorn in a special recipe after I indicated on a map the tree's location. <br> <br>")
  39. GiveQuestReward(Quest, Player)
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. Step1Complete(Quest, QuestGiver, Player)
  44. elseif Step == 2 then
  45. QuestComplete(Quest, QuestGiver, Player)
  46. end
  47. end