curious_findings.lua 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : Quests/Nettleville/curious_findings.lua
  3. Script Purpose : Handles the quest, "Curious Findings"
  4. Script Author : Scatman
  5. Script Date : 2008.09.23
  6. Zone : Nettleville
  7. Quest Giver: Lakosha Maera
  8. Preceded by: Ritual of Hearth (ritual_of_hearth.lua)
  9. Followed by: Required Components (required_components.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to speak with Spiritualist Laharn Rahai, just north east of the armor shop.", 1, "Lakosha Maera has asked that I speak with Spiritist Laharn Rahai to figure out what the foreign substance was in the soil I gathered.", 0, 2330049)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_complete_talkedToLaharn")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/lakosha_maera/qey_village01/quests/lakosha_maera/lakosha_maera013a.mp3", "", "", 529691889, 918351649, Player)
  19. AddConversationOption(conversation, "Me too.")
  20. StartConversation(conversation, QuestGiver, Player, "I hope he can help us.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. end
  26. function step1_complete_talkedToLaharn(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 1, "I have spoken with Laharn Rahai.")
  28. AddQuestStepChat(Quest, 2, "I should speak with Assistant Alchemist Gunta in the Scribe's shop.", 1, "Lakosha Maera has asked that I speak with Spiritist Laharn Rahai to figure out what the foreign substance was in the soil I gathered.", 0, 2330026)
  29. AddQuestStepCompleteAction(Quest, 2, "step2_complete_talkedToGunta")
  30. end
  31. function step2_complete_talkedToGunta(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I have spoken with Assistant Alchemist Gunta, she was not willing to help.")
  33. AddQuestStepChat(Quest, 3, "I need to speak with Laharn again, near the armor shop.", 1, "Lakosha Maera has asked that I speak with Spiritist Laharn Rahai to figure out what the foreign substance was in the soil I gathered.", 0, 2330049)
  34. AddQuestStepCompleteAction(Quest, 3, "Quest_Complete")
  35. end
  36. function Quest_Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 3, "I have spoken with Laharn.")
  38. UpdateQuestTaskGroupDescription(Quest, 1, "I have spoken with Laharn Rahai.")
  39. UpdateQuestDescription(Quest, "The alchemist was unwilling to identify the substance in the soil. Because of this Laharn says we will need to take the time to do the test ourselves.")
  40. GiveQuestReward(Quest, Player)
  41. end