9
3

WitherstrawScarecrows.lua 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. --[[
  2. Script Name : SpawnScripts/Generic/MonsterCallouts/WitherstrawScarecrows.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.05.27 12:05:30
  5. Script Purpose :
  6. :
  7. --]]
  8. local HealthCallout = false
  9. local MAGE = 21
  10. local SORCERER = 22
  11. local WIZARD = 23
  12. local WARLOCK = 24
  13. local ENCHANTER = 25
  14. local ILLUSIONIST = 26
  15. local COERCER = 27
  16. local SUMMONER = 28
  17. local CONJUROR = 29
  18. local NECROMANCER = 30
  19. function Garbled(NPC,Spawn)
  20. local choice = MakeRandomInt(1,4)
  21. if choice == 1 then
  22. PlayFlavor(NPC, "voiceover/english/scarecrow_witherstraw/ft/scarecrow/scarecrow_witherstraw_1_garbled_71321a1c.mp3", "Wallaassss kitss zooomasss shif", "", 1143169283, 2445607944, Spawn, 21)
  23. elseif choice == 2 then
  24. PlayFlavor(NPC, "voiceover/english/scarecrow_witherstraw/ft/scarecrow/scarecrow_witherstraw_1_garbled_bb9b62e6.mp3", "Harrssst sssstookesss heessst.", "", 1671834508, 3012005345, Spawn, 21)
  25. elseif choice == 3 then
  26. PlayFlavor(NPC, "voiceover/english/scarecrow_witherstraw/ft/scarecrow/scarecrow_witherstraw_1_garbled_cbb3485b.mp3", "Shisss mellissart perraassalk!", "", 347914344, 1665747235, Spawn, 21)
  27. elseif choice == 4 then
  28. PlayFlavor(NPC, "voiceover/english/scarecrow_witherstraw/ft/scarecrow/scarecrow_witherstraw_1_garbled_bdd71a65.mp3", "Sisssssharrrr oookmessss jetssss", "", 1391840565, 1188489177, Spawn, 21)
  29. end
  30. end
  31. function aggro(NPC,Spawn)
  32. if IsPlayer(Spawn)==true then
  33. if not HasLanguage(Spawn,21 )and IsPlayer(Spawn)==true then
  34. Garbled(NPC,Spawn)
  35. else
  36. local choice = MakeRandomInt(1,2)
  37. if choice == 1 then
  38. PlayFlavor(NPC, "voiceover/english/optional5/halfling_corrupted/ft/halfling/halfling_corrupted_2_battle_gm_b1fd0396.mp3", "We were once like you.", "", 3752287071, 136628031, Spawn, 21)
  39. elseif choice == 2 then
  40. PlayFlavor(NPC, "voiceover/english/optional5/halfling_corrupted/ft/halfling/halfling_corrupted_2_aggro_gm_3c9b103f.mp3", "Destroy the invaders!", "", 1579115349, 1024832768, Spawn, 21)
  41. end
  42. end
  43. end
  44. end
  45. function death(NPC,Spawn)
  46. if math.random(0,100)<=75 then
  47. if IsPlayer(Spawn)==true then
  48. if not HasLanguage(Spawn,21 ) then
  49. Garbled(NPC,Spawn)
  50. else
  51. local choice = MakeRandomInt(1,2)
  52. if choice == 1 then
  53. PlayFlavor(NPC, "voiceover/english/scarecrow_witherstraw/ft/scarecrow/scarecrow_witherstraw_1_death_3e53153d.mp3", "Clean that up right now!", "", 2052052230, 3977423066, Spawn, 21)
  54. elseif choice == 2 then
  55. PlayFlavor(NPC, "voiceover/english/scarecrow_witherstraw/ft/scarecrow/scarecrow_witherstraw_1_death_4e81dcfa.mp3", "Now who will keep the birds away?", "", 374305807, 2668085630, Spawn, 21)
  56. end
  57. end
  58. end
  59. end
  60. end
  61. --[[function healthchanged(NPC, Spawn)
  62. if IsPlayer(Spawn)==true then
  63. if HealthCallout == false then
  64. if GetHP(NPC) < GetMaxHP(NPC) * 0.55 then
  65. if GetHP(NPC) > GetMaxHP(NPC) * 0.45 then
  66. HealthCallout = true
  67. AddTimer(NPC,10000,"HealthReset")
  68. if not HasLanguage(Spawn,21 )and IsPlayer(Spawn)==true then
  69. Garbled(NPC,Spawn)
  70. else
  71. local choice = MakeRandomInt(1,4)
  72. if choice == 1 then
  73. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_3_halfhealth_d093de2d.mp3", "Yip yip yip!", "", 166674284, 1395857397, Spawn, 18)
  74. elseif choice == 2 then
  75. PlayFlavor(NPC, "voiceover/english/gnoll_darkpaw/ft/gnoll/gnoll_darkpaw_3_halfhealth_50cceadf.mp3", "Uhhhh... I think I go now!", "", 4127070268, 185913289, Spawn, 18)
  76. elseif choice == 3 then
  77. PlayFlavor(NPC, "voiceover/english/gnoll_darkpaw/ft/gnoll/gnoll_darkpaw_1_halfhealth_aff2b15d.mp3", "Now I'm really angry!", "", 1156319723, 267275011, Spawn, 18)
  78. elseif choice == 4 then
  79. if GetClass(Spawn)== WIZARD or GetClass(Spawn)== WARLOCK or GetClass(Spawn)== ILLUSIONIST or GetClass(Spawn)== COERCER or GetClass(Spawn)== NECROMANCER or GetClass(Spawn)== CONJUROR or GetClass(Spawn)== MAGE or GetClass(Spawn)== ENCHANTER or GetClass(Spawn)== SUMMONER or GetClass(Spawn)== SORCERER then
  80. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_3_maomage_8fb8565d.mp3", "Yip! Watch out for their magic!", "", 1674162517, 4259121980, Spawn, 18)
  81. else
  82. PlayFlavor(NPC, "voiceover/english/optional5/gnoll_base_2/ft/gnoll/gnoll_base_2_1_battle_m_5c7913bb.mp3", "Bah! You smell horrible!", "", 687847219, 3365844906, Spawn, 18)
  83. end
  84. end
  85. end
  86. end
  87. end
  88. end
  89. end
  90. end]]--
  91. function HealthReset (NPC)
  92. HealthCallout = false
  93. end
  94. function victory(NPC,Spawn)
  95. if IsPlayer(Spawn)==true then
  96. if HasLanguage(Spawn,21 )and IsPlayer(Spawn)==true then
  97. local choice = MakeRandomInt(1,3)
  98. if choice == 1 then
  99. PlayFlavor(NPC, "voiceover/english/optional5/halfling_corrupted/ft/halfling/halfling_corrupted_2_aggro_gm_1580b351.mp3", "I must obey.", "", 1087573420, 743350754, Spawn, 21)
  100. elseif choice == 2 then
  101. PlayFlavor(NPC, "voiceover/english/halfling_crazed/ft/halfling/halfling_crazed_1_aggro_gm_3926b546.mp3", "There is fresh blood among us!", "", 160123219, 680011315, Spawn, 21)
  102. elseif choice == 3 then
  103. PlayFlavor(NPC, "voiceover/english/optional3/succubus_reaper_horde/ft/succubus/succubus_reaper_horde_1_death_1f44697b.mp3", "You will suffer the ultimate in torture for that!", "", 2010056742, 2525379709, Spawn, 21)
  104. end
  105. end
  106. end
  107. end