9
3

the_first_step.lua 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : Quests/Darklight/the_first_step.lua
  3. Script Purpose : Handles the quest, "The First Step"
  4. Script Author : Scatman
  5. Script Date : 2009.01.31
  6. Zone : Darklight Wood
  7. Quest Giver: Verex N'Za
  8. Preceded by: Prowler Annoyance (prowler_annoyance.lua)
  9. Followed by: Reclaiming the Sablevein Tear (reclaiming_the_sablevein_tear.lua)
  10. --]]
  11. function Init(Quest)
  12. -- Shadowed Glen Blade
  13. -- Blade of the Outcast
  14. -- Smoldering Scepter
  15. AddQuestStepKill(Quest, 1, "I need to destroy six Sablevein pulverizers.", 6, 100, ".", 611, 340058)
  16. AddQuestStepCompleteAction(Quest, 1, "step1_complete_killedPulverizers")
  17. end
  18. function Accepted(Quest, QuestGiver, Player)
  19. if QuestGiver ~= nil then
  20. if GetDistance(Player, QuestGiver) < 30 then
  21. FaceTarget(QuestGiver, Player)
  22. conversation = CreateConversation()
  23. PlayFlavor(QuestGiver, "voiceover/english/neriak/verex_n_za/darklight_wood/hates_envy/verex/verex010.mp3", "", "", 1616419105, 2681650739, Player)
  24. AddConversationOption(conversation, "On my way.")
  25. StartConversation(conversation, QuestGiver, Player, "All right. Get to work, then.")
  26. end
  27. end
  28. end
  29. function Declined(Quest, QuestGiver, Player)
  30. end
  31. function step1_complete_killedPulverizers(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 1, "I have destroyed the Sablevein pulverizers.")
  33. UpdateQuestTaskGroupDescription(Quest, 1, "I have destroyed the Sablevein pulverizers.")
  34. AddQuestStepChat(Quest, 2, "I need to return to Verex N'Za.", 1, ".", 0, 340043)
  35. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  36. end
  37. function quest_complete(Quest, QuestGiver, Player)
  38. UpdateQuestDescription(Quest, "I have destroyed the Sablevein pulverizers and am ready to move further into the cave.")
  39. GiveQuestReward(Quest, Player)
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. step1_complete_killedPulverizers(Quest, QuestGiver, Player)
  44. end
  45. end