a_task_for_daelyn.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : Quests/WillowWood/a_task_for_daelyn.lua
  3. Script Purpose : Handles the quest, "A Task for Daelyn"
  4. Script Author : Scatman
  5. Script Date : 2009.09.26
  6. Zone : The Willow Wood
  7. Quest Giver: Daelyn Twinstar
  8. Preceded by: Wisdom in the Wild (wisdom_in_the_wild.lua)
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I must find Elvic Garrett.", 1, "Daelyn Twinstar would like me to deliver his latest work to Elvic Garrett in the Forest Ruins.", 0, 1960007)
  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/daelyn_twinstar/qey_village05/quests/daelyn_twinstar/daelyn_twinstar031b.mp3", "", "", 2282006667, 2437930870, Player)
  19. AddConversationOption(conversation, "Thank you.")
  20. StartConversation(conversation, QuestGiver, Player, "Thanks for your help, " .. GetName(Player) .. ". I hope our discussions about our race will prove useful to you.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Quest_Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have found Elvic Garrett.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I have delivered Daelyn Twinstar's essay to Elvic Garrett.")
  27. UpdateQuestDescription(Quest, "I have delivered Daelyn's work to Elvic Garrett.")
  28. GiveQuestReward(Quest, Player)
  29. end
  30. function Reload(Quest, QuestGiver, Player, Step)
  31. end