9
3

BaseDwarf1.lua 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. --[[
  2. Script Name : SpawnScripts/Generic/MonsterCallouts/BaseDwarf1.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.05.26 11:05:07
  5. Script Purpose : Base Dwarf Racial Callouts
  6. :
  7. --]]
  8. local HealthCallout = false --REDUCES Half-Health Spam
  9. local CalloutTimer = false --REDUCES Callout Spam
  10. local FIGHTER = 1
  11. local WARRIOR =2
  12. local GUARDIAN= 3
  13. local BERSERKER = 4
  14. local BRAWLER = 5
  15. local MONK = 6
  16. local BRUISER= 7
  17. local CRUSADER = 8
  18. local SHADOWKNIGHT = 9
  19. local PALADIN = 10
  20. local MAGE = 21
  21. local SORCERER = 22
  22. local WIZARD = 23
  23. local WARLOCK = 24
  24. local ENCHANTER = 25
  25. local ILLUSIONIST = 26
  26. local COERCER = 27
  27. local SUMMONER = 28
  28. local CONJUROR = 29
  29. local NECROMANCER = 30
  30. function aggro(NPC,Spawn)
  31. CalloutTimer = true
  32. AddTimer(NPC,7000,"ResetTimer")
  33. if GetGender(NPC)==1 then --GENDER CHECK. 1==Male
  34. choice = MakeRandomInt(1,3)
  35. if choice == 1 then
  36. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_aggro_gm_23b35126.mp3", "Where do ya think you're going?", "", 706272128, 909565004)
  37. elseif choice == 2 then
  38. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_aggro_gm_9de55a3e.mp3", "There they are! Let's get em!", "", 3246206943, 366784514)
  39. elseif choice == 3 then
  40. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_aggro_gm_ab9057d3.mp3", "Looking for me? ", "", 438949611, 3910736957)
  41. end
  42. else
  43. if GetClass(Spawn)>=1 and GetClass(Spawn)<=10 then
  44. choice = MakeRandomInt(1,4) --Fighter CHECK
  45. else
  46. choice = MakeRandomInt(1,3)
  47. end
  48. if choice == 1 then
  49. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_aggro_gf_ab9057d3.mp3", "Looking for me? ", "", 407706048, 337475746)
  50. elseif choice == 2 then
  51. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_aggro_gf_be4f625e.mp3", "Where do ya think you're going?", "", 152508601, 1517122703)
  52. elseif choice == 3 then
  53. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_aggro_gf_d29563c7.mp3", "There they are! Let's get em!", "", 995196475, 1619899594)
  54. elseif choice == 4 then
  55. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_maofighter_gf_428f2c06.mp3", "You, back up there! I'm taking the warrior!", "", 1284306998, 1476787670)
  56. end
  57. AddTimer(NPC,15000,"FifteenCall")
  58. end
  59. end
  60. function death(NPC,Spawn)
  61. --[[if CalloutTimer == false then
  62. CalloutTimer = true
  63. AddTimer(NPC,7000,"ResetTimer")]]--
  64. if GetGender(NPC)==1 then
  65. local choice = MakeRandomInt(1,2)
  66. if choice == 1 then
  67. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_death_gm_bac4e4e8.mp3", "You'll never take me alive!", "", 3841822806, 1060375787, Spawn, 0)
  68. elseif choice == 2 then
  69. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_death_gm_e462fcd1.mp3", "Go on now, I'll hold them!", "", 4022696973, 1224761357, Spawn, 0)
  70. end
  71. else
  72. local choice = MakeRandomInt(1,2)
  73. if choice == 1 then
  74. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_death_gf_e462fcd1.mp3", "Go on now, I'll hold them!", "", 1183447615, 1679392141, Spawn, 0)
  75. else
  76. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_death_gf_e462fcd1.mp3", "Go on now, I'll hold them!", "", 1183447615, 1679392141, Spawn, 0)
  77. end
  78. end
  79. end
  80. --end
  81. function victory(NPC,Spawn)
  82. --[[if CalloutTimer == false then
  83. CalloutTimer = true
  84. AddTimer(NPC,7000,"ResetTimer")]]--
  85. if GetGender(NPC)==1 then
  86. local choice = MakeRandomInt(1,3)
  87. if choice == 1 then
  88. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_victory_gm_4a1ceaef.mp3", "Ha! I'm not done yet. Get back up!", "", 458619926, 239663782, Spawn)
  89. elseif choice == 2 then
  90. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_victory_gm_d6c773c7.mp3", "I didn't think I hit em that hard.", "", 3680771732, 663911723, Spawn)
  91. elseif choice == 3 then
  92. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_victory_gm_ecd7fa6e.mp3", "An ale for the fallen!", "", 99121645, 2553343776, Spawn)
  93. end
  94. else
  95. local choice = MakeRandomInt(1,3)
  96. if choice == 1 then
  97. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_victory_gf_4a1ceaef.mp3", "Ha! I'm not done yet. Get back up!", "", 1335528281, 2889456217, Spawn)
  98. elseif choice == 2 then
  99. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_victory_gf_d6c773c7.mp3", "I didn't think I hit em that hard.", "", 4016088326, 632010394, Spawn)
  100. elseif choice == 3 then
  101. PlayFlavor(NPC, "voiceover/english/dwarf_base_1/ft/dwarf/dwarf_base_1_1_victory_gf_ecd7fa6e.mp3", "An ale for the fallen!", "", 3223559996, 2677275600, Spawn)
  102. end
  103. end
  104. end
  105. --end
  106. function ResetTimer(NPC) -- 7 SECOND PAUSE BETWEEN VOs
  107. CalloutTimer = false
  108. end
  109. function HealthReset (NPC) --SO HALF HEALTH DOESN'T SPAM
  110. HealthCallout = false
  111. end