Guttersnipe.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. --[[
  2. Script Name : SpawnScripts/Generic/MonsterCallouts/Guttersnipe.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.12.05 05:12:41
  5. Script Purpose : Fabricated Guttersnipe callouts. VO file names posted, but keys are missing.
  6. :
  7. --]]
  8. local HealthCallout = false --REDUCES Half-Health Spam
  9. local CalloutTimer = false --REDUCES Callout Spam
  10. function ResetTimer(NPC) -- 7 SECOND PAUSE BETWEEN VOs
  11. SetTempVariable(NPC, "CalloutTimer", "false")
  12. end
  13. function aggro(NPC,Player)
  14. AddTimer(NPC,math.random(15000,30000),"FifteenCall",1,Player)
  15. SetTempVariable(NPC, "CalloutTimer", "false")
  16. if GetTempVariable(NPC, "CalloutTimer")== "false" and math.random(0,100) <=33 and IsPlayer(Player) then
  17. SetTempVariable(NPC, "CalloutTimer", "true")
  18. AddTimer(NPC,10000,"ResetTimer")
  19. if GetGender(NPC)==1 then --Male
  20. local choice = MakeRandomInt(1,4)
  21. if choice == 1 then
  22. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_aggro_gm_263c2013.mp3", "The Guttersnipes have no use for you! Die!","", 0, 0, Player)
  23. elseif choice == 2 then
  24. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_aggro_gm_2ef17f7.mp3", "Time for you to get out of Guttersnipe territory!", "", 0, 0, Player)
  25. elseif choice == 3 then
  26. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_aggro_gm_5d327d21.mp3", "Is that coins I hear? Time to pay up!", 0, 0, Player)
  27. elseif choice == 4 then
  28. AgroRaceCheck(NPC,Player)
  29. end
  30. else--Female
  31. local choice = MakeRandomInt(1,4)
  32. if choice == 1 then
  33. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_aggro_gf_263c2013.mp3", "The Guttersnipes have no use for you! Die!","", 0, 0, Player)
  34. elseif choice == 2 then
  35. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_aggro_gf_2ef17f7.mp3", "Time for you to get out of Guttersnipe territory!", "", 0, 0, Player)
  36. elseif choice == 3 then
  37. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_aggro_gf_5d327d21.mp3", "Our turf, our rules! Get'm!", 0, 0, Player)
  38. elseif choice == 4 then
  39. AgroRaceCheck(NPC,Player)
  40. end
  41. end
  42. end
  43. end
  44. function AgroRaceCheck(NPC,Player)
  45. if GetGender(NPC)==1 then --Male
  46. if GetClass(Player) <=0 and GetClass(Player) >=10 then
  47. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_maofighter_gm_21745cca.mp3", "This one looks like they can take a hit. I've got this!","", 0, 0)
  48. elseif GetClass(Player) <=11 and GetClass(Player) >=20 then
  49. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_maopriest_gm_6f5de.mp3", "We don't have time for your priestly nonsense!", "", 0, 0)
  50. elseif GetClass(Player) <=21 and GetClass(Player) >=30 then
  51. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_maomage_gm_8c02387d.mp3", "Get'm! Don't let them cast anything!", 0, 0)
  52. elseif GetClass(Player) <=31 and GetClass(Player) then
  53. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_maoscout_gm_620be740", "Hit them quick! Before this sneaky one gets away!", 0, 0)
  54. end
  55. else--Female
  56. if GetClass(Player) <=0 and GetClass(Player) >=10 then
  57. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_maofighter_gf_21745cca.mp3", "You lookin' for a fight, fighter? Come get some!","", 0, 0)
  58. elseif GetClass(Player) <=11 and GetClass(Player) >=20 then
  59. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_maopriest_gf_6f5de.mp3", "I'll cut you down before you can heal anyone, preist!", "", 0, 0)
  60. elseif GetClass(Player) <=21 and GetClass(Player) >=30 then
  61. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_maomage_gf_8c02387d.mp3", "I'll shank you before you cast amy more spells, mage!", 0, 0)
  62. elseif GetClass(Player) <=31 and GetClass(Player) then
  63. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_maoscout_gf_620be740", "What's this? Scoutting our turf? Time to die!", 0, 0)
  64. end
  65. end
  66. end
  67. function death(NPC,Player)
  68. if GetTempVariable(NPC, "CalloutTimer")== "false" and IsPlayer(Player) then
  69. if GetGender(NPC)==1 then --Male
  70. local choice = MakeRandomInt(1,2)
  71. if choice == 1 then
  72. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_death_gm_41191517", "What a waste, that was one good Guttersnipe...","", 0, 0, Player)
  73. elseif choice == 2 then
  74. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_death_gm_fc5cfc9f.mp3", "I joined... for protection...from this...", "", 0, 0, Player)
  75. end
  76. else--Female
  77. local choice = MakeRandomInt(1,2)
  78. if choice == 1 then
  79. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_death_gf_41191517.mp3", "What a waste, that was one good Guttersnipe...","", 0, 0, Player)
  80. elseif choice == 2 then
  81. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_death_gf_fc5cfc9f.mp3", "I thought... there would be backup...", "", 0, 0, Player)
  82. end
  83. end
  84. end
  85. end
  86. function FifteenCall(NPC,Player)
  87. if IsAlive(NPC) and IsInCombat(NPC)==true and IsPlayer(Player)and GetTempVariable(NPC, "CalloutTimer")== "false" then
  88. if math.random(0,100)<=33 then
  89. SetTempVariable(NPC, "CalloutTimer", "true")
  90. AddTimer(NPC,10000,"ResetTimer")
  91. if GetGender(NPC)==1 then --Male
  92. local choice = MakeRandomInt(1,11)
  93. if choice == 1 then
  94. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_battle_cm_13cb812d.mp3", "You could never measure up to a Guttersnipe!","", 0, 0, Player)
  95. elseif choice == 2 then
  96. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_battle_cm_9b9cbaba.mp3", "Stab'm! Stab! Stab! Stab!!", "", 0, 0, Player)
  97. elseif choice == 3 then
  98. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_battle_cm_f0570dba.mp3", "Rough them up! I think I hear a coin purse!", 0, 0, Player)
  99. elseif choice == 4 then
  100. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_battle_gm_1a61cf6b.mp3", "Oh, you think you're so tough?!", 0, 0, Player)
  101. elseif choice == 5 then
  102. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_battle_gm_52579c2b", "Drop dead already! I've got a wager on your head!", 0, 0, Player)
  103. elseif choice == 6 then
  104. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_battle_gm_9e75bb4f.mp3", "You ever wonder what it feels like to die? Well, get ready for it!", 0, 0, Player)
  105. elseif choice == 7 then
  106. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_battle_gm_b9dbfd6c.mp3", "Our gang will cut you down!", 0, 0, Player)
  107. elseif choice == 8 then
  108. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_battle_gm_fdde8d5a.mp3", "Guttersnipes forever!!", 0, 0, Player)
  109. elseif choice == 9 then
  110. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_battle_mm_1efc08d3.mp3", "Was that really a good idea?", 0, 0, Player)
  111. elseif choice == 10 then
  112. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_battle_mm_e5317b7b.mp3", "Wow, you're a lot uglier up close!", 0, 0, Player)
  113. elseif choice == 11 then
  114. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_battle_mm_e9302d38.mp3", "Now, why did you do that? I guess you have a death wish!", 0, 0, Player)
  115. end
  116. else--Female
  117. local choice = MakeRandomInt(1,11)
  118. if choice == 1 then
  119. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_battle_cf_13cb812d.mp3", "You could never measure up to a Guttersnipe!","", 0, 0, Player)
  120. elseif choice == 2 then
  121. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_battle_cf_9b9cbaba.mp3", "The Sprawl belongs to us!", "", 0, 0, Player)
  122. elseif choice == 3 then
  123. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_battle_cf_f0570dba.mp3", "Rough them up! I think I hear a coin purse!", 0, 0, Player)
  124. elseif choice == 4 then
  125. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_battle_gf_1a61cf6b.mp3", "Oh, you think you're so tough?!", 0, 0, Player)
  126. elseif choice == 5 then
  127. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_battle_gf_52579c2b", "Drop dead already! I've got a wager on your head!", 0, 0, Player)
  128. elseif choice == 6 then
  129. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_battle_gf_9e75bb4f.mp3", "Our gang has no place for the likes of you!", 0, 0, Player)
  130. elseif choice == 7 then
  131. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_battle_gf_b9dbfd6c.mp3", "Your ear would look great on a necklace. Give it here!", 0, 0, Player)
  132. elseif choice == 8 then
  133. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_battle_gf_fdde8d5a.mp3", "Guttersnipes forever!!", 0, 0, Player)
  134. elseif choice == 9 then
  135. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_battle_mf_1efc08d3.mp3", "Was that really a good idea?", 0, 0, Player)
  136. elseif choice == 10 then
  137. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_battle_mf_e5317b7b.mp3", "Wow, you're a lot uglier up close!", 0, 0, Player)
  138. elseif choice == 11 then
  139. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_battle_mf_e9302d38.mp3", "Now, why did you do that? I guess you have a death wish!", 0, 0, Player)
  140. end
  141. end
  142. end
  143. if IsAlive(NPC)then
  144. AddTimer(NPC,math.random(15000,30000),"FifteenCall",1,Player)
  145. end
  146. end
  147. end
  148. function victory(NPC,Player)
  149. if IsPlayer(Player) then
  150. if GetGender(NPC)==1 then --Male
  151. local choice = MakeRandomInt(1,3)
  152. if choice == 1 then
  153. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_victory_gm_348b23fd", "I call dibs on their stuff!","", 0, 0, Player)
  154. elseif choice == 2 then
  155. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_victory_gm_85bbc93f.mp3", "Shouldn't have messed with us! Now you're dead!", "", 0, 0, Player)
  156. elseif choice == 3 then
  157. PlayFlavor(NPC, "voiceover/english/optional5/human_guttersnipe/ft/human/human_guttersnipe_1_victory_gm_97725909", "Chalk up another win for the Guttersnipes!", "", 0, 0, Player)
  158. end
  159. else--Female
  160. local choice = MakeRandomInt(1,3)
  161. if choice == 1 then
  162. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_victory_gf_348b23fd", "I call dibs on their stuff!","", 0, 0, Player)
  163. elseif choice == 2 then
  164. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_victory_gf_85bbc93f.mp3", "Shouldn't have messed with us! Now you're dead!", "", 0, 0, Player)
  165. elseif choice == 3 then
  166. PlayFlavor(NPC, "voiceover/english/optional3/human_guttersnipe/ft/human/human_guttersnipe_1_victory_gf_97725909", "Chalk up another win for the Guttersnipes!", "", 0, 0, Player)
  167. end
  168. end
  169. end
  170. end