varna.lua 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. --[[
  2. Script Name : varna.lua
  3. Script Purpose : Waypoint Path for varna.lua
  4. Script Author : Devn00b
  5. Script Date : 07/31/2020 07:33:58 PM
  6. Script Notes : Dialogue updated 5.1.2022 Dorbin
  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. local Fanthis = GetSpawn(NPC,2070080)
  16. if Fanthis ~=nil then
  17. FaceTarget(Fanthis,Spawn)
  18. PlayFlavor(Fanthis, "", "", "attention", 0, 0, Spawn)
  19. end
  20. GenericEcologyHail(NPC, Spawn, faction)
  21. end
  22. function InRange(NPC,Spawn)
  23. end
  24. function respawn(NPC)
  25. spawn(NPC)
  26. end
  27. function waypoints(NPC)
  28. MovementLoopAddLocation(NPC, 652.61, -12.3, -363.84, 2, 0)
  29. MovementLoopAddLocation(NPC, 662.62, -11.36, -366.19, 2, 0)
  30. MovementLoopAddLocation(NPC, 669.77, -11.62, -368.11, 2, 0)
  31. MovementLoopAddLocation(NPC, 677.77, -12.09, -371.28, 2, 0)
  32. MovementLoopAddLocation(NPC, 687.73, -13.16, -375.44, 2, 0)
  33. MovementLoopAddLocation(NPC, 698.25, -14.21, -381.31, 2, 0)
  34. MovementLoopAddLocation(NPC, 702.28, -14.68, -382.77, 2, 0)
  35. MovementLoopAddLocation(NPC, 702.93, -14.13, -390.06, 2, 0)
  36. MovementLoopAddLocation(NPC, 702.29, -14.04, -400.43, 2, 0)
  37. MovementLoopAddLocation(NPC, 701.55, -14.5, -408.55, 2, 0)
  38. MovementLoopAddLocation(NPC, 698.8, -14.31, -410.2, 2, 0)
  39. MovementLoopAddLocation(NPC, 696.68, -13.96, -409.18, 2, 0)
  40. MovementLoopAddLocation(NPC, 687.68, -12.52, -400.81, 2, 0)
  41. MovementLoopAddLocation(NPC, 679.77, -11.63, -395.53, 2, 0)
  42. MovementLoopAddLocation(NPC, 664.07, -10.72, -397.75, 2, 0)
  43. MovementLoopAddLocation(NPC, 656.01, -10.98, -398.79, 2, 0)
  44. MovementLoopAddLocation(NPC, 650.85, -11.4, -391.46, 2, 0)
  45. MovementLoopAddLocation(NPC, 647.07, -11.87, -381.53, 2, 0)
  46. MovementLoopAddLocation(NPC, 643.83, -12.55, -373.03, 2, 0)
  47. MovementLoopAddLocation(NPC, 592.8, -21, -367.06, 2, 0)
  48. MovementLoopAddLocation(NPC, 579.34, -21.62, -365.14, 2, 0)
  49. MovementLoopAddLocation(NPC, 571.17, -21.58, -364.76, 2, 0)
  50. MovementLoopAddLocation(NPC, 556.77, -19.42, -367.04, 2, 0)
  51. MovementLoopAddLocation(NPC, 548.24, -19.31, -362.96, 2, 0)
  52. MovementLoopAddLocation(NPC, 544.99, -19.87, -354.35, 2, 0)
  53. MovementLoopAddLocation(NPC, 549.43, -20.32, -346.18, 2, 0)
  54. MovementLoopAddLocation(NPC, 554.78, -20.48, -341.17, 2, 0)
  55. MovementLoopAddLocation(NPC, 559.25, -20.5, -344.45, 2, 0)
  56. MovementLoopAddLocation(NPC, 573.92, -22.06, -357.46, 2, 0)
  57. MovementLoopAddLocation(NPC, 576.37, -21.92, -358.99, 2, 0)
  58. MovementLoopAddLocation(NPC, 586.55, -21.74, -361.98, 2, 0)
  59. MovementLoopAddLocation(NPC, 599.09, -20.19, -366, 2, 0)
  60. MovementLoopAddLocation(NPC, 611.97, -18.14, -366.74, 2, 0)
  61. MovementLoopAddLocation(NPC, 646.26, -12.73, -367.6, 2, 0)
  62. MovementLoopAddLocation(NPC, 647.4, -12.85, -364.6, 2, 0)
  63. MovementLoopAddLocation(NPC, 647.6, -13.84, -351.06, 2, 0)
  64. MovementLoopAddLocation(NPC, 646.7, -17.86, -328.97, 2, 0)
  65. MovementLoopAddLocation(NPC, 642.52, -18.52, -322.35, 2, 0)
  66. MovementLoopAddLocation(NPC, 643.21, -17.5, -328.53, 2, 0)
  67. MovementLoopAddLocation(NPC, 646.13, -13.6, -355.21, 2, 0)
  68. MovementLoopAddLocation(NPC, 648.31, -13.03, -361.11, 2, 0)
  69. end
  70. --[[ Old/Wrong pathing via Devnoob. Pre-group patrol
  71. function waypoints(NPC)
  72. MovementLoopAddLocation(NPC, 585.65, -18.22, -411.48, 2, 1)
  73. MovementLoopAddLocation(NPC, 585.65, -18.22, -411.48, 2, 2,"Door")
  74. MovementLoopAddLocation(NPC, 576.58, -18.16, -412.9, 2, 1)
  75. MovementLoopAddLocation(NPC, 576.58, -18.16, -412.9, 2, math.random(11,12),"EcologyEmote")
  76. MovementLoopAddLocation(NPC, 576.58, -18.16, -412.9, 2, 1,"Door")
  77. MovementLoopAddLocation(NPC, 584.56, -18.17, -411.61, 2, math.random(0,8))
  78. MovementLoopAddLocation(NPC, 617.12, -15.75, -407.56, 2, math.random(0,8))
  79. MovementLoopAddLocation(NPC, 650.63, -11.51, -399.8, 2, math.random(0,8))
  80. MovementLoopAddLocation(NPC, 644.41, -12.48, -372.51, 2, math.random(0,8))
  81. MovementLoopAddLocation(NPC, 642.47, -20.05, -313.95, 2, math.random(0,8))
  82. MovementLoopAddLocation(NPC, 644.41, -12.48, -372.51, 2, math.random(0,8))
  83. MovementLoopAddLocation(NPC, 650.63, -11.51, -399.8, 2, math.random(0,8))
  84. MovementLoopAddLocation(NPC, 617.12, -15.75, -407.56, 2, math.random(0,8))
  85. MovementLoopAddLocation(NPC, 584.56, -18.17, -411.61, 2, math.random(0,8))
  86. MovementLoopAddLocation(NPC, 576.58, -18.16, -412.9, 2, math.random(0,8))
  87. end
  88. ]]--