CarePackageforBlarton.lua 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : CarePackageforBlarton.lua
  3. Script Purpose : Handles the quest, "Care Package for Blarton"
  4. Script Author : geordie0511
  5. Script Date : 14.03.2019
  6. Script Notes :
  7. Zone : Antonica
  8. Quest Giver :
  9. Preceded by : Killing with Kindness, One Barbarian at a Time
  10. Followed by : Spicy Meat Pie
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I must find Blarton Blumble.", 1, "Matsy asked me to take these cookies to Blarton. He resides in Windstalker Village.", 2556, 120163)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have delivered the cookies to Blarton Blumble.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I took Blarton the cookies from Matsy.")
  19. AddQuestStepChat(Quest, 2, "I should return to Matsy.", 1, "I need to go back and let Matsy know that her cousin enjoyed the cookies.", 2556, 120280)
  20. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  21. end
  22. function QuestComplete(Quest, QuestGiver, Player)
  23. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  24. UpdateQuestStepDescription(Quest, 2, "Matsy gave me cookies for my trouble. Yum!")
  25. UpdateQuestTaskGroupDescription(Quest, 2, "I told Matsy that Blarton got his cookies.")
  26. UpdateQuestDescription(Quest, "The cookies seemed to make Blarton a much happier halfling.")
  27. GiveQuestReward(Quest, Player)
  28. end
  29. function Reload(Quest, QuestGiver, Player, Step)
  30. if Step == 1 then
  31. Step1Complete(Quest, QuestGiver, Player)
  32. elseif Step == 2 then
  33. QuestComplete(Quest, QuestGiver, Player)
  34. end
  35. end
  36. function Accepted(Quest, QuestGiver, Player)
  37. -- Add dialog here for when the quest is accepted
  38. end
  39. function Declined(Quest, QuestGiver, Player)
  40. -- Add dialog here for when the quest is declined
  41. end