a_tour_of_antonica.lua 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. --[[
  2. Script Name : Quests/Antonica/a_tour_of_antonica.lua
  3. Script Author : Premierio015
  4. Script Date : 2023.04.22 07:04:54
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest,Player)
  12. AddQuestStepZoneLoc(Quest, 1, "I must go to Crater Pond", 20, "I will seek out Crater Pond in Antonica.", 11, 85, -24, 502, 12)
  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 saw Crater Pond.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I visited Crater Pond.")
  27. AddQuestStepZoneLoc(Quest, 2, "I must go to Coldwind Point", 16, "I must visit Coldwind Point in Antonica.", 11, 339, -16, 761, 12)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I saw Coldwind Point.")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "I visited Coldwind Point.")
  33. AddQuestStepZoneLoc(Quest, 3, "I must go to Fippy's Hill", 20, "I must visit Fippy's Hill in Antonica. ", 11, -100, 7, -245, 12)
  34. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  35. end
  36. function Step3Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 3, "I visited Fippy's Hill.")
  38. UpdateQuestTaskGroupDescription(Quest, 3, "I visited Fippy's Hill.")
  39. AddQuestStepZoneLoc(Quest, 4, "I must go to the Forbidden Isle", 20, "I must visit the Forbidden Isle in Antonica. ", 11, 281, -28, -655, 12)
  40. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  41. end
  42. function Step4Complete(Quest, QuestGiver, Player)
  43. UpdateQuestStepDescription(Quest, 4, "I saw the Forbidden Isle.")
  44. UpdateQuestTaskGroupDescription(Quest, 4, "I visited the Forbidden Isle.")
  45. AddQuestStepZoneLoc(Quest, 5, "I must go to the Keep of the Ardent Needle", 20, "I must visit the Keep of the Ardent Needle in Antonica.", 11, -554, -14, -346, 12)
  46. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  47. end
  48. function Step5Complete(Quest, QuestGiver, Player)
  49. UpdateQuestStepDescription(Quest, 5, "I saw the Keep of the Ardent Needle.")
  50. UpdateQuestTaskGroupDescription(Quest, 5, "I visited the Keep of the Ardent Needle.")
  51. AddQuestStepZoneLoc(Quest, 6, "I must visit the Tower of the Oracles", 20, "I must visit the Tower of the Oracles in Antonica.", 11, -1033, 14, -629, 12)
  52. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  53. end
  54. function Step6Complete(Quest, QuestGiver, Player)
  55. UpdateQuestStepDescription(Quest, 6, "I visited the Tower of the Oracles.")
  56. UpdateQuestTaskGroupDescription(Quest, 6, "I visited the Tower of the Oracles.")
  57. AddQuestStepZoneLoc(Quest, 7, "I must visit the Qeynos Hill Claymore", 20, "I must visit the Qeynos Hill Claymore in Antonica.", 11, -469, -1, 540, 12)
  58. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  59. end
  60. function Step7Complete(Quest, QuestGiver, Player)
  61. UpdateQuestStepDescription(Quest, 7, "I visited the Qeynos Hill Claymore.")
  62. UpdateQuestTaskGroupDescription(Quest, 7, "I visited the Qeynos Hill.")
  63. AddQuestStepZoneLoc(Quest, 8, "I must visit Archer's Wood", 15, "I must visit the glade in Archer Woods located in Antonica.", 11, -593.42, -11.00, 664.09, 12)
  64. AddQuestStepCompleteAction(Quest, 8, "Step8Complete")
  65. end
  66. function Step8Complete(Quest, QuestGiver, Player)
  67. UpdateQuestStepDescription(Quest, 8, "I visited Archer's Wood.")
  68. UpdateQuestTaskGroupDescription(Quest, 8, "I visited the glade in Archer Wood.")
  69. AddQuestStepZoneLoc(Quest, 9, "I must visit the Bells of Vhalen", 16, "I must visit the Bells of Vhalen in Antonica.", 11, -1300, 38, 45, 12)
  70. AddQuestStepCompleteAction(Quest, 9, "Step9Complete")
  71. end
  72. function Step9Complete(Quest, QuestGiver, Player)
  73. UpdateQuestStepDescription(Quest, 9, "I visited the Bells of Vhalen.")
  74. UpdateQuestTaskGroupDescription(Quest, 9, "I visited the Bells of Vhalen.")
  75. AddQuestStepZoneLoc(Quest, 10, "I must visit the Keep of the Gnollslayers", 20, "I must visit the Keep of the Gnollslayers in Antonica.", 11, -2121, -46, 415, 12)
  76. AddQuestStepCompleteAction(Quest, 10, "Step10Complete")
  77. end
  78. function Step10Complete(Quest, QuestGiver, Player)
  79. UpdateQuestStepDescription(Quest, 10, "I visited the Keep of the Gnollslayers.")
  80. UpdateQuestTaskGroupDescription(Quest, 10, "I visited the Keep of the Gnollslayers.")
  81. AddQuestStepZoneLoc(Quest, 11, "I must visit Fangbreaker Keep", 20, "I must visit Fangbreaker Keep in Antonica.", 11, -2048.54, 15.74, -484, 12)
  82. AddQuestStepCompleteAction(Quest, 11, "Step11Complete")
  83. end
  84. function Step11Complete(Quest, QuestGiver, Player)
  85. UpdateQuestStepDescription(Quest, 11, "I visited Fangbreaker Keep.")
  86. UpdateQuestTaskGroupDescription(Quest, 11, "I visited Fangbreaker Keep.")
  87. AddQuestStepZoneLoc(Quest, 12, "I must visit the Ruins of Caltorsis", 20, "I must visit the Ruins of Caltorsis in Antonica.", 11, -1410.40, -13.88, -741.78, 12)
  88. AddQuestStepCompleteAction(Quest, 12, "Step12Complete")
  89. end
  90. function Step12Complete(Quest, QuestGiver, Player)
  91. UpdateQuestStepDescription(Quest, 12, "I visited the Ruins of Caltorsis.")
  92. UpdateQuestTaskGroupDescription(Quest, 12, "I visited the Ruins of Caltorsis.")
  93. AddQuestStepZoneLoc(Quest, 13, "I must visit the Grave of Windstalker", 16, "I must visit the Grave of Windstalker in Antonica.", 11, -1854, -3, -622, 12)
  94. AddQuestStepCompleteAction(Quest, 13, "Step13Complete")
  95. end
  96. function Step13Complete(Quest, QuestGiver, Player)
  97. UpdateQuestStepDescription(Quest, 13, "I visited the Grave of Windstalker.")
  98. UpdateQuestTaskGroupDescription(Quest, 13, "I visited the Grave of Windstalker.")
  99. AddQuestStepZoneLoc(Quest, 14, "I must visit the Hidden Vale", 16, "I must visit the Hidden Vale in Antonica.", 11, -2054, 47, 959, 12)
  100. AddQuestStepCompleteAction(Quest, 14, "Step14Complete")
  101. end
  102. function Step14Complete(Quest, QuestGiver, Player)
  103. UpdateQuestStepDescription(Quest, 14, "I visited the Hidden Vale.")
  104. UpdateQuestTaskGroupDescription(Quest, 14, "I visited the Hidden Vale.")
  105. AddQuestStepZoneLoc(Quest, 15, "I must visit the main entrance of Stormhold", 16, "I must visit the grand entrance of Stormhold in Antonica.", 11, -2350, -20, 230, 12)
  106. AddQuestStepCompleteAction(Quest, 15, "Step15Complete")
  107. end
  108. function Step15Complete(Quest, QuestGiver, Player)
  109. UpdateQuestStepDescription(Quest, 15, "I visited the main entrance of Stormhold.")
  110. UpdateQuestTaskGroupDescription(Quest, 15, "I visited the grand entrance of Stormhold.")
  111. AddQuestStepChat(Quest, 16, "Find the librarian of Three Towers. ", 1, "I should take this field guide to a place in Qeynos known for housing volumes of knowledge, Three Towers.", 11, 2310086, 5890322)
  112. AddQuestStepCompleteAction(Quest, 16, "QuestComplete")
  113. end
  114. function QuestComplete(Quest, QuestGiver, Player)
  115. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  116. UpdateQuestStepDescription(Quest, 16, "Gave the book to Librarian Dalmas.")
  117. UpdateQuestTaskGroupDescription(Quest, 16, "I gave the field guide to the Concordium in Qeynos.")
  118. UpdateQuestDescription(Quest, "I visited all the locations listed in 'Bootstrutter's Field Guide to Antonica.' Having done so, I decided to return the book to my cities' local mage guild, keepers of all knowledge. They were delighted and rewarded me with a valuable piece of Bootstrutter gear.")
  119. GiveQuestReward(Quest, Player)
  120. end
  121. function Reload(Quest, QuestGiver, Player, Step)
  122. if Step == 1 then
  123. Step1Complete(Quest, QuestGiver, Player)
  124. elseif Step == 2 then
  125. Step2Complete(Quest, QuestGiver, Player)
  126. elseif Step == 3 then
  127. Step3Complete(Quest, QuestGiver, Player)
  128. elseif Step == 4 then
  129. Step4Complete(Quest, QuestGiver, Player)
  130. elseif Step == 5 then
  131. Step5Complete(Quest, QuestGiver, Player)
  132. elseif Step == 6 then
  133. Step6Complete(Quest, QuestGiver, Player)
  134. elseif Step == 7 then
  135. Step7Complete(Quest, QuestGiver, Player)
  136. elseif Step == 8 then
  137. Step8Complete(Quest, QuestGiver, Player)
  138. elseif Step == 9 then
  139. Step9Complete(Quest, QuestGiver, Player)
  140. elseif Step == 10 then
  141. Step10Complete(Quest, QuestGiver, Player)
  142. elseif Step == 11 then
  143. Step11Complete(Quest, QuestGiver, Player)
  144. elseif Step == 12 then
  145. Step12Complete(Quest, QuestGiver, Player)
  146. elseif Step == 13 then
  147. Step13Complete(Quest, QuestGiver, Player)
  148. elseif Step == 14 then
  149. Step14Complete(Quest, QuestGiver, Player)
  150. elseif Step == 15 then
  151. Step15Complete(Quest, QuestGiver, Player)
  152. elseif Step == 16 then
  153. QuestComplete(Quest, QuestGiver, Player)
  154. end
  155. end