BuildingFawnsGarden.lua 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. --[[
  2. Script Name : BuildingFawnsGarden.lua
  3. Script Purpose : Handles the quest, "Building Fawn's Garden"
  4. Script Author : Ememjr
  5. Script Date : 10/29/2017
  6. Script Notes :
  7. Zone : Starcrest Commune
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to kill sand covered crabs to obtain their diatomaceous sand for Fawn's garden.", 5, 90, "She told me that I can probably find what she requires off of various creatures in Antonica. Some diatomaceous sand to add to her soil will help protect her garden, some fish eggs for fertilizer and some seeds to get her started should be a good start.", 11, 120417,120750,121479)
  14. AddQuestStepKill(Quest, 2, "I need to gather some fish eggs from Coldwind barracuda off the coast of Antonica.", 5, 90, "She told me that I can probably find what she requires off of various creatures in Antonica. Some diatomaceous sand to add to her soil will help protect her garden, some fish eggs for fertilizer and some seeds to get her started should be a good start.", 11, 120081, 121238)
  15. AddQuestStepKill(Quest, 3, "I need to gather some seeds from the fur of Antonican mammals.", 5, 90, "She told me that I can probably find what she requires off of various creatures in Antonica. Some diatomaceous sand to add to her soil will help protect her garden, some fish eggs for fertilizer and some seeds to get her started should be a good start.", 11, 120257,120119,120008)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete")
  17. AddQuestStepCompleteAction(Quest, 2, "Step2_Complete")
  18. AddQuestStepCompleteAction(Quest, 3, "Step3_Complete")
  19. end
  20. function step1_complete(Quest, QuestGiver, Player)
  21. UpdateQuestStepDescription(Quest, 1, "I've managed to gather the sand needed for Fawn's garden.")
  22. if QuestIsComplete(Player, EbiksMissingParts) then
  23. givePartsToEbik(Quest, QuestGiver, Player)
  24. end
  25. end
  26. function step2_complete(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 2, " I've gathered enough fish eggs for Fawn's garden.")
  28. if QuestIsComplete(Player, EbiksMissingParts) then
  29. givePartsToEbik(Quest, QuestGiver, Player)
  30. end
  31. end
  32. function step3_complete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 3, " I've gathered enough seeds for Fawn to use in her garden.")
  34. if QuestIsComplete(Player, EbiksMissingParts) then
  35. givePartsToEbik(Quest, QuestGiver, Player)
  36. end
  37. end
  38. function giveitemstoFawn(Quest, QuestGiver, Player)
  39. UpdateQuestTaskGroupDescription(Quest, 1, "I've managed to gather everything for Fawn Starstone's garden.")
  40. AddQuestStepChat(Quest, 4, " Return to Fawn in Starcrest Commune.", 1, "I need to give these items to Fawn for her garden.", 0, 2530059)
  41. AddQuestStepCompleteAction(Quest, 4, "quest_complete_gavePartsToEbik")
  42. end
  43. function quest_complete_gaveitemstoFawn(Quest, QuestGiver, Player)
  44. UpdateQuestTaskGroupDescription(Quest, 2, "I've given Fawn the items she needs for her garden.")
  45. UpdateQuestDescription(Quest, "I've gathered the items Fawn needs for her garden. She was so appreciative, she gave me a little gift for my efforts.")
  46. GiveQuestReward(Quest, Player)
  47. end
  48. function Reload(Quest, QuestGiver, Player, Step)
  49. --if Step == 1 then
  50. -- QuestComplete(Quest, QuestGiver, Player)
  51. --end
  52. end
  53. function Accepted(Quest, QuestGiver, Player)
  54. -- Add dialog here for when the quest is accepted
  55. end
  56. function Declined(Quest, QuestGiver, Player)
  57. -- Add dialog here for when the quest is declined
  58. end