BaseZombie1.lua 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. --[[
  2. Script Name : SpawnScripts/Generic/MonsterCallouts/BaseZombie1.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.08.29 12:08:47
  5. Script Purpose :
  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. SetTempVariable(NPC, "CalloutTimer", "true")
  32. AddTimer(NPC,10000,"ResetTimer")
  33. local choice = MakeRandomInt(1,3)
  34. if choice == 1 then
  35. PlayFlavor(NPC, "voiceover/english/zombie_base_1/ft/zombie/zombie_base_1_1_aggro_gm_ed97b327.mp3", "I will slowly strip the fleshy tissue from your body!", "", 3093455157, 448746789, Spawn, 0)
  36. elseif choice == 2 then
  37. PlayFlavor(NPC, "voiceover/english/zombie_base_1/ft/zombie/zombie_base_1_1_aggro_gm_7562a2d8.mp3", "Now you've made me hungry!", "", 2457939212, 807289510, Spawn, 0)
  38. elseif choice == 3 then
  39. PlayFlavor(NPC, "voiceover/english/zombie_base_1/ft/zombie/zombie_base_1_1_aggro_gm_f9016be9.mp3", "Why do you pester me?", "", 2204405446, 1306718710, Spawn, 0)
  40. end
  41. end
  42. function death(NPC,Spawn)
  43. if GetTempVariable(NPC, "CalloutTimer")== "false" and IsPlayer(Spawn) then
  44. local choice = MakeRandomInt(1,2)
  45. if choice == 1 then
  46. PlayFlavor(NPC, "voiceover/english/zombie_base_1/ft/zombie/zombie_base_1_1_death_gm_295360a5.mp3", "Feed on the fallen after we are victorious.", "", 3693073203, 1294287468, Spawn, 0)
  47. elseif choice == 2 then
  48. PlayFlavor(NPC, "voiceover/english/zombie_base_1/ft/zombie/zombie_base_1_1_death_gm_f086e41b.mp3", "You cannot stop us all!", "", 1972347388, 3291104853, Spawn)
  49. end
  50. end
  51. end
  52. function healthchanged(NPC, Spawn)
  53. if GetTempVariable(NPC, "CalloutTimer") == "false" and IsPlayer(Spawn) then
  54. if GetTempVariable(NPC, "HealthCallout") == "false" then
  55. if GetHP(NPC) < GetMaxHP(NPC) * 0.55 then
  56. if GetHP(NPC) > GetMaxHP(NPC) * 0.45 then
  57. SetTempVariable(NPC, "HealthCallout", "true")
  58. SetTempVariable(NPC, "CalloutTimer", "true")
  59. AddTimer(NPC,10000,"ResetTimer")
  60. AddTimer(NPC,12500,"HealthReset")
  61. local choice = MakeRandomInt(1,2)
  62. if choice == 1 then
  63. PlayFlavor(NPC, "voiceover/english/zombie_base_1/ft/zombie/zombie_base_1_1_halfhealth_gm_4d9fe331.mp3", "What you do to me, I will double on to you!", "", 3966548503, 4041708379, Spawn)
  64. elseif choice == 2 then
  65. PlayFlavor(NPC, "voiceover/english/zombie_base_1/ft/zombie/zombie_base_1_1_halfhealth_gm_e51a0853.mp3", "I feel no pain!", "", 4045005655, 88734265, Spawn)
  66. end
  67. end
  68. end
  69. end
  70. end
  71. end
  72. function victory(NPC,Spawn)
  73. local choice = MakeRandomInt(1,2)
  74. if choice == 1 then
  75. PlayFlavor(NPC, "voiceover/english/zombie_base_1/ft/zombie/zombie_base_1_1_victory_gm_c6b1a91.mp3", "Wonderful bounty of flesh!", "", 1214200232, 3299404629, Spawn, 0)
  76. elseif choice == 2 then
  77. PlayFlavor(NPC, "voiceover/english/zombie_hands_of_tseralith/ft/zombie/zombie_hands_of_tseralith_1_victory_gm_4a268630.mp3", "Your death brings me strength.", "", 2621974641, 301635725, Spawn)
  78. end
  79. end
  80. function ResetTimer(NPC) -- 7 SECOND PAUSE BETWEEN VOs
  81. SetTempVariable(NPC, "CalloutTimer", "false")
  82. end
  83. function HealthReset (NPC) --SO HALF HEALTH DOESN'T SPAM
  84. SetTempVariable(NPC, "HealthCallout", "false")
  85. end