lore_and_legend_vampire.lua 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. --[[
  2. Script Name : Quests/MultipleZones/lore_and_legend_vampire.lua
  3. Script Author : AussieGlen
  4. Script Date : 2022.01.01 05:01:31
  5. Script Purpose :
  6. Zone : MultipleZones
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKillByRace(Quest, 1, "I need to find a vampire black heart.", 1, 100, "I must locate several vampire body parts.", 2516, 342)
  13. AddQuestStepKillByRace(Quest, 2, "I need to find a vampire hypnotic eyes.", 1, 100, "I must locate several vampire body parts.", 2516, 342)
  14. AddQuestStepKillByRace(Quest, 3, "I need to find a vampire coffin dust.", 1, 100, "I must locate several vampire body parts.", 2516, 342)
  15. AddQuestStep(Quest, 4, "I need to find and study 20 vampiric incisors.", 1, 100, "I must locate several vampire body parts.", 11)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  17. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  18. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  19. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  20. end
  21. function Accepted(Quest, QuestGiver, Player)
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. end
  25. function quest_complete(Quest, QuestGiver, Player)
  26. end
  27. function Reload(Quest, QuestGiver, Player, Step)
  28. if Step == 1 then
  29. Step1Complete(Quest, QuestGiver, Player)
  30. elseif Step == 2 then
  31. Step2Complete(Quest, QuestGiver, Player)
  32. elseif Step == 3 then
  33. Step3Complete(Quest, QuestGiver, Player)
  34. elseif Step == 4 then
  35. Step4Complete(Quest, QuestGiver, Player)
  36. end
  37. end
  38. function CheckProgress(Quest, QuestGiver, Player)
  39. if QuestStepIsComplete(Player, 5413, 1) and QuestStepIsComplete(Player, 5413, 2) and QuestStepIsComplete(Player, 5413, 3) and QuestStepIsComplete(Player, 5413, 4) then
  40. QuestIsComplete(Quest, QuestGiver, Player)
  41. end
  42. end
  43. function Step1Complete(Quest, QuestGiver, Player)
  44. UpdateQuestStepDescription(Quest, 1, "I have found a vampire black heart.")
  45. CheckProgress(Quest, QuestGiver, Player)
  46. end
  47. function Step2Complete(Quest, QuestGiver, Player)
  48. UpdateQuestStepDescription(Quest, 2, "I have found a vampire hypnotic eyes.")
  49. CheckProgress(Quest, QuestGiver, Player)
  50. end
  51. function Step3Complete(Quest, QuestGiver, Player)
  52. UpdateQuestStepDescription(Quest, 3, "I have found a vampire coffin dust.")
  53. CheckProgress(Quest, QuestGiver, Player)
  54. end
  55. function Step4Complete(Quest, QuestGiver, Player)
  56. UpdateQuestStepDescription(Quest, 4, "I have found and studied 20 vampiric incisors.")
  57. CheckProgress(Quest, QuestGiver, Player)
  58. end
  59. function QuestIsComplete(Quest, QuestGiver, Player)
  60. UpdateQuestTaskGroupDescription(Quest, 1, "I have located all of the necessary vampire body parts.")
  61. UpdateQuestDescription(Quest, "I have learned the secrets of the vamnpire.")
  62. GiveQuestReward(Quest, Player)
  63. end