9
3

Razclaw.lua 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/Razclaw.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.13 01:06:05
  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. GenericEcologyHail(NPC, Spawn, faction)
  16. end
  17. function InRange(NPC,Spawn)
  18. GenericEcologyCallout(NPC, Spawn, faction)
  19. end
  20. function Door1(NPC,Spawn)
  21. local door = GetSpawn(NPC, 2210352)
  22. UseWidget(door)
  23. end
  24. function Drink(NPC)
  25. PlayAnimation(NPC,11422)
  26. AddTimer(NPC,8000, "Drink2")
  27. end
  28. function Drink2(NPC)
  29. choice = math.random(1,3)
  30. if choice == 1 then
  31. PlayAnimation(NPC,891)
  32. elseif choice == 2 then
  33. PlayAnimation(NPC,11422)
  34. else
  35. PlayAnimation(NPC,11668)
  36. end
  37. AddTimer(NPC,6000, "Drink3")
  38. end
  39. function Drink3(NPC)
  40. PlayAnimation(NPC,11422)
  41. end
  42. function waypoints(NPC)
  43. MovementLoopAddLocation(NPC, 653.42, -19.72, -143.91, 2, 22)
  44. MovementLoopAddLocation(NPC, 668.07, -20.64, -126.81, 2, 0)
  45. MovementLoopAddLocation(NPC, 678.67, -21, -114.87, 2, 0)
  46. MovementLoopAddLocation(NPC, 690.43, -21.17, -90.61, 2, 15)
  47. MovementLoopAddLocation(NPC, 690.45, -21.11, -88.79, 2, 0)
  48. MovementLoopAddLocation(NPC, 697.98, -21.12, -84.35, 2, 0)
  49. MovementLoopAddLocation(NPC, 708.85, -21.02, -75.78, 2, 0)
  50. MovementLoopAddLocation(NPC, 722.17, -21.26, -62.78, 2, 0)
  51. MovementLoopAddLocation(NPC, 783.35, -21.27, -62.33, 2, 0)
  52. MovementLoopAddLocation(NPC, 814.75, -21.04, -63.97, 2, 0)
  53. MovementLoopAddLocation(NPC, 823.66, -23.08, -66.23, 2, 0)
  54. MovementLoopAddLocation(NPC, 839.38, -25.3, -67.88, 2, 0)
  55. MovementLoopAddLocation(NPC, 874.07, -25.38, -66.55, 2, 0)
  56. MovementLoopAddLocation(NPC, 889, -25.43, -62.76, 2, 0)
  57. MovementLoopAddLocation(NPC, 894.16, -25.39, -57.92, 2, 0)
  58. MovementLoopAddLocation(NPC, 898.43, -23.76, -43.71, 2, 0)
  59. MovementLoopAddLocation(NPC, 903.49, -25.29, -29.13, 2, 0)
  60. MovementLoopAddLocation(NPC, 906.58, -25.37, -20.26, 2, 0)
  61. MovementLoopAddLocation(NPC, 909.18, -25.4, -5.59, 2, 0)
  62. MovementLoopAddLocation(NPC, 908.66, -25.44, 5.6, 2, 0)
  63. MovementLoopAddLocation(NPC, 908.24, -25.51, 14.67, 2, 0)
  64. MovementLoopAddLocation(NPC, 914.84, -25.48, 18.01, 2, 0)
  65. MovementLoopAddLocation(NPC, 921.38, -25.47, 19.13, 2, 0)
  66. MovementLoopAddLocation(NPC, 923.42, -25.52, 27.12, 2, 22)
  67. MovementLoopAddLocation(NPC, 923.63, -25.53, 27.91, 2, 0)
  68. MovementLoopAddLocation(NPC, 924.46, -25.51, 24.66, 2, 0)
  69. MovementLoopAddLocation(NPC, 920.71, -25.49, 22.72, 2, 0)
  70. MovementLoopAddLocation(NPC, 915.35, -25.51, 20.85, 2, 0)
  71. MovementLoopAddLocation(NPC, 906, -25.45, 18.23, 2, 0)
  72. MovementLoopAddLocation(NPC, 901.3, -25.41, 30.5, 2, 0)
  73. MovementLoopAddLocation(NPC, 895.61, -25.39, 41.64, 2, 0)
  74. MovementLoopAddLocation(NPC, 888.73, -25.41, 47.35, 2, 0)
  75. MovementLoopAddLocation(NPC, 883.89, -25.37, 47.33, 2, 0)
  76. MovementLoopAddLocation(NPC, 871.76, -25.39, 45.5, 2, 0)
  77. MovementLoopAddLocation(NPC, 859.94, -25.38, 43.15, 2, 0)
  78. MovementLoopAddLocation(NPC, 857.78, -25.37, 42.71, 2, 0)
  79. MovementLoopAddLocation(NPC, 836.03, -23.31, 45.68, 2, 0)
  80. MovementLoopAddLocation(NPC, 834.82, -23.32, 48.5, 2, 0)
  81. MovementLoopAddLocation(NPC, 832.65, -23.33, 56.64, 2, 0)
  82. MovementLoopAddLocation(NPC, 827.16, -23.31, 65.42, 2, 0)
  83. MovementLoopAddLocation(NPC, 822.98, -23.31, 65.25, 2, 0)
  84. MovementLoopAddLocation(NPC, 820.16, -23.34, 63.47, 2, 2,"Door1")
  85. MovementLoopAddLocation(NPC, 815.24, -23.27, 60.92, 2, 0)
  86. MovementLoopAddLocation(NPC, 812.08, -23.27, 62.12, 2, 0)
  87. MovementLoopAddLocation(NPC, 806.01, -23.77, 63.76, 2, 0)
  88. MovementLoopAddLocation(NPC, 804.1, -23.77, 62.88, 2, 1)
  89. MovementLoopAddLocation(NPC, 804.1, -23.77, 62.88, 2, 30,"Drink")
  90. MovementLoopAddLocation(NPC, 804.13, -23.77, 61.93, 2, 0)
  91. MovementLoopAddLocation(NPC, 805.53, -23.77, 63.39, 2, 0)
  92. MovementLoopAddLocation(NPC, 810.14, -23.27, 62.7, 2, 0)
  93. MovementLoopAddLocation(NPC, 815.68, -23.27, 61.58, 2, 2,"Door1")
  94. MovementLoopAddLocation(NPC, 820.68, -23.33, 63.38, 2, 0)
  95. MovementLoopAddLocation(NPC, 825.92, -23.34, 52.34, 2, 0)
  96. MovementLoopAddLocation(NPC, 829.15, -23.34, 45.74, 2, 0)
  97. MovementLoopAddLocation(NPC, 834.77, -23.31, 41.78, 2, 0)
  98. MovementLoopAddLocation(NPC, 857.54, -25.4, 38.37, 2, 0)
  99. MovementLoopAddLocation(NPC, 885.8, -25.38, 42.01, 2, 0)
  100. MovementLoopAddLocation(NPC, 891.46, -25.42, 36.8, 2, 0)
  101. MovementLoopAddLocation(NPC, 898.92, -25.41, 18.74, 2, 0)
  102. MovementLoopAddLocation(NPC, 901.89, -25.42, -5.7, 2, 0)
  103. MovementLoopAddLocation(NPC, 897.89, -25.42, -23.64, 2, 0)
  104. MovementLoopAddLocation(NPC, 893.04, -23.44, -39.22, 2, 0)
  105. MovementLoopAddLocation(NPC, 887.8, -25.4, -52.03, 2, 0)
  106. MovementLoopAddLocation(NPC, 878.61, -25.41, -58.48, 2, 0)
  107. MovementLoopAddLocation(NPC, 857.98, -25.39, -60.68, 2, 0)
  108. MovementLoopAddLocation(NPC, 831.1, -24.73, -60.82, 2, 0)
  109. MovementLoopAddLocation(NPC, 801.96, -20.68, -59.86, 2, 0)
  110. MovementLoopAddLocation(NPC, 793.14, -21.08, -56.65, 2, 0)
  111. MovementLoopAddLocation(NPC, 786.18, -21.27, -53.25, 2, 0)
  112. MovementLoopAddLocation(NPC, 739.67, -21.39, -49.45, 2, 0)
  113. MovementLoopAddLocation(NPC, 727.89, -21.39, -43.6, 2, 0)
  114. MovementLoopAddLocation(NPC, 729.53, -21.39, -42.08, 2, 22)
  115. MovementLoopAddLocation(NPC, 731.53, -21.39, -40.22, 2, 0)
  116. MovementLoopAddLocation(NPC, 729.51, -21.39, -37.75, 2, 0)
  117. MovementLoopAddLocation(NPC, 732.46, -20.89, -11.61, 2, 22)
  118. MovementLoopAddLocation(NPC, 733.24, -20.84, -9.93, 2, 0)
  119. MovementLoopAddLocation(NPC, 732.61, -20.79, -8.75, 2, 0)
  120. MovementLoopAddLocation(NPC, 729.41, -20.71, -8.9, 2, 0)
  121. MovementLoopAddLocation(NPC, 713.11, -20.64, -12.29, 2, 0)
  122. MovementLoopAddLocation(NPC, 713.52, -21.06, -34.61, 2, 0)
  123. MovementLoopAddLocation(NPC, 717.9, -21.39, -56.98, 2, 0)
  124. MovementLoopAddLocation(NPC, 698.83, -21.11, -82.88, 2, 0)
  125. MovementLoopAddLocation(NPC, 670.77, -20.5, -122.85, 2, 0)
  126. MovementLoopAddLocation(NPC, 663.08, -20.24, -130.57, 2, 0)
  127. end