a_tribute_to_ulinir.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : Quests/WillowWood/a_tribute_to_ulinir.lua
  3. Script Purpose : Handles the quest, "A Tribute to Ulinir"
  4. Script Author : Scatman
  5. Script Date : 2009.09.26
  6. Zone : The Willow Wood
  7. Quest Giver: Davyn Thornbranch
  8. Preceded by: Tribute Flowers (tribute_flowers.lua)
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. AddQuestStep(Quest, 1, "I need to place Ulinir's tribute on his grave in the northeastern edge of the Forest Ruins.", 1, 100, "Davyn has asked me to deliver Ulinir's tribute to his grave in the Forest Ruins.", 0)
  13. AddQuestStepCompleteAction(Quest, 1, "Quest_Complete")
  14. UpdateQuestZone(Quest,"Forest Ruins")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/davyn_thornbranch/qey_village05/quests/davyn_thornbranch/davyn_thornbranch024.mp3", "", "", 1462985886, 2661740448, Player)
  20. AddConversationOption(conversation, "I'll be careful.")
  21. StartConversation(conversation, QuestGiver, Player, "Be cautious. The Forest Ruins are not the safe haven that the Willow Wood is.")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. end
  25. function Quest_Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I have placed Ulinir's tribute.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I have delivered Ulinir's tribute.")
  28. UpdateQuestDescription(Quest, "I have placed Ulinir's tribute as Davyn Thornbranch requested. I hope that I inspire such friendship in others.")
  29. GiveQuestReward(Quest, Player)
  30. end
  31. function Reload(Quest, QuestGiver, Player, Step)
  32. end