sanity_check.lua 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : sanity_check.lua
  3. Script Purpose : Handles the quest, "Sanity Check"
  4. Script Author : QuestParser (Replace this)
  5. Script Date : 11/27/2022
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Enchanted Lands
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepObtainItem(Quest, 1, "Pick up a badger for Deputy Kegie. Heck, get a few!", 7, 100, "I'm on my way to visit Deputy Kegie.", 127, 0)
  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, "Obtained badgers for Deputy Kegie to bake.")
  27. AddQuestStepChat(Quest, 2, "Deliver badgers to Deputy Kegie in a wagon near the Lazy Drain.", 1, "I'm on my way to visit Deputy Kegie.", 11, 0)
  28. end
  29. function QuestComplete(Quest, QuestGiver, Player)
  30. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  31. UpdateQuestStepDescription(Quest, 2, "Spoke with Deputy Kegie.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I've spoken with Deputy Kegie and given him a badger.")
  33. UpdateQuestDescription(Quest, "I spoke to Deputy Kegie, who seems desperate for company. Maybe I'll drop by to see him from time to time. We might be able to figure out what happened to his partner someday.")
  34. GiveQuestReward(Quest, Player)
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. Step1Complete(Quest, QuestGiver, Player)
  39. elseif Step == 2 then
  40. QuestComplete(Quest, QuestGiver, Player)
  41. end
  42. end