an_intriguing_eye.lua 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. --[[
  2. Script Name : Quests/TheDownBelow/an_intriguing_eye.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.10.03 03:10:05
  5. Script Purpose : Access Quest
  6. Zone : The Down Below
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "Slay Bloodsaber meddlers", 1, 30, "Writing on the book states that rat men, possibly the Bloodsabers of the Down Below carry information I need. I will hack through their ranks until I find a clue about the symbol.", 374, 8340019)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. -- Add dialog here for when the quest is accepted
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function Step1Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I've killed Bloodsaber meddlers.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I slew Bloodsaber rat men until I found a clue.")
  27. if not HasItem(Player,1236) and GetQuestStepProgress(Player,5366,3) == 0 then
  28. GiveQuestItem(Quest, Player, "I slew Bloodsaber rat men until I found a clue.", 1236)
  29. end
  30. AddQuestStep(Quest, 2, "Read the Bloodsaber note", 1, 100, "I should read the note I now carry in my inventory, the one I found on the Bloodsaber.", 11)
  31. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  32. end
  33. function Step2Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I've read the Bloodsaber note.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I read the note found on the Bloodsaber. Oddly...it was written in common Norrathian.")
  36. AddQuestStepChat(Quest, 3, "Speak to Gornit Penwiggle", 1, "I need to find Gornit Penwiggle in the Qeynos Province District. He is a record keeper and may know of this coin.", 11, 2380003, 6600257)
  37. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  38. end
  39. function Step3Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 3, "I've spoken to Gornit Penwiggle.")
  41. UpdateQuestTaskGroupDescription(Quest, 3, "I spoke to Gornit Penwiggle about the coin.")
  42. AddQuestStepKill(Quest, 4, "Slay some coiled burrowers", 3, 100, "I need to fill the hunting list for Gornit Penwiggle. I should be able to find these critters in the Down Below.", 109, 8340020)
  43. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  44. end
  45. function Step4Complete(Quest, QuestGiver, Player)
  46. UpdateQuestStepDescription(Quest, 4, "I killed some coiled burrowers.")
  47. AddQuestStepKill(Quest, 5, "Slay some rabid shrillers", 4, 100, "I need to fill the hunting list for Gornit Penwiggle. I should be able to find these critters in the Down Below.", 178, 8340035)
  48. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  49. end
  50. function Step5Complete(Quest, QuestGiver, Player)
  51. UpdateQuestStepDescription(Quest, 5, "I killed some rabid shrillers.")
  52. UpdateQuestTaskGroupDescription(Quest, 4, "I filled the hunting list for Gornit Penwiggle.")
  53. AddQuestStepChat(Quest, 6, "Speak to Gornit Penwiggle", 1, "I need to return to the Qeynos Province District to speak with Gornit Penwiggle.", 11, 2380003, 6600257)
  54. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  55. end
  56. function Step6Complete(Quest, QuestGiver, Player)
  57. UpdateQuestStepDescription(Quest, 6, "I've spoken to Gornit Penwiggle.")
  58. UpdateQuestTaskGroupDescription(Quest, 5, "I returned to the Qeynos Province District and spoke with Gornit Penwiggle.")
  59. AddQuestStepChat(Quest, 7, "Speak to the collector", 1, "I need to speak to a collector at the Collector's Trove here in the Qeynos Province District.", 11, 2340024, 6600239)
  60. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  61. end
  62. function Step7Complete(Quest, QuestGiver, Player)
  63. UpdateQuestStepDescription(Quest, 7, "I've spoken to Blagard.")
  64. UpdateQuestTaskGroupDescription(Quest, 6, "I spoke to Blagard at the Collector's Trove.")
  65. AddQuestStepChat(Quest, 8, "Speak to Constable Arathur", 1, "I need to speak to Constable Arathur somewhere in the Qeynos Province District.", 11, 2330048, 6600248)
  66. AddQuestStepCompleteAction(Quest, 8, "Step8Complete")
  67. end
  68. function Step8Complete(Quest, QuestGiver, Player)
  69. UpdateQuestStepDescription(Quest, 8, "I've spoken to Constable Arathur.")
  70. UpdateQuestTaskGroupDescription(Quest, 7, "I spoke to Constable Arathur in the Qeynos Province District.")
  71. AddQuestStepKill(Quest, 9, "Slay a fallen noble.", 1, 100, "I need to slay a fallen noble in the deep depths of the Down Below.", 11, 1990017, 8340026, 8340027)
  72. AddQuestStepCompleteAction(Quest, 9, "Step9Complete")
  73. end
  74. function Step9Complete(Quest, QuestGiver, Player)
  75. UpdateQuestStepDescription(Quest, 9, "I destroyed a fallen noble")
  76. UpdateQuestTaskGroupDescription(Quest, 8, "I slew a fallen noble in the Down Below and gained an Unseen Hand Coin.")
  77. AddQuestStepZoneLoc(Quest, 10, "Find the hand statue.", 5, "I need to find the hand statue of the Circle of the Unseen Hand in the Down Below. Constable Arathur noted this as the entrance in the thieves' hive.", 975, -143, 0, -74, 199)
  78. AddQuestStepCompleteAction(Quest, 10, "QuestComplete")
  79. end
  80. function QuestComplete(Quest, QuestGiver, Player)
  81. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  82. UpdateQuestStepDescription(Quest, 10, "I found the hand statue.")
  83. UpdateQuestTaskGroupDescription(Quest, 9, "I discovered the hand statue of the Circle of the Unseen Hand.")
  84. UpdateQuestDescription(Quest, "The symbol has led me to believe there is a secret hideout of some sorts in the Down Below. Who is in the hideout is a mystery I will surely find out and report to the Qeynos Guard.")
  85. GiveQuestReward(Quest, Player)
  86. end
  87. function Reload(Quest, QuestGiver, Player, Step)
  88. if Step == 1 then
  89. Step1Complete(Quest, QuestGiver, Player)
  90. elseif Step == 2 then
  91. Step2Complete(Quest, QuestGiver, Player)
  92. elseif Step == 3 then
  93. Step3Complete(Quest, QuestGiver, Player)
  94. elseif Step == 4 then
  95. Step4Complete(Quest, QuestGiver, Player)
  96. elseif Step == 5 then
  97. Step5Complete(Quest, QuestGiver, Player)
  98. elseif Step == 6 then
  99. Step6Complete(Quest, QuestGiver, Player)
  100. elseif Step == 7 then
  101. Step7Complete(Quest, QuestGiver, Player)
  102. elseif Step == 8 then
  103. Step8Complete(Quest, QuestGiver, Player)
  104. elseif Step == 9 then
  105. Step9Complete(Quest, QuestGiver, Player)
  106. elseif Step == 10 then
  107. QuestComplete(Quest, QuestGiver, Player)
  108. end
  109. end