9
3

message_from_the_matron.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : Quests/GreaterFaydark/message_from_the_matron.lua
  3. Script Purpose : Handles the quest "Message From The Matron"
  4. Script Author : Zcoretri
  5. Script Date : 2009.3.23
  6. Zone : Greater Faydark
  7. Quest Giver: Matron of the Nursery
  8. Preceded by: Herbs of Healing and Growth
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to take the matron's message to Sentry Trillis. His post is on top of a tree, southwest of Amethyst Pond. I need to find a tree to climb to get to him.", 1, ".", 374, 1140054)
  13. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  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_nursery016.mp3", "", "", 3997346506, 1167918210, Player)
  21. AddConversationOption(conversation, "Goodbye, Matron of the Nursery.")
  22. StartConversation(conversation, QuestGiver, Player, "Thank you, " .. GetName(Player) .. ". May Tunare bless you for all you have done! Now I have some spirit blooms to heal.")
  23. end
  24. end
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function QuestComplete(Quest, QuestGiver, Player)
  29. UpdateQuestDescription(Quest, "I carried the Matron of the Nursery's message to Sentry Trillis")
  30. GiveQuestReward(Quest, Player)
  31. end
  32. function Reload(Quest, QuestGiver, Player, Step)
  33. end