captsalty.lua 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. --[[
  2. Script Name : captsalty.lua
  3. Script Purpose : Waypoint Path for captsalty.lua
  4. Script Author : Devn00b
  5. Script Date : 04/09/2020 03:52:17 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function Sleep(NPC)
  17. local choice = math.random(1,2)
  18. if choice == 1 then
  19. SpawnSet(NPC, "action_state", 540)
  20. AddTimer(NPC, 22000, "Wake")
  21. elseif choice ==2 then
  22. end
  23. end
  24. function Wake(NPC)
  25. SpawnSet(NPC, "action_state", 0)
  26. end
  27. function waypoints(NPC)
  28. MovementLoopAddLocation(NPC, 973.64, -25.47, 7.88, 1, 25,"Sleep")
  29. MovementLoopAddLocation(NPC, 965.27, -25.47, 8.63, 1, 25,"Sleep")
  30. MovementLoopAddLocation(NPC, 958.68, -25.48, 20.28, 1, 0)
  31. MovementLoopAddLocation(NPC, 957.02, -25.35, 22.85, 1, 0)
  32. MovementLoopAddLocation(NPC, 953.81, -25.5, 34.48, 1, 25,"Sleep")
  33. MovementLoopAddLocation(NPC, 936.25, -25.55, 31.54, 1, 0)
  34. MovementLoopAddLocation(NPC, 929.53, -25.59, 29.89, 1, 0)
  35. MovementLoopAddLocation(NPC, 928.21, -25.55, 34.3, 1, 0)
  36. MovementLoopAddLocation(NPC, 927.81, -25.54, 35.43, 1, 0)
  37. MovementLoopAddLocation(NPC, 924.19, -25.5, 38.2, 1, 0)
  38. MovementLoopAddLocation(NPC, 923.03, -25.49, 39.06, 1, 0)
  39. MovementLoopAddLocation(NPC, 921.1, -25.44, 40.92, 1, 0)
  40. MovementLoopAddLocation(NPC, 919.8, -25.42, 43.22, 1, 0)
  41. MovementLoopAddLocation(NPC, 920.03, -25.49, 46.43, 1, 25,"Sleep")
  42. MovementLoopAddLocation(NPC, 912.55, -25.4, 59.49, 1, 0)
  43. MovementLoopAddLocation(NPC, 911.62, -25.41, 61.07, 1, 25,"Sleep")
  44. MovementLoopAddLocation(NPC, 911.16, -25.47, 67.42, 1, 0)
  45. MovementLoopAddLocation(NPC, 924.31, -25.47, 76.29, 1, 25,"Sleep")
  46. MovementLoopAddLocation(NPC, 919.74, -25.49, 65.28, 1, 0)
  47. MovementLoopAddLocation(NPC, 917.37, -25.49, 59.56, 1, 0)
  48. MovementLoopAddLocation(NPC, 914.21, -25.39, 54.36, 1, 0)
  49. MovementLoopAddLocation(NPC, 908.45, -25.33, 53.61, 1, 0)
  50. MovementLoopAddLocation(NPC, 904.09, -25.25, 57.38, 1, 0)
  51. MovementLoopAddLocation(NPC, 903.01, -25.31, 60.09, 1, 0)
  52. MovementLoopAddLocation(NPC, 901.83, -25.28, 59.38, 1, 0)
  53. MovementLoopAddLocation(NPC, 897.87, -25.42, 59.16, 1, 0)
  54. MovementLoopAddLocation(NPC, 895.09, -25.46, 57.82, 1, 0)
  55. MovementLoopAddLocation(NPC, 893.69, -25.47, 57.14, 1, 0)
  56. MovementLoopAddLocation(NPC, 892.86, -24.4, 59.71, 1, 0)
  57. MovementLoopAddLocation(NPC, 884.26, -24.47, 78.05, 1, 25,"Sleep")
  58. MovementLoopAddLocation(NPC, 878.36, -24.47, 90.26, 1, 0)
  59. MovementLoopAddLocation(NPC, 872.55, -24.47, 102.29, 1, 0)
  60. MovementLoopAddLocation(NPC, 865.68, -24.47, 116.52, 1, 25,"Sleep")
  61. MovementLoopAddLocation(NPC, 864.85, -24.47, 117.11, 1, 0)
  62. MovementLoopAddLocation(NPC, 860.03, -24.47, 117.73, 1, 0,"Sleep")
  63. MovementLoopAddLocation(NPC, 857.39, -24.47, 116.86, 1, 0)
  64. MovementLoopAddLocation(NPC, 850.65, -24.47, 113.12, 1, 25,"Sleep")
  65. MovementLoopAddLocation(NPC, 843.78, -24.47, 106.79, 1, 25,"Sleep")
  66. MovementLoopAddLocation(NPC, 842.4, -24.89, 107.08, 1, 0)
  67. MovementLoopAddLocation(NPC, 840.71, -25.47, 106.64, 1, 0)
  68. MovementLoopAddLocation(NPC, 840.07, -25.47, 106.28, 1, 25,"Sleep")
  69. MovementLoopAddLocation(NPC, 836.03, -26.75, 102.02, 1, 25,"Sleep")
  70. MovementLoopAddLocation(NPC, 839.68, -25.47, 104.55, 1, 0)
  71. MovementLoopAddLocation(NPC, 841.17, -25.54, 103.21, 1, 0)
  72. MovementLoopAddLocation(NPC, 842.52, -25.51, 102.06, 1, 0)
  73. MovementLoopAddLocation(NPC, 837.07, -25.5, 98.15, 1, 0)
  74. MovementLoopAddLocation(NPC, 836.29, -25.5, 93.52, 1, 0)
  75. MovementLoopAddLocation(NPC, 837.09, -25.5, 85.86, 1, 25,"Sleep")
  76. MovementLoopAddLocation(NPC, 854.42, -25.6, 53.74, 1, 0)
  77. MovementLoopAddLocation(NPC, 855.68, -25.61, 51.41, 1, 25,"Sleep")
  78. MovementLoopAddLocation(NPC, 857.46, -25.48, 48.12, 1, 0)
  79. MovementLoopAddLocation(NPC, 855.72, -25.6, 46.09, 1, 25,"Sleep")
  80. MovementLoopAddLocation(NPC, 858.19, -25.51, 46.74, 1, 0)
  81. MovementLoopAddLocation(NPC, 879.02, -25.37, 64.54, 1, 25,"Sleep")
  82. MovementLoopAddLocation(NPC, 892.64, -25.51, 56.82, 1, 0)
  83. MovementLoopAddLocation(NPC, 894.51, -25.49, 54.18, 1, 25,"Sleep")
  84. MovementLoopAddLocation(NPC, 899.93, -25.46, 46.12, 1, 0)
  85. MovementLoopAddLocation(NPC, 915.28, -24.54, 38.8, 1, 25,"Sleep")
  86. MovementLoopAddLocation(NPC, 915.1, -24.54, 37.8, 1, 25,"Sleep")
  87. MovementLoopAddLocation(NPC, 911.67, -25.42, 35.64, 1, 0)
  88. MovementLoopAddLocation(NPC, 911.52, -25.52, 30.49, 1, 0)
  89. MovementLoopAddLocation(NPC, 914.3, -25.45, 6.76, 1, 0)
  90. MovementLoopAddLocation(NPC, 915, -25.44, 6.72, 1, 25,"Sleep")
  91. MovementLoopAddLocation(NPC, 920.57, -25.35, 12.73, 1, 25,"Sleep")
  92. MovementLoopAddLocation(NPC, 918.92, -25.41, 15.78, 1, 0)
  93. MovementLoopAddLocation(NPC, 923.91, -25.53, 29.37, 1, 25,"Sleep")
  94. MovementLoopAddLocation(NPC, 932.92, -25.47, 8.14, 1, 25,"Sleep")
  95. MovementLoopAddLocation(NPC, 929.99, -25.42, 18.66, 1, 0)
  96. MovementLoopAddLocation(NPC, 933.16, -25.47, 21.49, 1, 0)
  97. MovementLoopAddLocation(NPC, 946.49, -25.53, 25.84, 1, 0)
  98. MovementLoopAddLocation(NPC, 948.13, -25.5, 29.03, 1, 0)
  99. MovementLoopAddLocation(NPC, 949.77, -25.5, 28.31, 1, 0)
  100. MovementLoopAddLocation(NPC, 951.35, -25.5, 19.9, 1, 25,"Sleep")
  101. MovementLoopAddLocation(NPC, 959.26, -25.47, 18.66, 1, 0)
  102. MovementLoopAddLocation(NPC, 976.31, -25.47, 8.64, 1, 0)
  103. MovementLoopAddLocation(NPC, 990.68, -25.47, -0.58, 1, 25,"Sleep")
  104. end
  105. --[[
  106. function waypoints(NPC)
  107. MovementLoopAddLocation(NPC, 972.47, -25.45, 10.02, 1, math.random(6,20))
  108. MovementLoopAddLocation(NPC, 961.84, -25.44, 9.71, 1, 0)
  109. MovementLoopAddLocation(NPC, 958.16, -25.44, 21.02, 1, 0)
  110. MovementLoopAddLocation(NPC, 949.01, -25.5, 30.17, 1, 0)
  111. MovementLoopAddLocation(NPC, 905.14, -25.38, 15.2, 1, math.random(6,20))
  112. MovementLoopAddLocation(NPC, 880.26, -25.43, 30.05, 1, 0)
  113. MovementLoopAddLocation(NPC, 857.26, -25.5, 52.54, 1, 0)
  114. MovementLoopAddLocation(NPC, 838.21, -25.48, 85.91, 1, 0)
  115. MovementLoopAddLocation(NPC, 838.68, -25.47, 94.87, 1, 0)
  116. MovementLoopAddLocation(NPC, 839.47, -25.39, 89.55, 1, math.random(6,20))
  117. MovementLoopAddLocation(NPC, 860.44, -25.44, 50.05, 1, 0)
  118. MovementLoopAddLocation(NPC, 892.88, -25.5, 52, 4, 0)
  119. MovementLoopAddLocation(NPC, 904.41, -25.37, -10.76, 1, 0)
  120. MovementLoopAddLocation(NPC, 891.99, -25.36, -56.95, 1, 0)
  121. MovementLoopAddLocation(NPC, 811.93, -20.4, -59.04, 1, 0)
  122. MovementLoopAddLocation(NPC, 780.24, -21.46, -57.02, 1, 0)
  123. MovementLoopAddLocation(NPC, 766.08, -20.64, 10.56, 1, math.random(6,20))
  124. MovementLoopAddLocation(NPC, 724.78, -20.11, -0.22, 1, 0)
  125. MovementLoopAddLocation(NPC, 706.73, -20.82, -62.94, 1, 0)
  126. MovementLoopAddLocation(NPC, 700.29, -20.65, -68.06, 1, 0)
  127. MovementLoopAddLocation(NPC, 706.73, -20.82, -62.94, 1, math.random(6,20))
  128. MovementLoopAddLocation(NPC, 724.78, -20.11, -0.22, 4, 0)
  129. MovementLoopAddLocation(NPC, 766.08, -20.64, 10.56, 4, 0)
  130. MovementLoopAddLocation(NPC, 780.24, -21.46, -57.02, 4, 0)
  131. MovementLoopAddLocation(NPC, 811.93, -20.4, -59.04, 2, math.random(6,20))
  132. MovementLoopAddLocation(NPC, 891.99, -25.36, -56.95, 1, 0)
  133. MovementLoopAddLocation(NPC, 904.41, -25.37, -10.76, 1, 0)
  134. MovementLoopAddLocation(NPC, 892.88, -25.5, 52, 1, 0)
  135. MovementLoopAddLocation(NPC, 860.44, -25.44, 50.05, 2, math.random(6,20))
  136. MovementLoopAddLocation(NPC, 839.47, -25.39, 89.55, 4, 0)
  137. MovementLoopAddLocation(NPC, 838.68, -25.47, 94.87, 4, 0)
  138. MovementLoopAddLocation(NPC, 838.21, -25.48, 85.91, 4, 0)
  139. MovementLoopAddLocation(NPC, 857.26, -25.5, 52.54, 4, 0)
  140. MovementLoopAddLocation(NPC, 880.26, -25.43, 30.05, 2, 0)
  141. MovementLoopAddLocation(NPC, 905.14, -25.38, 15.2, 1, math.random(6,20))
  142. MovementLoopAddLocation(NPC, 949.01, -25.5, 30.17, 1, 0)
  143. MovementLoopAddLocation(NPC, 958.16, -25.44, 21.02, 1, 0)
  144. MovementLoopAddLocation(NPC, 961.84, -25.44, 9.71, 1, 0)
  145. MovementLoopAddLocation(NPC, 972.47, -25.45, 10.02, 1, math.random(6,20))
  146. end
  147. ]]--