9
3

agnollguard.lua 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : SpawnScripts/PeatBog/agnollguard.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.27 09:05:35
  5. Script Purpose :
  6. :
  7. --]]
  8. function aggro(NPC,Spawn)
  9. if not HasLanguage(Spawn,18 )then
  10. local choice = MakeRandomInt(1,3)
  11. if choice == 1 then
  12. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_1_garbled_2f8caa7b.mp3", "Krovel grarggt ereverrrn", "", 3999652656, 427507713, Spawn, 18)
  13. elseif choice == 2 then
  14. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_2_garbled_fe1eedd8.mp3", "Rrrrevvvvnarrr jahht ttekkkman", "", 1674950709, 3936377565, Spawn, 18)
  15. else
  16. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_3_garbled_fad67c0f.mp3", "Grrrolven brakth kerrtt", "", 2579932316, 1973717234, Spawn, 18)
  17. end
  18. else
  19. local choice = MakeRandomInt(1,3)
  20. if choice == 1 then
  21. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_1_aggro_75cd5d19.mp3", "Not allowed here!", "", 1292107958, 2335134714, Spawn, 18)
  22. elseif choice == 2 then
  23. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_1_aggro_d81be55c.mp3", "Bite! Show sharp teeth!", "", 612586564, 102929785, Spawn, 18)
  24. elseif choice == 3 then
  25. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_1_aggro_fda03a16.mp3", "Spin, weave, dodge, attack!!!", "", 1347636574, 484324781, Spawn, 18)
  26. end
  27. end
  28. end
  29. function death(NPC,Spawn)
  30. if math.random(1,100) <40 then
  31. if not HasLanguage(Spawn,18 )then
  32. local choice = MakeRandomInt(1,3)
  33. if choice == 1 then
  34. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_1_garbled_2f8caa7b.mp3", "Krovel grarggt ereverrrn", "", 3999652656, 427507713, Spawn, 18)
  35. elseif choice == 2 then
  36. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_2_garbled_fe1eedd8.mp3", "Rrrrevvvvnarrr jahht ttekkkman", "", 1674950709, 3936377565, Spawn, 18)
  37. else
  38. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_3_garbled_fad67c0f.mp3", "Grrrolven brakth kerrtt", "", 2579932316, 1973717234, Spawn, 18)
  39. end
  40. else
  41. local choice = MakeRandomInt(1,2)
  42. if choice == 1 then
  43. 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)
  44. elseif choice == 2 then
  45. PlayFlavor(NPC, "voiceover/english/gnoll_base_1/ft/gnoll/gnoll_base_1_1_death_138a3058.mp3", "That one never mate!", "", 3110437136, 1206351893, Spawn, 18)
  46. end
  47. end
  48. end
  49. end
  50. function victory(NPC,Spawn)
  51. if HasLanguage(Spawn,18 )then
  52. 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)
  53. end
  54. end