BogFairy.lua 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. --[[
  2. Script Name : SpawnScripts/PeatBog/BogFairy.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.27 09:05:01
  5. Script Purpose : For Voiceovers
  6. :
  7. --]]
  8. function aggro(NPC,Spawn)
  9. if math.random(1,100)<60 then
  10. if not HasLanguage(Spawn,23 )then
  11. Garbled(NPC,Spawn)
  12. else
  13. local choice = MakeRandomInt(1,3)
  14. if choice == 1 then
  15. PlayFlavor(NPC, "voiceover/english/optional3/fairy_bog/ft/fairy/fairy_bog_1_aggro_770ba678.mp3", "Now why would you want to hurt lil' ol' me?", "", 3814000908, 1517813575,Spawn, 23)
  16. elseif choice == 2 then
  17. PlayFlavor(NPC, "voiceover/english/optional3/fairy_darkflight/ft/fairy/fairy_darkflight_1_aggro_8d59fd03.mp3", "We are the terror you will never forget!", "", 2533792944, 1310429329, Spawn, 23)
  18. elseif choice == 3 then
  19. PlayFlavor(NPC, "voiceover/english/optional3/fairy_base_1/ft/fairy/fairy_base_1_1_aggro_e578d730.mp3", "Death on small wings!", "", 1415967459, 2028651441, Spawn, 23)
  20. end
  21. end
  22. end
  23. end
  24. function Garbled(NPC,Spawn)
  25. local choice = MakeRandomInt(1,4)
  26. if choice == 1 then
  27. PlayFlavor(NPC, "voiceover/english/optional3/fairy_bog/ft/fairy/fairy_bog_1_garbled_628bdbdb.mp3", "Meraania suvalas itresteien", "", 711889774, 2079504251, Spawn, 23)
  28. elseif choice == 2 then
  29. PlayFlavor(NPC, "voiceover/english/optional3/fairy_bog/ft/fairy/fairy_bog_1_garbled_e858f993.mp3", "Tawaneee follahh dilifilongia avee", "", 2527230882, 3520925768,Spawn, 23)
  30. elseif choice == 3 then
  31. PlayFlavor(NPC, "voiceover/english/optional3/fairy_bog/ft/fairy/fairy_bog_1_garbled_29e4606e.mp3", "Peelahha misialloniassaa laliallasala", "", 4233892159, 3471050504, Spawn, 23)
  32. elseif choice == 4 then
  33. PlayFlavor(NPC, "voiceover/english/optional3/fairy_bog/ft/fairy/fairy_bog_1_garbled_dfa9e7d9.mp3", "Amamooenoo illysavah leetah", "", 2254044711, 2481645116, Spawn, 23)
  34. end
  35. end
  36. function healthchanged(NPC, Spawn)
  37. if GetHP(NPC) < GetMaxHP(NPC) * 0.55 then
  38. if GetHP(NPC) > GetMaxHP(NPC) * 0.45 then
  39. if not HasLanguage(Spawn,23 )then
  40. Garbled(NPC,Spawn)
  41. else
  42. local choice = MakeRandomInt(1,2)
  43. if choice == 1 then
  44. PlayFlavor(NPC, "voiceover/english/optional3/fairy_darkflight/ft/fairy/fairy_darkflight_1_halfhealth_9cf4a8d0.mp3", "Ouch! Not in the wing!", "", 1202960009, 480268964, Spawn, 23)
  45. elseif choice == 2 then
  46. PlayFlavor(NPC, "voiceover/english/optional3/fairy_darkflight/ft/fairy/fairy_darkflight_1_halfhealth_270ee5ed.mp3", "Great. I just had that wing mended!", "", 2029868249, 730589290, Spawn, 23)
  47. end
  48. end
  49. end
  50. end
  51. end
  52. function death(NPC,Spawn)
  53. if math.random(1,100)<60 then
  54. if not HasLanguage(Spawn,23 )then
  55. Garbled(NPC,Spawn)
  56. else
  57. local choice = MakeRandomInt(1,3)
  58. if choice == 1 then
  59. PlayFlavor(NPC, "voiceover/english/optional3/fairy_darkflight/ft/fairy/fairy_darkflight_1_death_f67ebee2.mp3", "How did you do that?", "", 3830312587, 474588981, Spawn, 23)
  60. elseif choice == 2 then
  61. PlayFlavor(NPC, "voiceover/english/optional3/fairy_base_2/ft/fairy/fairy_base_2_1_death_85ef3300.mp3", "No! That was my friend!", "", 3692250021, 2304681984, Spawn, 23)
  62. elseif choice == 3 then
  63. PlayFlavor(NPC, "voiceover/english/optional3/fairy_darkflight/ft/fairy/fairy_darkflight_1_death_2032180a.mp3", "We need a hero!", "", 1641018494, 2750735704, Spawn, 23)
  64. end
  65. end
  66. end
  67. end