lovato.lua 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. --[[
  2. Script Name : lovato.lua
  3. Script Purpose : Waypoint Path for lovato.lua
  4. Script Author : Devn00b
  5. Script Date : 04/11/2020 09:59:23 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, 416.76, -19.18, -272.59, 2, 0)
  35. MovementLoopAddLocation(NPC, 397.39, -17.69, -271.71, 2, 0)
  36. MovementLoopAddLocation(NPC, 386.62, -17.48, -271.02, 2, 0)
  37. MovementLoopAddLocation(NPC, 380.75, -17.59, -270.53, 2, 0)
  38. MovementLoopAddLocation(NPC, 335.97, -18.48, -229.93, 2, 0)
  39. MovementLoopAddLocation(NPC, 322.21, -22.43, -187.91, 2, 0)
  40. MovementLoopAddLocation(NPC, 300.86, -22.74, -165.58, 2, 0)
  41. MovementLoopAddLocation(NPC, 286.91, -18.84, -146.59, 2, 0)
  42. MovementLoopAddLocation(NPC, 285.04, -18.75, -138.03, 2, 0)
  43. MovementLoopAddLocation(NPC, 294.8, -19.05, -123.14, 2, 0)
  44. MovementLoopAddLocation(NPC, 292.38, -18.93, -111.75, 2, 0)
  45. MovementLoopAddLocation(NPC, 270.69, -18.62, -95.31, 2, 0)
  46. MovementLoopAddLocation(NPC, 266.85, -18.71, -89.95, 2, 0)
  47. MovementLoopAddLocation(NPC, 260.01, -20.43, -56.98, 2, 0)
  48. MovementLoopAddLocation(NPC, 262.42, -21.01, -30.97, 2, 0)
  49. MovementLoopAddLocation(NPC, 274.17, -21.18, -33.17, 2, 0)
  50. MovementLoopAddLocation(NPC, 283.95, -20.98, -36.93, 2, 0)
  51. MovementLoopAddLocation(NPC, 305.16, -21.39, -42.51, 2, 0)
  52. MovementLoopAddLocation(NPC, 311.5, -21.4, -37.18, 2, 0)
  53. MovementLoopAddLocation(NPC, 322.24, -21.45, -24.11, 2, 0)
  54. MovementLoopAddLocation(NPC, 311.5, -21.4, -37.18, 2, 0)
  55. MovementLoopAddLocation(NPC, 305.16, -21.39, -42.51, 2, 0)
  56. MovementLoopAddLocation(NPC, 283.95, -20.98, -36.93, 2, 0)
  57. MovementLoopAddLocation(NPC, 274.17, -21.18, -33.17, 2, 0)
  58. MovementLoopAddLocation(NPC, 262.42, -21.01, -30.97, 2, 0)
  59. MovementLoopAddLocation(NPC, 260.01, -20.43, -56.98, 2, 0)
  60. MovementLoopAddLocation(NPC, 266.85, -18.71, -89.95, 2, 0)
  61. MovementLoopAddLocation(NPC, 270.69, -18.62, -95.31, 2, 0)
  62. MovementLoopAddLocation(NPC, 292.38, -18.93, -111.75, 2, 0)
  63. MovementLoopAddLocation(NPC, 294.8, -19.05, -123.14, 2, 0)
  64. MovementLoopAddLocation(NPC, 285.04, -18.75, -138.03, 2, 0)
  65. MovementLoopAddLocation(NPC, 286.91, -18.84, -146.59, 2, 0)
  66. MovementLoopAddLocation(NPC, 300.86, -22.74, -165.58, 2, 0)
  67. MovementLoopAddLocation(NPC, 322.21, -22.43, -187.91, 2, 0)
  68. MovementLoopAddLocation(NPC, 335.97, -18.48, -229.93, 2, 0)
  69. MovementLoopAddLocation(NPC, 380.75, -17.59, -270.53, 2, 0)
  70. MovementLoopAddLocation(NPC, 386.62, -17.48, -271.02, 2, 0)
  71. MovementLoopAddLocation(NPC, 397.39, -17.69, -271.71, 2, 0)
  72. MovementLoopAddLocation(NPC, 416.76, -19.18, -272.59, 2, 0)
  73. end