9
3

BonduhrLonetusk.lua 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. --[[
  2. Script Name : SpawnScripts/TheRuins_Classic/BonduhrLonetusk.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.07.05 08:07:35
  5. Script Purpose :
  6. :
  7. --]]
  8. -- VO COLLECTION --
  9. function ResetTimer(NPC) -- 7 SECOND PAUSE BETWEEN VOs
  10. SetTempVariable(NPC, "CalloutTimer", "false")
  11. end
  12. function Garbled(NPC,Player)
  13. local choice = MakeRandomInt(1,4)
  14. if choice == 1 then
  15. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_garbled_d552223c.mp3", "GEKKKKnoh! Ezzrrt sha kemm.", "", 1083788244, 2181690295, Player, 17)
  16. elseif choice == 2 then
  17. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_garbled_95912cdc.mp3", "Harkt brecht ogglot kressht", "", 1749294695, 2575234394, Player, 17)
  18. elseif choice == 3 then
  19. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_garbled_73b2c225.mp3", "Gretz kagh lotgg vep nabrecht", "", 3140410719, 1155418716, Player, 17)
  20. elseif choice == 4 then
  21. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_garbled_cd184493.mp3", "Purzt gort NARGAAAAA!!! Durzog carb!", "", 2698130766, 658534720, Player, 17)
  22. end
  23. end
  24. function aggro(NPC,Player)
  25. AddTimer(NPC,MakeRandomInt(15000,30000),"FifteenCall",1,Player)
  26. SetTempVariable(NPC, "CalloutTimer", "false")
  27. if GetTempVariable(NPC, "CalloutTimer")== "false" and IsPlayer(Player) then
  28. SetTempVariable(NPC, "CalloutTimer", "true")
  29. AddTimer(NPC,10000,"ResetTimer")
  30. if not HasLanguage(Player,17 )then
  31. Garbled(NPC,Player)
  32. else
  33. local choice = MakeRandomInt(1,3)
  34. if choice == 1 then
  35. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_aggro_2d2ccd12.mp3", "Incoming! Summon the warriors.", "", 3730616476, 4212115469, Player, 17)
  36. elseif choice == 2 then
  37. 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)
  38. elseif choice == 3 then
  39. if GetClass(Player) <=1 and GetClass(Player) >=10 then
  40. 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)
  41. else
  42. 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)
  43. end
  44. end
  45. end
  46. end
  47. end
  48. function death(NPC,Player)
  49. if GetTempVariable(NPC, "CalloutTimer")== "false" and IsPlayer(Player) then
  50. if math.random(0,100)<=35 then
  51. if not HasLanguage(Player,17 )then
  52. Garbled(NPC,Player)
  53. else
  54. local choice = MakeRandomInt(1,3)
  55. if choice == 1 then
  56. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_death_f7b415bf.mp3", "Run for your life!", "", 1229175170, 4046634541, Player, 17)
  57. elseif choice == 2 then
  58. PlayFlavor(NPC, "voiceover/english/optional3/orc_brokentusk/ft/orc/orc_brokentusk_1_death_145827a4.mp3", "Help! I can't feel my arm.", "", 2498804724, 1519811140, Player, 17)
  59. elseif choice == 3 then
  60. PlayFlavor(NPC, "voiceover/english/optional3/orc_brokentusk/ft/orc/orc_brokentusk_1_death_77dcb788.mp3", "Uh ohhhhhhhhh!", "", 422612512, 3900776578, Player, 17)
  61. end
  62. end
  63. end
  64. end
  65. end
  66. function FifteenCall(NPC,Player)
  67. if IsAlive(NPC) and IsInCombat(NPC)==true and IsPlayer(Player)and GetTempVariable(NPC, "CalloutTimer")== "false" then
  68. if math.random(0,100)<=33 then
  69. SetTempVariable(NPC, "CalloutTimer", "true")
  70. AddTimer(NPC,10000,"ResetTimer")
  71. if not HasLanguage(Player,17 )then
  72. Garbled(NPC,Player)
  73. else
  74. local choice = MakeRandomInt(1,5)
  75. if choice == 1 then
  76. if GetClass(NPC) <=11 and GetClass(NPC)>=30 then
  77. 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)
  78. else
  79. 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)
  80. end
  81. elseif choice == 2 then
  82. if GetClass(NPC) <=11 and GetClass(NPC)>=30 then
  83. 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)
  84. else
  85. 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)
  86. end
  87. elseif choice == 3 then
  88. if GetClass(NPC) <=11 and GetClass(NPC)>=30 then
  89. 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)
  90. else
  91. 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)
  92. end
  93. elseif choice == 4 then
  94. 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)
  95. elseif choice == 5 then
  96. 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)
  97. end
  98. end
  99. end
  100. if IsAlive(NPC)then
  101. AddTimer(NPC,MakeRandomInt(15000,30000),"FifteenCall",1,Player)
  102. end
  103. end
  104. end
  105. function victory(NPC,Player)
  106. if IsPlayer(Player)and not HasLanguage(Player,17 )then
  107. Garbled(NPC,Player)
  108. elseif IsPlayer(Player) and HasLanguage(Player,17 )then
  109. local choice = MakeRandomInt(1,3)
  110. if choice == 1 then
  111. PlayFlavor(NPC, "voiceover/english/optional3/orc_lonetusk/ft/orc/orc_lonetusk_2_victory_4a834d11.mp3", "I killed one?", "", 494264984, 880425961, Player, 17)
  112. elseif choice == 2 then
  113. 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)
  114. elseif choice == 3 then
  115. 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)
  116. end
  117. end
  118. end