LaurelVivan.lua 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. --[[
  2. Script Name : SpawnScripts/Starcrest/LaurelVivan.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.29 02:06:45
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. waypoints(NPC)
  11. SetPlayerProximityFunction(NPC, 5, "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 Door(NPC,Spawn)
  21. local door = GetSpawn(NPC, 2340075)
  22. UseWidget(door)
  23. end
  24. function waypoints(NPC)
  25. MovementLoopAddLocation(NPC, 781.62, -25.1, 334.26, 2, 1)
  26. MovementLoopAddLocation(NPC, 781.62, -25.1, 334.26, 2, 45,"EcologyEmotes")
  27. MovementLoopAddLocation(NPC, 782.13, -25.1, 334.71, 2, 0)
  28. MovementLoopAddLocation(NPC, 783.6, -25.17, 332.58, 2, 0)
  29. MovementLoopAddLocation(NPC, 792.65, -25.24, 327.76, 2, 0)
  30. MovementLoopAddLocation(NPC, 794.47, -25.39, 327.75, 2, 1)
  31. MovementLoopAddLocation(NPC, 794.47, -25.39, 327.75, 2, 35,"EcologyEmotes")
  32. MovementLoopAddLocation(NPC, 795.81, -25.52, 328.18, 2, 0)
  33. MovementLoopAddLocation(NPC, 791.72, -25.22, 328.27, 2, 0)
  34. MovementLoopAddLocation(NPC, 786.15, -25.24, 331.21, 2, 0)
  35. MovementLoopAddLocation(NPC, 777.35, -25.04, 333.11, 2, 0)
  36. MovementLoopAddLocation(NPC, 765.24, -25.23, 341.3, 2, 0)
  37. MovementLoopAddLocation(NPC, 750.03, -24.74, 339.1, 2, 0)
  38. MovementLoopAddLocation(NPC, 748.16, -24.74, 335.44, 2, 0)
  39. MovementLoopAddLocation(NPC, 747.39, -24.76, 332.39, 2, 2,"Door")
  40. MovementLoopAddLocation(NPC, 748.88, -24.96, 326.72, 2, 0)
  41. MovementLoopAddLocation(NPC, 750.47, -24.96, 322.38, 2, 0)
  42. MovementLoopAddLocation(NPC, 750.23, -24.96, 321.75, 2, 1)
  43. MovementLoopAddLocation(NPC, 750.23, -24.96, 321.75, 2, 45,"EcologyEmotes")
  44. MovementLoopAddLocation(NPC, 749.62, -24.96, 320.8, 2, 0)
  45. MovementLoopAddLocation(NPC, 750.21, -24.96, 322.96, 2, 0)
  46. MovementLoopAddLocation(NPC, 749.04, -24.96, 327.62, 2, 2,"Door")
  47. MovementLoopAddLocation(NPC, 747.13, -24.77, 331.44, 2, 0)
  48. MovementLoopAddLocation(NPC, 744.58, -24.73, 333.3, 2, 0)
  49. MovementLoopAddLocation(NPC, 736.37, -24.54, 332.96, 2, 0)
  50. MovementLoopAddLocation(NPC, 727.16, -20.42, 324.69, 2, 0)
  51. MovementLoopAddLocation(NPC, 726, -20.42, 323.31, 2, 0)
  52. MovementLoopAddLocation(NPC, 725.81, -20.49, 316.64, 2, 0)
  53. MovementLoopAddLocation(NPC, 732.79, -20.43, 306.64, 2, 0)
  54. MovementLoopAddLocation(NPC, 731.76, -20.43, 302.49, 2, 0)
  55. MovementLoopAddLocation(NPC, 723.72, -20.36, 291.19, 2, 0)
  56. MovementLoopAddLocation(NPC, 715.25, -20.12, 284.99, 2, 1)
  57. MovementLoopAddLocation(NPC, 715.25, -20.12, 284.99, 2, 35,"EcologyEmotes")
  58. MovementLoopAddLocation(NPC, 714.08, -20.05, 284.23, 2, 0)
  59. MovementLoopAddLocation(NPC, 718.63, -20.24, 287.22, 2, 0)
  60. MovementLoopAddLocation(NPC, 726.6, -20.45, 294.54, 2, 0)
  61. MovementLoopAddLocation(NPC, 731.11, -20.43, 301.36, 2, 0)
  62. MovementLoopAddLocation(NPC, 732.95, -20.43, 304.61, 2, 0)
  63. MovementLoopAddLocation(NPC, 732.54, -20.55, 314.8, 2, 0)
  64. MovementLoopAddLocation(NPC, 731.36, -20.53, 318.92, 2, 0)
  65. MovementLoopAddLocation(NPC, 729.79, -20.53, 325.19, 2, 0)
  66. MovementLoopAddLocation(NPC, 734.93, -23.42, 329.61, 2, 0)
  67. MovementLoopAddLocation(NPC, 737.65, -24.6, 332.15, 2, 0)
  68. MovementLoopAddLocation(NPC, 750.46, -24.74, 340.39, 2, 0)
  69. MovementLoopAddLocation(NPC, 760.4, -25.01, 339.69, 2, 0)
  70. MovementLoopAddLocation(NPC, 774.5, -25.03, 334.47, 2, 0)
  71. MovementLoopAddLocation(NPC, 778.75, -25.07, 332.81, 2, 0)
  72. end