TillaPerkins.lua 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. --[[
  2. Script Name : SpawnScripts/Nettleville/TillaPerkins.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.21 08:06:10
  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. if GetFactionAmount(Spawn,11)<0 then
  19. FactionCheckingCallout(NPC, Spawn, faction)
  20. end
  21. end
  22. function waypoints(NPC)
  23. MovementLoopAddLocation(NPC, 655.11, -21.47, 323.6, 2, 1)
  24. MovementLoopAddLocation(NPC, 655.11, -21.47, 323.6, 2, 95,"EcologyEmotes")
  25. MovementLoopAddLocation(NPC, 654.69, -22.11, 325.87, 2, 0)
  26. MovementLoopAddLocation(NPC, 659.07, -22.26, 327.73, 2, 0)
  27. MovementLoopAddLocation(NPC, 664.48, -20.44, 326.39, 2, 0)
  28. MovementLoopAddLocation(NPC, 665.04, -20.44, 325.12, 2, 0)
  29. MovementLoopAddLocation(NPC, 675.98, -20.57, 325.38, 2, 0)
  30. MovementLoopAddLocation(NPC, 679.15, -20.39, 323.39, 2, 0)
  31. MovementLoopAddLocation(NPC, 679.38, -20.36, 322.72, 2, 1)
  32. MovementLoopAddLocation(NPC, 679.38, -20.36, 322.72, 2, 55,"EcologyEmotes")
  33. MovementLoopAddLocation(NPC, 678.85, -20.38, 322.24, 2, 0)
  34. MovementLoopAddLocation(NPC, 675.7, -20.54, 327.54, 2, 0)
  35. MovementLoopAddLocation(NPC, 672.63, -20.45, 323.79, 2, 0)
  36. MovementLoopAddLocation(NPC, 666.83, -20.43, 313.27, 2, 0)
  37. MovementLoopAddLocation(NPC, 661.24, -20.42, 303.91, 2, 0)
  38. MovementLoopAddLocation(NPC, 658.92, -20.42, 300.02, 2, 0)
  39. MovementLoopAddLocation(NPC, 656.12, -20.42, 298.03, 2, 0)
  40. MovementLoopAddLocation(NPC, 651.04, -20.42, 300.2, 2, 0)
  41. MovementLoopAddLocation(NPC, 647.03, -20.31, 303.84, 2, 0)
  42. MovementLoopAddLocation(NPC, 639.79, -20.43, 307.76, 2, 0)
  43. MovementLoopAddLocation(NPC, 626.98, -20.43, 312.2, 2, 0)
  44. MovementLoopAddLocation(NPC, 622.8, -20.48, 317.7, 2, 0)
  45. MovementLoopAddLocation(NPC, 615.85, -20.55, 325.56, 2, 0)
  46. MovementLoopAddLocation(NPC, 610.74, -20.48, 334.33, 2, 0)
  47. MovementLoopAddLocation(NPC, 609.31, -20.66, 336.89, 2, 0)
  48. MovementLoopAddLocation(NPC, 605.52, -20.71, 346.48, 2, 0)
  49. MovementLoopAddLocation(NPC, 599.79, -20.67, 345.96, 2, 0)
  50. MovementLoopAddLocation(NPC, 593.14, -20.36, 344.06, 2, 0)
  51. MovementLoopAddLocation(NPC, 591.75, -20.33, 345.51, 2, 0)
  52. MovementLoopAddLocation(NPC, 589.81, -19.85, 347.5, 2, 0)
  53. MovementLoopAddLocation(NPC, 589.1, -19.21, 349.66, 2, 2,"Door")
  54. MovementLoopAddLocation(NPC, 587.78, -19.17, 354.47, 2, 0)
  55. MovementLoopAddLocation(NPC, 586.18, -19.17, 357.43, 2, 0)
  56. MovementLoopAddLocation(NPC, 584.04, -19.17, 359.24, 2, 0)
  57. MovementLoopAddLocation(NPC, 581.29, -19.17, 360.34, 2, 1)
  58. MovementLoopAddLocation(NPC, 581.29, -19.17, 360.34, 2, 55,"EcologyEmotes")
  59. MovementLoopAddLocation(NPC, 583.82, -19.17, 359.31, 2, 0)
  60. MovementLoopAddLocation(NPC, 586.68, -19.17, 356.98, 2, 0)
  61. MovementLoopAddLocation(NPC, 587.71, -19.17, 354.95, 2, 2,"Door")
  62. MovementLoopAddLocation(NPC, 588.93, -19.22, 350.75, 2, 0)
  63. MovementLoopAddLocation(NPC, 590.03, -20.25, 346.38, 2, 0)
  64. MovementLoopAddLocation(NPC, 595.35, -20.35, 344.47, 2, 0)
  65. MovementLoopAddLocation(NPC, 600.85, -20.67, 344.96, 2, 0)
  66. MovementLoopAddLocation(NPC, 603.22, -20.8, 344.66, 2, 0)
  67. MovementLoopAddLocation(NPC, 607.72, -20.69, 336.08, 2, 0)
  68. MovementLoopAddLocation(NPC, 610.24, -20.52, 331.93, 2, 0)
  69. MovementLoopAddLocation(NPC, 613.94, -20.63, 326.68, 2, 0)
  70. MovementLoopAddLocation(NPC, 618.34, -20.54, 320.85, 2, 0)
  71. MovementLoopAddLocation(NPC, 624.79, -20.44, 312.98, 2, 0)
  72. MovementLoopAddLocation(NPC, 629.4, -20.55, 309.94, 2, 0)
  73. MovementLoopAddLocation(NPC, 638.66, -20.6, 305.33, 2, 0)
  74. MovementLoopAddLocation(NPC, 643.02, -20.49, 302.89, 2, 0)
  75. MovementLoopAddLocation(NPC, 651.39, -20.41, 299.05, 2, 0)
  76. MovementLoopAddLocation(NPC, 654.49, -20.42, 298.21, 2, 0)
  77. MovementLoopAddLocation(NPC, 657.37, -20.42, 300.55, 2, 0)
  78. MovementLoopAddLocation(NPC, 660.55, -20.43, 307.95, 2, 0)
  79. MovementLoopAddLocation(NPC, 662.54, -20.46, 311.7, 2, 0)
  80. MovementLoopAddLocation(NPC, 665.58, -20.44, 318.14, 2, 0)
  81. MovementLoopAddLocation(NPC, 668.59, -20.44, 324.55, 2, 0)
  82. MovementLoopAddLocation(NPC, 664.11, -20.44, 327.83, 2, 0)
  83. MovementLoopAddLocation(NPC, 661.14, -21.44, 329.01, 2, 0)
  84. MovementLoopAddLocation(NPC, 657.62, -22.29, 330.31, 2, 0)
  85. MovementLoopAddLocation(NPC, 651.98, -22.31, 330.13, 2, 0)
  86. -- MovementLoopAddLocation(NPC, 677.38, -20.51, 324.14, 2, 0)
  87. -- MovementLoopAddLocation(NPC, 663.13, -20.41, 328.4, 2, 0)
  88. -- MovementLoopAddLocation(NPC, 658.72, -22.28, 330.15, 2, 0)
  89. MovementLoopAddLocation(NPC, 647.09, -22.27, 326.95, 2, 1)
  90. MovementLoopAddLocation(NPC, 647.09, -22.27, 326.95, 2, 55,"EcologyEmotes")
  91. MovementLoopAddLocation(NPC, 650.76, -22.29, 328.11, 2, 0)
  92. MovementLoopAddLocation(NPC, 654.81, -22.29, 327.45, 2, 0)
  93. MovementLoopAddLocation(NPC, 655.31, -21.47, 323.32, 2, 0)
  94. end
  95. function Door(NPC,Spawn)
  96. local door = GetSpawn(NPC, 2330094)
  97. UseWidget(door)
  98. end