9
3

a_flowing_conversation.lua 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : Quests/SunkenCity/a_flowing_conversation.lua
  3. Script Purpose : Handles the quest, "A Flowing Conversation"
  4. Script Author : Scatman
  5. Script Date : 2009.07.28
  6. Zone : Sunken City
  7. Quest Giver: Inquisitor Thorson
  8. Preceded by: None
  9. Followed by: Spirits of the Night (spirits_of_the_night.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to speak to the iksar named Saydith Yarr and listen to everything he has to say.", 1, "I should find and talk to the iksar named Saydith Yarr.", 0, 1240014)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_SpokeWithSaydith")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. AddConversationOption(conversation, "I'll return shortly.")
  19. StartConversation(conversation, QuestGiver, Player, "Excellent. Return to me after you have spoken to him.")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. end
  23. function Step1_Complete_SpokeWithSaydith(Quest, QuestGiver, Player)
  24. UpdateQuestStepDescription(Quest, 1, "I have spoken to Saydith Yarr and learned a bit about the Sunken City.")
  25. UpdateQuestTaskGroupDescription(Quest, 1, "I have spoken to Saydith Yarr.")
  26. AddQuestStepChat(Quest, 2, "I should return to Inquisitor Thorson.", 1, "I should let Thorson know that I talked to Yarr.", 0, 1240007)
  27. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  28. end
  29. function Quest_Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "I have returned to Inquisitor Thorson.")
  31. UpdateQuestTaskGroupDescription(Quest, 2, "I told Thorson that I spoke to the strange iksar named Yarr.")
  32. GiveQuestReward(Quest, Player)
  33. UpdateQuestDescription(Quest, "I have found and spoken to Saydith Yarr. He was a very disturbed fellow who gave me some basic background on the area. I will find out more details from Inquisitor Thorson, who is much more coherent.")
  34. end
  35. function Reload(Quest, QuestGiver, Player, Step)
  36. if Step == 1 then
  37. Step1_Complete_SpokeWithSaydith(Quest, QuestGiver, Player)
  38. end
  39. end