9
3

stop_the_saboteurs.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : Quests/IsleofRefuge/stop_the_saboteurs.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.20 05:09:58
  5. Script Purpose :
  6. Zone : IsleofRefuge
  7. Quest Giver: goblin attack plans
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStep(Quest, 1, "I need to find the goblin saboteurs down by the beach.", 1, 100,"I need to round up some allies and find the goblins who are lying in wait. The note says they should be down by a beach on the goblin side of the bay.", 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, "I found the saboteurs!")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I found the saboteurs!")
  27. AddQuestStep(Quest, 2, "I need to slay all the goblin saboteurs to protect the ships!", 1, 100, "I need to slay all the goblin saboteurs before they can burn down any of the ships pulling into port!", 611)
  28. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  29. end
  30. function QuestComplete(Quest, QuestGiver, Player)
  31. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  32. UpdateQuestStepDescription(Quest, 2, "I defeated all the goblin saboteurs.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I defeated all the goblin saboteurs.")
  34. UpdateQuestDescription(Quest, "It looks like the goblins were planning to burn down the next ship to pull into port. We were able to stop them before this happened and slay the little monsters on the beach.")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. Step1Complete(Quest, QuestGiver, Player)
  40. elseif Step == 2 then
  41. QuestComplete(Quest, QuestGiver, Player)
  42. end
  43. end