JandahThornbrush.lua 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/JandahThornbrush.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.11 12:06:11
  5. Script Purpose :
  6. :
  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. GenericEcologyHail(NPC, Spawn, faction)
  16. end
  17. function InRange(NPC,Spawn)
  18. GenericEcologyCallout(NPC, Spawn, faction)
  19. end
  20. function Drink(NPC)
  21. PlayFlavor(NPC,"","","drinking_idle",0,0)
  22. end
  23. function waypoints(NPC)
  24. MovementLoopAddLocation(NPC, 688.12, -19.52, -126.68, 2, 0)
  25. MovementLoopAddLocation(NPC, 696.43, -20.87, -114.17, 2, 35)
  26. MovementLoopAddLocation(NPC, 714.76, -20.61, -91.3, 2, 0)
  27. MovementLoopAddLocation(NPC, 718.77, -20.79, -77.66, 2, 0)
  28. MovementLoopAddLocation(NPC, 724.17, -20.83, -74.05, 2, 0)
  29. MovementLoopAddLocation(NPC, 746.3, -21.23, -62.75, 2, 0)
  30. MovementLoopAddLocation(NPC, 755.28, -21.38, -62.2, 2, 0)
  31. MovementLoopAddLocation(NPC, 768.59, -20.96, -40.42, 2, 0)
  32. MovementLoopAddLocation(NPC, 768.64, -20.89, -39.35, 2, 0)
  33. MovementLoopAddLocation(NPC, 768.35, -20.83, -37.91, 2, 1)
  34. MovementLoopAddLocation(NPC, 768.35, -20.83, -37.91, 2, 12,"Drink")
  35. MovementLoopAddLocation(NPC, 768.35, -20.83, -37.91, 2, 12,"Drink")
  36. MovementLoopAddLocation(NPC, 768.35, -20.83, -37.91, 2, 12,"Drink")
  37. MovementLoopAddLocation(NPC, 791.73, -21.01, -50.09, 2, 0)
  38. MovementLoopAddLocation(NPC, 795.3, -21.01, -53.92, 2, 0)
  39. MovementLoopAddLocation(NPC, 803.73, -20.66, -57.96, 2, 0)
  40. MovementLoopAddLocation(NPC, 816.04, -21.4, -59.06, 2, 0)
  41. MovementLoopAddLocation(NPC, 867.63, -25.38, -60.87, 2, 0)
  42. MovementLoopAddLocation(NPC, 887.81, -25.38, -53.59, 2, 0)
  43. MovementLoopAddLocation(NPC, 893.06, -23.86, -43, 2, 0)
  44. MovementLoopAddLocation(NPC, 901.1, -25.38, -18.89, 2, 0)
  45. MovementLoopAddLocation(NPC, 903.28, -25.38, -4.05, 2, 0)
  46. MovementLoopAddLocation(NPC, 902.3, -25.37, 12.72, 2, 0)
  47. MovementLoopAddLocation(NPC, 899.14, -25.37, 24.45, 2, 0)
  48. MovementLoopAddLocation(NPC, 910.04, -25.31, 44.45, 2, 0)
  49. MovementLoopAddLocation(NPC, 918.03, -25.44, 49.59, 2, 0)
  50. MovementLoopAddLocation(NPC, 919.84, -25.47, 70, 2, 0)
  51. MovementLoopAddLocation(NPC, 915.43, -25.34, 90.31, 2, 0)
  52. MovementLoopAddLocation(NPC, 917.79, -25.34, 91.89, 2, 0)
  53. MovementLoopAddLocation(NPC, 929.64, -25.27, 97.02, 2, 0)
  54. MovementLoopAddLocation(NPC, 935.38, -25.27, 106.23, 2, 0)
  55. MovementLoopAddLocation(NPC, 945.03, -25.27, 109.8, 2, 0)
  56. MovementLoopAddLocation(NPC, 950.92, -25.27, 107.66, 2, 35)
  57. MovementLoopAddLocation(NPC, 954.81, -25.45, 97.1, 2, 0)
  58. MovementLoopAddLocation(NPC, 942.12, -25.43, 90.92, 2, 0)
  59. MovementLoopAddLocation(NPC, 930.2, -25.27, 98.48, 2, 0)
  60. MovementLoopAddLocation(NPC, 915.48, -25.33, 92.24, 2, 0)
  61. MovementLoopAddLocation(NPC, 919.68, -25.49, 60.42, 2, 0)
  62. MovementLoopAddLocation(NPC, 913.29, -25.38, 54.35, 2, 0)
  63. MovementLoopAddLocation(NPC, 892.8, -25.43, 45.68, 2, 0)
  64. MovementLoopAddLocation(NPC, 861.39, -25.37, 41.39, 2, 0)
  65. MovementLoopAddLocation(NPC, 836.33, -23.31, 44.65, 2, 0)
  66. MovementLoopAddLocation(NPC, 821.06, -23.33, 78.34, 2, 0)
  67. MovementLoopAddLocation(NPC, 817.11, -23.31, 105.58, 2, 0)
  68. MovementLoopAddLocation(NPC, 810.12, -23.31, 119.96, 2, 0)
  69. MovementLoopAddLocation(NPC, 792.17, -23.28, 114.63, 2, 0)
  70. MovementLoopAddLocation(NPC, 792.74, -23.25, 114.11, 2, 35)
  71. MovementLoopAddLocation(NPC, 792.17, -23.28, 114.63, 2, 0)
  72. MovementLoopAddLocation(NPC, 810.12, -23.31, 119.96, 2, 0)
  73. MovementLoopAddLocation(NPC, 817.11, -23.31, 105.58, 2, 0)
  74. MovementLoopAddLocation(NPC, 821.06, -23.33, 78.34, 2, 0)
  75. MovementLoopAddLocation(NPC, 836.33, -23.31, 44.65, 2, 0)
  76. MovementLoopAddLocation(NPC, 861.39, -25.37, 41.39, 2, 0)
  77. MovementLoopAddLocation(NPC, 892.8, -25.43, 45.68, 2, 0)
  78. MovementLoopAddLocation(NPC, 913.29, -25.38, 54.35, 2, 0)
  79. MovementLoopAddLocation(NPC, 919.68, -25.49, 60.42, 2, 0)
  80. MovementLoopAddLocation(NPC, 915.48, -25.33, 92.24, 2, 0)
  81. MovementLoopAddLocation(NPC, 930.2, -25.27, 98.48, 2, 0)
  82. MovementLoopAddLocation(NPC, 942.12, -25.43, 90.92, 2, 0)
  83. MovementLoopAddLocation(NPC, 954.81, -25.45, 97.1, 2, 0)
  84. MovementLoopAddLocation(NPC, 950.92, -25.27, 107.66, 2, 35)
  85. MovementLoopAddLocation(NPC, 945.03, -25.27, 109.8, 2, 0)
  86. MovementLoopAddLocation(NPC, 935.38, -25.27, 106.23, 2, 0)
  87. MovementLoopAddLocation(NPC, 929.64, -25.27, 97.02, 2, 0)
  88. MovementLoopAddLocation(NPC, 917.79, -25.34, 91.89, 2, 0)
  89. MovementLoopAddLocation(NPC, 915.43, -25.34, 90.31, 2, 0)
  90. MovementLoopAddLocation(NPC, 919.84, -25.47, 70, 2, 0)
  91. MovementLoopAddLocation(NPC, 918.03, -25.44, 49.59, 2, 0)
  92. MovementLoopAddLocation(NPC, 910.04, -25.31, 44.45, 2, 0)
  93. MovementLoopAddLocation(NPC, 899.14, -25.37, 24.45, 2, 0)
  94. MovementLoopAddLocation(NPC, 902.3, -25.37, 12.72, 2, 0)
  95. MovementLoopAddLocation(NPC, 903.28, -25.38, -4.05, 2, 0)
  96. MovementLoopAddLocation(NPC, 901.1, -25.38, -18.89, 2, 0)
  97. MovementLoopAddLocation(NPC, 893.06, -23.86, -43, 2, 0)
  98. MovementLoopAddLocation(NPC, 887.81, -25.38, -53.59, 2, 0)
  99. MovementLoopAddLocation(NPC, 867.63, -25.38, -60.87, 2, 0)
  100. MovementLoopAddLocation(NPC, 816.04, -21.4, -59.06, 2, 0)
  101. MovementLoopAddLocation(NPC, 803.73, -20.66, -57.96, 2, 0)
  102. MovementLoopAddLocation(NPC, 795.3, -21.01, -53.92, 2, 0)
  103. MovementLoopAddLocation(NPC, 791.73, -21.01, -50.09, 2, 0)
  104. MovementLoopAddLocation(NPC, 768.35, -20.83, -37.91, 2, 12,"Drink")
  105. MovementLoopAddLocation(NPC, 768.35, -20.83, -37.91, 2, 12,"Drink")
  106. MovementLoopAddLocation(NPC, 768.35, -20.83, -37.91, 2, 12,"Drink")
  107. MovementLoopAddLocation(NPC, 768.64, -20.89, -39.35, 2, 0)
  108. MovementLoopAddLocation(NPC, 768.59, -20.96, -40.42, 2, 0)
  109. MovementLoopAddLocation(NPC, 755.28, -21.38, -62.2, 2, 0)
  110. MovementLoopAddLocation(NPC, 746.3, -21.23, -62.75, 2, 0)
  111. MovementLoopAddLocation(NPC, 724.17, -20.83, -74.05, 2, 0)
  112. MovementLoopAddLocation(NPC, 718.77, -20.79, -77.66, 2, 0)
  113. MovementLoopAddLocation(NPC, 714.76, -20.61, -91.3, 2, 0)
  114. MovementLoopAddLocation(NPC, 696.43, -20.87, -114.17, 2, 35)
  115. MovementLoopAddLocation(NPC, 688.12, -19.52, -126.68, 2, 0)
  116. end