the_missing.lua 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. --[[
  2. Script Name : Quests/WorldEvent/the_missing.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.05.18 03:05:58
  5. Script Purpose :
  6. Zone : WorldEvent
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStep(Quest, 1, "Track down Giidib. He and Frup separated on the southern beaches of Antonica.", 1, 100, "Track down Giidib. It's very likely his path could be picked up from one of the southern beaches in Antonica.", 11)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. -- Add dialog here for when the quest is accepted
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function Step1Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "It looks like Giidib managed to make it off of the beach.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "It looks like Giidib has managed to make it off of the beach and into the forest above.")
  27. AddQuestStep(Quest, 2, "Continue to track down Giidib.", 1, 100, "Continue to track Giidib until you are able to locate him.", 11)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "The froglok tracks continue on to the northwest.")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "Giidib's path led up to a broken log. His tracks lead off to the northwest.")
  33. AddQuestStep(Quest, 3, "Continue to track down Giidib.", 1, 100, "Continue to track Giidib until you are able to locate him.", 11)
  34. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  35. end
  36. function Step3Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 3, "The froglok tracks continue back to the east.")
  38. UpdateQuestTaskGroupDescription(Quest, 3, "Giidib looks like he stopped here at a rock to take a rest for a bit. The tracks continue back to the east.")
  39. AddQuestStep(Quest, 4, "Continue to track down Giidib.", 1, 100, "Continue to track Giidib until you are able to locate him.", 11)
  40. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  41. end
  42. function Step4Complete(Quest, QuestGiver, Player)
  43. UpdateQuestStepDescription(Quest, 4, "The froglok tracks continue up to the north.")
  44. UpdateQuestTaskGroupDescription(Quest, 4, "Giidib's webbed footprints stop behind this log. It looks like he may have been trying to hide from something... or someone... The tracks continue up to the north.")
  45. AddQuestStep(Quest, 5, "Continue to track down Giidib.", 1, 100, "Continue to track Giidib until you are able to locate him.", 11)
  46. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  47. end
  48. function Step5Complete(Quest, QuestGiver, Player)
  49. UpdateQuestStepDescription(Quest, 5, "The froglok tracks veer back to the southwest.")
  50. UpdateQuestTaskGroupDescription(Quest, 5, "Some sort of scuffle broke out here. The tracks indicate that someone may have come upon Giidib and ambushed him. Broken branches in the tree limbs indicate that Giidib may have hopped into the upper branches to escape. The tracks veer back to the southwest.")
  51. AddQuestStep(Quest, 6, "Continue to track down Giidib.", 1, 100, "Continue to track Giidib until you are able to locate him.", 11)
  52. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  53. end
  54. function Step6Complete(Quest, QuestGiver, Player)
  55. UpdateQuestStepDescription(Quest, 6, "The froglok tracks end at this rock.")
  56. UpdateQuestTaskGroupDescription(Quest, 6, "Injured and bleeding, Giidib looks like he managed to make it to this pond area. It's unlikely he could have made it much further, he must be around here somewhere.")
  57. AddQuestStep(Quest, 7, "Interact with Giidib and lead him back to the nearest guard tower.", 1, 100, "I found Giidib, but he is seriously injured. I must lead him to the nearest guard tower and try to seek medical help for him.", 11)
  58. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  59. end
  60. function Step7Complete(Quest, QuestGiver, Player)
  61. UpdateQuestStepDescription(Quest, 7, "Giidib was unable to survive upon reaching the guard tower.")
  62. UpdateQuestTaskGroupDescription(Quest, 7, "Giidib's death just outside the tower is tragic to be sure, but now Frup may be in danger.")
  63. AddQuestStepChat(Quest, 8, "Speak with Frup", 1, "Inform Frup Groaak of Giidib's death.", 11, 2360014,6600441 )
  64. AddQuestStepCompleteAction(Quest, 8, "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, 8, "Frup has been informed of Giidib's death.")
  69. UpdateQuestTaskGroupDescription(Quest, 8, "Frup Groaak will need a while to think about the information I've given him.")
  70. UpdateQuestDescription(Quest, "Though I tried to get Giidib to safety, the assassin's poison had already done its work. Upon arriving at the tower, he collapsed and died. If I read Frup correctly, it seems he may think there is something larger behind this attack.")
  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. QuestComplete(Quest, QuestGiver, Player)
  90. end
  91. end