reliving_the_past.lua 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. --[[
  2. Script Name : reliving_the_past.lua
  3. Script Purpose : Handles the quest, "Reliving the Past"
  4. Script Author : Jabantiz
  5. Script Date : 6/19/2018
  6. Script Notes :
  7. Zone : Zek, the Orcish Wastes
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepLocation(Quest, 1, "I need to check whether Tallon grunts are still in the hills just beyond the docks.", 10, "I will do the things Ismena Cellus requested.", 11, 496.05, -40.71, 208.04)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. FaceTarget(QuestGiver, Player)
  19. local con = CreateConversation()
  20. AddConversationOption(con, "I'll be back.")
  21. StartConversation(con, QuestGiver, Player, "You're very kind. I recall that after leaving the safety of the docks, we were set upon by Tallon orcs. While many orcs seem to favor working in groups, the Tallon grunts preferred one-on-one battles. Would you check whether they are still along the hills just outside the fort?")
  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 Step1Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I've seen the orc's encampment.")
  31. AddQuestStepChat(Quest, 2, "I need to return to Ismena Cellus on the Warship Dock in Zek.", 1, "I will do the things Ismena Cellus requested.", 11, 1900056)
  32. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  33. end
  34. function Step2Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 2, "I've spoken with Ismena Cellus.")
  36. AddQuestStepKill(Quest, 3, "I will slay some Tallon grunts for Ismena's sake.", 10, 100, "I will do the things Ismena Cellus requested.", 611, 1900020)
  37. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  38. end
  39. function Step3Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 3, "I have slain some Tallon grunts.")
  41. AddQuestStepChat(Quest, 4, "I need to return to Ismena Cellus on the Warship Dock in Zek.", 1, "I will do the things Ismena Cellus requested.", 11, 1900056)
  42. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  43. end
  44. function Step4Complete(Quest, QuestGiver, Player)
  45. UpdateQuestStepDescription(Quest, 4, "I've spoken with Ismena Cellus.")
  46. AddQuestStep(Quest, 5, "I need to visit the Grove of Stones in Zek.", 1, 100, "I will do the things Ismena Cellus requested.", 11)
  47. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  48. end
  49. function Step5Complete(Quest, QuestGiver, Player)
  50. UpdateQuestStepDescription(Quest, 5, "I've seen the Grove of Stones.")
  51. AddQuestStepChat(Quest, 6, "I need to return to Ismena Cellus on the Warship Dock in Zek.", 1, "I will do the things Ismena Cellus requested.", 11, 1900056)
  52. AddQuestStepCompleteAction(Quest, 6, "QuestComplete")
  53. end
  54. function QuestComplete(Quest, QuestGiver, Player)
  55. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  56. UpdateQuestStepDescription(Quest, 6, "I've spoken with Ismena Cellus.")
  57. UpdateQuestTaskGroupDescription(Quest, 1, "I've done what I could for Ismena Cellus.")
  58. UpdateQuestDescription(Quest, "I've done what Ismena requested. Hopefully, she'll now be able to get her memoirs written.")
  59. GiveQuestReward(Quest, Player)
  60. end
  61. function Reload(Quest, QuestGiver, Player, Step)
  62. if Step == 1 then
  63. Step1Complete(Quest, QuestGiver, Player)
  64. elseif Step == 2 then
  65. Step2Complete(Quest, QuestGiver, Player)
  66. elseif Step == 3 then
  67. Step3Complete(Quest, QuestGiver, Player)
  68. elseif Step == 4 then
  69. Step4Complete(Quest, QuestGiver, Player)
  70. elseif Step == 5 then
  71. Step5Complete(Quest, QuestGiver, Player)
  72. elseif Step == 6 then
  73. QuestComplete(Quest, QuestGiver, Player)
  74. end
  75. end