prowler_annoyance.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : Quests/Darklight/prowler_annoyance.lua
  3. Script Purpose : Handles the quest, "Prowler Annoyance"
  4. Script Author : Scatman
  5. Script Date : 2009.01.31
  6. Zone : Darklight Wood
  7. Quest Giver: Verex N'Za
  8. Preceded by: Elemental Encroachment (elemental_encroachment.lua)
  9. Followed by: The First Step (the_first_step.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to kill six dusk prowlers.", 6, 100, ".", 611, 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/verex_n_za/darklight_wood/hates_envy/verex/verex006.mp3", "", "", 1353181644, 668433489, Player)
  21. AddConversationOption(conversation, "All right.")
  22. StartConversation(conversation, QuestGiver, Player, "Good to hear. Return to me once you've finished.")
  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 have killed the dusk prowlers.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I have killed the dusk prowlers.")
  31. AddQuestStepChat(Quest, 2, "I need to return to Verex N'Za.", 1, ".", 0, 340043)
  32. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  33. end
  34. function quest_complete(Quest, QuestGiver, Player)
  35. UpdateQuestDescription(Quest, "I have slain the dusk prowlers as Verex N'Za requested.")
  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