lore_and_legend_orc_.lua 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. --[[
  2. Script Name : Quests/MultipleZones/lore_and_legend_orc_.lua
  3. Script Purpose : Handles the quest, "Lore and Legend: Orc"
  4. Script Author : premierio015//Dorbin
  5. Script Date : 20.06.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Multiple Zones
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKillByRace(Quest, 1, "I need to find an orc spirit.", 1, 10, "I must locate several orc body parts.", 2516, 317)
  14. AddQuestStepKillByRace(Quest, 2, "I need to find an orc heart.", 1, 35, "I must locate several orc body parts.", 135, 317)
  15. AddQuestStepKillByRace(Quest, 3, "I need to find an orc brain.", 1, 22, "I must locate several orc body parts.", 109, 317)
  16. AddQuestStep(Quest, 4, "I need to find and study an orc eye.", 1, 100, "I must locate several orc body parts.", 11)
  17. AddQuestStep(Quest, 5, "I need to find and study an orc skin.", 1, 100, "I must locate several orc body parts.", 11)
  18. AddQuestStep(Quest, 6, "I need to find and study an orc tooth.", 1, 100, "I must locate several orc body parts.", 11)
  19. AddQuestStep(Quest, 7, "I need to find and study an orc spine.", 1, 100, "I must locate several orc body parts.", 11)
  20. AddQuestStep(Quest, 8, "I need to find and study an orc ear.", 1, 100, "I must locate several orc body parts.", 11)
  21. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  22. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  23. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  24. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  25. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  26. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  27. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  28. AddQuestStepCompleteAction(Quest, 8, "Step8Complete")
  29. end
  30. function Accepted(Quest, QuestGiver, Player)
  31. -- Add dialog here for when the quest is accepted
  32. end
  33. function Declined(Quest, QuestGiver, Player)
  34. -- Add dialog here for when the quest is declined
  35. end
  36. function Deleted(Quest, QuestGiver, Player)
  37. -- Remove any quest specific items here when the quest is deleted
  38. end
  39. function CheckProgress(Quest, QuestGiver, Player)
  40. if QuestStepIsComplete(Player, 5257, 1) and QuestStepIsComplete(Player, 5257, 2) and QuestStepIsComplete(Player, 5257, 3) and QuestStepIsComplete(Player, 5257, 4) and QuestStepIsComplete(Player, 5257, 5) and QuestStepIsComplete(Player, 5257, 6) and QuestStepIsComplete(Player, 5257, 7) and QuestStepIsComplete(Player, 5257, 8) then
  41. QuestIsComplete(Quest, QuestGiver, Player)
  42. end
  43. end
  44. function Step1Complete(Quest, QuestGiver, Player)
  45. UpdateQuestStepDescription(Quest, 1, "I have found an orc spirit.")
  46. CheckProgress(Quest, QuestGiver, Player)
  47. end
  48. function Step2Complete(Quest, QuestGiver, Player)
  49. UpdateQuestStepDescription(Quest, 2, "I have found an orc heart.")
  50. CheckProgress(Quest, QuestGiver, Player)
  51. end
  52. function Step3Complete(Quest, QuestGiver, Player)
  53. UpdateQuestStepDescription(Quest, 3, "I have found an orc brain.")
  54. CheckProgress(Quest, QuestGiver, Player)
  55. end
  56. function Step4Complete(Quest, QuestGiver, Player)
  57. UpdateQuestStepDescription(Quest, 4, "I have found and studied an orc eye.")
  58. CheckProgress(Quest, QuestGiver, Player)
  59. end
  60. function Step5Complete(Quest, QuestGiver, Player)
  61. UpdateQuestStepDescription(Quest, 5, "I have found and studied an orc skin.")
  62. CheckProgress(Quest, QuestGiver, Player)
  63. end
  64. function Step6Complete(Quest, QuestGiver, Player)
  65. UpdateQuestStepDescription(Quest, 6, "I have found and studied an orc tooth.")
  66. CheckProgress(Quest, QuestGiver, Player)
  67. end
  68. function Step7Complete(Quest, QuestGiver, Player)
  69. UpdateQuestStepDescription(Quest, 7, "I have found and studied an orc spine.")
  70. CheckProgress(Quest, QuestGiver, Player)
  71. end
  72. function Step8Complete(Quest, QuestGiver, Player)
  73. UpdateQuestStepDescription(Quest, 8, "I have found and studied an orc ear.")
  74. CheckProgress(Quest, QuestGiver, Player)
  75. end
  76. function QuestIsComplete(Quest, QuestGiver, Player)
  77. UpdateQuestTaskGroupDescription(Quest, 1, "I have located all of the necessary orc body parts.")
  78. UpdateQuestDescription(Quest, "I have learned the secrets of the orc.")
  79. GiveQuestReward(Quest, Player)
  80. end
  81. function Reload(Quest, QuestGiver, Player, Step)
  82. if Step == 1 then
  83. Step1Complete(Quest, QuestGiver, Player)
  84. elseif Step == 2 then
  85. Step2Complete(Quest, QuestGiver, Player)
  86. elseif Step == 3 then
  87. Step3Complete(Quest, QuestGiver, Player)
  88. elseif Step == 4 then
  89. Step4Complete(Quest, QuestGiver, Player)
  90. elseif Step == 5 then
  91. Step5Complete(Quest, QuestGiver, Player)
  92. elseif Step == 6 then
  93. Step6Complete(Quest, QuestGiver, Player)
  94. elseif Step == 7 then
  95. Step7Complete(Quest, QuestGiver, Player)
  96. elseif Step == 8 then
  97. Step8Complete(Quest, QuestGiver, Player)
  98. end
  99. end