JayvelleNightcry.lua 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/JayvelleNightcry.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.10 03:06:09
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. waypoints(NPC)
  11. SetPlayerProximityFunction(NPC, 6, "InRange", "LeaveRange")
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. GenericRaceCheckHail(NPC, Spawn, faction)
  16. end
  17. function InRange(NPC,Spawn)
  18. GenericRaceCheckCallout(NPC, Spawn, faction)
  19. end
  20. function respawn(NPC)
  21. spawn(NPC)
  22. end
  23. function waypoints(NPC)
  24. MovementLoopAddLocation(NPC, 822.93, -23.36, 109.69, 2, 1)
  25. MovementLoopAddLocation(NPC, 822.93, -23.36, 109.69, 2, math.random(20,35),"EcologyEmotes")
  26. MovementLoopAddLocation(NPC, 816.26, -23.34, 115.98, 2, 0)
  27. MovementLoopAddLocation(NPC, 800.96, -23.36, 117.09, 2, 0)
  28. MovementLoopAddLocation(NPC, 792.84, -23.37, 116.66, 2, 1)
  29. MovementLoopAddLocation(NPC, 792.84, -23.37, 116.66, 2, math.random(20,35),"EcologyEmotes")
  30. MovementLoopAddLocation(NPC, 785.55, -23.34, 107.14, 2, 0)
  31. MovementLoopAddLocation(NPC, 781.15, -23.34, 98.94, 2, 0)
  32. MovementLoopAddLocation(NPC, 779.5, -23.31, 82.95, 2, 1)
  33. MovementLoopAddLocation(NPC, 779.5, -23.31, 82.95, 2, math.random(20,35),"EcologyEmotes")
  34. MovementLoopAddLocation(NPC, 777.81, -23.36, 83.7, 2, 0)
  35. MovementLoopAddLocation(NPC, 780.16, -23.31, 77.42, 2, 0)
  36. MovementLoopAddLocation(NPC, 796.54, -23.24, 80.39, 2, 0)
  37. MovementLoopAddLocation(NPC, 809.02, -23.35, 82.93, 2, 0)
  38. MovementLoopAddLocation(NPC, 819.26, -23.32, 82.85, 2, 0)
  39. MovementLoopAddLocation(NPC, 835.93, -23.48, 53.2, 2, 1)
  40. MovementLoopAddLocation(NPC, 835.93, -23.48, 53.2, 2, math.random(20,35),"EcologyEmotes")
  41. MovementLoopAddLocation(NPC, 837.13, -23.51, 52.59, 2, 0)
  42. MovementLoopAddLocation(NPC, 834.58, -23.35, 52.15, 2, 0)
  43. MovementLoopAddLocation(NPC, 836.53, -23.31, 45.92, 2, 0)
  44. MovementLoopAddLocation(NPC, 845.2, -23.13, 44.74, 2, 0)
  45. MovementLoopAddLocation(NPC, 857.81, -25.38, 43.01, 2, 0)
  46. MovementLoopAddLocation(NPC, 863.32, -25.42, 44.27, 2, 0)
  47. MovementLoopAddLocation(NPC, 882.7, -25.42, 48.18, 2, 0)
  48. MovementLoopAddLocation(NPC, 889.35, -25.44, 47.69, 2, 0)
  49. MovementLoopAddLocation(NPC, 893.33, -25.44, 45.4, 2, 0)
  50. MovementLoopAddLocation(NPC, 899.72, -25.48, 43.48, 2, 0)
  51. MovementLoopAddLocation(NPC, 912.41, -25.35, 48.74, 2, 0)
  52. MovementLoopAddLocation(NPC, 924.45, -25.49, 53.74, 2, 0)
  53. MovementLoopAddLocation(NPC, 945.23, -25.56, 62.88, 2, 1)
  54. MovementLoopAddLocation(NPC, 945.23, -25.56, 62.88, 2, math.random(20,35),"EcologyEmotes")
  55. MovementLoopAddLocation(NPC, 945.4, -25.56, 61.51, 2, 0)
  56. MovementLoopAddLocation(NPC, 924.77, -25.49, 54.33, 2, 0)
  57. MovementLoopAddLocation(NPC, 922.19, -25.49, 56.28, 2, 0)
  58. MovementLoopAddLocation(NPC, 917.71, -25.49, 60.25, 2, 1)
  59. MovementLoopAddLocation(NPC, 917.71, -25.49, 60.25, 2, math.random(20,35),"EcologyEmotes")
  60. MovementLoopAddLocation(NPC, 916.48, -25.49, 60.94, 2, 0)
  61. MovementLoopAddLocation(NPC, 919.93, -25.49, 64.16, 2, 0)
  62. MovementLoopAddLocation(NPC, 904.31, -25.29, 90.67, 2, 1)
  63. MovementLoopAddLocation(NPC, 904.31, -25.29, 90.67, 2, math.random(20,35),"EcologyEmotes")
  64. MovementLoopAddLocation(NPC, 904.12, -25.32, 86.26, 2, 0)
  65. MovementLoopAddLocation(NPC, 919.67, -25.49, 63.05, 2, 0)
  66. MovementLoopAddLocation(NPC, 922.03, -25.49, 58.72, 2, 0)
  67. MovementLoopAddLocation(NPC, 897.05, -25.49, 46.81, 2, 0)
  68. MovementLoopAddLocation(NPC, 893.57, -25.44, 45.27, 2, 0)
  69. MovementLoopAddLocation(NPC, 885.36, -25.43, 48.47, 2, 0)
  70. MovementLoopAddLocation(NPC, 872.09, -25.45, 46.93, 2, 0)
  71. MovementLoopAddLocation(NPC, 862.94, -25.37, 54.57, 2, 1)
  72. MovementLoopAddLocation(NPC, 862.94, -25.37, 54.57, 2, math.random(20,35),"EcologyEmotes")
  73. MovementLoopAddLocation(NPC, 864.34, -25.43, 44.68, 2, 0)
  74. MovementLoopAddLocation(NPC, 857.08, -25.3, 43.21, 2, 0)
  75. MovementLoopAddLocation(NPC, 836.28, -23.31, 46.09, 2, 0)
  76. MovementLoopAddLocation(NPC, 827.6, -23.38, 42.02, 2, 0)
  77. MovementLoopAddLocation(NPC, 818.4, -23.3, 31.3, 2, 1)
  78. MovementLoopAddLocation(NPC, 818.4, -23.3, 31.3, 2, math.random(20,35),"EcologyEmotes")
  79. MovementLoopAddLocation(NPC, 818.7, -23.29, 35.15, 2, 0)
  80. MovementLoopAddLocation(NPC, 815.39, -23.26, 38.6, 2, 0)
  81. MovementLoopAddLocation(NPC, 811.13, -23.2, 38.38, 2, 0)
  82. MovementLoopAddLocation(NPC, 804.87, -23.29, 36.05, 2, 0)
  83. MovementLoopAddLocation(NPC, 792.95, -23.32, 54.54, 2, 0)
  84. MovementLoopAddLocation(NPC, 784.56, -23.24, 67.95, 2, 0)
  85. MovementLoopAddLocation(NPC, 798.01, -23.2, 74.4, 2, 1)
  86. MovementLoopAddLocation(NPC, 798.01, -23.2, 74.4, 2, math.random(20,35),"EcologyEmotes")
  87. MovementLoopAddLocation(NPC, 808.63, -23.32, 83.81, 2, 0)
  88. MovementLoopAddLocation(NPC, 809.5, -23.34, 85.04, 2, 1)
  89. MovementLoopAddLocation(NPC, 809.5, -23.34, 85.04, 2, math.random(20,35),"EcologyEmotes")
  90. MovementLoopAddLocation(NPC, 812.04, -23.34, 90.94, 2, 0)
  91. MovementLoopAddLocation(NPC, 811.31, -23.35, 101.37, 2, 0)
  92. MovementLoopAddLocation(NPC, 809.94, -23.33, 109.28, 2, 0)
  93. MovementLoopAddLocation(NPC, 807.73, -23.32, 117.6, 2, 0)
  94. MovementLoopAddLocation(NPC, 818.83, -23.36, 124.31, 2, 0)
  95. MovementLoopAddLocation(NPC, 819.48, -23.37, 122.99, 2, 1)
  96. MovementLoopAddLocation(NPC, 819.48, -23.37, 122.99, 2, math.random(20,35),"EcologyEmotes")
  97. end