stoutiron.lua 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. --[[
  2. Script Name : stoutiron.lua
  3. Script Purpose : Waypoint Path for stoutiron.lua
  4. Script Author : Devn00b
  5. Script Date : 04/15/2020 04:56:57 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
  9. dofile("SpawnScripts/Generic/ExpelNonCitizen.lua")
  10. function spawn(NPC)
  11. waypoints(NPC)
  12. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  13. end
  14. function hailed(NPC, Spawn)
  15. if GetFactionAmount(Spawn,11)<0 then
  16. else
  17. FaceTarget(NPC, Spawn)
  18. GenericGuardHail(NPC,Spawn)
  19. end
  20. end
  21. function InRange(NPC, Spawn)
  22. NonCitizen(NPC,Spawn)
  23. end
  24. function respawn(NPC)
  25. spawn(NPC)
  26. end
  27. function waypoints(NPC)
  28. MovementLoopAddLocation(NPC, 366.02, -18.33, -272.16, 2, 0)
  29. MovementLoopAddLocation(NPC, 431.6, -20.85, -268.87, 2, 0)
  30. MovementLoopAddLocation(NPC, 398.61, -17.76, -272.02, 2, 0)
  31. MovementLoopAddLocation(NPC, 382.22, -17.56, -270.8, 2, 0)
  32. MovementLoopAddLocation(NPC, 338.65, -18.13, -233.43, 2, 0)
  33. MovementLoopAddLocation(NPC, 332.04, -22.87, -216.95, 2, 0)
  34. MovementLoopAddLocation(NPC, 321.12, -22.38, -185.92, 2, 0)
  35. MovementLoopAddLocation(NPC, 295.5, -20.9, -160.61, 2, 0)
  36. MovementLoopAddLocation(NPC, 284.59, -18.75, -142.28, 2, 0)
  37. MovementLoopAddLocation(NPC, 301.23, -19.99, -112.29, 2, 0)
  38. MovementLoopAddLocation(NPC, 269, -18.62, -94.27, 2, 0)
  39. MovementLoopAddLocation(NPC, 258.67, -20.79, -52.15, 2, 0)
  40. MovementLoopAddLocation(NPC, 265.53, -21.3, -27.72, 2, 0)
  41. MovementLoopAddLocation(NPC, 301.16, -21.23, -44.9, 2, 0)
  42. MovementLoopAddLocation(NPC, 321.33, -21.45, -22.43, 2, 0)
  43. MovementLoopAddLocation(NPC, 305.29, -21.12, 1.72, 2, 0)
  44. MovementLoopAddLocation(NPC, 279.23, -21.32, -4.67, 2, 0)
  45. MovementLoopAddLocation(NPC, 256.8, -21.38, -20.68, 2, 0)
  46. MovementLoopAddLocation(NPC, 250.76, -20.66, -4.67, 2, 0)
  47. MovementLoopAddLocation(NPC, 252.27, -19.04, 48.63, 2, 0)
  48. MovementLoopAddLocation(NPC, 277.05, -13.87, 72.71, 2, 0)
  49. MovementLoopAddLocation(NPC, 287.87, -12.89, 91.72, 2, 0)
  50. MovementLoopAddLocation(NPC, 293.28, -13.81, 117.82, 2, 0)
  51. MovementLoopAddLocation(NPC, 302.36, -17.12, 150.81, 2, 0)
  52. MovementLoopAddLocation(NPC, 316.94, -17.98, 166.39, 2, 0)
  53. MovementLoopAddLocation(NPC, 330.9, -18.7, 170.2, 2, 0)
  54. MovementLoopAddLocation(NPC, 362.75, -20.06, 156.34, 2, 0)
  55. MovementLoopAddLocation(NPC, 381.27, -20.79, 137.78, 2, 0)
  56. MovementLoopAddLocation(NPC, 408.42, -14.21, 74.82, 2, 0)
  57. MovementLoopAddLocation(NPC, 413.13, -13.83, 58.33, 2, 0)
  58. MovementLoopAddLocation(NPC, 396.74, -15.13, 21.03, 2, 0)
  59. MovementLoopAddLocation(NPC, 392.1, -17.01, -32.56, 2, 0)
  60. MovementLoopAddLocation(NPC, 397.5, -16.13, -89.47, 2, 0)
  61. MovementLoopAddLocation(NPC, 399.73, -23.53, -114.06, 2, 0)
  62. MovementLoopAddLocation(NPC, 425.15, -17.79, -154.07, 2, 0)
  63. MovementLoopAddLocation(NPC, 438.5, -17.1, -178.01, 2, 0)
  64. MovementLoopAddLocation(NPC, 438.72, -18.54, -197.59, 2, 0)
  65. MovementLoopAddLocation(NPC, 439.03, -20.98, -238.39, 2, 0)
  66. MovementLoopAddLocation(NPC, 436.78, -20.78, -280.35, 2, 0)
  67. MovementLoopAddLocation(NPC, 451.35, -20.24, -307.86, 2, 0)
  68. MovementLoopAddLocation(NPC, 436.78, -20.78, -280.35, 2, 0)
  69. MovementLoopAddLocation(NPC, 439.03, -20.98, -238.39, 2, 0)
  70. MovementLoopAddLocation(NPC, 438.72, -18.54, -197.59, 2, 0)
  71. MovementLoopAddLocation(NPC, 438.5, -17.1, -178.01, 2, 0)
  72. MovementLoopAddLocation(NPC, 425.15, -17.79, -154.07, 2, 0)
  73. MovementLoopAddLocation(NPC, 399.73, -23.53, -114.06, 2, 0)
  74. MovementLoopAddLocation(NPC, 397.5, -16.13, -89.47, 2, 0)
  75. MovementLoopAddLocation(NPC, 392.1, -17.01, -32.56, 2, 0)
  76. MovementLoopAddLocation(NPC, 396.74, -15.13, 21.03, 2, 0)
  77. MovementLoopAddLocation(NPC, 413.13, -13.83, 58.33, 2, 0)
  78. MovementLoopAddLocation(NPC, 408.42, -14.21, 74.82, 2, 0)
  79. MovementLoopAddLocation(NPC, 381.27, -20.79, 137.78, 2, 0)
  80. MovementLoopAddLocation(NPC, 362.75, -20.06, 156.34, 2, 0)
  81. MovementLoopAddLocation(NPC, 330.9, -18.7, 170.2, 2, 0)
  82. MovementLoopAddLocation(NPC, 316.94, -17.98, 166.39, 2, 0)
  83. MovementLoopAddLocation(NPC, 302.36, -17.12, 150.81, 2, 0)
  84. MovementLoopAddLocation(NPC, 293.28, -13.81, 117.82, 2, 0)
  85. MovementLoopAddLocation(NPC, 287.87, -12.89, 91.72, 2, 0)
  86. MovementLoopAddLocation(NPC, 277.05, -13.87, 72.71, 2, 0)
  87. MovementLoopAddLocation(NPC, 252.27, -19.04, 48.63, 2, 0)
  88. MovementLoopAddLocation(NPC, 250.76, -20.66, -4.67, 2, 0)
  89. MovementLoopAddLocation(NPC, 256.8, -21.38, -20.68, 2, 0)
  90. MovementLoopAddLocation(NPC, 279.23, -21.32, -4.67, 2, 0)
  91. MovementLoopAddLocation(NPC, 305.29, -21.12, 1.72, 2, 0)
  92. MovementLoopAddLocation(NPC, 321.33, -21.45, -22.43, 2, 0)
  93. MovementLoopAddLocation(NPC, 301.16, -21.23, -44.9, 2, 0)
  94. MovementLoopAddLocation(NPC, 265.53, -21.3, -27.72, 2, 0)
  95. MovementLoopAddLocation(NPC, 258.67, -20.79, -52.15, 2, 0)
  96. MovementLoopAddLocation(NPC, 269, -18.62, -94.27, 2, 0)
  97. MovementLoopAddLocation(NPC, 301.23, -19.99, -112.29, 2, 0)
  98. MovementLoopAddLocation(NPC, 284.59, -18.75, -142.28, 2, 0)
  99. MovementLoopAddLocation(NPC, 295.5, -20.9, -160.61, 2, 0)
  100. MovementLoopAddLocation(NPC, 321.12, -22.38, -185.92, 2, 0)
  101. MovementLoopAddLocation(NPC, 332.04, -22.87, -216.95, 2, 0)
  102. MovementLoopAddLocation(NPC, 338.65, -18.13, -233.43, 2, 0)
  103. MovementLoopAddLocation(NPC, 382.22, -17.56, -270.8, 2, 0)
  104. MovementLoopAddLocation(NPC, 398.61, -17.76, -272.02, 2, 0)
  105. MovementLoopAddLocation(NPC, 431.6, -20.85, -268.87, 2, 0)
  106. MovementLoopAddLocation(NPC, 366.02, -18.33, -272.16, 2, 0)
  107. end