9
3

raleigh.lua 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. --[[
  2. Script Name : raleigh.lua
  3. Script Purpose : Waypoint Path for raleigh.lua
  4. Script Author : Devn00b
  5. Script Date : 04/11/2020 06:51:30 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. AddTimer(NPC,2000,"waypoints")
  12. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  13. end
  14. function InRange(NPC, Spawn)
  15. NonCitizen(NPC,Spawn)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. if GetFactionAmount(Spawn,11)<0 then
  20. else
  21. FaceTarget(NPC, Spawn)
  22. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/guard/human_guard_service_good_1_hail_gm_c865a827.mp3", "Duty above all else, citizen, except honor!", "scold", 4141262779, 4227030045, Spawn, 0)
  23. end
  24. end
  25. function respawn(NPC)
  26. spawn(NPC)
  27. end
  28. function waypoints(NPC)
  29. MovementLoopAddLocation(NPC, 621.88, -15.72, 184.05, 2, 0)
  30. MovementLoopAddLocation(NPC, 621.42, -12.85, 161.06, 2, 0)
  31. MovementLoopAddLocation(NPC, 619.77, -12.23, 143.64, 2, 0)
  32. MovementLoopAddLocation(NPC, 617.04, -12.12, 142.63, 2, 0)
  33. MovementLoopAddLocation(NPC, 600.69, -12.05, 145.93, 2, 0)
  34. MovementLoopAddLocation(NPC, 583.68, -10.42, 147.57, 2, 0)
  35. MovementLoopAddLocation(NPC, 549.98, -10.56, 151.12, 2, 0)
  36. MovementLoopAddLocation(NPC, 546.65, -10.47, 154.19, 2, 0)
  37. MovementLoopAddLocation(NPC, 545.89, -10.74, 169.73, 2, 0)
  38. MovementLoopAddLocation(NPC, 545.39, -15.27, 198.53, 2, 6)
  39. MovementLoopAddLocation(NPC, 546.31, -10.3, 156.25, 2, 0)
  40. MovementLoopAddLocation(NPC, 543.88, -10.51, 151.06, 2, 0)
  41. MovementLoopAddLocation(NPC, 534.08, -10.5, 150.89, 2, 0)
  42. MovementLoopAddLocation(NPC, 521.18, -10.45, 149.16, 2, 0)
  43. MovementLoopAddLocation(NPC, 506.16, -11.24, 144.65, 2, 0)
  44. MovementLoopAddLocation(NPC, 500.59, -11.08, 136.71, 2, 6)
  45. MovementLoopAddLocation(NPC, 501.19, -11.6, 143.91, 2, 0)
  46. MovementLoopAddLocation(NPC, 525.03, -10.49, 149.91, 2, 0)
  47. MovementLoopAddLocation(NPC, 549.11, -10.59, 151.97, 2, 0)
  48. MovementLoopAddLocation(NPC, 567.43, -10.61, 150.95, 2, 0)
  49. MovementLoopAddLocation(NPC, 589.83, -10.56, 147.49, 2, 0)
  50. MovementLoopAddLocation(NPC, 615.66, -12.21, 144.05, 2, 0)
  51. MovementLoopAddLocation(NPC, 620.5, -12.31, 146.06, 2, 0)
  52. MovementLoopAddLocation(NPC, 622.52, -16.13, 190.9, 2, 6)
  53. end
  54. --[[ORIGINAL ATTEMPT, Too Broad]
  55. function waypoints(NPC)
  56. MovementLoopAddLocation(NPC, 518.13, -10.48, 148.06, 2, 0)
  57. MovementLoopAddLocation(NPC, 546.76, -10.58, 151.7, 2, 0)
  58. MovementLoopAddLocation(NPC, 619.74, -12.25, 144.07, 2, 0)
  59. MovementLoopAddLocation(NPC, 621.1, -16.52, 201.22, 2, 0)
  60. MovementLoopAddLocation(NPC, 557.98, -15.36, 210.45, 2, 0)
  61. MovementLoopAddLocation(NPC, 558.15, -17.19, 232.88, 2, 0)
  62. MovementLoopAddLocation(NPC, 552.57, -17.74, 244.2, 2, 0)
  63. MovementLoopAddLocation(NPC, 503.12, -19.64, 242.37, 2, 0)
  64. MovementLoopAddLocation(NPC, 459.61, -22.15, 233.9, 2, 0)
  65. MovementLoopAddLocation(NPC, 457.36, -21.39, 226.69, 2, 0)
  66. MovementLoopAddLocation(NPC, 471.92, -20.75, 189.58, 2, 0)
  67. MovementLoopAddLocation(NPC, 485.11, -14.58, 159.08, 2, 0)
  68. MovementLoopAddLocation(NPC, 494.06, -11.84, 144.74, 2, 0)
  69. MovementLoopAddLocation(NPC, 514.53, -10.6, 147.01, 2, 0)
  70. MovementLoopAddLocation(NPC, 546.4, -10.57, 151.35, 2, 0)
  71. MovementLoopAddLocation(NPC, 546.6, -14.95, 189.7, 2, 0)
  72. MovementLoopAddLocation(NPC, 546.4, -10.57, 151.35, 2, 0)
  73. MovementLoopAddLocation(NPC, 514.53, -10.6, 147.01, 2, 0)
  74. MovementLoopAddLocation(NPC, 494.06, -11.84, 144.74, 2, 0)
  75. MovementLoopAddLocation(NPC, 485.11, -14.58, 159.08, 2, 0)
  76. MovementLoopAddLocation(NPC, 471.92, -20.75, 189.58, 2, 0)
  77. MovementLoopAddLocation(NPC, 457.36, -21.39, 226.69, 2, 0)
  78. MovementLoopAddLocation(NPC, 459.61, -22.15, 233.9, 2, 0)
  79. MovementLoopAddLocation(NPC, 503.12, -19.64, 242.37, 2, 0)
  80. MovementLoopAddLocation(NPC, 552.57, -17.74, 244.2, 2, 0)
  81. MovementLoopAddLocation(NPC, 558.15, -17.19, 232.88, 2, 0)
  82. MovementLoopAddLocation(NPC, 557.98, -15.36, 210.45, 2, 0)
  83. MovementLoopAddLocation(NPC, 621.1, -16.52, 201.22, 2, 0)
  84. MovementLoopAddLocation(NPC, 619.74, -12.25, 144.07, 2, 0)
  85. MovementLoopAddLocation(NPC, 546.76, -10.58, 151.7, 2, 0)
  86. MovementLoopAddLocation(NPC, 518.13, -10.48, 148.06, 2, 0)
  87. end
  88. ]]--