9
3

reclaiming_the_sablevein_tear.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : Quests/Darklight/reclaiming_the_sablevein_tear.lua
  3. Script Purpose : Handles the quest, "Reclaiming the Sablevein Tear"
  4. Script Author : Scatman
  5. Script Date : 2009.01.31
  6. Zone : Darklight Wood
  7. Quest Giver: Verex N'Za
  8. Preceded by: The First Step (the_first_step.lua)
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to destroy eight of the elementals inside the Sablevein Tear!", 8, 100, ".", 611, 340063, 340059, 340064)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_complete_killedPulverizers")
  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/verex013.mp3", "", "", 3010718218, 2537871754, Player)
  21. AddConversationOption(conversation, "I will return.")
  22. StartConversation(conversation, QuestGiver, Player, "I thought so.")
  23. end
  24. end
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function step1_complete_killedPulverizers(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I have destroyed the elementals.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I have destroyed the elementals.")
  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 destroyed the elementals within the Sablevein Tear. Through my help, the miners of Hate's Envy will be able to go back to work.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. step1_complete_killedPulverizers(Quest, QuestGiver, Player)
  41. end
  42. end