9
3

elemental_encroachment.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : Quests/Darklight/elemental_encroachment.lua
  3. Script Purpose : Handles the quest, "Elemental Encroachment"
  4. Script Author : Scatman
  5. Script Date : 2009.01.31
  6. Zone : Darklight Wood
  7. Quest Giver: Verex N'Za
  8. Preceded by: None
  9. Followed by: Prowler Annoyance (prowler_annoyance.lua)
  10. --]]
  11. function Init(Quest)
  12. -- Focused Prayer Band
  13. -- Sullied Marsh Bracers
  14. -- Soiled Thexian Sleeves
  15. -- Bracelet of the Bold
  16. AddQuestStepKill(Quest, 1, "I need to destroy six Sablevein crumblers.", 6, 100, ".", 611, 340041)
  17. AddQuestStepCompleteAction(Quest, 1, "step1_complete_killedCrumblers")
  18. end
  19. function Accepted(Quest, QuestGiver, Player)
  20. if QuestGiver ~= nil then
  21. if GetDistance(Player, QuestGiver) < 30 then
  22. FaceTarget(QuestGiver, Player)
  23. conversation = CreateConversation()
  24. PlayFlavor(QuestGiver, "voiceover/english/neriak/verex_n_za/darklight_wood/hates_envy/verex/verex002.mp3", "", "", 2793599050, 2740987353, Player)
  25. AddConversationOption(conversation, "All right.")
  26. StartConversation(conversation, QuestGiver, Player, "Good. Return to me once you're done.")
  27. end
  28. end
  29. end
  30. function Declined(Quest, QuestGiver, Player)
  31. end
  32. function step1_complete_killedCrumblers(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 1, "I have destroyed the Sablevein crumblers.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "I have destroyed the Sablevein crumblers.")
  35. AddQuestStepChat(Quest, 2, "I need to return to Verex N'Za.", 1, ".", 0, 340043)
  36. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  37. end
  38. function quest_complete(Quest, QuestGiver, Player)
  39. UpdateQuestDescription(Quest, "I have slain the elementals for Verex N'Za.")
  40. GiveQuestReward(Quest, Player)
  41. end
  42. function Reload(Quest, QuestGiver, Player, Step)
  43. if Step == 1 then
  44. step1_complete_killedCrumblers(Quest, QuestGiver, Player)
  45. end
  46. end