BrokenTusk1.lua 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. --[[
  2. Script Name : SpawnScripts/Generic/MonsterCallouts/BrokenTusk1.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.07.05 06:07:11
  5. Script Purpose :
  6. :
  7. --]]
  8. local HealthCallout = false --REDUCES Half-Health Spam
  9. local CalloutTimer = false --REDUCES Callout Spam
  10. function ResetTimer(NPC) -- 7 SECOND PAUSE BETWEEN VOs
  11. SetTempVariable(NPC, "CalloutTimer", "false")
  12. end
  13. function Garbled(NPC,Player)
  14. local choice = MakeRandomInt(1,4)
  15. if choice == 1 then
  16. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_garbled_d552223c.mp3", "GEKKKKnoh! Ezzrrt sha kemm.", "", 1083788244, 2181690295, Player, 17)
  17. elseif choice == 2 then
  18. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_garbled_95912cdc.mp3", "Harkt brecht ogglot kressht", "", 1749294695, 2575234394, Player, 17)
  19. elseif choice == 3 then
  20. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_garbled_73b2c225.mp3", "Gretz kagh lotgg vep nabrecht", "", 3140410719, 1155418716, Player, 17)
  21. elseif choice == 4 then
  22. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_garbled_cd184493.mp3", "Purzt gort NARGAAAAA!!! Durzog carb!", "", 2698130766, 658534720, Player, 17)
  23. end
  24. end
  25. function aggro(NPC,Player)
  26. AddTimer(NPC,MakeRandomInt(15000,30000),"FifteenCall",1,Player)
  27. SetTempVariable(NPC, "CalloutTimer", "false")
  28. if GetTempVariable(NPC, "CalloutTimer")== "false" and math.random(0,100) <=33 and IsPlayer(Player) then
  29. SetTempVariable(NPC, "CalloutTimer", "true")
  30. AddTimer(NPC,10000,"ResetTimer")
  31. if not HasLanguage(Player,17 )then
  32. Garbled(NPC,Player)
  33. else
  34. local choice = MakeRandomInt(1,3)
  35. if choice == 1 then
  36. PlayFlavor(NPC, "voiceover/english/optional3/orc_brokentusk/ft/orc/orc_brokentusk_1_aggro_7be96fc0.mp3", "Help! Intruders are here to kill us all.", "", 3649123076, 3496691517, Player, 17)
  37. elseif choice == 2 then
  38. PlayFlavor(NPC, "voiceover/english/optional3/orc_brokentusk/ft/orc/orc_brokentusk_1_aggro_58aa3cd6.mp3", "Everyone, over here. Kill them and take their boots!", "", 434487644, 2328686578, Player, 17)
  39. elseif choice == 3 then
  40. PlayFlavor(NPC, "voiceover/english/optional3/orc_brokentusk/ft/orc/orc_brokentusk_1_aggro_7afa7bb1.mp3", "Perfect! This one has some nice things.", "", 3642130783, 1736257146, Player, 17)
  41. end
  42. end
  43. end
  44. end
  45. function death(NPC,Player)
  46. if GetTempVariable(NPC, "CalloutTimer")== "false" and IsPlayer(Player) then
  47. if math.random(0,100)<=35 then
  48. if not HasLanguage(Player,17 )then
  49. Garbled(NPC,Player)
  50. else
  51. local choice = MakeRandomInt(1,3)
  52. if choice == 1 then
  53. PlayFlavor(NPC, "voiceover/english/optional3/orc_brokentusk/ft/orc/orc_brokentusk_1_death_e08325ae.mp3", "Quick, get them off me!", "", 244259445, 3279788307, Player, 17)
  54. elseif choice == 2 then
  55. PlayFlavor(NPC, "voiceover/english/optional3/orc_brokentusk/ft/orc/orc_brokentusk_1_death_145827a4.mp3", "Help! I can't feel my arm.", "", 2498804724, 1519811140, Player, 17)
  56. elseif choice == 3 then
  57. PlayFlavor(NPC, "voiceover/english/optional3/orc_brokentusk/ft/orc/orc_brokentusk_1_death_77dcb788.mp3", "Uh ohhhhhhhhh!", "", 422612512, 3900776578, Player, 17)
  58. end
  59. end
  60. end
  61. end
  62. end
  63. function FifteenCall(NPC,Player)
  64. if IsAlive(NPC) and IsInCombat(NPC)==true and IsPlayer(Player)and GetTempVariable(NPC, "CalloutTimer")== "false" then
  65. if math.random(0,100)<=33 then
  66. SetTempVariable(NPC, "CalloutTimer", "true")
  67. AddTimer(NPC,10000,"ResetTimer")
  68. if not HasLanguage(Player,17 )then
  69. Garbled(NPC,Player)
  70. else
  71. local choice = MakeRandomInt(1,3)
  72. if choice == 1 then
  73. PlayFlavor(NPC, "voiceover/english/optional3/orc_brokentusk/ft/orc/orc_brokentusk_1_battle_m_15e66010.mp3", "I think we should just run!", "", 1889420114, 3820789621, Player, 17)
  74. elseif choice == 2 then
  75. PlayFlavor(NPC, "voiceover/english/optional3/orc_brokentusk/ft/orc/orc_brokentusk_1_battle_m_bed76d51.mp3", "Fall over and they'll think we're dead.", "", 2824708625, 2715771581, Player, 17)
  76. elseif choice == 3 then
  77. PlayFlavor(NPC, "voiceover/english/optional3/orc_brokentusk/ft/orc/orc_brokentusk_1_battle_21272d14.mp3", "Can anyone understand what they're saying?", "", 3815828677, 3690188091, Player, 17)
  78. end
  79. end
  80. end
  81. if IsAlive(NPC)then
  82. AddTimer(NPC,MakeRandomInt(15000,30000),"FifteenCall",1,Player)
  83. end
  84. end
  85. end
  86. function victory(NPC,Player)
  87. if IsPlayer(Player)and not HasLanguage(Player,17 )then
  88. Garbled(NPC,Player)
  89. elseif IsPlayer(Player) and HasLanguage(Player,17 )then
  90. local choice = MakeRandomInt(1,2)
  91. if choice == 1 then
  92. PlayFlavor(NPC, "voiceover/english/optional3/orc_brokentusk/ft/orc/orc_brokentusk_1_victory_cebb45a9.mp3", "Look, I killed one! I killed one!", "", 1939874871, 624844821, Player, 17)
  93. elseif choice == 2 then
  94. PlayFlavor(NPC, "voiceover/english/optional3/orc_brokentusk/ft/orc/orc_brokentusk_1_victory_bfb0a7a3.mp3", "All of this stuff is mine!", "", 4284515986, 2571034270, Player, 17)
  95. end
  96. end
  97. end