9
3

to_the_source.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : Quests/Nettleville/to_the_source.lua
  3. Script Purpose : Handles the quest, "To The Source"
  4. Script Author : Scatman
  5. Script Date : 2008.09.27
  6. Zone : Nettleville
  7. Quest Giver: Lakosha Maera
  8. Preceded by: Unfortunate Mistakes (unfortunate_mistakes.lua)
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I should go speak with Botanist Lith in the Peat Bog.", 1, ".", 0, 1980001)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_complete_talkedToBotanist")
  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. AddConversationOption(conversation, "I shall.")
  21. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/lakosha_maera/qey_village01/quests/lakosha_maera/lakosha_maera025a.mp3", "", "", 3263220772, 3077282581, Player)
  22. StartConversation(conversation, QuestGiver, Player, "I do not know if he was looking for something like this especially, but I am sure the news will interest him. Please, seek him out.")
  23. end
  24. end
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. end
  30. function step1_complete_talkedToBotanist(Quest, QuestGiver, Player)
  31. UpdateQuestDescription(Quest, "I have spoken with Botanist Lith.")
  32. GiveQuestReward(Quest, Spawn)
  33. end