arat.lua 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. --[[
  2. Script Name : WWarat.lua
  3. Script Purpose : Waypoint Path for WWarat.lua
  4. Script Author : Dorbin
  5. Script Date : 02/20/2022 12:59:02 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. local Walter = 2370036
  9. function FaceGuardGarath(NPC) -- Saluting Knight-Captain Garath script
  10. local Walter = GetSpawn(NPC, 2370036)
  11. if Walter ~= nil then
  12. AddTimer(NPC, 2000, "SaluteGuardGarath")
  13. end
  14. end
  15. function SaluteGuardGarath(NPC)
  16. local Walter = GetSpawn(NPC, 2370036)
  17. if Walter ~= nil then
  18. PlayAnimation(NPC, 12167)
  19. AddTimer(NPC, 500, "GarathFacesGuardCinaldar")
  20. end
  21. end
  22. function GarathFacesGuardCinaldar(NPC)
  23. local Walter = GetSpawn(NPC, 2370036)
  24. if Walter ~= nil then
  25. FaceTarget(Walter, NPC)
  26. AddTimer(NPC, 500, "GarathSalutesGuardCinaldar")
  27. end
  28. end
  29. function GarathSalutesGuardCinaldar(NPC)
  30. local Walter = GetSpawn(NPC, 2370036)
  31. if Walter ~= nil then
  32. PlayAnimation(Walter, 12214)
  33. end
  34. end
  35. function squeal (NPC, Spawn)
  36. PlayFlavor(NPC, "", "", "sotb_batsqueak2_sound", 0, 0)
  37. end
  38. function spawn(NPC)
  39. waypoints(NPC)
  40. end
  41. function hailed(NPC, Spawn)
  42. end
  43. function respawn(NPC)
  44. end
  45. function waypoints(NPC)
  46. MovementLoopAddLocation(NPC, 827.71, -20.70, -755.0, 1, 1)
  47. MovementLoopAddLocation(NPC, 827.71, -20.70, -755.0, 1, 1,"FaceGuardGarath")
  48. MovementLoopAddLocation(NPC, 827.71, -20.70, -755.0, 1, 2)
  49. MovementLoopAddLocation(NPC, 834.44, -20.61, -728.71, 7, 0)
  50. MovementLoopAddLocation(NPC, 846.01, -20.61, -711.31, 5, 0)
  51. MovementLoopAddLocation(NPC, 853.58, -20.61, -698.23, 4, 0)
  52. MovementLoopAddLocation(NPC, 852.98, -20.61, -680.24, 4, 0)
  53. MovementLoopAddLocation(NPC, 840.84, -20.44, -672.72, 4, 0)
  54. MovementLoopAddLocation(NPC, 836.23, -20.59, -668.6, 4, math.random(10, 30))
  55. MovementLoopAddLocation(NPC, 839.4, -20.65, -666.91, 1, math.random(5, 10))
  56. MovementLoopAddLocation(NPC, 838, -20.67, -665.68, 1, math.random(5, 10))
  57. MovementLoopAddLocation(NPC, 835.48, -20.58, -667.54, 1, math.random(5, 10))
  58. MovementLoopAddLocation(NPC, 837.93, -20.6, -668.07, 1, math.random(5, 10))
  59. MovementLoopAddLocation(NPC, 838.19, -20.66, -665.91, 1, math.random(5, 10))
  60. MovementLoopAddLocation(NPC, 840.19, -20.68, -667, 1, math.random(5, 10))
  61. MovementLoopAddLocation(NPC, 837.57, -20.77, -664.19, 1, math.random(5, 10))
  62. MovementLoopAddLocation(NPC, 838.5, -20.52, -661.12, 1, math.random(5, 10))
  63. MovementLoopAddLocation(NPC, 838.13, -20.42, -659.69, 1, math.random(5, 10))
  64. MovementLoopAddLocation(NPC, 838.37, -20.67, -665.87, 1, math.random(5, 10))
  65. MovementLoopAddLocation(NPC, 837.31, -20.65, -670.01, 1, math.random(5, 10))
  66. MovementLoopAddLocation(NPC, 843.09, -20.27, -675.52, 1, math.random(5, 10))
  67. MovementLoopAddLocation(NPC, 847.25, -20.48, -679.57, 1, math.random(5, 10))
  68. MovementLoopAddLocation(NPC, 849.7, -20.61, -692.5, 2, math.random(5, 10))
  69. MovementLoopAddLocation(NPC, 846.47, -20.61, -702.36, 4, 0)
  70. MovementLoopAddLocation(NPC, 833.04, -20.61, -721.73, 4, 0)
  71. MovementLoopAddLocation(NPC, 832.48, -20.61, -736.16, 4, 3)
  72. MovementLoopAddLocation(NPC, 831.36, -20.61, -746.06, 2, 6)
  73. MovementLoopAddLocation(NPC, 824.55, -20.68, -757.51, 2, math.random(5, 10))
  74. MovementLoopAddLocation(NPC, 826.3, -20.7, -757.49, 2, math.random(5, 10))
  75. end