BlackMagi.lua 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. --[[
  2. Script Name : SpawnScripts/Generic/MonsterCallouts/BlackMagi.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.12.01 01:12:00
  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. if GetGender(NPC) ==1 then -- MALE
  15. local choice = MakeRandomInt(1,4)
  16. if choice == 1 then
  17. PlayFlavor(NPC, "voiceover/english/optional3/ratonga_black_magi/ft/ratonga/ratonga_black_magi_1_garbled_gm_21432a6a.mp3", "TravaHAS merallund kBORrten illanya", "", 1178396737, 3396757213, Player, 26)
  18. elseif choice == 2 then
  19. PlayFlavor(NPC, "voiceover/english/optional3/ratonga_black_magi/ft/ratonga/ratonga_black_magi_1_garbled_gm_5a81ec49.mp3", "Hekveten plava SU klina", "", 3849408454, 1757211832, Player, 26)
  20. elseif choice == 3 then
  21. PlayFlavor(NPC, "voiceover/english/optional3/ratonga_black_magi/ft/ratonga/ratonga_black_magi_1_garbled_gm_bc265d9b.mp3", "EeeSIP qweek MEEerallow neep", "", 1253151944, 2827076804, Player, 26)
  22. elseif choice == 4 then
  23. PlayFlavor(NPC, "voiceover/english/optional3/ratonga_black_magi/ft/ratonga/ratonga_black_magi_1_garbled_gm_5c77ba46.mp3", "Chee ava kirAH tay!", "", 1953495633, 901796916, Player, 26)
  24. end
  25. else
  26. local choice = MakeRandomInt(1,3)
  27. if choice == 1 then -- FEMALE
  28. PlayFlavor(NPC, "voiceover/english/ratonga_black_magi/ft/ratonga/ratonga_black_magi_1_garbled_gf_21432a6a.mp3", "TravaHAS merallund kBORrten illanya", "", 3484386885, 1475086391, Player, 26)
  29. elseif choice == 2 then
  30. PlayFlavor(NPC, "voiceover/english/ratonga_black_magi/ft/ratonga/ratonga_black_magi_1_garbled_gf_5a81ec49.mp3", "Hekveten plava SU klina", "", 3639926873, 1002267878, Player, 26)
  31. elseif choice == 3 then
  32. PlayFlavor(NPC, "voiceover/english/ratonga_darkblades/ft/ratonga/ratonga_darkblades_1_garbled_gf_5a81ec49.mp3", "Hekveten plava SU klina", "", 4282746773, 1025120966, Player, 26)
  33. end
  34. end
  35. end
  36. function aggro(NPC,Player)
  37. SetTempVariable(NPC, "CalloutTimer", "false")
  38. if GetTempVariable(NPC, "CalloutTimer")== "false" and math.random(0,100) <=33 and IsPlayer(Player) then
  39. SetTempVariable(NPC, "CalloutTimer", "true")
  40. AddTimer(NPC,10000,"ResetTimer")
  41. if not HasLanguage(Player,26 )then
  42. Garbled(NPC,Player)
  43. else
  44. if GetGender(NPC) ==1 then -- MALE
  45. local choice = MakeRandomInt(1,3)
  46. if choice == 1 then
  47. PlayFlavor(NPC, "voiceover/english/optional3/ratonga_black_magi/ft/ratonga/ratonga_black_magi_1_aggro_gm_ad7530c0.mp3", "Kill the intruder!", "", 2219487268, 4134058791, Player, 26)
  48. elseif choice == 2 then
  49. PlayFlavor(NPC, "voiceover/english/optional3/ratonga_black_magi/ft/ratonga/ratonga_black_magi_1_aggro_gm_b7a71d5b.mp3", "Blind its eyes!", "", 1105207049, 1634151428, Player, 26)
  50. elseif choice == 3 then
  51. PlayFlavor(NPC, "voiceover/english/optional3/ratonga_black_magi/ft/ratonga/ratonga_black_magi_1_aggro_gm_a33765b3.mp3", "The Black Magus rule the Sprawl!", "", 1461049897, 1751771993, Player, 26)
  52. end
  53. else
  54. local choice = MakeRandomInt(1,3)
  55. if choice == 1 then -- FEMALE
  56. PlayFlavor(NPC, "voiceover/english/ratonga_black_magi/ft/ratonga/ratonga_black_magi_1_aggro_gf_ad7530c0.mp3", "Kill the intruder!", "", 671062994, 1658163041, Player, 26)
  57. elseif choice == 2 then
  58. PlayFlavor(NPC, "voiceover/english/ratonga_black_magi/ft/ratonga/ratonga_black_magi_1_aggro_gf_a33765b3.mp3", "The Black Magus rule the Sprawl!", "", 1848525428, 1274115535, Player, 26)
  59. elseif choice == 3 then
  60. PlayFlavor(NPC, "voiceover/english/ratonga_black_magi/ft/ratonga/ratonga_black_magi_1_aggro_gf_b7a71d5b.mp3", "Blind its eyes!", "", 2430948603, 4141201947, Player, 26)
  61. end
  62. end
  63. end
  64. end
  65. end
  66. function death(NPC,Player)
  67. if GetTempVariable(NPC, "CalloutTimer")== "false" and IsPlayer(Player) then
  68. if math.random(0,100)<=35 then
  69. if not HasLanguage(Player,26 )then
  70. Garbled(NPC,Player)
  71. else
  72. if GetGender(NPC) ==1 then -- MALE
  73. local choice = MakeRandomInt(1,3)
  74. if choice == 1 then
  75. PlayFlavor(NPC, "voiceover/english/optional3/ratonga_black_magi/ft/ratonga/ratonga_black_magi_1_death_gm_46ba8472.mp3", "That was just a runt!", "", 2089979278, 2314600701, Player, 26)
  76. elseif choice == 2 then
  77. PlayFlavor(NPC, "voiceover/english/optional3/ratonga_darkblades/ft/ratonga/ratonga_darkblades_1_death_gm_e7600f72.mp3", "Now who will pick the locks?!", "", 2755004589, 1076685336, Player, 26)
  78. elseif choice == 3 then
  79. PlayFlavor(NPC, "voiceover/english/optional3/ratonga_black_magi/ft/ratonga/ratonga_black_magi_1_death_gm_5a5e2dda.mp3", "This doesn't look so good.", "", 1114919917, 808862085, Player, 26)
  80. end
  81. else
  82. local choice = MakeRandomInt(1,2)
  83. if choice == 1 then -- FEMALE
  84. PlayFlavor(NPC, "voiceover/english/optional3/ratonga_darkblades/ft/ratonga/ratonga_darkblades_2_death_gf_e7600f72.mp3", "Now who will pick the locks?!", "", 253904273, 1976320729, Player, 26)
  85. elseif choice == 2 then
  86. PlayFlavor(NPC, "voiceover/english/optional3/ratonga_darkblades/ft/ratonga/ratonga_darkblades_2_death_gf_497acee7.mp3", "That just improves my cut of the loot!", "", 1920882673, 458148245, Player, 26)
  87. end
  88. end
  89. end
  90. end
  91. end
  92. end
  93. function victory(NPC,Player)
  94. if IsPlayer(Player)and not HasLanguage(Player,26 )then
  95. Garbled(NPC,Player)
  96. elseif IsPlayer(Player) and HasLanguage(Player,26 )then
  97. if GetGender(NPC) ==1 then -- MALE
  98. local choice = MakeRandomInt(1,3)
  99. if choice == 1 then
  100. PlayFlavor(NPC, "voiceover/english/optional3/ratonga_base_1/ft/ratonga/ratonga_base_1_1_victory_gm_935883a.mp3", "Shhh ... shhh ... it's ok ... shhh ...shhh. Stop fighting it...", "", 1459182295, 1340643629, Player, 26)
  101. elseif choice == 2 then
  102. PlayFlavor(NPC, "voiceover/english/optional3/ratonga_base_1/ft/ratonga/ratonga_base_1_1_victory_gm_732f23e7.mp3", "The dead tell no tales", "", 636430623, 2715556056, Player, 26)
  103. elseif choice == 3 then
  104. PlayFlavor(NPC, "voiceover/english/optional3/ratonga_base_1/ft/ratonga/ratonga_base_1_1_victory_gm_15e8fc93.mp3", "One less worry in my life!", "", 4116602987, 3804155045, Player,26)
  105. end
  106. else
  107. local choice = MakeRandomInt(1,2)
  108. if choice == 1 then -- FEMALE
  109. PlayFlavor(NPC, "voiceover/english/optional3/ratonga_base_1/ft/ratonga/ratonga_base_1_1_victory_gf_732f23e7.mp3", "The dead tell no tales", "", 1062202875, 1393213249, Player,26)
  110. elseif choice == 2 then
  111. PlayFlavor(NPC, "voiceover/english/optional3/ratonga_base_1/ft/ratonga/ratonga_base_1_1_victory_gf_935883a.mp3", "Shhh ... shhh ... it's ok ... shhh ...shhh. Stop fighting it...", "", 1459182295, 1340643629, Player, 26)
  112. end
  113. end
  114. end
  115. end