Pipefitters.lua 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. --[[
  2. Script Name : SpawnScripts/Generic/MonsterCallouts/Pipefitters.lua
  3. Script Author : dorbin
  4. Script Date : 2024.01.06 01:01:11
  5. Script Purpose : Gnome Pipefitters in Thieves' Way. Tone is set in the spawn's scripts.
  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 Garbled(NPC,Player)
  14. if Tone == 3 then
  15. local choice = MakeRandomInt(1,3)
  16. if choice == 1 then
  17. PlayFlavor(NPC, "voiceover/english/optional5/gnome_pipefitters/ft/gnome/gnome_pipefitters_3_garbled_gm_cbfe503a.mp3", "Krizz barawvitt zizzer zazz", "", 1311390031, 3718535895, Spawn, 6)
  18. elseif choice == 2 then
  19. PlayFlavor(NPC, "voiceover/english/optional5/gnome_pipefitters/ft/gnome/gnome_pipefitters_3_garbled_gm_5accc312.mp3", "Kkbttk dwwyn zazu vitth", "", 3563887583, 849189009, Spawn, 6)
  20. elseif choice == 3 then
  21. PlayFlavor(NPC, "voiceover/english/optional5/gnome_pipefitters/ft/gnome/gnome_pipefitters_3_garbled_gm_d0507054.mp3", "Qwizt viitt als zazra", "", 125702831, 2368179887, Spawn,6)
  22. end
  23. elseif Tone == 2 then
  24. local choice = MakeRandomInt(1,2)
  25. if choice == 1 then
  26. PlayFlavor(NPC, "voiceover/english/optional3/gnome_pipefitters/ft/gnome/gnome_pipefitters_2_garbled_gm_cbfe503a.mp3", "Krizz barawvitt zizzer zazz", "", 4099688689, 1852050375, Spawn, 6)
  27. elseif choice == 2 then
  28. PlayFlavor(NPC, "voiceover/english/optional5/gnome_pipefitters/ft/gnome/gnome_pipefitters_3_garbled_gm_5accc312.mp3", "Kkbttk dwwyn zazu vitth", "", 3563887583, 849189009, Spawn, 6)
  29. end
  30. else
  31. local choice = MakeRandomInt(1,4)
  32. if choice == 1 then
  33. PlayFlavor(NPC, "voiceover/english/gnome_pipefitters/ft/gnome/gnome_pipefitters_1_garbled_gm_cbfe503a.mp3", "Krizz barawvitt zizzer zazz", "", 2689241953, 2133974294, Spawn, 6)
  34. elseif choice == 2 then
  35. PlayFlavor(NPC, "voiceover/english/gnome_pipefitters/ft/gnome/gnome_pipefitters_1_garbled_gm_9833761f.mp3", "Zibbik niflik rul brun Dars atatien delvazra", "", 3533046903, 1779396904, Spawn, 6)
  36. elseif choice == 3 then
  37. PlayFlavor(NPC, "voiceover/english/gnome_pipefitters/ft/gnome/gnome_pipefitters_1_garbled_gm_5accc312.mp3", "Kkbttk dwwyn zazu vitth", "", 1894926357, 2259928649, Spawn, 6)
  38. elseif choice == 4 then
  39. PlayFlavor(NPC, "voiceover/english/gnome_pipefitters/ft/gnome/gnome_pipefitters_1_garbled_gm_d0507054.mp3", "Qwizt viitt als zazra", "", 4004332255, 385334874, Spawn,6)
  40. end
  41. end
  42. end
  43. function aggro(NPC,Player)
  44. Tone = MakeRandomInt(1,3)
  45. SetTempVariable(NPC, "CalloutTimer", "false")
  46. if GetTempVariable(NPC, "CalloutTimer")== "false" and math.random(0,100) <=76 and IsPlayer(Player) then
  47. SetTempVariable(NPC, "CalloutTimer", "true")
  48. AddTimer(NPC,10000,"ResetTimer")
  49. if not HasLanguage(Player,6 )then
  50. Garbled(NPC,Player)
  51. else
  52. if Tone == 3 then
  53. local choice = MakeRandomInt(1,3)
  54. if choice == 1 then
  55. PlayFlavor(NPC, "voiceover/english/optional5/gnome_pipefitters/ft/gnome/gnome_pipefitters_3_aggro_gm_577aa112.mp3", "Get the guards, quickly!", "", 2073183915, 4258412657, Spawn, 6)
  56. elseif choice == 2 then
  57. PlayFlavor(NPC, "voiceover/english/optional5/gnome_pipefitters/ft/gnome/gnome_pipefitters_3_aggro_gm_89c9f643.mp3", "Hey! You're not in the union.", "", 499383697, 2098729593, Spawn, 6)
  58. elseif choice == 3 then
  59. PlayFlavor(NPC, "voiceover/english/optional5/gnome_pipefitters/ft/gnome/gnome_pipefitters_3_aggro_gm_fca839e0.mp3", "Summon all the members. I'll deal with the intruders.", "", 2317475307, 1370622772, Spawn, 6)
  60. end
  61. elseif Tone == 2 then
  62. local choice = MakeRandomInt(1,3)
  63. if choice == 1 then
  64. PlayFlavor(NPC, "voiceover/english/optional3/gnome_pipefitters/ft/gnome/gnome_pipefitters_2_aggro_gm_fca839e0.mp3", "Summon all the members. I'll deal with the intruders.", "", 1342527378, 3527012719, Spawn, 6)
  65. elseif choice == 2 then
  66. PlayFlavor(NPC, "voiceover/english/optional3/gnome_pipefitters/ft/gnome/gnome_pipefitters_2_aggro_gm_89c9f643.mp3", "Hey! You're not in the union.", "", 4277677999, 1273643951, Spawn, 6)
  67. elseif choice == 3 then
  68. PlayFlavor(NPC, "voiceover/english/optional5/gnome_pipefitters/ft/gnome/gnome_pipefitters_3_aggro_gm_577aa112.mp3", "Get the guards, quickly!", "", 2073183915, 4258412657, Spawn, 6)
  69. end
  70. else
  71. local choice = MakeRandomInt(1,3)
  72. if choice == 1 then
  73. PlayFlavor(NPC, "voiceover/english/gnome_pipefitters/ft/gnome/gnome_pipefitters_1_aggro_gm_89c9f643.mp3", "Hey! You're not in the union.", "", 174808905, 4153490078, Spawn, 6)
  74. elseif choice == 2 then
  75. PlayFlavor(NPC, "voiceover/english/gnome_pipefitters/ft/gnome/gnome_pipefitters_1_aggro_gm_577aa112.mp3", "Get the guards, quickly!", "", 1534621506, 2574895839, Spawn, 6)
  76. elseif choice == 3 then
  77. PlayFlavor(NPC, "voiceover/english/gnome_pipefitters/ft/gnome/gnome_pipefitters_1_aggro_gm_fca839e0.mp3", "Summon all the members. I'll deal with the intruders.", "", 2175044611, 705364449, Spawn, 6)
  78. end
  79. end
  80. end
  81. end
  82. end
  83. function death(NPC,Player)
  84. Tone = MakeRandomInt(1,3)
  85. if GetTempVariable(NPC, "CalloutTimer")== "false" and IsPlayer(Player) then
  86. if math.random(0,100)<=55 then
  87. if not HasLanguage(Player,6)then
  88. Garbled(NPC,Player)
  89. else
  90. if Tone == 3 then
  91. local choice = MakeRandomInt(1,2)
  92. if choice == 1 then
  93. PlayFlavor(NPC, "voiceover/english/optional5/gnome_pipefitters/ft/gnome/gnome_pipefitters_3_death_gm_107df143.mp3", "No fair! They have better weapons.", "", 913939495, 772449547, Spawn, 6)
  94. elseif choice == 2 then
  95. PlayFlavor(NPC, "voiceover/english/optional3/gnome_pipefitters/ft/gnome/gnome_pipefitters_2_death_gm_6837d1aa.mp3", "Run away before we all die!", "", 2002248430, 1289200629, Spawn, 6)
  96. end
  97. elseif Tone == 2 then
  98. local choice = MakeRandomInt(1,2)
  99. if choice == 1 then
  100. PlayFlavor(NPC, "voiceover/english/optional3/gnome_pipefitters/ft/gnome/gnome_pipefitters_2_death_gm_107df143.mp3", "No fair! They have better weapons.", "", 86520834, 1572132731, Spawn, 6)
  101. elseif choice == 2 then
  102. PlayFlavor(NPC, "voiceover/english/optional3/gnome_pipefitters/ft/gnome/gnome_pipefitters_2_death_gm_6837d1aa.mp3", "Run away before we all die!", "", 2002248430, 1289200629, Spawn, 6)
  103. end
  104. else
  105. local choice = MakeRandomInt(1,2)
  106. if choice == 1 then
  107. PlayFlavor(NPC, "voiceover/english/gnome_pipefitters/ft/gnome/gnome_pipefitters_1_death_gm_107df143.mp3", "No fair! They have better weapons.", "", 1159166676, 1657447898, Spawn, 6)
  108. elseif choice == 2 then
  109. PlayFlavor(NPC, "voiceover/english/gnome_pipefitters/ft/gnome/gnome_pipefitters_1_death_gm_6837d1aa.mp3", "Run away before we all die!", "", 1128285167, 1552149555, Spawn, 6)
  110. end
  111. end
  112. end
  113. end
  114. end
  115. end
  116. function victory(NPC,Player)
  117. if IsPlayer(Player)and not HasLanguage(Player,6 )then
  118. Garbled(NPC,Player)
  119. elseif IsPlayer(Player) and HasLanguage(Player,6 )then
  120. local choice = MakeRandomInt(1,3)
  121. if choice == 1 then
  122. PlayFlavor(NPC, "voiceover/english/optional5/gnome_pipefitters/ft/gnome/gnome_pipefitters_3_Victory_gm_cbfe503a.mp3", "Strike that as another win for the Union!", "", 0, 0, Spawn, 6)
  123. elseif choice == 2 then
  124. PlayFlavor(NPC, "voiceover/english/optional5/gnome_pipefitters/ft/gnome/gnome_pipefitters_3_Victory_gm_cbfe503a.mp3", "Haha! That will teach you to mess with my work!", "", 0, 0, Spawn, 6)
  125. elseif choice == 3 then
  126. PlayFlavor(NPC, "voiceover/english/optional5/gnome_pipefitters/ft/gnome/gnome_pipefitters_3_Victory_gm_cbfe503a.mp3", "Good... One step closer to my lunch break.", "", 0, 0, Spawn, 6)
  127. end
  128. end
  129. end