9
3

Evad.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : SpawnScripts/Graystone/Evad.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.07 04:07:04
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange")
  11. waypoints(NPC)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. CheckFaction(NPC, Spawn, "Qeynos")
  18. if math.random(1, 100) <= 20 then
  19. GenericGuardHail(NPC,Spawn)
  20. end
  21. end
  22. function hailed(NPC, Spawn)
  23. FaceTarget(NPC, Spawn)
  24. GenericGuardHail(NPC, Spawn)
  25. end
  26. function waypoints(NPC)
  27. MovementLoopAddLocation(NPC, 891.2, -24.89, -153.41, 2, 35)
  28. MovementLoopAddLocation(NPC, 891.92, -24.9, -153.18, 2, 0)
  29. MovementLoopAddLocation(NPC, 890.05, -24.84, -152.31, 2, 0)
  30. MovementLoopAddLocation(NPC, 878.86, -24.92, -151.33, 2, 0)
  31. MovementLoopAddLocation(NPC, 871.1, -23.46, -151.17, 2, 0)
  32. MovementLoopAddLocation(NPC, 859.21, -23.64, -151.32, 2, 0)
  33. MovementLoopAddLocation(NPC, 845.66, -24.37, -151.63, 2, 0)
  34. MovementLoopAddLocation(NPC, 842.5, -25.52, -158.11, 2, 0)
  35. MovementLoopAddLocation(NPC, 842.17, -24.68, -166.14, 2, 0)
  36. MovementLoopAddLocation(NPC, 845.98, -24.17, -169.24, 2, 0)
  37. MovementLoopAddLocation(NPC, 852.97, -23.46, -172.07, 2, 0)
  38. MovementLoopAddLocation(NPC, 858.16, -22.55, -174.96, 2, 35)
  39. MovementLoopAddLocation(NPC, 855.75, -23.15, -172.11, 2, 0)
  40. MovementLoopAddLocation(NPC, 851.58, -23.96, -167.19, 2, 0)
  41. MovementLoopAddLocation(NPC, 841.74, -25.14, -162.76, 2, 0)
  42. MovementLoopAddLocation(NPC, 836.79, -25.51, -157.13, 2, 0)
  43. MovementLoopAddLocation(NPC, 836.8, -25.01, -152.23, 2, 0)
  44. MovementLoopAddLocation(NPC, 849.71, -24.22, -152.69, 2, 0)
  45. MovementLoopAddLocation(NPC, 862.63, -22.99, -153.02, 2, 0)
  46. MovementLoopAddLocation(NPC, 878.92, -24.92, -151.48, 2, 0)
  47. MovementLoopAddLocation(NPC, 885.55, -24.76, -151.71, 2, 0)
  48. end