Evanloono.lua 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. --[[
  2. Script Name : SpawnScripts/Nettleville/Evanloono.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.21 04:06:27
  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 waypoints(NPC)
  21. MovementLoopAddLocation(NPC, 602.23, -26.52, 380.83, 2, 55)
  22. MovementLoopAddLocation(NPC, 601.82, -26.53, 381.32, 2, 0)
  23. MovementLoopAddLocation(NPC, 601.41, -26.49, 378.92, 2, 0)
  24. MovementLoopAddLocation(NPC, 601.51, -26.4, 374.62, 2, 0)
  25. MovementLoopAddLocation(NPC, 602.59, -24.46, 368.14, 2, 0)
  26. MovementLoopAddLocation(NPC, 604.38, -20.73, 358.84, 2, 0)
  27. MovementLoopAddLocation(NPC, 603.09, -20.42, 352.75, 2, 0)
  28. MovementLoopAddLocation(NPC, 600.16, -20.41, 349.25, 2, 0)
  29. MovementLoopAddLocation(NPC, 591.96, -20.25, 347.09, 2, 0)
  30. MovementLoopAddLocation(NPC, 590.97, -19.18, 349.64, 2, 0)
  31. MovementLoopAddLocation(NPC, 590.66, -19.25, 350.63, 2, 2,"Door")
  32. MovementLoopAddLocation(NPC, 589.58, -19.17, 354.4, 2, 0)
  33. MovementLoopAddLocation(NPC, 590.31, -19.17, 358.04, 2, 0)
  34. MovementLoopAddLocation(NPC, 589.88, -19.17, 366.33, 2, 55)
  35. MovementLoopAddLocation(NPC, 591.07, -19.17, 365.35, 2, 0)
  36. MovementLoopAddLocation(NPC, 589.61, -19.17, 359.22, 2, 2,"Door")
  37. MovementLoopAddLocation(NPC, 590.69, -19.18, 349.88, 2, 0)
  38. MovementLoopAddLocation(NPC, 592.05, -20.27, 346.92, 2, 0)
  39. MovementLoopAddLocation(NPC, 601.16, -20.56, 348.79, 2, 0)
  40. MovementLoopAddLocation(NPC, 604.47, -20.8, 343.07, 2, 0)
  41. MovementLoopAddLocation(NPC, 607.35, -20.77, 337.34, 2, 0)
  42. MovementLoopAddLocation(NPC, 610.98, -20.56, 330.61, 2, 0)
  43. MovementLoopAddLocation(NPC, 620.03, -20.52, 319.09, 2, 0)
  44. MovementLoopAddLocation(NPC, 630.47, -20.57, 309.61, 2, 0)
  45. MovementLoopAddLocation(NPC, 644.58, -20.42, 302.85, 2, 0)
  46. MovementLoopAddLocation(NPC, 659.34, -20.42, 296.01, 2, 0)
  47. MovementLoopAddLocation(NPC, 672.07, -20.05, 286.17, 2, 55)
  48. MovementLoopAddLocation(NPC, 671.05, -19.98, 287.93, 2, 0)
  49. MovementLoopAddLocation(NPC, 672.06, -20.02, 295.27, 2, 0)
  50. MovementLoopAddLocation(NPC, 669.52, -20.25, 305.63, 2, 0)
  51. MovementLoopAddLocation(NPC, 670.47, -20.42, 314.56, 2, 0)
  52. MovementLoopAddLocation(NPC, 673.07, -20.43, 321.01, 2, 0)
  53. MovementLoopAddLocation(NPC, 674.87, -20.47, 321.75, 2, 55)
  54. MovementLoopAddLocation(NPC, 675.48, -20.48, 321.37, 2, 0)
  55. MovementLoopAddLocation(NPC, 673.4, -20.44, 321.61, 2, 0)
  56. MovementLoopAddLocation(NPC, 671.04, -20.42, 317.23, 2, 0)
  57. MovementLoopAddLocation(NPC,669.36, -20.25, 308.32, 2, 0)
  58. MovementLoopAddLocation(NPC, 655.84, -20.42, 298.02, 2, 0)
  59. MovementLoopAddLocation(NPC, 651.38, -20.41, 298.61, 2, 0)
  60. MovementLoopAddLocation(NPC, 640.79, -20.5, 304.84, 2, 0)
  61. MovementLoopAddLocation(NPC, 628.21, -20.44, 311.67, 2, 0)
  62. MovementLoopAddLocation(NPC, 623.31, -20.49, 316.24, 2, 0)
  63. MovementLoopAddLocation(NPC, 609.61, -20.59, 334.27, 2, 0)
  64. MovementLoopAddLocation(NPC, 609.21, -20.71, 339.11, 2, 0)
  65. MovementLoopAddLocation(NPC, 607.16, -20.58, 350.9, 2, 0)
  66. MovementLoopAddLocation(NPC, 606.62, -20.76, 357.09, 2, 0)
  67. MovementLoopAddLocation(NPC, 606.99, -22.46, 363.01, 2, 0)
  68. MovementLoopAddLocation(NPC, 608.98, -26.29, 371.52, 2, 0)
  69. MovementLoopAddLocation(NPC, 603.75, -26.5, 378.57, 2, 0)
  70. end
  71. function Door(NPC,Spawn)
  72. local door = GetSpawn(NPC, 2330092)
  73. UseWidget(door)
  74. end