9
3

danyas_order.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : Quests/Darklight/danyas_order.lua
  3. Script Purpose : Handles the quest, "Danya's Order"
  4. Script Author : Scatman
  5. Script Date : 2009.01.31
  6. Zone : Darklight Wood
  7. Quest Giver: Fileyl Alyylharil
  8. Preceded by: Malkaen Weed (malkaen_weed.lua)
  9. Followed by: Dirzdia's Order (dirzdias_order.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to give Danya Halfmoon her order.", 1, ".", 0, 340073)
  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/fileyl010.mp3", "", "", 4262099714, 926127362, Player)
  21. AddConversationOption(conversation, "You're welcome.")
  22. AddConversationOption(conversation, "Just earning my way.")
  23. StartConversation(conversation, QuestGiver, Player, "I appreciate it.")
  24. end
  25. end
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. end
  29. function quest_complete(Quest, QuestGiver, Player)
  30. UpdateQuestDescription(Quest, "I have given Danya Halfmoon her order.")
  31. GiveQuestReward(Quest, Player)
  32. end
  33. function Reload(Quest, QuestGiver, Player, Step)
  34. end