in_the_name_of_prestige.lua 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. --[[
  2. Script Name : Quests/OutpostOverlord/in_the_name_of_prestige.lua
  3. Script Purpose :
  4. Script Author : vo1d
  5. Script Date : 2019.11.02
  6. Script Notes :
  7. Zone : Outpost of the Overlord
  8. Quest Giver : Charles Arker
  9. Preceded by : None
  10. Followed by : In the Name of Honor
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "Receive the parchment pieces from Charles Arker.", 1, "Charles Arker will give me the pieces of parchment I'll need to investigate this puzzle.", 11, 2780075)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "Received the first parchment pieces.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I've received the initial pieces of parchment from Charles Arker.")
  28. AddQuestStep(Quest, 2, "I should take a look at these parchment scraps given to me by Charles Arker to get some more clues on where to gather more.", 1, 100, "The Tunarians have probably hidden the rest of this parchment and they feel secure. It will be up to me to shatter their security.", 11)
  29. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  30. end
  31. function Step2Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I've examined the parchment.")
  33. AddQuestStepKill(Quest, 3, "Search the Tunarian horse sentries for more pieces of parchment.", 3, 100, "The Tunarians have probably hidden the rest of this parchment and they feel secure. It will be up to me to shatter their security.", 611, 2780070)
  34. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  35. end
  36. function Step3Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 3, "I've located another piece of parchment.")
  38. AddQuestStep(Quest, 4, "I should examine the parchment pieces.", 1, 100, "The Tunarians have probably hidden the rest of this parchment and they feel secure. It will be up to me to shatter their security.", 11)
  39. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  40. end
  41. function Step4Complete(Quest, QuestGiver, Player)
  42. UpdateQuestStepDescription(Quest, 4, "I've examined the parchment.")
  43. AddQuestStepKill(Quest, 5, "Remove some of the wilderbear cubs. Taking out the young will delay the Tunarian plans for them.", 4, 100, "The Tunarians have probably hidden the rest of this parchment and they feel secure. It will be up to me to shatter their security.", 93, 2780069)
  44. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  45. end
  46. function Step5Complete(Quest, QuestGiver, Player)
  47. UpdateQuestStepDescription(Quest, 5, "I've slain the wilderbear cubs.")
  48. AddQuestStepKill(Quest, 6, "Now to remove some of the wilderbears themselves!", 4, 100, "The Tunarians have probably hidden the rest of this parchment and they feel secure. It will be up to me to shatter their security.", 93, 2780071)
  49. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  50. end
  51. function Step6Complete(Quest, QuestGiver, Player)
  52. UpdateQuestStepDescription(Quest, 6, "I've slain several wilderbears.")
  53. AddQuestStep(Quest, 7, "I'm not sure whether there's more to this parchment or not. I'll take another look and see if it makes any more sense now.", 1, 100, "The Tunarians have probably hidden the rest of this parchment and they feel secure. It will be up to me to shatter their security.", 11)
  54. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  55. end
  56. function Step7Complete(Quest, QuestGiver, Player)
  57. UpdateQuestStepDescription(Quest, 7, "I've found most, but not all, of the parchment.")
  58. UpdateQuestTaskGroupDescription(Quest, 2, "I've located many pieces of this parchment and pieced together what I could locate.")
  59. AddQuestStepChat(Quest, 8, "Speak with Charles Arker.", 1, "I need to return to Charles Arker and show him the pieces I've assembled. Hopefully, he has found the scraps that I missed and we'll know what the Tunarians are doing.", 11, 2780075)
  60. AddQuestStepCompleteAction(Quest, 8, "QuestComplete")
  61. end
  62. function QuestComplete(Quest, QuestGiver, Player)
  63. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  64. UpdateQuestStepDescription(Quest, 8, "I spoke with Charles Arker.")
  65. UpdateQuestTaskGroupDescription(Quest, 3, "I returned to Charles Arker with the parchment pieces.")
  66. UpdateQuestDescription(Quest, "Though I located some of the notes' scattered pieces, I wasn't able to locate every piece. Neither was Charles Arker, though he still believes this note has some significance. It's frustrating to realize that the Tunarians are planning something, yet we are unable to completely solve the riddle. Perhaps in time, more will be made clear to me.")
  67. GiveQuestReward(Quest, Player)
  68. end
  69. function Reload(Quest, QuestGiver, Player, Step)
  70. if Step == 1 then
  71. Step1Complete(Quest, QuestGiver, Player)
  72. elseif Step == 2 then
  73. Step2Complete(Quest, QuestGiver, Player)
  74. elseif Step == 3 then
  75. Step3Complete(Quest, QuestGiver, Player)
  76. elseif Step == 4 then
  77. Step4Complete(Quest, QuestGiver, Player)
  78. elseif Step == 5 then
  79. Step5Complete(Quest, QuestGiver, Player)
  80. elseif Step == 6 then
  81. Step6Complete(Quest, QuestGiver, Player)
  82. elseif Step == 7 then
  83. Step7Complete(Quest, QuestGiver, Player)
  84. elseif Step == 8 then
  85. QuestComplete(Quest, QuestGiver, Player)
  86. end
  87. end