BaseOgre1.lua 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. --[[
  2. Script Name : SpawnScripts/Generic/MonsterCallouts/BaseOgre1.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.11.03 03:11:13
  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. CalloutTimer = true
  32. AddTimer(NPC,7000,"ResetTimer")
  33. if GetGender(NPC)==1 then --GENDER CHECK. 1==Male
  34. if GetClass(Spawn)>=31 and GetClass(Spawn)<=42 then
  35. choice = MakeRandomInt(1,4) --SCOUT CHECK
  36. else
  37. choice = MakeRandomInt(1,3)
  38. end
  39. if choice == 1 then
  40. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_aggro_gm_a203c9ec.mp3", "Prepare to face your doom, meddler.", "", 1496819882, 365167432)
  41. elseif choice == 2 then
  42. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_aggro_gm_a30c4f9d.mp3", "To arms!", "", 1238020980, 748146443)
  43. elseif choice == 3 then
  44. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_aggro_gm_583690dc.mp3", "Summon help! We have invaders!", "", 3340212225, 279643307)
  45. elseif choice == 4 then
  46. PlayFlavor(NPC, "voiceover/english/human_base_1/ft/human/human_base_1_1_maoscout_gm_d55d2935.mp3", "Use caution, they may have scouts!", "", 2353461553, 1453902220)
  47. end
  48. else
  49. choice = MakeRandomInt(1,3)
  50. if choice == 1 then
  51. PlayFlavor(NPC, "voiceover/english/optional3/ogre_base_2/ft/ogre/ogre_base_2_1_aggro_gf_d4cfd470.mp3", "Feel the might of Rallos!", "", 760635308, 455953200)
  52. elseif choice == 2 then
  53. PlayFlavor(NPC, "voiceover/english/optional2/ogre_eco_evil_2/ft/ogre/ogre_eco_evil_2_aoi_gf_d70efe42.mp3", "Revel in the bloodshed.", "", 3553897837, 3037866776)
  54. elseif choice == 3 then
  55. PlayFlavor(NPC, "voiceover/english/ogre_base_1/ft/ogre/ogre_base_1_1_battle_gf_fa6b8296.mp3", "They cannot match our strength. Charge!", "", 3818976104, 1332551759)
  56. end
  57. end
  58. end
  59. function death(NPC,Spawn)
  60. --[[if CalloutTimer == false then
  61. CalloutTimer = true
  62. AddTimer(NPC,7000,"ResetTimer")]]--
  63. if GetGender(NPC)==1 then
  64. local choice = MakeRandomInt(1,2)
  65. if choice == 1 then
  66. PlayFlavor(NPC, "voiceover/english/optional3/ogre_base_2/ft/ogre/ogre_base_2_1_death_gm_4be2fecc.mp3", "You may win the battle, but the war is far from over!", "", 9065845, 102503565, Spawn, 0)
  67. elseif choice == 2 then
  68. PlayFlavor(NPC, "voiceover/english/optional3/ogre_base_2/ft/ogre/ogre_base_2_1_death_gm_258f0139.mp3", "Do not surrender to the invaders!", "", 703053605, 1971945197, Spawn, 0)
  69. end
  70. else
  71. local choice = MakeRandomInt(1,2)
  72. if choice == 1 then
  73. PlayFlavor(NPC, "voiceover/english/optional3/ogre_base_2/ft/ogre/ogre_base_2_1_death_gf_258f0139.mp3", "Do not surrender to the invaders!", "", 928337336, 4254092896, Spawn, 0)
  74. else
  75. PlayFlavor(NPC, "voiceover/english/optional3/ogre_base_2/ft/ogre/ogre_base_2_1_death_gf_4be2fecc.mp3", "You may win the battle, but the war is far from over!", "", 3327742171, 2045821391, Spawn, 0)
  76. end
  77. end
  78. end
  79. --end
  80. function healthchanged(NPC, Spawn)
  81. --[[ if CalloutTimer == false then
  82. CalloutTimer = true
  83. AddTimer(NPC,7000,"ResetTimer")]]--
  84. if HealthCallout == false then
  85. if GetHP(NPC) <= GetMaxHP(NPC) * 0.55 and GetHP(NPC) >= GetMaxHP(NPC) * 0.45 then
  86. if GetGender(NPC)==1 then
  87. local choice = MakeRandomInt(1,4)
  88. if choice == 1 then
  89. PlayFlavor(NPC, "voiceover/english/optional3/ogre_base_2/ft/ogre/ogre_base_2_1_halfhealth_gm_5a6c112c.mp3", "Agggggh! There is no pain only death and failure!", "", 2051650869, 1276361533, Spawn, 0)
  90. elseif choice == 2 then
  91. PlayFlavor(NPC, "voiceover/english/ogre_base_1/ft/ogre/ogre_base_1_1_halfhealth_gm_581c2926.mp3", "You'll pay for that!", "", 2366218696, 2114997045, Spawn, 0)
  92. elseif choice == 3 then
  93. PlayFlavor(NPC, "voiceover/english/optional3/ogre_base_2/ft/ogre/ogre_base_2_1_halfhealth_gm_1ad2d46f.mp3", "Your petty weapons are no match for me!", "", 2269900119, 3290320421, Spawn, 0)
  94. elseif choice == 4 then
  95. PlayFlavor(NPC, "voiceover/english/ogre_base_1/ft/ogre/ogre_base_1_1_halfhealth_gm_aff2b15d.mp3", "Now I'm really angry!", "", 1599348947, 4096819162, Spawn, 0)
  96. end
  97. else
  98. local choice = MakeRandomInt(1,4)
  99. if choice == 1 then
  100. PlayFlavor(NPC, "voiceover/english/optional3/ogre_base_2/ft/ogre/ogre_base_2_1_halfhealth_gf_1ad2d46f.mp3", "Your petty weapons are no match for me!", "", 2285469219, 3359769172, Spawn, 0)
  101. elseif choice == 2 then
  102. PlayFlavor(NPC, "voiceover/english/optional3/ogre_base_2/ft/ogre/ogre_base_2_1_halfhealth_gf_1ad2d46f.mp3", "Your petty weapons are no match for me!", "", 2285469219, 3359769172, Spawn, 0)
  103. elseif choice == 3 then
  104. PlayFlavor(NPC, "voiceover/english/ogre_base_1/ft/ogre/ogre_base_1_1_halfhealth_gf_aff2b15d.mp3", "Now I'm really angry!", "", 3362643729, 1907494922, Spawn, 0)
  105. elseif choice == 4 then
  106. PlayFlavor(NPC, "voiceover/english/ogre_base_1/ft/ogre/ogre_base_1_1_halfhealth_gf_581c2926.mp3", "You'll pay for that!", "", 480032723, 3225416629, Spawn, 0)
  107. end
  108. end
  109. end
  110. end
  111. end
  112. --end
  113. function victory(NPC,Spawn)
  114. --[[if CalloutTimer == false then
  115. CalloutTimer = true
  116. AddTimer(NPC,7000,"ResetTimer")]]--
  117. if GetGender(NPC)==1 then
  118. local choice = MakeRandomInt(1,2)
  119. if choice == 1 then
  120. PlayFlavor(NPC, "voiceover/english/optional3/ogre_base_2/ft/ogre/ogre_base_2_1_victory_gm_1de29528.mp3", "Death was your only escape from me, coward!", "", 3626940960, 2890932770, Spawn, 0)
  121. elseif choice == 2 then
  122. PlayFlavor(NPC, "voiceover/english/optional3/ogre_base_2/ft/ogre/ogre_base_2_1_death_gm_4be2fecc.mp3", "You may win the battle, but the war is far from over!", "", 9065845, 102503565, Spawn)
  123. end
  124. else
  125. local choice = MakeRandomInt(1,2)
  126. if choice == 1 then
  127. PlayFlavor(NPC, "voiceover/english/ogre_base_1/ft/ogre/ogre_base_1_1_victory_gf_90f4b426.mp3", "Forward! Leave no survivors!", "", 1746137281, 1712355529, Spawn, 0)
  128. elseif choice == 2 then
  129. PlayFlavor(NPC, "voiceover/english/ogre_base_1/ft/ogre/ogre_base_1_1_victory_gf_1c683d69.mp3", "Leave the carcasses to rot!", "", 1941316513, 697971111, Spawn, 0)
  130. end
  131. end
  132. end
  133. --end
  134. function ResetTimer(NPC) -- 7 SECOND PAUSE BETWEEN VOs
  135. CalloutTimer = false
  136. end
  137. function HealthReset (NPC) --SO HALF HEALTH DOESN'T SPAM
  138. HealthCallout = false
  139. end