9
3

SabertoothGnoll2.lua 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. --[[
  2. Script Name : SpawnScripts/Generic/MonsterCallouts/SabertoothGnoll2.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.10 11:07:00
  5. Script Purpose : Sabertooth/Blackburrow Gnoll Callouts v2
  6. :
  7. --]]
  8. local HealthCallout = false
  9. -- UNKNOWN LANGUAGE SCRIPT
  10. function Garbled(NPC,Spawn)
  11. local choice = MakeRandomInt(1,4)
  12. if choice == 1 then
  13. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_2_garbled_2f8caa7b.mp3", "Krovel grarggt ereverrrn", "", 359163231, 374835342, Spawn, 18)
  14. elseif choice == 2 then
  15. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_2_garbled_fe1eedd8.mp3", "Rrrrevvvvnarrr jahht ttekkkman", "", 2011900099, 1932209000, Spawn, 18)
  16. elseif choice == 3 then
  17. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_2_garbled_fad67c0f.mp3", "Grrrolven brakth kerrtt", "", 4029243996, 3718919525, Spawn, 18)
  18. elseif choice == 4 then
  19. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_2_garbled_3eefc118.mp3", "Vologrrren aggart renevenn", "", 827007456, 1608492994, Spawn, 18)
  20. end
  21. end
  22. -- AGGRO SCRIPT
  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_2_aggro_6b15057.mp3", "You gonna die so fast!", "", 2476105225, 1221891040, Spawn, 18)
  30. elseif choice == 2 then
  31. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_2_aggro_eb691f84.mp3", "Kill it! Kill it!", "", 543574223, 1681470986, Spawn, 18)
  32. elseif choice == 3 then
  33. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_2_aggro_a30c4f9d.mp3", "To arms!", "", 3275400181, 1790039282, Spawn, 18)
  34. elseif choice == 4 then
  35. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_3_aggro_fda03a16.mp3", "Spin, weave, dodge, attack!!!", "", 1516290828, 3143203494, Spawn, 18)
  36. end
  37. AddTimer(NPC,15000,"FifteenCall")
  38. end
  39. end
  40. -- RANDOM CALL IN COMBAT SCRIPT
  41. function FifteenCall(NPC,Spawn)
  42. if IsInCombat(NPC)==true then
  43. if IsAlive(NPC)== true then
  44. if IsInCombat(NPC)==true then
  45. if math.random(0,100)<=30 then
  46. if not HasLanguage(Spawn,18 )then
  47. Garbled(NPC,Spawn)
  48. else
  49. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_2_everyfifteenseconds_56c0a1a8.mp3", "Nothing's tougher than a gnoll!", "", 287386738, 3149239101, Spawn, 18)
  50. end
  51. end
  52. if IsAlive(NPC)then
  53. AddTimer(NPC,15000,"FifteenCall")
  54. end
  55. end
  56. end
  57. end
  58. end
  59. -- HALF HEALTH SCRIPT
  60. function healthchanged(NPC, Spawn)
  61. if HealthCallout == false then
  62. if GetHP(NPC) < GetMaxHP(NPC) * 0.55 then
  63. if GetHP(NPC) > GetMaxHP(NPC) * 0.45 then
  64. HealthCallout = true
  65. AddTimer(NPC,10000,"HealthReset")
  66. if not HasLanguage(Spawn,18 )then
  67. Garbled(NPC,Spawn)
  68. else
  69. local choice = MakeRandomInt(1,2)
  70. if choice == 1 then
  71. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_2_halfhealth_6bce9cd3.mp3", "You're stronger than me.", "", 1682367154, 2729589996, Spawn, 18)
  72. elseif choice == 2 then
  73. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_2_halfhealth_cac53bc5.mp3", "I must fight for Sabertooth pride.", "", 3834044176, 432685074, Spawn, 18)
  74. end
  75. end
  76. end
  77. end
  78. end
  79. end
  80. function HealthReset (NPC)
  81. HealthCallout = false
  82. end
  83. -- ON DEATH SCRIPT
  84. function death(NPC,Spawn)
  85. if math.random(0,100)<=60 then
  86. if not HasLanguage(Spawn,18 )then
  87. Garbled(NPC,Spawn)
  88. else
  89. local choice = MakeRandomInt(1,2)
  90. if choice == 1 then
  91. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_2_aggro_6b15057.mp3", "You gonna die so fast!", "", 2476105225, 1221891040, Spawn, 18)
  92. elseif choice == 2 then
  93. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_2_death_28e36f9f.mp3", "That one died.", "", 1959590821, 1866133221, Spawn, 18)
  94. end
  95. end
  96. end
  97. end
  98. -- KILLED TARGET SCRIPT
  99. function victory(NPC,Spawn)
  100. if HasLanguage(Spawn,18 )then
  101. local choice = MakeRandomInt(1,2)
  102. if choice == 1 then
  103. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_2_victory_e99dd57c.mp3", "Who gonna die next?", "", 2852356073, 784092016, Spawn, 18)
  104. elseif choice == 2 then
  105. PlayFlavor(NPC, "voiceover/english/gnoll_sabertooths/ft/gnoll/gnoll_sabertooths_2_victory_1ee5a435.mp3", "Now it's time to ruin your lands.", "", 3327307554, 1657108613, Spawn, 18)
  106. end
  107. end
  108. end