LoneTusk2.lua 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. --[[
  2. Script Name : SpawnScripts/Generic/MonsterCallouts/LoneTusk2.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.07.05 06:07:27
  5. Script Purpose :
  6. :
  7. --]]
  8. function ResetTimer(NPC) -- 7 SECOND PAUSE BETWEEN VOs
  9. SetTempVariable(NPC, "CalloutTimer", "false")
  10. end
  11. function Garbled(NPC,Player)
  12. local choice = MakeRandomInt(1,4)
  13. if choice == 1 then
  14. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_garbled_d552223c.mp3", "GEKKKKnoh! Ezzrrt sha kemm.", "", 1083788244, 2181690295, Player, 17)
  15. elseif choice == 2 then
  16. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_garbled_95912cdc.mp3", "Harkt brecht ogglot kressht", "", 1749294695, 2575234394, Player, 17)
  17. elseif choice == 3 then
  18. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_garbled_73b2c225.mp3", "Gretz kagh lotgg vep nabrecht", "", 3140410719, 1155418716, Player, 17)
  19. elseif choice == 4 then
  20. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_garbled_cd184493.mp3", "Purzt gort NARGAAAAA!!! Durzog carb!", "", 2698130766, 658534720, Player, 17)
  21. end
  22. end
  23. function aggro(NPC,Player)
  24. AddTimer(NPC,MakeRandomInt(15000,30000),"FifteenCall",1,Player)
  25. SetTempVariable(NPC, "CalloutTimer", "false")
  26. if GetTempVariable(NPC, "CalloutTimer")== "false" and MakeRandomInt(0,100) <=33 and IsPlayer(Player) then
  27. SetTempVariable(NPC, "CalloutTimer", "true")
  28. AddTimer(NPC,10000,"ResetTimer")
  29. if not HasLanguage(Player,17 )then
  30. Garbled(NPC,Player)
  31. else
  32. local choice = MakeRandomInt(1,3)
  33. if choice == 1 then
  34. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_aggro_2d2ccd12.mp3", "Incoming! Summon the warriors.", "", 3730616476, 4212115469, Player, 17)
  35. elseif choice == 2 then
  36. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_aggro_478609c4.mp3", "This must be my lucky day.", "", 1552928496, 830976152, Player, 17)
  37. elseif choice == 3 then
  38. if GetClass(Player) <=1 and GetClass(Player) >=10 then
  39. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_maofighter_42d206ef.mp3", "Kill the ugly one! He has the most armor!", "", 1385896447, 1033709680, Player, 17)
  40. else
  41. PlayFlavor(NPC, "voiceover/english/optional3/orc_brokentusk/ft/orc/orc_brokentusk_1_aggro_7afa7bb1.mp3", "Perfect! This one has some nice things.", "", 3642130783, 1736257146, Player, 17)
  42. end
  43. end
  44. end
  45. end
  46. end
  47. function death(NPC,Player)
  48. if GetTempVariable(NPC, "CalloutTimer")== "false" and IsPlayer(Player) then
  49. if math.random(0,100)<=50 then
  50. if not HasLanguage(Player,17 )then
  51. Garbled(NPC,Player)
  52. else
  53. local choice = MakeRandomInt(1,3)
  54. if choice == 1 then
  55. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_death_f7b415bf.mp3", "Run for your life!", "", 1229175170, 4046634541, Player, 17)
  56. elseif choice == 2 then
  57. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_death_937a01b8.mp3", "I can't see! Where are they?", "", 1920179873, 1406566187, Player, 17)
  58. elseif choice == 3 then
  59. PlayFlavor(NPC, "voiceover/english/optional3/orc_brokentusk/ft/orc/orc_brokentusk_1_death_77dcb788.mp3", "Uh ohhhhhhhhh!", "", 422612512, 3900776578, Player, 17)
  60. end
  61. end
  62. end
  63. end
  64. end
  65. function FifteenCall(NPC,Player)
  66. if IsAlive(NPC) and IsInCombat(NPC)==true and IsPlayer(Player)and GetTempVariable(NPC, "CalloutTimer")== "false" then
  67. if math.random(0,100)<=33 then
  68. SetTempVariable(NPC, "CalloutTimer", "true")
  69. AddTimer(NPC,10000,"ResetTimer")
  70. if not HasLanguage(Player,17 )then
  71. Garbled(NPC,Player)
  72. else
  73. local choice = MakeRandomInt(1,5)
  74. if choice == 1 then
  75. if GetClass(NPC) <=11 and GetClass(NPC)>=30 then
  76. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_battle_c_9bab0561.mp3", "Wait, where is my book?", "", 3815705437, 2144969522, Player, 17)
  77. else
  78. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_battle_m_cee9556a.mp3", "Okay, try using your weapon this time!", "", 2617802671, 3658192888, Player, 17)
  79. end
  80. elseif choice == 2 then
  81. if GetClass(NPC) <=11 and GetClass(NPC)>=30 then
  82. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_battle_c_dc33f5e9.mp3", "Does anybody have an extra fire beetle eye? ...Never mind.", "", 88571247, 1912603138, Player, 17)
  83. else
  84. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_battle_m_cee9556a.mp3", "Okay, try using your weapon this time!", "", 2617802671, 3658192888, Player, 17)
  85. end
  86. elseif choice == 3 then
  87. if GetClass(NPC) <=11 and GetClass(NPC)>=30 then
  88. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_battle_c_f79b266b.mp3", "Help! I only know one spell!", "", 2648192261, 1154758802, Player, 17)
  89. else
  90. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_battle_c234f7ec.mp3", "We don't need reinforcements. Attack!", "", 3931748607, 200204217, Player, 17)
  91. end
  92. elseif choice == 4 then
  93. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_battle_22527607.mp3", "Get em! Get em! Get em!", "", 2020932501, 2692113351, Player, 17)
  94. elseif choice == 5 then
  95. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_battle_27011747.mp3", "Who cares if they're stronger, we're orcs!", "", 769549584, 170271605, Player, 17)
  96. end
  97. end
  98. end
  99. if IsAlive(NPC)then
  100. AddTimer(NPC,MakeRandomInt(15000,30000),"FifteenCall",1,Player)
  101. end
  102. end
  103. end
  104. function victory(NPC,Player)
  105. if IsPlayer(Player)and not HasLanguage(Player,17 )then
  106. Garbled(NPC,Player)
  107. elseif IsPlayer(Player) and HasLanguage(Player,17 )then
  108. local choice = MakeRandomInt(1,3)
  109. if choice == 1 then
  110. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_victory_4a834d11.mp3", "I killed one?", "", 494264984, 880425961, Player, 17)
  111. elseif choice == 2 then
  112. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_victory_5ec9f9e2.mp3", "Keep fighting while I get these boots!", "", 1910539619, 2233613105, Player, 17)
  113. elseif choice == 3 then
  114. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_victory_82b00e31.mp3", "I must have scared them to Death.", "", 4172718711, 2353147238, Player, 17)
  115. end
  116. end
  117. end