abattlehardenedbrigand.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : SpawnScripts/BuccaneersHideout/abattlehardenedbrigand.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.12.17 01:12:30
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/CombatModule"
  9. function spawn(NPC, Spawn)
  10. combatModule(NPC, Spawn)
  11. end
  12. function aggro(NPC, Spawn)
  13. local choice = MakeRandomInt(1,4)
  14. if choice == 1 then
  15. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_base_1/ft/barbarian/barbarian_base_1_3_halfhealth_gf_267aa673.mp3", "Send for reinforcements! Their warriors are skilled.", "", 2527774659, 2542349358, Spawn, 0)
  16. elseif choice == 2 then
  17. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_base_1/ft/barbarian/barbarian_base_1_2_death_gf_747d38d7.mp3", "Don't fear death! There is no surrender!", "", 1668075339, 3492211420, Spawn, 0)
  18. elseif choice == 3 then
  19. PlayFlavor(NPC, "voiceover/english/optional5/barbarian_base_2/ft/barbarian/barbarian_base_2_1_aggro_gf_73da4109.mp3", "So many choices of who to kill!", "", 3668044517, 3454415980, Spawn, 0)
  20. elseif choice == 4 then
  21. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_base_1/ft/barbarian/barbarian_base_1_2_aggro_gf_394a7fe3.mp3", "Not sneaky enough to get past me.", "", 1014195867, 4030043484, Spawn, 0)
  22. end
  23. end
  24. function death(NPC,Spawn)
  25. local choice = MakeRandomInt(1,2)
  26. if choice == 1 then
  27. PlayFlavor(NPC, "voiceover/english/barbarian_base_1/ft/barbarian/barbarian_base_1_1_death_gf_9f33cf68.mp3", "Don't break! Hold the line!", "", 4168139414, 1969505231, Spawn, 0)
  28. elseif choice == 2 then
  29. PlayFlavor(NPC, "voiceover/english/optional3/barbarian_base_1/ft/barbarian/barbarian_base_1_2_death_gf_747d38d7.mp3", "Don't fear death! There is no surrender!", "", 1668075339, 3492211420, Spawn, 0)
  30. end
  31. end
  32. function respawn(NPC)
  33. spawn(NPC)
  34. end