GrolvenChiptooth.lua 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. --[[
  2. Script Name : SpawnScripts/Antonica/GrolvenChiptooth.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.17 04:06:24
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. end
  11. function Garbled(NPC,Spawn)
  12. local choice = MakeRandomInt(1,4)
  13. if choice == 1 then
  14. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_3_garbled_2f8caa7b.mp3", "Krovel grarggt ereverrrn", "", 1122929283, 3658577306, Spawn, 18)
  15. elseif choice == 2 then
  16. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_3_garbled_fe1eedd8.mp3", "Rrrrevvvvnarrr jahht ttekkkman", "", 1645430326, 4164358721, Spawn, 18)
  17. elseif choice == 3 then
  18. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_3_garbled_fad67c0f.mp3", "Grrrolven brakth kerrtt", "", 2388782747, 150543218, Spawn, 18)
  19. elseif choice == 4 then
  20. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_3_garbled_3eefc118.mp3", "Vologrrren aggart renevenn", "", 397065851, 1047274840, Spawn, 18)
  21. end
  22. end
  23. function aggro(NPC,Spawn)
  24. if not HasLanguage(Spawn,18 )then
  25. Garbled(NPC,Spawn)
  26. else
  27. local choice = MakeRandomInt(1,4)
  28. if choice == 1 then
  29. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_3_aggro_eb691f84.mp3", "Kill it! Kill it!", "", 2374241847, 3459468567, Spawn, 18)
  30. elseif choice == 2 then
  31. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_3_aggro_6b15057.mp3", "You gonna die so fast!", "", 2350648774, 622465898, Spawn, 18)
  32. elseif choice == 3 then
  33. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_3_aggro_a30c4f9d.mp3", "To arms!", "", 2661067862, 2199552110, Spawn, 18)
  34. elseif choice == 4 then
  35. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_1_aggro_6b15057.mp3", "You gonna die so fast!", "", 1562704963, 4195642460, Spawn, 18)
  36. end
  37. AddTimer(NPC,15000,"FifteenCall")
  38. end
  39. end
  40. function FifteenCall(NPC,Spawn)
  41. if math.random(0,100)<=30 then
  42. if not HasLanguage(Spawn,18 )then
  43. Garbled(NPC,Spawn)
  44. else
  45. local choice = MakeRandomInt(1,3)
  46. if choice == 1 then
  47. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_3_everyfifteenseconds_m_988fcd6a.mp3", "I will tear you apart!", "", 3850483612, 779825488, Spawn, 18)
  48. elseif choice == 2 then
  49. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_3_everyfifteenseconds_m_847d6a42.mp3", "I'll rip you up!", "", 1316436320, 319871230, Spawn, 18)
  50. elseif choice == 3 then
  51. PlayFlavor(NPC, "voiceover/english/optional5/gnoll_base_2/ft/gnoll/gnoll_base_2_1_battle_m_5c7913bb.mp3", "Bah! You smell horrible!", "", 687847219, 3365844906, Spawn, 18) end
  52. end
  53. end
  54. if IsAlive(NPC)then
  55. AddTimer(NPC,15000,"FifteenCall")
  56. end
  57. end
  58. function death(NPC,Spawn)
  59. if not HasLanguage(Spawn,18 )then
  60. Garbled(NPC,Spawn)
  61. else
  62. local choice = MakeRandomInt(1,3)
  63. if choice == 1 then
  64. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_3_death_54a66dcc.mp3", "You gonna pay for that.", "", 4273480118, 3094167241, Spawn, 18)
  65. elseif choice == 2 then
  66. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_3_death_28e36f9f.mp3", "That one died.", "", 3831080059, 4019739051, Spawn, 18)
  67. elseif choice == 3 then
  68. PlayFlavor(NPC, "voiceover/english/optional5/gnoll_base_2/ft/gnoll/gnoll_base_2_1_death_7cbd3c71.mp3", "I'll rip your throat open!", "", 134141978, 4165685331, Spawn, 18)
  69. end
  70. end
  71. end
  72. function victory(NPC,Spawn)
  73. if HasLanguage(Spawn,18 )then
  74. local choice = MakeRandomInt(1,3)
  75. if choice == 1 then
  76. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_3_victory_d3093859.mp3", "For you then Qeynos!", "", 3698260724, 2781542733, Spawn, 18)
  77. elseif choice == 2 then
  78. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_3_victory_1ee5a435.mp3", "Now it's time to ruin your lands.", "", 3136436170, 378451446, Spawn, 18)
  79. elseif choice == 3 then
  80. PlayFlavor(NPC, "voiceover/english/optional5/gnoll_base_2/ft/gnoll/gnoll_base_2_1_victory_8e18fe38.mp3", "Your fight is hopeless!", "", 2306110016, 2442076674, Spawn, 18)
  81. end
  82. end
  83. end
  84. function respawn(NPC)
  85. spawn(NPC)
  86. end
  87. function waypoints(NPC)
  88. MovementLoopAddLocation(NPC, -1485.4, -2.18, 756.99, 2, 15)
  89. MovementLoopAddLocation(NPC, -1498.4, -0.87, 771.42, 2, 0)
  90. MovementLoopAddLocation(NPC, -1500.22, 0.09, 777.13, 2, 0)
  91. MovementLoopAddLocation(NPC, -1494.69, 2.61, 787.56, 2, 15)
  92. MovementLoopAddLocation(NPC, -1487.47, 4.22, 797.39, 2, 0)
  93. MovementLoopAddLocation(NPC, -1472.79, 2.76, 785.23, 2, 15)
  94. MovementLoopAddLocation(NPC, -1462.85, -1.71, 769.33, 2, 0)
  95. MovementLoopAddLocation(NPC, -1445.71, -6.33, 746.03, 2, 15)
  96. MovementLoopAddLocation(NPC, -1419.3, -8.78, 723.46, 2, 0)
  97. MovementLoopAddLocation(NPC, -1402.95, -8.92, 714.61, 2, 15)
  98. MovementLoopAddLocation(NPC, -1389.29, -8.01, 721.38, 2, 0)
  99. MovementLoopAddLocation(NPC, -1379.6, -8.59, 735.63, 2, 0)
  100. MovementLoopAddLocation(NPC, -1383.25, -6.7, 759.02, 2, 15)
  101. MovementLoopAddLocation(NPC, -1385.79, -2.73, 775.23, 2, 0)
  102. MovementLoopAddLocation(NPC, -1384.52, -1.69, 790.34, 2, 45)
  103. MovementLoopAddLocation(NPC, -1380.96, -1.73, 797.34, 2, 0)
  104. MovementLoopAddLocation(NPC, -1377.02, -1.77, 802.03, 2, 0)
  105. MovementLoopAddLocation(NPC, -1380.38, -2.21, 808.54, 2, 0)
  106. MovementLoopAddLocation(NPC, -1390.2, -2.84, 812.84, 2, 0)
  107. MovementLoopAddLocation(NPC, -1400.42, -3.88, 811.53, 2, 0)
  108. MovementLoopAddLocation(NPC, -1407.98, -3.65, 799.56, 2, 15)
  109. MovementLoopAddLocation(NPC, -1426.64, -2.4, 791.58, 2, 0)
  110. MovementLoopAddLocation(NPC, -1444.5, 0.88, 795.04, 2, 0)
  111. MovementLoopAddLocation(NPC, -1471.39, 3.08, 787.18, 2, 15)
  112. MovementLoopAddLocation(NPC, -1454.51, -4.26, 750.15, 2, 0)
  113. MovementLoopAddLocation(NPC, -1453.61, -5.43, 741.06, 2, 15)
  114. MovementLoopAddLocation(NPC, -1461.97, -4.36, 737.93, 2, 0)
  115. MovementLoopAddLocation(NPC, -1471.17, -3.13, 734.66, 2, 0)
  116. MovementLoopAddLocation(NPC, -1488.19, -1.17, 736.33, 2, 15)
  117. end