9
3

SpicyMeatPie.lua 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --[[
  2. Script Name : SpicyMeatPie.lua
  3. Script Purpose : Handles the quest, "Spicy Meat Pie"
  4. Script Author : geordie0511
  5. Script Date : 19.03.2019
  6. Script Notes :
  7. Zone : Antonica
  8. Quest Giver : Matsy Rollingpin
  9. Preceded by : Care Package for Blarton
  10. Followed by : Mail Delivery for Matsy
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to go out and hunt wolves for Matsy's ingredients.", 5, 100, "Matsy has asked me to gather together some ingredients for her new pie.", 297, 120008, 120106, 120180, 120266, 120293, 121188, 121258, 121261, 121321, 121375, 121402)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have collected the wolf meat that Matsy requires.")
  18. AddQuestStepKill(Quest, 2, "I need to go out and hunt birds for Matsy's ingredients.", 5, 100, "Matsy has asked me to gather together some ingredients for her new pie.", 297, 120011, 120119, 120257, 121191, 121266, 121370, 120064, 121222)
  19. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  20. end
  21. function Step2Complete(Quest, QuestGiver, Player)
  22. UpdateQuestStepDescription(Quest, 2, "I have collected the bird meat that Matsy requires.")
  23. AddQuestStepKill(Quest, 3, "I need to go out and hunt bears for Matsy's ingredients.", 5, 100, "Matsy has asked me to gather together some ingredients for her new pie.", 297, 120029, 120064, 121208, 121222, 120011, 120257, 121191, 121266)
  24. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  25. end
  26. function Step3Complete(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 3, "I have collected the bear meat that Matsy requires.")
  28. UpdateQuestTaskGroupDescription(Quest, 1, "I have gathered all of the ingredients for Matsy.")
  29. AddQuestStepChat(Quest, 4, "I need to take these meats back to Matsy.", 1, "I now have all of the ingredients that Matsy needs for her special recipe.", 297, 120280)
  30. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  34. UpdateQuestStepDescription(Quest, 4, "Matsy made an excellent spicy meat pie with the ingredients that I collected for her.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I gave Matsy the ingredients.")
  36. UpdateQuestDescription(Quest, "I have gathered the ingredients Matsy needs for her dish.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Step1Complete(Quest, QuestGiver, Player)
  42. elseif Step == 2 then
  43. Step2Complete(Quest, QuestGiver, Player)
  44. elseif Step == 3 then
  45. Step3Complete(Quest, QuestGiver, Player)
  46. elseif Step == 4 then
  47. QuestComplete(Quest, QuestGiver, Player)
  48. end
  49. end
  50. function Accepted(Quest, QuestGiver, Player)
  51. -- Add dialog here for when the quest is accepted
  52. end
  53. function Declined(Quest, QuestGiver, Player)
  54. -- Add dialog here for when the quest is declined
  55. end