9
3

KaraThornwell.lua 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/KaraThornwell.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.04.15 03:04:25
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. waypoints(NPC)
  11. SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. GenericEcologyHail(NPC, Spawn, faction)
  16. end
  17. function InRange(NPC,Spawn)
  18. GenericEcologyCallout(NPC, Spawn, faction)
  19. end
  20. function waypoints(NPC)
  21. MovementLoopAddLocation(NPC, 944.46, -25.55, 11.22, 2, 1)
  22. MovementLoopAddLocation(NPC, 944.46, -25.55, 11.22, 2, math.random(10,15),"EcologyEmotes")
  23. MovementLoopAddLocation(NPC, 936.46, -25.55, 14.54, 2, 1,"Door1")
  24. MovementLoopAddLocation(NPC, 931.78, -25.39, 14.61, 2, 0)
  25. MovementLoopAddLocation(NPC, 931.83, -25.58, 28.63, 2, 2,"Door1")
  26. MovementLoopAddLocation(NPC, 928.66, -25.51, 38.89, 2, 0)
  27. MovementLoopAddLocation(NPC, 919.1, -25.49, 58.09, 2, 0)
  28. MovementLoopAddLocation(NPC, 917.32, -25.49, 60.61, 2, 0)
  29. MovementLoopAddLocation(NPC, 916.59, -25.49, 60.91, 2, 1)
  30. MovementLoopAddLocation(NPC, 916.59, -25.49, 60.91, 2, math.random(20,35),"EcologyEmotes")
  31. MovementLoopAddLocation(NPC, 916.59, -25.49, 60.91, 2, 1)
  32. MovementLoopAddLocation(NPC, 916.99, -25.49, 58.79, 2, 0)
  33. MovementLoopAddLocation(NPC, 916.01, -25.49, 55.59, 2, 0)
  34. MovementLoopAddLocation(NPC, 905.82, -25.28, 48.66, 2, 0)
  35. MovementLoopAddLocation(NPC, 896.99, -25.5, 46.46, 2, 0)
  36. MovementLoopAddLocation(NPC, 879.32, -25.37, 60.34, 2, 0)
  37. MovementLoopAddLocation(NPC, 879.21, -25.37, 60.78, 2, 1)
  38. MovementLoopAddLocation(NPC, 879.21, -25.37, 60.78, 2, math.random(20,35),"EcologyEmotes")
  39. MovementLoopAddLocation(NPC, 879.21, -25.37, 60.78, 2, 1)
  40. MovementLoopAddLocation(NPC, 858.01, -25.41, 51.28, 2, 0)
  41. MovementLoopAddLocation(NPC, 839.59, -25.39, 87.5, 2, 0)
  42. MovementLoopAddLocation(NPC, 838.52, -25.46, 93.71, 2, 0)
  43. MovementLoopAddLocation(NPC, 842.76, -25.5, 101.83, 2, 0)
  44. MovementLoopAddLocation(NPC, 848.34, -25.47, 104.63, 2, 0)
  45. MovementLoopAddLocation(NPC, 851.55, -25.37, 98.52, 2, 0)
  46. MovementLoopAddLocation(NPC, 839.96, -25.41, 91.68, 2, 1)
  47. MovementLoopAddLocation(NPC, 839.96, -25.41, 91.68, 2, math.random(20,35),"EcologyEmotes")
  48. MovementLoopAddLocation(NPC, 844.38, -25.38, 78.71, 2, 0)
  49. MovementLoopAddLocation(NPC, 859.57, -25.42, 51.17, 2, 0)
  50. MovementLoopAddLocation(NPC, 866.12, -25.48, 33.99, 2, 0)
  51. MovementLoopAddLocation(NPC, 880.02, -25.43, 32.08, 2, 0)
  52. MovementLoopAddLocation(NPC, 884.48, -25.43, 28.59, 2, 0)
  53. MovementLoopAddLocation(NPC, 886.05, -25.43, 26.42, 2, 0)
  54. MovementLoopAddLocation(NPC, 886.05, -25.43, 26.34, 2, 1)
  55. MovementLoopAddLocation(NPC, 886.05, -25.43, 26.34, 2, math.random(20,35),"EcologyEmotes")
  56. MovementLoopAddLocation(NPC, 896.02, -25.42, 27.39, 2, 0)
  57. MovementLoopAddLocation(NPC, 901.05, -25.43, -10.63, 2, 0)
  58. MovementLoopAddLocation(NPC, 897.19, -25.58, -11.67, 2, 1)
  59. MovementLoopAddLocation(NPC, 897.19, -25.58, -11.67, 2, math.random(20,35),"EcologyEmotes")
  60. MovementLoopAddLocation(NPC, 901.02, -25.43, 3.99, 2, 0)
  61. MovementLoopAddLocation(NPC, 914.61, -25.45, 15.8, 2, 0)
  62. MovementLoopAddLocation(NPC, 928.32, -25.47, 20.77, 2, 0)
  63. MovementLoopAddLocation(NPC, 931.98, -25.39, 14.82, 2, 0)
  64. MovementLoopAddLocation(NPC, 937.09, -25.55, 14.27, 2, 1,"Door1")
  65. MovementLoopAddLocation(NPC, 950.05, -25.55, 15.47, 2, 1,"Door1")
  66. MovementLoopAddLocation(NPC, 950.7, -25.55, 15.77, 2, 1)
  67. MovementLoopAddLocation(NPC, 950.7, -25.55, 15.77, 2, math.random(20,35),"EcologyEmotes")
  68. end
  69. function Door1(NPC,Spawn)
  70. local door = GetSpawn(NPC, 2210344)
  71. UseWidget(door)
  72. end