HannaFurycleaver.lua 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. --[[
  2. Script Name : SpawnScripts/Graystone/HannaFurycleaver.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.08 12:07:10
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. waypoints(NPC)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. GenericEcologyHail(NPC, Spawn, faction)
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function waypoints(NPC)
  20. MovementLoopAddLocation(NPC, 929.53, -22.4, -109.12, 2, 1)
  21. MovementLoopAddLocation(NPC, 929.53, -22.4, -109.12, 2, 35)
  22. MovementLoopAddLocation(NPC, 926.49, -22.4, -110.18, 2, 0)
  23. MovementLoopAddLocation(NPC, 920.04, -22.4, -112.43, 2, 0)
  24. MovementLoopAddLocation(NPC, 916.16, -22.4, -112.38, 2, 0)
  25. MovementLoopAddLocation(NPC, 908.41, -22.4, -110.15, 2, 0)
  26. MovementLoopAddLocation(NPC, 905.97, -22.24, -111.21, 2, 1)
  27. MovementLoopAddLocation(NPC, 905.97, -22.24, -111.21, 2, 18)
  28. MovementLoopAddLocation(NPC, 904.49, -22.3, -111.73, 2, 0)
  29. MovementLoopAddLocation(NPC, 902.68, -22.07, -115.22, 2, 0)
  30. MovementLoopAddLocation(NPC, 904.43, -19.81, -120.23, 2, 0)
  31. MovementLoopAddLocation(NPC, 907.51, -20.04, -123.87, 2, 2,"Door1")
  32. MovementLoopAddLocation(NPC, 911.2, -20.06, -126.37, 2, 0)
  33. MovementLoopAddLocation(NPC, 914.87, -20.06, -129.5, 2, 0)
  34. MovementLoopAddLocation(NPC, 917.13, -20.06, -128.98, 2, 0)
  35. MovementLoopAddLocation(NPC, 920.07, -20.06, -127.78, 2, 1)
  36. MovementLoopAddLocation(NPC, 920.07, -20.06, -127.78, 2, 55)
  37. MovementLoopAddLocation(NPC, 918.75, -20.06, -128.35, 2, 0)
  38. MovementLoopAddLocation(NPC, 916.71, -20.06, -129.23, 2, 0)
  39. MovementLoopAddLocation(NPC, 910.97, -20.06, -125.98, 2, 2,"Door1")
  40. MovementLoopAddLocation(NPC, 906.93, -20.04, -122.13, 2, 0)
  41. MovementLoopAddLocation(NPC, 902.45, -22.31, -113.72, 2, 0)
  42. MovementLoopAddLocation(NPC, 902.62, -22.4, -105.03, 2, 0)
  43. MovementLoopAddLocation(NPC, 900.51, -22.4, -95.84, 2, 15)
  44. MovementLoopAddLocation(NPC, 893.97, -22.61, -91.47, 2, 1)
  45. MovementLoopAddLocation(NPC, 893.97, -22.61, -91.47, 2, 25)
  46. MovementLoopAddLocation(NPC, 893, -22.61, -90.87, 2, 0)
  47. MovementLoopAddLocation(NPC, 896.97, -22.61, -93.89, 2, 0)
  48. MovementLoopAddLocation(NPC, 900.64, -22.4, -96.01, 2, 0)
  49. MovementLoopAddLocation(NPC, 901.95, -22.4, -100.07, 2, 0)
  50. MovementLoopAddLocation(NPC, 899.22, -22.37, -107.51, 2, 0)
  51. MovementLoopAddLocation(NPC, 892.7, -22.3, -109.55, 2, 0)
  52. MovementLoopAddLocation(NPC, 891.14, -22.32, -115.98, 2, 0)
  53. MovementLoopAddLocation(NPC, 892.66, -21.47, -119.74, 2, 0)
  54. MovementLoopAddLocation(NPC, 888.71, -20.01, -120.59, 2, 2,"Door2")
  55. MovementLoopAddLocation(NPC, 884.74, -20.06, -121.5, 2, 0)
  56. MovementLoopAddLocation(NPC, 883.01, -20.06, -119.41, 2, 0)
  57. MovementLoopAddLocation(NPC, 882.19, -20.06, -116.02, 2, 0)
  58. MovementLoopAddLocation(NPC, 882.59, -20.06, -116.21, 2, 1,"FaceKarg")
  59. MovementLoopAddLocation(NPC, 882.59, -20.06, -116.21, 2, 30,"Drink")
  60. MovementLoopAddLocation(NPC, 882.59, -20.06, -116.21, 2, 30,"Drink")
  61. MovementLoopAddLocation(NPC, 882.59, -20.06, -116.21, 2, 30,"Drink")
  62. MovementLoopAddLocation(NPC, 882.94, -20.06, -116.76, 2, 0)
  63. MovementLoopAddLocation(NPC, 882.35, -20.06, -118.47, 2, 0)
  64. MovementLoopAddLocation(NPC, 885.7, -20.06, -123.24, 2, 2,"Door3")
  65. MovementLoopAddLocation(NPC, 890.63, -20.53, -121.49, 2, 0)
  66. MovementLoopAddLocation(NPC, 892.71, -21.47, -120.5, 2, 0)
  67. MovementLoopAddLocation(NPC, 893.37, -21.44, -118.63, 2, 0)
  68. MovementLoopAddLocation(NPC, 892.59, -22.32, -115.97, 2, 0)
  69. MovementLoopAddLocation(NPC, 894.36, -22.32, -115.52, 2, 0)
  70. MovementLoopAddLocation(NPC, 896.49, -22.32, -117.59, 2, 0)
  71. MovementLoopAddLocation(NPC, 900.22, -22.31, -116.05, 2, 0)
  72. MovementLoopAddLocation(NPC, 906.75, -22.4, -110.38, 2, 0)
  73. MovementLoopAddLocation(NPC, 917.49, -22.4, -113.41, 2, 0)
  74. MovementLoopAddLocation(NPC, 925.32, -22.4, -113.69, 2, 0)
  75. end
  76. function FaceKarg(NPC)
  77. SpawnSet(NPC, "heading", "310")
  78. end
  79. function Door1(NPC,Spawn)
  80. local door = GetSpawn(NPC, 2350070)
  81. UseWidget(door)
  82. end
  83. function Door2(NPC,Spawn)
  84. local door = GetSpawn(NPC, 2350073)
  85. UseWidget(door)
  86. end
  87. function Door3(NPC,Spawn)
  88. local door = GetSpawn(NPC, 2350072)
  89. UseWidget(door)
  90. end
  91. function Drink(NPC)
  92. PlayFlavor(NPC,"","","drinking_idle",0,0)
  93. AddTimer(NPC,8000, "Drink2")
  94. end
  95. function Drink2(NPC)
  96. choice = math.random(1,4)
  97. if choice == 1 then
  98. PlayFlavor(NPC,"","","yawn",0,0)
  99. elseif choice == 2 then
  100. PlayFlavor(NPC,"","","drinking_idle",0,0)
  101. elseif choice == 3 then
  102. PlayFlavor(NPC,"","","hungry",0,0)
  103. else
  104. PlayFlavor(NPC,"","","happy",0,0)
  105. end
  106. AddTimer(NPC,6000, "Drink3")
  107. end
  108. function Drink3(NPC)
  109. PlayFlavor(NPC,"","","drinking_idle",0,0)
  110. end