RestockingtheCookieJar.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : Quests/FrostfangSea/RestockingtheCookieJar.lua
  3. Script Author : Ememjr
  4. Script Date : 2021.02.21 09:02:59
  5. Script Purpose :
  6. Zone : FrostfangSea
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. SetQuestFeatherColor(Quest, 2)
  13. AddQuestStepHarvest(Quest, 1, "I should gather local food harvests from nearby shrubs.", 25, 100, "I need to gather food harvests from local shrubs: murdunk orange, carrot, antonican coffee beans, and black tea should be useful.", 10, 3899,4310,9927,11244)
  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, "I gathered some local harvests to refill Tami's cooking stores.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I gathered more local harvests to refill Tami's cooking stores.")
  28. AddQuestStepHarvest(Quest, 2, "I should return to Tami.", 1, 100, "Tami is currently based in Erronson's Furs and Leathers shop.", 11, 4700293)
  29. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  30. end
  31. function QuestComplete(Quest, QuestGiver, Player)
  32. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  33. UpdateQuestStepDescription(Quest, 2, "I refilled Tami's cooking supplies.")
  34. UpdateQuestTaskGroupDescription(Quest, 2, "I refilled Tami's cooking supplies.")
  35. UpdateQuestDescription(Quest, "I assisted Tami Swifthammer from the Ironforge Exchange by gathering local food harvests to refill her cooking supplies.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. Step1Complete(Quest, QuestGiver, Player)
  41. elseif Step == 2 then
  42. QuestComplete(Quest, QuestGiver, Player)
  43. end
  44. end