abattlehardenedbuccaneer.lua 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : SpawnScripts/BuccaneersHideout/abattlehardenedbuccaneer.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.12.17 04:12:15
  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. if GetGender(NPC)==2 then
  14. choice = MakeRandomInt(1,4)
  15. if choice ==1 then
  16. PlayFlavor(NPC, "voiceover/english/optional3/human_base_1/ft/human/human_base_1_1_aggro_gf_583690dc.mp3", "Summon help! We have invaders!", "", 1598905349, 2204481929, Spawn, 0)
  17. elseif choice ==2 then
  18. PlayFlavor(NPC, "voiceover/english/optional3/human_base_1/ft/human/human_base_1_1_halfhealth_gf_8529e507.mp3", "I can't hold them forever!", "", 3371581229, 792393228, Spawn, 0)
  19. elseif choice ==3 then
  20. PlayFlavor(NPC, "voiceover/english/optional3/human_base_1/ft/human/human_base_1_1_aggro_gf_a203c9ec.mp3", "Prepare to face your doom, meddler.", "", 3593389433, 3838830228, Spawn, 0)
  21. elseif choice ==4 then
  22. 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)
  23. end
  24. else
  25. local choice = MakeRandomInt(1,3)
  26. if choice == 1 then
  27. PlayFlavor(NPC, "voiceover/english/human_dervish/ft/human/human_dervish_1_aggro_gm_5431aa20.mp3", "There they are! Get them!", "", 2165643563, 2117457907, Spawn, 0)
  28. elseif choice == 2 then
  29. PlayFlavor(NPC, "voiceover/english/human_dervish/ft/human/human_dervish_1_aggro_gm_5a34aed6.mp3", "Make sure they die quietly!", "", 3777681635, 634895945, Spawn, 0)
  30. elseif choice == 3 then
  31. PlayFlavor(NPC, "voiceover/english/human_dervish/ft/human/human_dervish_1_halfhealth_gm_b1dc44d0.mp3", "It's been awhile since anyone fought back!", "", 1623736591, 2832676927, Spawn, 0)
  32. end
  33. end
  34. end
  35. function death(NPC,Spawn)
  36. if GetGender(NPC)==1 then
  37. local choice = MakeRandomInt(1,2)
  38. if choice == 1 then
  39. PlayFlavor(NPC, "voiceover/english/human_dervish/ft/human/human_dervish_1_halfhealth_gm_b1dc44d0.mp3", "It's been awhile since anyone fought back!", "", 1623736591, 2832676927, Spawn, 0)
  40. elseif choice == 2 then
  41. PlayFlavor(NPC, "voiceover/english/human_dervish/ft/human/human_dervish_1_death_gm_94279fc3.mp3", "Someone get some help, fast!", "", 2213603766, 3071153854, Spawn, 0)
  42. end
  43. end
  44. end
  45. function respawn(NPC)
  46. spawn(NPC)
  47. end