prove_yourself.lua 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. --[[
  2. Script Name : Quests/NektulosForest/prove_yourself.lua
  3. Script Purpose : Handles the quest, "Prove Yourself"
  4. Script Author : premierio015
  5. Script Date : 19.06.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Nektulos Forest
  8. Quest Giver : Bruhn K'Viir (1790260)
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "I need to drop off the supplies at the scout camp on the southeast edge of the beach", 1, 100, "I must go to each scout camp and drop off the supplies. There are two scout camps on the beach, and one just beyond the beach off the path leading into the forest.", 397)
  14. AddQuestStep(Quest, 2, "I need to drop off the supplies at the scout camp just outside of the beach, off the path leading into the forest.", 1, 100, "I must go to each scout camp and drop off the supplies. There are two scout camps on the beach, and one just beyond the beach off the path leading into the forest.", 398)
  15. AddQuestStep(Quest, 3, "I need to drop off the supplies at the scout camp on the beach to the northwest of Bruhn's tent.", 1, 100, "I must go to each scout camp and drop off the supplies. There are two scout camps on the beach, and one just beyond the beach off the path leading into the forest.", 399)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  17. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  18. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  19. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  20. end
  21. function Accepted(Quest, QuestGiver, Player)
  22. -- Add dialog here for when the quest is accepted
  23. end
  24. function Declined(Quest, QuestGiver, Player)
  25. -- Add dialog here for when the quest is declined
  26. end
  27. function Deleted(Quest, QuestGiver, Player)
  28. -- Remove any quest specific items here when the quest is deleted
  29. end
  30. function Step1Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 1, "I dropped off the supplies at the first scout camp")
  32. CheckProgress(Quest, QuestGiver, Player)
  33. end
  34. function Step2Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 2, "I dropped off the supplies at the second scout camp.")
  36. CheckProgress(Quest, QuestGiver, Player)
  37. end
  38. function CheckProgress(Quest, QuestGiver, Player)
  39. if QuestStepIsComplete(Player, 5256, 1) and QuestStepIsComplete(Player, 5256, 2) and QuestStepIsComplete(Player, 5256, 3) then
  40. UpdateQuestTaskGroupDescription(Quest, 1, "I dropped off the supplies at all three scout camps.")
  41. AddQuestStepChat(Quest, 4, "I need to let Bruhn K'Viir know that I delivered the supplies", 1, "I need to return to Bruhn K'Viir and let him know the supplies have been delivered.", 11, 1790260)
  42. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  43. end
  44. end
  45. function Step3Complete(Quest, QuestGiver, Player)
  46. UpdateQuestStepDescription(Quest, 3, "I dropped off the supplies at the third scout camp.")
  47. CheckProgress(Quest, QuestGiver, Player)
  48. end
  49. function QuestComplete(Quest, QuestGiver, Player)
  50. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  51. UpdateQuestStepDescription(Quest, 4, "I spoke with Bruhn")
  52. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken with Bruhn.")
  53. UpdateQuestDescription(Quest, "I resupplied the scouts at all of the camps. They then promptly ambushed me, and I promptly disposed of them.")
  54. GiveQuestReward(Quest, Player)
  55. end
  56. function Reload(Quest, QuestGiver, Player, Step)
  57. if Step == 1 then
  58. Step1Complete(Quest, QuestGiver, Player)
  59. elseif Step == 2 then
  60. Step2Complete(Quest, QuestGiver, Player)
  61. elseif Step == 3 then
  62. Step3Complete(Quest, QuestGiver, Player)
  63. elseif Step == 4 then
  64. QuestComplete(Quest, QuestGiver, Player)
  65. end
  66. end