prowler_pelts.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : Quests/Darklight/prowler_pelts.lua
  3. Script Purpose : Handles the quest, "Prowler Pelts"
  4. Script Author : Scatman
  5. Script Date : 2009.01.31
  6. Zone : Darklight Wood
  7. Quest Giver: Fileyl Alyylharil
  8. Preceded by: None
  9. Followed by: Malkaen Weed (malkaen_weed.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to collect four superb prowler pelts from the dusk prowlers around Hate's Envy.", 4, 100, ".", 126, 340048, 340049)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_complete_killedProwlers")
  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/fileyl003.mp3", "", "", 627745117, 443565061, Player)
  21. AddConversationOption(conversation, "I'll return.")
  22. StartConversation(conversation, QuestGiver, Player, "I'll pay you when you give me the pelts.")
  23. end
  24. end
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function step1_complete_killedProwlers(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I've collected the prowler pelts.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I've collected the prowler pelts.")
  31. AddQuestStepChat(Quest, 2, "I need to bring these pelts back to Fileyl Alyylharil.", 1, ".", 0, 340050)
  32. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  33. end
  34. function quest_complete(Quest, QuestGiver, Player)
  35. UpdateQuestDescription(Quest, "I have brought Fileyl the prowler pelts he asked for.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. step1_complete_killedProwlers(Quest, QuestGiver, Player)
  41. end
  42. end