lore_and_legend_roekillik.lua 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. --[[
  2. Script Name : Quests/MultipleZones/lore_and_legend_roekillik.lua
  3. Script Author : AussieGlen
  4. Script Date : 2022.01.02 11:01:47
  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 roekillik psionic echo.", 1, 100, "I must locate several roekillik body parts.", 2516, 322)
  13. AddQuestStepKillByRace(Quest, 2, "I need to find a roekillik's sinister schemes.", 1, 100, "I must locate several roekillik body parts.", 2516, 322)
  14. AddQuestStepKillByRace(Quest, 3, "I need to find a roekillik pet pack rat.", 1, 100, "I must locate several roekillik body parts.", 2516, 322)
  15. AddQuestStep(Quest, 4, "I need to find and study a roekillik poison pouch.", 1, 100, "I must locate several roekillik body parts.", 11)
  16. AddQuestStep(Quest, 5, "I need to find and study a roekillik stabby shank.", 1, 100, "I must locate several roekillik body parts.", 11)
  17. AddQuestStep(Quest, 6, "I need to find and study a roekillik gnawed chunk of kaborite.", 1, 100, "I must locate several roekillik body parts.", 11)
  18. AddQuestStep(Quest, 7, "I need to find and study a moldy roekillik cheese wheel.", 1, 100, "I must locate several roekillik body parts.", 11)
  19. AddQuestStep(Quest, 8, "I need to find and study a roekillik's defiled Brellian glyph.", 1, 100, "I must locate several roekillik body parts.", 11)
  20. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  21. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  22. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  23. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  24. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  25. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  26. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  27. AddQuestStepCompleteAction(Quest, 8, "Step8Complete")
  28. end
  29. function Accepted(Quest, QuestGiver, Player)
  30. end
  31. function Declined(Quest, QuestGiver, Player)
  32. end
  33. function quest_complete(Quest, QuestGiver, Player)
  34. end
  35. function Reload(Quest, QuestGiver, Player, Step)
  36. if Step == 1 then
  37. Step1Complete(Quest, QuestGiver, Player)
  38. elseif Step == 2 then
  39. Step2Complete(Quest, QuestGiver, Player)
  40. elseif Step == 3 then
  41. Step3Complete(Quest, QuestGiver, Player)
  42. elseif Step == 4 then
  43. Step4Complete(Quest, QuestGiver, Player)
  44. elseif Step == 5 then
  45. Step5Complete(Quest, QuestGiver, Player)
  46. elseif Step == 6 then
  47. Step6Complete(Quest, QuestGiver, Player)
  48. elseif Step == 7 then
  49. Step7Complete(Quest, QuestGiver, Player)
  50. elseif Step == 8 then
  51. Step8Complete(Quest, QuestGiver, Player)
  52. end
  53. end
  54. function CheckProgress(Quest, QuestGiver, Player)
  55. if QuestStepIsComplete(Player, 5433, 1) and QuestStepIsComplete(Player, 5433, 2) and QuestStepIsComplete(Player, 5433, 3) and QuestStepIsComplete(Player, 5433, 4) and QuestStepIsComplete(Player, 5433, 5) and QuestStepIsComplete(Player, 5433, 6) and QuestStepIsComplete(Player, 5433, 7) and QuestStepIsComplete(Player, 5433, 8) then
  56. QuestIsComplete(Quest, QuestGiver, Player)
  57. end
  58. end
  59. function Step1Complete(Quest, QuestGiver, Player)
  60. UpdateQuestStepDescription(Quest, 1, "I have found a roekillik psionic echo.")
  61. CheckProgress(Quest, QuestGiver, Player)
  62. end
  63. function Step2Complete(Quest, QuestGiver, Player)
  64. UpdateQuestStepDescription(Quest, 2, "I have found a roekillik's sinister schemes.")
  65. CheckProgress(Quest, QuestGiver, Player)
  66. end
  67. function Step3Complete(Quest, QuestGiver, Player)
  68. UpdateQuestStepDescription(Quest, 3, "I have found a roekillik pet pack rat.")
  69. CheckProgress(Quest, QuestGiver, Player)
  70. end
  71. function Step4Complete(Quest, QuestGiver, Player)
  72. UpdateQuestStepDescription(Quest, 4, "I have found and studied a roekillik poison pouch.")
  73. CheckProgress(Quest, QuestGiver, Player)
  74. end
  75. function Step5Complete(Quest, QuestGiver, Player)
  76. UpdateQuestStepDescription(Quest, 5, "I have found and studied a roekillik stabby shank.")
  77. CheckProgress(Quest, QuestGiver, Player)
  78. end
  79. function Step6Complete(Quest, QuestGiver, Player)
  80. UpdateQuestStepDescription(Quest, 6, "I have found and studied a roekillik hand.")
  81. CheckProgress(Quest, QuestGiver, Player)
  82. end
  83. function Step7Complete(Quest, QuestGiver, Player)
  84. UpdateQuestStepDescription(Quest, 7, "I have found and studied a moldy roekillik cheese wheel.")
  85. CheckProgress(Quest, QuestGiver, Player)
  86. end
  87. function Step8Complete(Quest, QuestGiver, Player)
  88. UpdateQuestStepDescription(Quest, 8, "I have found and studied a roekillik's defiled Brellian glyph.")
  89. CheckProgress(Quest, QuestGiver, Player)
  90. end
  91. function QuestIsComplete(Quest, QuestGiver, Player)
  92. UpdateQuestTaskGroupDescription(Quest, 1, "I have located all of the necessary roekillik body parts.")
  93. UpdateQuestDescription(Quest, "I have learned the secrets of the roekillik.")
  94. GiveQuestReward(Quest, Player)
  95. end