chapman.lua 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. --[[
  2. Script Name : chapman.lua
  3. Script Purpose : Waypoint Path for chapman.lua
  4. Script Author : Devn00b
  5. Script Date : 04/10/2020 12:23:48 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
  9. function spawn(NPC)
  10. waypoints(NPC)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. GenericGuardHail(NPC, Spawn)
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function waypoints(NPC)
  20. MovementLoopAddLocation(NPC, 414.47, -20.94, 159.19, 2, 6)
  21. MovementLoopAddLocation(NPC, 424.69, -20.9, 170.89, 2, 0)
  22. MovementLoopAddLocation(NPC, 431.64, -20.73, 184.92, 2, 0)
  23. MovementLoopAddLocation(NPC, 439.98, -20.46, 215.9, 2, 0)
  24. MovementLoopAddLocation(NPC, 450.62, -21.86, 236.52, 2, 0)
  25. MovementLoopAddLocation(NPC, 447.44, -21.74, 250.47, 2, 0)
  26. MovementLoopAddLocation(NPC, 435.8, -21.81, 272.78, 2, 2)
  27. MovementLoopAddLocation(NPC, 435.8, -21.81, 272.78, 2, 9,"FaceGuard")
  28. MovementLoopAddLocation(NPC, 435.15, -21.7, 273, 2, 0)
  29. MovementLoopAddLocation(NPC, 447.57, -21.78, 251.96, 2, 0)
  30. MovementLoopAddLocation(NPC, 457.71, -21.05, 220.7, 2, 0)
  31. MovementLoopAddLocation(NPC, 466.95, -21.04, 199.03, 2, 0)
  32. MovementLoopAddLocation(NPC, 465.15, -20.74, 187.6, 2, 0)
  33. MovementLoopAddLocation(NPC, 448.32, -20.47, 178.12, 2, 0)
  34. MovementLoopAddLocation(NPC, 413.07, -20.93, 154.6, 2, 0)
  35. end
  36. function FaceGuard(NPC) -- Saluting Knight-Captain Garath script
  37. local Eraanus = GetSpawn(NPC, 2310093)
  38. if Eraanus ~= nil then
  39. FaceTarget(NPC, Eraanus)
  40. AddTimer(NPC, 1000, "CaptainFacesGuard")
  41. end
  42. end
  43. function CaptainFacesGuard(NPC)
  44. local Eraanus = GetSpawn(NPC, 2310093)
  45. if Eraanus ~= nil then
  46. FaceTarget(Eraanus, NPC)
  47. AddTimer(NPC, 500, "CaptainSalutesGuard")
  48. end
  49. end
  50. function CaptainSalutesGuard(NPC)
  51. local Eraanus = GetSpawn(NPC, 2310093)
  52. if Eraanus ~= nil then
  53. PlayAnimation(Eraanus, 12167)
  54. AddTimer(NPC, 1000, "SaluteCaptain")
  55. end
  56. end
  57. function SaluteCaptain(NPC)
  58. local Eraanus = GetSpawn(NPC, 2310093)
  59. if Eraanus ~= nil then
  60. PlayAnimation(NPC, 12167)
  61. -- AddTimer(NPC, 1000, "CaptainFacesGuard")
  62. end
  63. end
  64. --[[
  65. function waypoints(NPC)
  66. MovementLoopAddLocation(NPC, 413.02, -20.94, 157.49, 2, 0)
  67. MovementLoopAddLocation(NPC, 431.34, -20.77, 177.7, 2, 0)
  68. MovementLoopAddLocation(NPC, 452.04, -21.98, 240.54, 2, 0)
  69. MovementLoopAddLocation(NPC, 436.42, -21.74, 269.85, 2, 0)
  70. MovementLoopAddLocation(NPC, 447.66, -21.76, 259.01, 2, 0)
  71. MovementLoopAddLocation(NPC, 457.88, -22.22, 236.4, 2, 0)
  72. MovementLoopAddLocation(NPC, 505.74, -19.56, 242.9, 2, 0)
  73. MovementLoopAddLocation(NPC, 578.81, -17.93, 242.68, 2, 0)
  74. MovementLoopAddLocation(NPC, 663.88, -19.39, 224.79, 2, 0)
  75. MovementLoopAddLocation(NPC, 686.32, -19.52, 217.22, 2, 0)
  76. MovementLoopAddLocation(NPC, 679.24, -19.42, 184.53, 2, 0)
  77. MovementLoopAddLocation(NPC, 601.85, -15.83, 204.98, 2, 0)
  78. MovementLoopAddLocation(NPC, 547, -15.41, 209.65, 2, 0)
  79. MovementLoopAddLocation(NPC, 497.18, -16.39, 203.07, 2, 0)
  80. MovementLoopAddLocation(NPC, 413, -20.94, 157.01, 2, 0)
  81. MovementLoopAddLocation(NPC, 497.18, -16.39, 203.07, 2, 0)
  82. MovementLoopAddLocation(NPC, 547, -15.41, 209.65, 2, 0)
  83. MovementLoopAddLocation(NPC, 601.85, -15.83, 204.98, 2, 0)
  84. MovementLoopAddLocation(NPC, 679.24, -19.42, 184.53, 2, 0)
  85. MovementLoopAddLocation(NPC, 686.32, -19.52, 217.22, 2, 0)
  86. MovementLoopAddLocation(NPC, 663.88, -19.39, 224.79, 2, 0)
  87. MovementLoopAddLocation(NPC, 578.81, -17.93, 242.68, 2, 0)
  88. MovementLoopAddLocation(NPC, 505.74, -19.56, 242.9, 2, 0)
  89. MovementLoopAddLocation(NPC, 457.88, -22.22, 236.4, 2, 0)
  90. MovementLoopAddLocation(NPC, 447.66, -21.76, 259.01, 2, 0)
  91. MovementLoopAddLocation(NPC, 436.42, -21.74, 269.85, 2, 0)
  92. MovementLoopAddLocation(NPC, 452.04, -21.98, 240.54, 2, 0)
  93. MovementLoopAddLocation(NPC, 431.34, -20.77, 177.7, 2, 0)
  94. MovementLoopAddLocation(NPC, 413.02, -20.94, 157.49, 2, 0)
  95. end
  96. ]]--