checking_on_charles.lua 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. --[[
  2. Script Name : checking_on_charles.lua
  3. Script Purpose : Handles the quest, "Checking on Charles"
  4. Script Author : premierio015
  5. Script Date : 19.05.2020
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Outpost of the Overlord
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "Speak with Nogg Dreadscar.", 1, "Speak with some of the other Freeportians to see what they've heard about Charles Arker.", 11, 2780048 )
  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, "Spoke to Nogg Dreadscar.")
  27. AddQuestStepChat(Quest, 2, "Speak with Trainer Jayla Surfrider.", 1, "Speak with some of the other Freeportians to see what they've heard about Charles Arker.", 11, 2780044)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I spoke to Jayla Surfrider. She didn't know him.")
  32. AddQuestStepChat(Quest, 3, "Speak with Trainer Darg Frostwind.", 1, "Speak with some of the other Freeportians to see what they've heard about Charles Arker.", 11, 2780045)
  33. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  34. end
  35. function Step3Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 3, "I spoke to Darg Frostwind. He didn't know Charles, and never trained him.")
  37. AddQuestStepChat(Quest, 4, "Speak with Captain Pinious, just inside the tower.", 1, "Speak with some of the other Freeportians to see what they've heard about Charles Arker.", 11, 2780043)
  38. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  39. end
  40. function Step4Complete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 4, "I spoke to Captain Pinious, who can't recall Charles.")
  42. AddQuestStepChat(Quest, 5, "Speak with Chef Gorga.", 1, "Speak with some of the other Freeportians to see what they've heard about Charles Arker.", 11, 2780057)
  43. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  44. end
  45. function Step5Complete(Quest, QuestGiver, Player)
  46. UpdateQuestStepDescription(Quest, 5, "I spoke to Chef Gorga. She doesn't know him, though she might like to cook him.")
  47. AddQuestStepChat(Quest, 6, "Speak with Trainer Vella N'Dur.", 1, "Speak with some of the other Freeportians to see what they've heard about Charles Arker.", 11, 2780055)
  48. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  49. end
  50. function Step6Complete(Quest, QuestGiver, Player)
  51. UpdateQuestStepDescription(Quest, 6, "I spoke to Vella N'Dur, who also doesn't know Charles.")
  52. AddQuestStepChat(Quest, 7, "Speak with Trainer Corx Knickknack.", 1, "Speak with some of the other Freeportians to see what they've heard about Charles Arker.", 11, 2780036)
  53. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  54. end
  55. function Step7Complete(Quest, QuestGiver, Player)
  56. UpdateQuestStepDescription(Quest, 7, "I spoke to Corx Knickknack, who didn't know Charles.")
  57. AddQuestStepChat(Quest, 8, "Speak with Assassin Vamir.", 1, "Speak with some of the other Freeportians to see what they've heard about Charles Arker.", 11, 2780073)
  58. AddQuestStepCompleteAction(Quest, 8, "Step8Complete")
  59. end
  60. function Step8Complete(Quest, QuestGiver, Player)
  61. UpdateQuestStepDescription(Quest, 8, "I spoke to Assassin Vamir, who says Charles is rather boring.")
  62. UpdateQuestTaskGroupDescription(Quest, 1, "I've spoken with the locals.")
  63. AddQuestStepChat(Quest, 9, "Speak with Zherran Tzizzink. She'll probably be lurking near that firepit in the Outpost.", 1, "The local Freeportians had nothing bad to say about Charles. Nothing good, either. Time to tell Zherran Tzizzink the news.", 11, 2780096)
  64. AddQuestStepCompleteAction(Quest, 9, "QuestComplete")
  65. end
  66. function QuestComplete(Quest, QuestGiver, Player)
  67. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  68. UpdateQuestStepDescription(Quest, 9, "I spoke with Zherran Tzizzink.")
  69. UpdateQuestTaskGroupDescription(Quest, 2, "I've spoken with Zherran.")
  70. UpdateQuestDescription(Quest, "I spoke with several of the Freeportians here at the Outpost of the Overlord. Charles Arker seems to have left very little impression, even with those who are at the same camp as he is! Guess the lack of luster to his name is not going to stop the wedding plans for him. I can only wish him all the best.")
  71. GiveQuestReward(Quest, Player)
  72. end
  73. function Reload(Quest, QuestGiver, Player, Step)
  74. if Step == 1 then
  75. Step1Complete(Quest, QuestGiver, Player)
  76. elseif Step == 2 then
  77. Step2Complete(Quest, QuestGiver, Player)
  78. elseif Step == 3 then
  79. Step3Complete(Quest, QuestGiver, Player)
  80. elseif Step == 4 then
  81. Step4Complete(Quest, QuestGiver, Player)
  82. elseif Step == 5 then
  83. Step5Complete(Quest, QuestGiver, Player)
  84. elseif Step == 6 then
  85. Step6Complete(Quest, QuestGiver, Player)
  86. elseif Step == 7 then
  87. Step7Complete(Quest, QuestGiver, Player)
  88. elseif Step == 8 then
  89. Step8Complete(Quest, QuestGiver, Player)
  90. elseif Step == 9 then
  91. QuestComplete(Quest, QuestGiver, Player)
  92. end
  93. end