dirzdias_order.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --[[
  2. Script Name : Quests/Darklight/dirzdias_order.lua
  3. Script Purpose : Handles the quest, "Dirzdia's Order"
  4. Script Author : Scatman
  5. Script Date : 2009.01.31
  6. Zone : Darklight Wood
  7. Quest Giver: Fileyl Alyylharil
  8. Preceded by: Danya's Order (danyas_order.lua)
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to deliver Fileyl's net to Dirzdia T'Zauvirr.", 1, ".", 0, 340139)
  13. AddQuestStepCompleteAction(Quest, 1, "quest_complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. if QuestGiver ~= nil then
  17. if GetDistance(Player, QuestGiver) < 30 then
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. PlayFlavor(QuestGiver, "voiceover/english/neriak/fileyl_alyylharil/darklight_wood/hates_envy/fileyl/fileyl014.mp3", "", "", 695536554, 1919499087, Player)
  21. AddConversationOption(conversation, "Thank you.")
  22. StartConversation(conversation, QuestGiver, Player, "Excellent. I'll be sure to speak highly of you in my dealings, " .. GetName(Player) .. ".")
  23. end
  24. end
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function quest_complete(Quest, QuestGiver, Player)
  29. UpdateQuestDescription(Quest, "I have delivered Fileyl's net to Dirzdia T'Zauvirr.")
  30. GiveQuestReward(Quest, Player)
  31. end
  32. function Reload(Quest, QuestGiver, Player, Step)
  33. end