9
3

halt_who_goes_there.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : halt_who_goes_there.lua
  3. Script Purpose : Handles the quest, "Halt, Who Goes There?"
  4. Script Author : Neveruary
  5. Script Date : 11/27/2022
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Enchanted Lands
  8. Quest Giver : Deputy Kegie
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "Slay the Mistcaller mischiefmakers near the Fae Island!", 15, 100, "Assist Deputy Kegie in removing the threat to the Deputies near the end of the Lazy Drain.", 611, 390048)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I've slain several mischiefmakers.")
  18. AddQuestStepChat(Quest, 2, "Report back to Deputy Kegie.", 1, "Assist Deputy Kegie in removing the threat to the Deputies near the end of the Lazy Drain.", 11, 390183)
  19. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  20. end
  21. function QuestComplete(Quest, QuestGiver, Player)
  22. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  23. UpdateQuestStepDescription(Quest, 2, "I've reported to Deputy Kegie.")
  24. UpdateQuestTaskGroupDescription(Quest, 1, "I've assisted Deputy Kegie, but he is still frightened by something.")
  25. UpdateQuestDescription(Quest, "There must be more to the situation than meets the eye. Deputy Kegie is frightened out of his wits but I'm not sure the Mistcaller mischiefmakers are the cause. Maybe the Deputy just needs to get out more. Maybe he needs a date more than he needs a rescue.")
  26. GiveQuestReward(Quest, Player)
  27. end
  28. function Accepted(Quest, QuestGiver, Player)
  29. -- Add dialog here for when the quest is accepted
  30. end
  31. function Declined(Quest, QuestGiver, Player)
  32. -- Add dialog here for when the quest is declined
  33. end
  34. function Deleted(Quest, QuestGiver, Player)
  35. -- Remove any quest specific items here when the quest is deleted
  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