grobin_trouble_at_the_pond.lua 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : Quests/GreaterFaydark/grobin_trouble_at_the_pond.lua
  3. Script Purpose : Handles the quest Grobin Trouble at the Pond
  4. Script Author : Zcoretri
  5. Script Date : 2009.03.04
  6. Zone : Greater Faydark
  7. Quest Giver: Matron of the Nursery
  8. Preceded by: Running Off the Grobin Scouts
  9. Followed by: Herbs of Healing and Growth
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to stop the grobin polluters at Amethyst Pond to the southwest of the nursery.", 4, 100, "I need to get rid of the grobin polluters at Amethyst Pond, southwest of the nursery. Hopefully, I'll be able to find out what they are up to there.", 354, 1140026)
  13. AddQuestStepCompleteAction(Quest, 1, "KilledAllPolluters")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. if QuestGiver ~= nil then
  17. if GetDistance(Player, QuestGiver) < 30 then
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. PlayFlavor(QuestGiver, "voiceover/english/exp03_questvo2/matron_of_the_nursery/_exp03/exp03_rgn_greater_faydark/matron_of_the_nursery/matron_of_the_nursery008.mp3", "", "", 3433160215, 2503556383, Player)
  21. AddConversationOption(conversation, "I'll do my best to find out.")
  22. StartConversation(conversation, QuestGiver, Player, "Thank you, " .. GetName(Player) .. ". The grobins are usually up to something devious. I hope you can find out what it is for the sake of the spirit bloom nursery.")
  23. end
  24. end
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function KilledAllPolluters(Quest, QuestGiver, Player)
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I ran off the polluters and found out they had jars of shrumber eggs they were pouring into the pond!")
  30. AddQuestStepChat(Quest, 2, "I should tell the Matron of the Nursery about jars of shrumbler eggs I found on the grobin polluters.", 1, "I should return to the Matron of the Nursery and show her the jars of eggs I found on the grobin polluters.", 0, 1140004)
  31. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. UpdateQuestDescription(Quest, "I found out the grobin polluters at Amethyst Pond were pouring shrumbler eggs in the pond. They were definitely behind the infestation of the spirit bloom nursery. but where did they get all those eggs...?")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player)
  38. if Step == 1 then
  39. KilledAllPolluters(Quest, QuestGiver, Player)
  40. end
  41. end