9
3

wind_blown_brell_serilis.lua 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : Quests/Nettleville/wind_blown_brell_serilis.lua
  3. Script Purpose : Handles the quest, "Wind Blown Brell Serilis"
  4. Script Author : Scatman
  5. Script Date : 2009.08.10
  6. Zone : Nettleville
  7. Quest Giver: Helain Conyers
  8. Preceded by: Book Bound to Bring Knowledge (book_bound_to_bring_knowledge.lua)
  9. Followed by: Looking for Work is Hard Work (looking_for_work_is_hard_work.lua)
  10. --]]
  11. -- Item ID's
  12. local MISSING_PAGES = 9862
  13. function Init(Quest)
  14. AddQuestStepHarvest(Quest, 1, "Find the missing pages of the book.", 6, 100, "With the pages of the book scattered by the wind they could be anywhere in town.", 185, MISSING_PAGES)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_FoundPages")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/helain_conyers/qey_village01/helainconyers016.mp3", "", "", 1734136541, 86043254, Player)
  21. AddConversationOption(conversation, "I'll be back shortly... I hope.")
  22. StartConversation(conversation, QuestGiver, Player, "That's very nice of you. By now the wind could have carried them anywhere in Nettleville. Good luck!")
  23. end
  24. function Declined(Quest, QuestGiver, Player)
  25. end
  26. function Step1_Complete_FoundPages(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 1, "I found all of the missing pages!")
  28. UpdateQuestTaskGroupDescription(Quest, 1, "I found all of the missing pages!")
  29. AddQuestStepChat(Quest, 2, "Speak with Helain, and give her the pages.", 1, "Even though they are a bit dirty, I bet Helain will still be able to read them.", 0, 2330007)
  30. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  31. end
  32. function Quest_Complete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "Helain was very happy to have the pages returned.")
  34. UpdateQuestTaskGroupDescription(Quest, 2, "The dirt didn't bother her at all. She was very thankful to have the book whole, again.")
  35. --lost book page
  36. while HasItem(Player, MISSING_PAGES, 1) do
  37. RemoveItem(Player, MISSING_PAGES)
  38. end
  39. UpdateQuestDescription(Quest, "Helain was very happy to have the Followers of Brell Serilis book whole, again.")
  40. GiveQuestReward(Quest, Player)
  41. end
  42. function Reload(Quest, QuestGiver, Player, Step)
  43. if Step == 1 then
  44. Step1_Complete_FoundPages(Quest, QuestGiver, Player)
  45. end
  46. end