BrianNichols.lua 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/BrianNichols.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.11.27 02:11:04
  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. GenericEcology2Hail(NPC, Spawn, faction)
  16. end
  17. function InRange(NPC,Spawn)
  18. GenericEcology2Callout(NPC, Spawn, faction)
  19. end
  20. function respawn(NPC)
  21. spawn(NPC)
  22. end
  23. function waypoints(NPC)
  24. MovementLoopAddLocation(NPC, -21.91, -7, 36.27, 2, 0)
  25. MovementLoopAddLocation(NPC, -17.66, -7, 40.14, 2, 1)
  26. MovementLoopAddLocation(NPC, -17.66, -7, 40.14, 2, 20,"EcologyEmotes")
  27. MovementLoopAddLocation(NPC, -17.66, -7, 40.14, 2, 0)
  28. MovementLoopAddLocation(NPC, -17.81, -7, 37.76, 2, 0)
  29. MovementLoopAddLocation(NPC, -23.68, -7, 34.95, 2, 0)
  30. MovementLoopAddLocation(NPC, -25.69, -7, 36.16, 2, 1)
  31. MovementLoopAddLocation(NPC, -25.69, -7, 36.16, 2, 20,"EcologyEmotes")
  32. MovementLoopAddLocation(NPC, -24.04, -7, 35.42, 2, 0)
  33. MovementLoopAddLocation(NPC, -18.52, -7, 35.83, 2, 0)
  34. MovementLoopAddLocation(NPC, -8.57, -6.5, 37.23, 2, 0)
  35. MovementLoopAddLocation(NPC, -5.11, -6.5, 39.77, 2, 0)
  36. MovementLoopAddLocation(NPC, 0.21, -6.5, 40.79, 2, 0)
  37. MovementLoopAddLocation(NPC, 3.73, -6.5, 41.46, 2, 0)
  38. MovementLoopAddLocation(NPC, 10.73, -6.5, 44.33, 2, 0)
  39. MovementLoopAddLocation(NPC, 14.77, -6.5, 46.21, 2, 0)
  40. MovementLoopAddLocation(NPC, 21.25, -6.5, 47.51, 2, 0)
  41. MovementLoopAddLocation(NPC, 27.54, -6, 44.17, 2, 0)
  42. MovementLoopAddLocation(NPC, 34.2, -6, 44.02, 2, 0)
  43. MovementLoopAddLocation(NPC, 37.47, -6, 43.92, 2, 0)
  44. MovementLoopAddLocation(NPC, 42.27, -5.75, 44.38, 2, 0)
  45. MovementLoopAddLocation(NPC, 47.59, -5.75, 46.05, 2, 0)
  46. MovementLoopAddLocation(NPC, 50.95, -5, 40.86, 2, 0)
  47. MovementLoopAddLocation(NPC, 49.41, -5, 39.42, 2, 1)
  48. MovementLoopAddLocation(NPC, 49.41, -5, 39.42, 2, 20,"EcologyEmotes")
  49. MovementLoopAddLocation(NPC, 49.41, -5, 39.42, 2, 0)
  50. MovementLoopAddLocation(NPC, 50.1, -5, 38.1, 2, 0)
  51. MovementLoopAddLocation(NPC, 49.53, -5, 35.61, 2, 0)
  52. MovementLoopAddLocation(NPC, 43.83, -5, 35.43, 2, 0)
  53. MovementLoopAddLocation(NPC, 41.2, -5, 36.34, 2, 0)
  54. MovementLoopAddLocation(NPC, 34.98, -6, 43.89, 2, 0)
  55. MovementLoopAddLocation(NPC, 32.52, -6, 45.05, 2, 0)
  56. MovementLoopAddLocation(NPC, 27.86, -6.5, 47.69, 2, 0)
  57. MovementLoopAddLocation(NPC, 20.32, -6.5, 47.54, 2, 0)
  58. MovementLoopAddLocation(NPC, 14.05, -6.5, 46.02, 2, 0)
  59. MovementLoopAddLocation(NPC, 8.42, -6.5, 43.37, 2, 0)
  60. MovementLoopAddLocation(NPC, 1.87, -7, 47.97, 2, 0)
  61. MovementLoopAddLocation(NPC, -12.12, -7, 53.83, 2, 0)
  62. MovementLoopAddLocation(NPC, -17.15, -7, 59.64, 2, 0)
  63. MovementLoopAddLocation(NPC, -26.04, -7, 68.46, 2, 1)
  64. MovementLoopAddLocation(NPC, -26.04, -7, 68.46, 2, 20,"EcologyEmotes")
  65. MovementLoopAddLocation(NPC, -24.89, -7, 68.15, 2, 0)
  66. MovementLoopAddLocation(NPC, -22.57, -7, 64.93, 2, 0)
  67. MovementLoopAddLocation(NPC, -19.27, -7, 58.33, 2, 0)
  68. MovementLoopAddLocation(NPC, -10.07, -7, 52.52, 2, 0)
  69. MovementLoopAddLocation(NPC, -9.6, -7, 42.67, 2, 0)
  70. MovementLoopAddLocation(NPC, -15.71, -7, 37.29, 2, 0)
  71. MovementLoopAddLocation(NPC, -23.2, -7, 32.79, 2, 0)
  72. MovementLoopAddLocation(NPC, -32.98, -5.75, 26.07, 2, 2,"Door1")
  73. MovementLoopAddLocation(NPC, -36.92, -5.77, 24.82, 2, 0,"Door1")
  74. MovementLoopAddLocation(NPC, -41.75, -5.77, 26.16, 2, 0)
  75. MovementLoopAddLocation(NPC, -49.91, -5.77, 21.51, 2, 0)
  76. MovementLoopAddLocation(NPC, -52, -5.77, 16.43, 2, 1)
  77. MovementLoopAddLocation(NPC, -52, -5.77, 16.43, 2, 30,"EcologyEmotes")
  78. MovementLoopAddLocation(NPC, -47.09, -5.77, 16.75, 2, 1)
  79. MovementLoopAddLocation(NPC, -47.09, -5.77, 16.75, 2, 30,"EcologyEmotes")
  80. MovementLoopAddLocation(NPC, -48.28, -5.77, 18.94, 2, 0)
  81. MovementLoopAddLocation(NPC, -47.61, -5.77, 21.34, 2, 0)
  82. MovementLoopAddLocation(NPC, -43.56, -5.77, 24.06, 2, 0)
  83. MovementLoopAddLocation(NPC, -38.6, -5.77, 24.61, 2, 2,"Door1")
  84. MovementLoopAddLocation(NPC, -31.46, -5.75, 24.87, 2, 0,"Door1")
  85. MovementLoopAddLocation(NPC, -29.64, -5.75, 27.05, 2, 0)
  86. MovementLoopAddLocation(NPC, -24.18, -7, 34.87, 2, 0)
  87. end
  88. function Door1(NPC,Spawn)
  89. local door = GetSpawn(NPC, 1370080)
  90. UseWidget(door)
  91. end