9
3

an_ode_to_oakmyst.lua 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. --[[
  2. Script Name : an_ode_to_oakmyst.lua
  3. Script Purpose : Handles the quest, "An Ode to Oakmyst"
  4. Script Author : ememjr
  5. Script Date : 5/9/2017
  6. Script Notes :
  7. Zone : Oakmyst Forest
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepLocation(Quest, 1, "Go to Sloshed Tree", 10, "Visit the Oakmyst location hinted of in the line \"A lonesome trunk drifting amidst the clear blue.\"", 11, 924, 2, -276)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "Visited Sloshed Tree")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I visited the Sloshed Tree.")
  19. AddQuestStepLocation(Quest, 2, "Go to Oakmyst Falls", 10, "Visit the Oakmyst location hinted of in the line \"The life giver billows and feeds.\"", 11, 994, 0, -204)
  20. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  21. end
  22. function Step2Complete(Quest, QuestGiver, Player)
  23. UpdateQuestStepDescription(Quest, 2, "Visited Oakmyst Falls")
  24. UpdateQuestTaskGroupDescription(Quest, 2, "I visited Oakmyst Falls.")
  25. AddQuestStepLocation(Quest, 3, "Go to Shaded Tail Glade", 10, "Visit the Oakmyst location hinted of in the line \"Dark beauty with huddled rodent masses hangs over the trailed pass.\"", 11, 866, 11, -226)
  26. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  27. end
  28. function Step3Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 3, "Visited Shaded Tail Glade")
  30. UpdateQuestTaskGroupDescription(Quest, 3, "I visited the Shaded Tail Glade")
  31. AddQuestStepLocation(Quest, 4, "Go to Fay Overlook", 10, "Visit the Oakmyst location hinted of in the line \"A perch above the trees to gaze down upon the shimmering fay.\"", 11, 853, 13, -314)
  32. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  33. end
  34. function Step4Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 4, "Visited Fay Overlook")
  36. UpdateQuestTaskGroupDescription(Quest, 4, "I visited the Fay Overlook.")
  37. AddQuestStepLocation(Quest, 5, "Go to Teardrop Cave", 10, "Visit the Oakmyst location hinted of in the line \"A place of secluded beauty, flowering an isolated teardrop.\"", 11, 935, 12, -172 )
  38. AddQuestStepCompleteAction(Quest, 5, "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, 5, "Visited Teardrop Cave")
  43. UpdateQuestTaskGroupDescription(Quest, 5, "I visited Teardrop Cave.")
  44. UpdateQuestDescription(Quest, "I visited all the points of interests hinted at within the poem called \"An Ode to Oakmyst\".")
  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. Step2Complete(Quest, QuestGiver, Player)
  52. elseif Step == 3 then
  53. Step3Complete(Quest, QuestGiver, Player)
  54. elseif Step == 4 then
  55. Step4Complete(Quest, QuestGiver, Player)
  56. elseif Step == 5 then
  57. QuestComplete(Quest, QuestGiver, Player)
  58. end
  59. end
  60. function Accepted(Quest, QuestGiver, Player)
  61. -- Add dialog here for when the quest is accepted
  62. end
  63. function Declined(Quest, QuestGiver, Player)
  64. -- Add dialog here for when the quest is declined
  65. end