9
3

stanhyl.lua 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. function spawn(NPC)
  10. waypoints(NPC)
  11. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. if math.random(0, 100) <= 25 then
  18. GenericGuardHail(NPC, Spawn)
  19. CheckFaction(NPC, Spawn, "Qeynos")
  20. else
  21. CheckFaction(NPC, Spawn, "Qeynos")
  22. end
  23. end
  24. function hailed(NPC, Spawn)
  25. FaceTarget(NPC,Spawn)
  26. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_1/ft/service/guard/highelf_guard_service_good_1_hail_gm_ee473c11.mp3", "Good day to you, citizen. All preserve Queen Antonia.", "salute", 2088886924, 3736631596, Spawn)
  27. end
  28. function LeaveRange(NPC, Spawn)
  29. end
  30. function waypoints(NPC)
  31. MovementLoopAddLocation(NPC, 518.13, -10.48, 148.06, 2, 1.5)
  32. MovementLoopAddLocation(NPC, 546.76, -10.58, 151.7, 2, 0)
  33. MovementLoopAddLocation(NPC, 619.74, -12.25, 144.07, 2, 0)
  34. MovementLoopAddLocation(NPC, 621.1, -16.52, 201.22, 2, 0)
  35. MovementLoopAddLocation(NPC, 557.98, -15.36, 210.45, 2, 0)
  36. MovementLoopAddLocation(NPC, 558.15, -17.19, 232.88, 2, 0)
  37. MovementLoopAddLocation(NPC, 552.57, -17.74, 244.2, 2, 0)
  38. MovementLoopAddLocation(NPC, 503.12, -19.64, 242.37, 2, 0)
  39. MovementLoopAddLocation(NPC, 459.61, -22.15, 233.9, 2, 0)
  40. MovementLoopAddLocation(NPC, 457.36, -21.39, 226.69, 2, 0)
  41. MovementLoopAddLocation(NPC, 471.92, -20.75, 189.58, 2, 0)
  42. MovementLoopAddLocation(NPC, 485.11, -14.58, 159.08, 2, 0)
  43. MovementLoopAddLocation(NPC, 494.06, -11.84, 144.74, 2, 0)
  44. MovementLoopAddLocation(NPC, 514.53, -10.6, 147.01, 2, 0)
  45. MovementLoopAddLocation(NPC, 546.4, -10.57, 151.35, 2, 0)
  46. MovementLoopAddLocation(NPC, 546.6, -14.95, 189.7, 2, 0)
  47. MovementLoopAddLocation(NPC, 546.4, -10.57, 151.35, 2, 0)
  48. MovementLoopAddLocation(NPC, 514.53, -10.6, 147.01, 2, 0)
  49. MovementLoopAddLocation(NPC, 494.06, -11.84, 144.74, 2, 0)
  50. MovementLoopAddLocation(NPC, 485.11, -14.58, 159.08, 2, 0)
  51. MovementLoopAddLocation(NPC, 471.92, -20.75, 189.58, 2, 0)
  52. MovementLoopAddLocation(NPC, 457.36, -21.39, 226.69, 2, 0)
  53. MovementLoopAddLocation(NPC, 459.61, -22.15, 233.9, 2, 0)
  54. MovementLoopAddLocation(NPC, 503.12, -19.64, 242.37, 2, 0)
  55. MovementLoopAddLocation(NPC, 552.57, -17.74, 244.2, 2, 0)
  56. MovementLoopAddLocation(NPC, 558.15, -17.19, 232.88, 2, 0)
  57. MovementLoopAddLocation(NPC, 557.98, -15.36, 210.45, 2, 0)
  58. MovementLoopAddLocation(NPC, 621.1, -16.52, 201.22, 2, 0)
  59. MovementLoopAddLocation(NPC, 619.74, -12.25, 144.07, 2, 0)
  60. MovementLoopAddLocation(NPC, 546.76, -10.58, 151.7, 2, 0)
  61. MovementLoopAddLocation(NPC, 518.13, -10.48, 148.06, 2, 0)
  62. end