a_tribute_to_ulinir.lua 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/davyn_thornbranch/qey_village05/quests/davyn_thornbranch/davyn_thornbranch024.mp3", "", "", 1462985886, 2661740448, Player)
  19. AddConversationOption(conversation, "I'll be careful.")
  20. StartConversation(conversation, QuestGiver, Player, "Be cautious. The Forest Ruins are not the safe haven that the Willow Wood is.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Quest_Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have placed Ulinir's tribute.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I have delivered Ulinir's tribute.")
  27. UpdateQuestDescription(Quest, "I have placed Ulinir's tribute as Davyn Thornbranch requested. I hope that I inspire such friendship in others.")
  28. GiveQuestReward(Quest, Player)
  29. end
  30. function Reload(Quest, QuestGiver, Player, Step)
  31. end