9
3

woodrow.lua 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. --[[
  2. Script Name : woodrow.lua
  3. Script Purpose : Waypoint Path for woodrow.lua
  4. Script Author : Devn00b
  5. Script Date : 04/11/2020 06:13:14 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. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. NonCitizen(NPC,Spawn)
  18. end
  19. function LeaveRange(NPC, Spawn)
  20. end
  21. function hailed(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. GenericGuardHail(NPC, Spawn)
  24. end
  25. function waypoints(NPC)
  26. MovementLoopAddLocation(NPC, 673.7, -21.14, 144.6, 2, 0)
  27. MovementLoopAddLocation(NPC, 682.32, -20.67, 157.2, 2, 0)
  28. MovementLoopAddLocation(NPC, 721.58, -19.64, 183.31, 2, 0)
  29. MovementLoopAddLocation(NPC, 724.37, -19.88, 185.32, 2, 0)
  30. MovementLoopAddLocation(NPC, 778.22, -21.01, 178.06, 2, 1)
  31. MovementLoopAddLocation(NPC, 778.22, -21.01, 178.06, 2, 8,"FaceGuard2")
  32. MovementLoopAddLocation(NPC, 778.22, -21.01, 178.06, 2, 1)
  33. MovementLoopAddLocation(NPC, 743.16, -20.65, 189.88, 2, 0)
  34. MovementLoopAddLocation(NPC, 744.9, -19.02, 198.56, 2, 0)
  35. MovementLoopAddLocation(NPC, 739.77, -20.59, 189.28, 2, 0)
  36. MovementLoopAddLocation(NPC, 721.95, -19.32, 203.18, 2, 0)
  37. MovementLoopAddLocation(NPC, 720.31, -19.56, 194.64, 2, 0)
  38. MovementLoopAddLocation(NPC, 707.27, -19.53, 196.34, 2, 0)
  39. MovementLoopAddLocation(NPC, 702.15, -19.49, 176.73, 2, 0)
  40. MovementLoopAddLocation(NPC, 675.8, -20.59, 157.81, 2, 0)
  41. MovementLoopAddLocation(NPC, 668.62, -21.19, 145.22, 2, 0)
  42. MovementLoopAddLocation(NPC, 666.2, -21.3, 132.47, 2, 0)
  43. MovementLoopAddLocation(NPC, 663.46, -21.16, 105.58, 2, 0)
  44. MovementLoopAddLocation(NPC, 654.3, -20.75, 102.88, 2, 0)
  45. MovementLoopAddLocation(NPC, 643.14, -20.66, 97.19, 2, 0)
  46. MovementLoopAddLocation(NPC, 626.94, -26.4, 103.99, 2, 1)
  47. MovementLoopAddLocation(NPC, 626.94, -26.4, 103.99, 2, 8,"FaceGuard")
  48. MovementLoopAddLocation(NPC, 626.94, -26.4, 103.99, 2, 1)
  49. MovementLoopAddLocation(NPC, 643.14, -20.66, 97.19, 2, 0)
  50. MovementLoopAddLocation(NPC, 654.3, -20.75, 102.88, 2, 0)
  51. MovementLoopAddLocation(NPC, 663.46, -21.16, 105.58, 2, 0)
  52. MovementLoopAddLocation(NPC, 666.2, -21.3, 132.47, 2, 0)
  53. MovementLoopAddLocation(NPC, 668.62, -21.19, 145.22, 2, 0)
  54. MovementLoopAddLocation(NPC, 675.8, -20.59, 157.81, 2, 0)
  55. MovementLoopAddLocation(NPC, 702.15, -19.49, 176.73, 2, 0)
  56. MovementLoopAddLocation(NPC, 707.27, -19.53, 196.34, 2, 0)
  57. MovementLoopAddLocation(NPC, 720.31, -19.56, 194.64, 2, 0)
  58. MovementLoopAddLocation(NPC, 721.95, -19.32, 203.18, 2, 0)
  59. MovementLoopAddLocation(NPC, 739.77, -20.59, 189.28, 2, 0)
  60. MovementLoopAddLocation(NPC, 744.9, -19.02, 198.56, 2, 0)
  61. MovementLoopAddLocation(NPC, 743.16, -20.65, 189.88, 2, 0)
  62. MovementLoopAddLocation(NPC, 778.22, -21.01, 178.06, 2, 0)
  63. MovementLoopAddLocation(NPC, 724.37, -19.88, 185.32, 2, 0)
  64. MovementLoopAddLocation(NPC, 721.58, -19.64, 183.31, 2, 0)
  65. MovementLoopAddLocation(NPC, 682.32, -20.67, 157.2, 2, 0)
  66. MovementLoopAddLocation(NPC, 673.7, -21.14, 144.6, 2, 0)
  67. end
  68. function FaceGuard(NPC) -- Saluting script
  69. local Krelal = GetSpawn(NPC, 2310078)
  70. if Krelal ~= nil then
  71. FaceTarget(NPC, Krelal)
  72. AddTimer(NPC, 1000, "CaptainFacesGuard")
  73. end
  74. end
  75. function CaptainFacesGuard(NPC)
  76. local Krelal = GetSpawn(NPC, 2310078)
  77. if Krelal ~= nil then
  78. FaceTarget(Krelal, NPC)
  79. AddTimer(NPC, 500, "CaptainSalutesGuard")
  80. end
  81. end
  82. function CaptainSalutesGuard(NPC)
  83. local Krelal = GetSpawn(NPC, 2310078)
  84. if Krelal ~= nil then
  85. PlayAnimation(Krelal, 12167)
  86. AddTimer(NPC, 1000, "SaluteCaptain")
  87. end
  88. end
  89. function SaluteCaptain(NPC)
  90. local Krelal = GetSpawn(NPC, 2310078)
  91. if Krelal ~= nil then
  92. PlayAnimation(NPC, 12167)
  93. -- AddTimer(NPC, 1000, "CaptainFacesGuard")
  94. end
  95. end
  96. -----------------------------------------------------------
  97. function FaceGuard2(NPC) -- Saluting script
  98. local Mott = GetSpawn(NPC, 2310119)
  99. if Mott ~= nil then
  100. FaceTarget(NPC, Mott)
  101. AddTimer(NPC, 1000, "CaptainFacesGuard2")
  102. end
  103. end
  104. function CaptainFacesGuard2(NPC)
  105. local Mott = GetSpawn(NPC, 2310119)
  106. if Mott ~= nil then
  107. FaceTarget(Mott, NPC)
  108. AddTimer(NPC, 500, "CaptainSalutesGuard2")
  109. end
  110. end
  111. function CaptainSalutesGuard2(NPC)
  112. local Mott = GetSpawn(NPC, 2310119)
  113. if Mott ~= nil then
  114. PlayAnimation(Mott, 12167)
  115. AddTimer(NPC, 1000, "SaluteCaptain2")
  116. end
  117. end
  118. function SaluteCaptain2(NPC)
  119. local Mott = GetSpawn(NPC, 2310119)
  120. if Mott ~= nil then
  121. PlayAnimation(NPC, 12167)
  122. -- AddTimer(NPC, 1000, "CaptainFacesGuard2")
  123. end
  124. end