Antonica.lua 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. --[[
  2. Script Name : antonica.lua
  3. Script Purpose : Handles events in Antonica
  4. Script Author : Jabantiz/neatz09/Dorbin
  5. Script Date : 6/16/2016/ 2/23/19 12/6/23
  6. Script Notes :
  7. --]]
  8. function init_zone_script(Zone)
  9. SetLocationProximityFunction(Zone, -2128.93, -28.4328, 614.081, 10, "GriffonTower", "Leave") -- Steppes from Qeynos
  10. SetLocationProximityFunction(Zone, -904.472, -7.23051, -610.321, 10, "GriffonTower", "Leave") -- Oracle from Qeynos
  11. SetLocationProximityFunction(Zone, 337.246, -17.3142, 537.882, 10, "GriffonTower", "Leave") -- Qeynos from Steppes
  12. SetLocationProximityFunction(Zone, -912.659, -7.21881, -599.911, 10, "GriffonTower", "Leave") -- Oracle from Steppes
  13. SetLocationProximityFunction(Zone, 327.727, -17.3058, 529.95, 10, "GriffonTower", "Leave") -- Qeynos from Oracle
  14. SetLocationProximityFunction(Zone, -2136.6, -28.5276, 608.087, 10, "GriffonTower", "Leave") -- Steppese from oracle
  15. SetLocationProximityFunction(Zone,127.20, -24.88, 468.20, 60, "CraterLake","LeaveLocation")
  16. SetLocationProximityFunction(Zone,-102.51, -18.43, 100.64, 95, "CentralFarmlands","LeaveLocation")
  17. SetLocationProximityFunction(Zone,-123.97, -16.37, 585.85, 35, "QeynosHills","LeaveLocation")
  18. SetLocationProximityFunction(Zone,-442.50, 2.15, 551.88, 25, "Claymore","LeaveLocation")
  19. SetLocationProximityFunction(Zone,-503.16, -18.23, 396.36, 95, "QeynosPlains","LeaveLocation")
  20. SetLocationProximityFunction(Zone,-753.87, -3.03, 592.89, 160, "ArcherWoods","LeaveLocation")
  21. SetLocationProximityFunction(Zone,-1191.42, -20.26, 261.38, 70, "QeynosHighway","LeaveLocation")
  22. SetLocationProximityFunction(Zone,-1299.50, 38.29, 44.79, 20, "BellsofVhalen","LeaveLocation")
  23. SetLocationProximityFunction(Zone,-1506.60, -14.37, -11.08, 55, "GladeoftheCoven","LeaveLocation")
  24. SetLocationProximityFunction(Zone,-1567.28, 2.28, 609.58, 90, "BrambleWoods","LeaveLocation")
  25. SetLocationProximityFunction(Zone,424.28, -43.66, 733.90, 50, "ClodwindPoint","LeaveLocation")
  26. SetLocationProximityFunction(Zone,348.00, -9.39, 809.95, 35, "MarinersIsland","LeaveLocation")
  27. SetLocationProximityFunction(Zone,188.45, -19.38, 863.55, 35, "CastawayIsland","LeaveLocation")
  28. SetLocationProximityFunction(Zone,5.57, -9.66, 1028.04, 35, "QeynosSheperdsIsle","LeaveLocation")
  29. SetLocationProximityFunction(Zone,-796.74, -28.08, 1029.75, 30, "WoodedIsle","LeaveLocation")
  30. SetLocationProximityFunction(Zone,-917.46, -17.69, 1052.23, 30, "MemorialIsle","LeaveLocation")
  31. SetLocationProximityFunction(Zone,-327,-14,-501 , 55, "WatchtowerPlains","LeaveLocation")
  32. SetLocationProximityFunction(Zone,326.08,-35.05,-517.55, 30, "MistyIsle","LeaveLocation")
  33. SetLocationProximityFunction(Zone,241.24, -29.62, -682.48, 25, "BridgewayIsle","LeaveLocation")
  34. SetLocationProximityFunction(Zone,334.98, -21.37, -621.86, 30, "AbandonedIsle","LeaveLocation")
  35. SetLocationProximityFunction(Zone,361.84, -19.69, -664.18, 18, "TombofVarsoon","LeaveLocation")
  36. SetLocationProximityFunction(Zone,382.58, -31.81, -798.15, 25, "LonelyIsle","LeaveLocation")
  37. SetLocationProximityFunction(Zone,382.58, -31.81, -798.15, 20, "TravelersIsle","LeaveLocation")
  38. SetLocationProximityFunction(Zone,-376.53, -0.70, -369.36, 85, "ArdentHills","LeaveLocation")
  39. SetLocationProximityFunction(Zone,-555.33, -12.85, -319.13, 18, "KeepoftheArdentNeedle","LeaveLocation")
  40. SetLocationProximityFunction(Zone,-804.55, -32.01, -422.03, 50, "TowerLands","LeaveLocation")
  41. SetLocationProximityFunction(Zone,-1033.81, 14.12, -630.33, 20, "ToweroftheOracles","LeaveLocation")
  42. SetLocationProximityFunction(Zone,-1410.68, -13.88, -742.63, 100, "RuinsofCaltorsis","LeaveLocation")
  43. SetLocationProximityFunction(Zone,-1865, -38, -550, 70, "WindstalkerVillage","LeaveLocation")
  44. SetLocationProximityFunction(Zone,-2182.37, -11.79, -818.23, 100, "WindstalkerHighlands","LeaveLocation")
  45. SetLocationProximityFunction(Zone,-2262.04, -24.72, -570.99, 90, "CoastalGrove","LeaveLocation")
  46. SetLocationProximityFunction(Zone,-2048.99, 15.74, -483.06, 20, "FangbreakerKeep","LeaveLocation")
  47. SetLocationProximityFunction(Zone,-1851.41, -22.03, -194.27, 90, "NorthernFarmlands","LeaveLocation")
  48. SetLocationProximityFunction(Zone,-2104, -43, 438, 20, "KeepoftheGnollSlayer","LeaveLocation")
  49. SetLocationProximityFunction(Zone,-1755, -14, 521, 80, "GnollslayerHighlands","LeaveLocation")
  50. SetLocationProximityFunction(Zone,-1973.00, -20.08, 640.00, 80, "ScarecrowFields","LeaveLocation")
  51. SetLocationProximityFunction(Zone,-2082.70, 47.26, 1029.12, 100, "HiddenVale","LeaveLocation")
  52. end
  53. function HiddenVale(Zone,Player)
  54. SendPopUpMessage(Player, "Hidden Vale", 255, 255, 0)
  55. end
  56. function ScarecrowFields(Zone,Player)
  57. SendPopUpMessage(Player, "Scarecrow Fields", 255, 255, 0)
  58. end
  59. function GnollslayerHighlands(Zone,Player)
  60. SendPopUpMessage(Player, "Gnollslayer Highlands", 255, 255, 0)
  61. end
  62. function KeepoftheGnollSlayer(Zone,Player)
  63. SendPopUpMessage(Player, "Keep of The Gnollslayer", 255, 255, 0)
  64. end
  65. function NorthernFarmlands(Zone,Player)
  66. SendPopUpMessage(Player, "Northern Farmlands", 255, 255, 0)
  67. end
  68. function FangbreakerKeep(Zone,Player)
  69. SendPopUpMessage(Player, "Fangbreaker Keep", 255, 255, 0)
  70. end
  71. function CoastalGrove(Zone,Player)
  72. SendPopUpMessage(Player, "Coastal Grove", 255, 255, 0)
  73. end
  74. function WindstalkerHighlands(Zone,Player)
  75. SendPopUpMessage(Player, "Windstalker Highlands", 255, 255, 0)
  76. end
  77. function WindstalkerVillage(Zone,Player)
  78. SendPopUpMessage(Player, "Windstalker Village", 255, 255, 0)
  79. end
  80. function RuinsofCaltorsis(Zone,Player)
  81. SendPopUpMessage(Player, "Ruins of Caltorsis", 255, 255, 0)
  82. end
  83. function ToweroftheOracles(Zone,Player)
  84. SendPopUpMessage(Player, "Tower of the Oracles", 255, 255, 0)
  85. end
  86. function TowerLands(Zone,Player)
  87. SendPopUpMessage(Player, "Tower Lands", 255, 255, 0)
  88. end
  89. function KeepoftheArdentNeedle(Zone,Player)
  90. SendPopUpMessage(Player, "Keep of The Ardent Needle", 255, 255, 0)
  91. end
  92. function ArdentHills(Zone,Player)
  93. SendPopUpMessage(Player, "Ardent Hills", 255, 255, 0)
  94. end
  95. function TravelersIsle(Zone,Player)
  96. SendPopUpMessage(Player, "Traveler's Isle", 255, 255, 0)
  97. end
  98. function LonelyIsle(Zone,Player)
  99. SendPopUpMessage(Player, "Lonely Isle", 255, 255, 0)
  100. end
  101. function TombofVarsoon(Zone,Player)
  102. SendPopUpMessage(Player, "Tomb of Varsoon", 255, 255, 0)
  103. end
  104. function AbandonedIsle(Zone,Player)
  105. SendPopUpMessage(Player, "Abandoned Isle", 255, 255, 0)
  106. end
  107. function BridgewayIsle(Zone,Player)
  108. SendPopUpMessage(Player, "Bridgeway Isle", 255, 255, 0)
  109. end
  110. function MistyIsle(Zone,Player)
  111. SendPopUpMessage(Player, "Misty Isle", 255, 255, 0)
  112. end
  113. function WatchtowerPlains(Zone,Player)
  114. SendPopUpMessage(Player, "Watchtower Plains", 255, 255, 0)
  115. end
  116. function MemorialIsle(Zone,Player)
  117. SendPopUpMessage(Player, "Memorial Isle", 255, 255, 0)
  118. end
  119. function WoodedIsle(Zone,Player)
  120. SendPopUpMessage(Player, "Wooded Isle", 255, 255, 0)
  121. end
  122. function QeynosSheperdsIsle(Zone,Player)
  123. SendPopUpMessage(Player, "Qeynos Shepard's Isle", 255, 255, 0)
  124. end
  125. function CastawayIsland(Zone,Player)
  126. SendPopUpMessage(Player, "Castaway Island", 255, 255, 0)
  127. end
  128. function MarinersIsland(Zone,Player)
  129. SendPopUpMessage(Player, "Mariner's Island", 255, 255, 0)
  130. end
  131. function CraterLake(Zone,Player)
  132. SendPopUpMessage(Player, "Crater Lake", 255, 255, 0)
  133. end
  134. function CentralFarmlands(Zone,Player)
  135. SendPopUpMessage(Player, "Central Farmlands", 255, 255, 0)
  136. end
  137. function QeynosHills(Zone,Player)
  138. SendPopUpMessage(Player, "Qeynos Hills", 255, 255, 0)
  139. end
  140. function Claymore(Zone,Player)
  141. SendPopUpMessage(Player, "Claymore Monument", 255, 255, 0)
  142. end
  143. function QeynosPlains(Zone,Player)
  144. SendPopUpMessage(Player, "Qeynos Plains", 255, 255, 0)
  145. end
  146. function ArcherWoods(Zone,Player)
  147. SendPopUpMessage(Player, "Archer Woods", 255, 255, 0)
  148. end
  149. function QeynosHighway(Zone,Player)
  150. SendPopUpMessage(Player, "Qeynos Highway", 255, 255, 0)
  151. end
  152. function BellsofVhalen(Zone,Player)
  153. SendPopUpMessage(Player, "The Bells of Vhalen", 255, 255, 0)
  154. end
  155. function GladeoftheCoven(Zone,Player)
  156. SendPopUpMessage(Player, "Glade of the Coven", 255, 255, 0)
  157. end
  158. function BrambleWoods(Zone,Player)
  159. SendPopUpMessage(Player, "Bramble Woods", 255, 255, 0)
  160. end
  161. function ClodwindPoint(Zone,Player)
  162. SendPopUpMessage(Player, "Coldwind Point", 255, 255, 0)
  163. end
  164. function player_entry(zone, player)
  165. SendPopUpMessage(player, "Antonica", 230, 230, 230)
  166. end
  167. function enter_location(zone, spawn, grid)
  168. end
  169. function leave_location(zone, spawn, grid)
  170. end
  171. function dawn(zone)
  172. end
  173. function dusk(zone)
  174. end
  175. function GriffonTower(Zone, Spawn)
  176. if IsPlayer(Spawn) and IsOnAutoMount(Spawn) then
  177. EndAutoMount(Spawn)
  178. end
  179. end
  180. function Leave(zone, Spawn)
  181. end