9
3

campos.lua 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. --[[
  2. Script Name : campos.lua
  3. Script Purpose : Waypoint Path for campos.lua
  4. Script Author : Devn00b
  5. Script Date : 04/11/2020 09:43:22 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. waypoints(NPC)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function InRange(NPC, Spawn)
  18. NonCitizen(NPC,Spawn)
  19. if math.random(0, 100) <= 25 and GetFactionAmount(Spawn,11) > 20000 then
  20. FaceTarget(NPC, Spawn)
  21. GenericGuardHail(NPC, Spawn)
  22. CheckFaction(NPC, Spawn, "Qeynos")
  23. else
  24. CheckFaction(NPC, Spawn, "Qeynos")
  25. end
  26. end
  27. function LeaveRange(NPC, Spawn)
  28. end
  29. function hailed(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. GenericGuardHail(NPC, Spawn)
  32. end
  33. function waypoints(NPC)
  34. MovementLoopAddLocation(NPC, 309.84, -21.61, 23.07, 2, 0)
  35. MovementLoopAddLocation(NPC, 321.33, -21.92, 35.4, 2, 0)
  36. MovementLoopAddLocation(NPC, 347.79, -21.26, 61.5, 2, 0)
  37. MovementLoopAddLocation(NPC, 354.26, -20.8, 88.65, 2, 0)
  38. MovementLoopAddLocation(NPC, 376.97, -20.5, 119.03, 2, 0)
  39. MovementLoopAddLocation(NPC, 371.99, -20.58, 125.21, 2, 0)
  40. MovementLoopAddLocation(NPC, 368.34, -20.88, 129.15, 2, 0)
  41. MovementLoopAddLocation(NPC, 364.46, -20.97, 130.68, 2, 0)
  42. MovementLoopAddLocation(NPC, 360.94, -20.97, 130.21, 2, 0)
  43. MovementLoopAddLocation(NPC, 345.35, -20.7, 125.9, 2, 0)
  44. MovementLoopAddLocation(NPC, 343.86, -20.67, 124.21, 2, 0)
  45. MovementLoopAddLocation(NPC, 343.15, -20.65, 122.13, 2, 0)
  46. MovementLoopAddLocation(NPC, 342.78, -20.6, 119.7, 2, 0)
  47. MovementLoopAddLocation(NPC, 342.77, -20.55, 116.88, 2, 0)
  48. MovementLoopAddLocation(NPC, 343.9, -20.41, 109.84, 2, 0)
  49. MovementLoopAddLocation(NPC, 347.82, -21.39, 73.93, 2, 0)
  50. MovementLoopAddLocation(NPC, 344, -21.64, 64.16, 2, 0)
  51. MovementLoopAddLocation(NPC, 337.2, -21.46, 52.68, 2, 0)
  52. MovementLoopAddLocation(NPC, 309.62, -21.6, 23.26, 2, 0)
  53. MovementLoopAddLocation(NPC, 295.75, -21.33, 4.62, 2, 0)
  54. MovementLoopAddLocation(NPC, 267.93, -21.53, -16.49, 2, 0)
  55. MovementLoopAddLocation(NPC, 221.3, -21.86, -19.01, 2, 0)
  56. MovementLoopAddLocation(NPC, 267.93, -21.53, -16.49, 2, 0)
  57. MovementLoopAddLocation(NPC, 295.75, -21.33, 4.62, 2, 0)
  58. MovementLoopAddLocation(NPC, 309.62, -21.6, 23.26, 2, 0)
  59. MovementLoopAddLocation(NPC, 337.2, -21.46, 52.68, 2, 0)
  60. MovementLoopAddLocation(NPC, 344, -21.64, 64.16, 2, 0)
  61. MovementLoopAddLocation(NPC, 347.82, -21.39, 73.93, 2, 0)
  62. MovementLoopAddLocation(NPC, 343.9, -20.41, 109.84, 2, 0)
  63. MovementLoopAddLocation(NPC, 342.77, -20.55, 116.88, 2, 0)
  64. MovementLoopAddLocation(NPC, 342.78, -20.6, 119.7, 2, 0)
  65. MovementLoopAddLocation(NPC, 343.15, -20.65, 122.13, 2, 0)
  66. MovementLoopAddLocation(NPC, 343.86, -20.67, 124.21, 2, 0)
  67. MovementLoopAddLocation(NPC, 345.35, -20.7, 125.9, 2, 0)
  68. MovementLoopAddLocation(NPC, 360.94, -20.97, 130.21, 2, 0)
  69. MovementLoopAddLocation(NPC, 364.46, -20.97, 130.68, 2, 0)
  70. MovementLoopAddLocation(NPC, 368.34, -20.88, 129.15, 2, 0)
  71. MovementLoopAddLocation(NPC, 371.99, -20.58, 125.21, 2, 0)
  72. MovementLoopAddLocation(NPC, 376.97, -20.5, 119.03, 2, 0)
  73. MovementLoopAddLocation(NPC, 354.26, -20.8, 88.65, 2, 0)
  74. MovementLoopAddLocation(NPC, 347.79, -21.26, 61.5, 2, 0)
  75. MovementLoopAddLocation(NPC, 321.33, -21.92, 35.4, 2, 0)
  76. MovementLoopAddLocation(NPC, 309.84, -21.61, 23.07, 2, 0)
  77. end