9
3

DarkpawGnoll1.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. --[[
  2. Script Name : SpawnScripts/Generic/MonsterCallouts/DarkpawGnoll1.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.13 05:07:50
  5. Script Purpose : Antonica's Darkpaw Gnoll Callouts
  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,6)
  21. if choice == 1 then
  22. PlayFlavor(NPC, "voiceover/english/gnoll_darkpaw/ft/gnoll/gnoll_darkpaw_1_garbled_fad67c0f.mp3", "Grrrolven brakth kerrtt", "", 2434003472, 3015799164, Spawn, 18)
  23. elseif choice == 2 then
  24. PlayFlavor(NPC, "voiceover/english/gnoll_darkpaw/ft/gnoll/gnoll_darkpaw_2_garbled_fe1eedd8.mp3", "Rrrrevvvvnarrr jahht ttekkkman", "", 3971608956, 1800082798, Spawn, 18)
  25. elseif choice == 3 then
  26. PlayFlavor(NPC, "voiceover/english/gnoll_darkpaw/ft/gnoll/gnoll_darkpaw_2_garbled_2f8caa7b.mp3", "Krovel grarggt ereverrrn", "", 2220517168, 2504002107, Spawn, 18)
  27. elseif choice == 4 then
  28. PlayFlavor(NPC, "voiceover/english/gnoll_darkpaw/ft/gnoll/gnoll_darkpaw_1_garbled_3eefc118.mp3", "Vologrrren aggart renevenn", "", 1823772746, 1098907850, Spawn, 18)
  29. elseif choice == 5 then
  30. PlayFlavor(NPC, "voiceover/english/gnoll_darkpaw/ft/gnoll/gnoll_darkpaw_2_garbled_fad67c0f.mp3", "Grrrolven brakth kerrtt", "", 3925341333, 2874875469, Spawn, 18)
  31. elseif choice == 6 then
  32. PlayFlavor(NPC, "voiceover/english/gnoll_darkpaw/ft/gnoll/gnoll_darkpaw_2_garbled_3eefc118.mp3", "Vologrrren aggart renevenn", "", 2725741122, 2405344632, Spawn, 18)
  33. end
  34. end
  35. function aggro(NPC,Spawn)
  36. if IsPlayer(Spawn)==true then
  37. if not HasLanguage(Spawn,18 )and IsPlayer(Spawn)==true then
  38. Garbled(NPC,Spawn)
  39. else
  40. local choice = MakeRandomInt(1,11)
  41. if choice == 1 then
  42. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_1_aggro_75cd5d19.mp3", "Not allowed here!", "", 1292107958, 2335134714, Spawn, 18)
  43. elseif choice == 2 then
  44. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_2_aggro_75cd5d19.mp3", "Not allowed here!", "", 1266801616, 137145352, Spawn, 18)
  45. elseif choice == 3 then
  46. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_3_aggro_75cd5d19.mp3", "Not allowed here!", "", 942309136, 3095091783, Spawn, 18)
  47. elseif choice == 4 then
  48. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_1_aggro_d81be55c.mp3", "Bite! Show sharp teeth!", "", 612586564, 102929785, Spawn, 18)
  49. elseif choice == 5 then
  50. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_2_aggro_d81be55c.mp3", "Bite! Show sharp teeth!", "", 3848163428, 3270249405, Spawn, 18)
  51. elseif choice == 6 then
  52. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_3_aggro_d81be55c.mp3", "Bite! Show sharp teeth!", "", 3276849474, 2846177216, Spawn, 18)
  53. elseif choice == 7 then
  54. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_1_aggro_fda03a16.mp3", "Spin, weave, dodge, attack!!!", "", 1347636574, 484324781, Spawn, 18)
  55. elseif choice == 8 then
  56. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_3_aggro_fda03a16.mp3", "Spin, weave, dodge, attack!!!", "", 1516290828, 3143203494, Spawn, 18)
  57. elseif choice == 9 then
  58. 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
  59. PlayFlavor(NPC, "voiceover/english/gnoll_darkpaw/ft/gnoll/gnoll_darkpaw_2_maomage_3dffee38.mp3", "Magic won't hurt a Darkpaw!", "", 369565780, 3222136029, Spawn, 18)
  60. else
  61. PlayFlavor(NPC, "voiceover/english/gnoll_darkpaw/ft/gnoll/gnoll_darkpaw_1_aggro_9465eed8.mp3", "More Qeynos food!", "", 1309513774, 1418294324, Spawn, 18)
  62. end
  63. elseif choice == 10 then
  64. PlayFlavor(NPC, "voiceover/english/gnoll_darkpaw/ft/gnoll/gnoll_darkpaw_1_aggro_9465eed8.mp3", "More Qeynos food!", "", 1309513774, 1418294324, Spawn, 18)
  65. elseif choice == 11 then
  66. PlayFlavor(NPC, "voiceover/english/gnoll_darkpaw/ft/gnoll/gnoll_darkpaw_1_aggro_cc01aeb4.mp3", "Kill it!", "", 2653540378, 4239807689, Spawn, 18)
  67. end
  68. AddTimer(NPC,15000,"FifteenCall")
  69. end
  70. end
  71. end
  72. -- Doesn't Work PlayFlavor(NPC, "voiceover/english/optional5/gnoll_base_2/ft/gnoll/gnoll_base_2_1_aggro_959e4683.mp3", "Intruder!", "", 1672215946, 3521592402, Spawn, 18)
  73. function death(NPC,Spawn)
  74. if math.random(0,100)<=75 then
  75. if IsPlayer(Spawn)==true then
  76. if not HasLanguage(Spawn,18 ) then
  77. Garbled(NPC,Spawn)
  78. else
  79. local choice = MakeRandomInt(1,9)
  80. if choice == 1 then
  81. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_1_death_9c1f07cb.mp3", "Another member of the pack down!", "", 782807197, 154562007, Spawn, 18)
  82. elseif choice == 2 then
  83. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_1_death_138a3058.mp3", "That one never mate!", "", 3110437136, 1206351893, Spawn, 18)
  84. elseif choice == 3 then
  85. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_3_death_138a3058.mp3", "That one will never mate!", "", 216068291, 510666258, Spawn, 18)
  86. elseif choice == 4 then
  87. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_2_death_9c1f07cb.mp3", "Another member of the pack down!", "", 3426629421, 3660282518, Spawn, 18)
  88. elseif choice == 5 then
  89. PlayFlavor(NPC, "voiceover/english/gnoll_darkpaw/ft/gnoll/gnoll_darkpaw_1_death_b58a7d7b.mp3", "Uh oh... That's not good.", "", 3441781699, 2054801549, Spawn, 18)
  90. elseif choice == 6 then
  91. PlayFlavor(NPC, "voiceover/english/gnoll_darkpaw/ft/gnoll/gnoll_darkpaw_2_death_78177b92.mp3", "Go with Fippy, fallen one!", "", 2386865415, 109088147, Spawn, 18)
  92. elseif choice == 7 then
  93. PlayFlavor(NPC, "voiceover/english/gnoll_darkpaw/ft/gnoll/gnoll_darkpaw_1_death_78177b92.mp3", "Go with Fippy, fallen one!", "", 2198032094, 2283287701, Spawn, 18)
  94. elseif choice == 8 then
  95. PlayFlavor(NPC, "voiceover/english/gnoll_darkpaw/ft/gnoll/gnoll_darkpaw_3_death_b58a7d7b.mp3", "Uh oh... That's not good.", "", 1931388401, 3306108998, Spawn, 18)
  96. elseif choice ==9 then
  97. PlayFlavor(NPC, "voiceover/english/gnoll_darkpaw/ft/gnoll/gnoll_darkpaw_2_death_b58a7d7b.mp3", "Uh oh... That's not good.", "", 2757417921, 559371782, Spawn, 18)
  98. end
  99. AddTimer(NPC,15000,"FifteenCall")
  100. end
  101. end
  102. end
  103. end
  104. -- DOES NOT WORK PlayFlavor(NPC, "voiceover/english/optional5/gnoll_base_2/ft/gnoll/gnoll_base_2_1_death_7cbd3c71.mp3", "I'll rip your throat open!", "", 134141978, 4165685331, Spawn, 18)
  105. function FifteenCall(NPC,Spawn)
  106. if IsPlayer(Spawn)==true then
  107. if IsInCombat(NPC)==true then
  108. if IsAlive(NPC) then
  109. if IsInCombat(NPC)==true then
  110. if math.random(0,100)<=60 then
  111. if not HasLanguage(Spawn,18 )and IsPlayer(Spawn)==true then
  112. Garbled(NPC,Spawn)
  113. else
  114. local choice = MakeRandomInt(1,4)
  115. if choice == 1 then
  116. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_2_everyfifteenseconds_m_dbbe969a.mp3", "Grrrrrrrrrr! Yip!", "", 3107536729, 1468959623, Player, 18)
  117. elseif choice == 2 then
  118. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_2_everyfifteenseconds_7c69417c.mp3", "Nip at their heels when they flee!", "", 4292535613, 1359167400, Player, 18)
  119. elseif choice == 3 then
  120. PlayFlavor(NPC, "voiceover/english/gnoll_darkpaw/ft/gnoll/gnoll_darkpaw_1_maofighter_13ee9bba.mp3", "For the memory of Fippy!", "", 528706383, 2119573339, Spawn, 18)
  121. elseif choice == 4 then
  122. 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) end
  123. end
  124. end
  125. if IsAlive(NPC)then
  126. AddTimer(NPC,15000,"FifteenCall")
  127. end
  128. end
  129. end
  130. end
  131. end
  132. end
  133. function healthchanged(NPC, Spawn)
  134. if IsPlayer(Spawn)==true then
  135. if HealthCallout == false then
  136. if GetHP(NPC) < GetMaxHP(NPC) * 0.55 then
  137. if GetHP(NPC) > GetMaxHP(NPC) * 0.45 then
  138. HealthCallout = true
  139. AddTimer(NPC,10000,"HealthReset")
  140. if not HasLanguage(Spawn,18 )and IsPlayer(Spawn)==true then
  141. Garbled(NPC,Spawn)
  142. else
  143. local choice = MakeRandomInt(1,4)
  144. if choice == 1 then
  145. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_3_halfhealth_d093de2d.mp3", "Yip yip yip!", "", 166674284, 1395857397, Spawn, 18)
  146. elseif choice == 2 then
  147. PlayFlavor(NPC, "voiceover/english/gnoll_darkpaw/ft/gnoll/gnoll_darkpaw_3_halfhealth_50cceadf.mp3", "Uhhhh... I think I go now!", "", 4127070268, 185913289, Spawn, 18)
  148. elseif choice == 3 then
  149. PlayFlavor(NPC, "voiceover/english/gnoll_darkpaw/ft/gnoll/gnoll_darkpaw_1_halfhealth_aff2b15d.mp3", "Now I'm really angry!", "", 1156319723, 267275011, Spawn, 18)
  150. elseif choice == 4 then
  151. 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
  152. 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)
  153. else
  154. 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)
  155. end
  156. end
  157. end
  158. end
  159. end
  160. end
  161. end
  162. end
  163. function HealthReset (NPC)
  164. HealthCallout = false
  165. end
  166. function victory(NPC,Spawn)
  167. if IsPlayer(Spawn)==true then
  168. if HasLanguage(Spawn,18 )and IsPlayer(Spawn)==true then
  169. local choice = MakeRandomInt(1,3)
  170. if choice == 1 then
  171. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_3_victory_e4520926.mp3", "Packmate not happy with scrawny catch.", "", 1321865956, 173648139, Spawn, 18)
  172. elseif choice == 2 then
  173. PlayFlavor(NPC, "voiceover/english/optional5/gnoll_base_2/ft/gnoll/gnoll_base_2_1_victory_8e18fe38.mp3", "Your fight is hopeless!", "", 2306110016, 2442076674, Spawn, 18)
  174. elseif choice == 3 then
  175. PlayFlavor(NPC, "voiceover/english/gnoll_darkpaw/ft/gnoll/gnoll_darkpaw_1_victory_d9fbe894.mp3", "That was easy! Next!", "", 1732578964, 1761133947, Spawn, 18)
  176. end
  177. end
  178. end
  179. end