Deadeye.lua 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. --[[
  2. Script Name : Quests/VerminsSnye/Deadeye.lua
  3. Script Purpose : Handles the quest, "Deadeye"
  4. Script Author : premierio015
  5. Script Date : 12.05.2020
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Vermin's Snye
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I should try to gather enough guts from the vermin in the catacombs to make a drawstring.", 10, 25, "I'm going to need a bowstring to attach to this bow shaft. I'm fairly certain that I can draw enough gut from the vermin running around the catacombs to make a nice drawstring.", 382, 2000014, 2000009)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I've gathered enough guts to make a drawstring.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I've managed to draw enough gut from vermin in the tombs to make a drawstring.")
  28. AddQuestStepKill(Quest, 2, "I should try to gather enough blood from giant burrowers now.", 5, 25, "I need to soak this drawstring in something strong enough to tan it quickly. Perhaps I can soak it in the blood of one of the giant burrowers that make their home in the tombs.", 8, 2000004, 2000026)
  29. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  30. end
  31. function Step2Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I have found enough blood from the burrowers in the catacombs.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I've soaked the drawstring in enough blood of the giant burrowers to make it nice and supple.")
  34. AddQuestStepKill(Quest, 3, "I need to kill these bloodsabers to see if they have any bowstring rosin on them.", 5, 25, "I finally need some rosin to coat the bowstring. Perhaps one of these Bloodsabers might have some on them.", 181, 2000016, 2000019, 2000017)
  35. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  39. UpdateQuestStepDescription(Quest, 3, "I have found sufficient rosin.")
  40. UpdateQuestTaskGroupDescription(Quest, 3, "I've found enough rosin to coat my bowstring. Sadly, a number of the Bloodsabers had to die in order to rebuild this bow.")
  41. UpdateQuestDescription(Quest, "I've manage to restore this bow to its former glory. Creating a fine bowstring to match its magical nature, I've named the bow Deadeye. <br> <br>")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. Step2Complete(Quest, QuestGiver, Player)
  49. elseif Step == 3 then
  50. QuestComplete(Quest, QuestGiver, Player)
  51. end
  52. end