9
3

GenericFayfolk.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : SpawnScripts/Generic/GenericFayfolk.lua
  3. Script Purpose : Any spawn that speaks Fayfolk
  4. Script Author : Scatman
  5. Script Date : 2009.10.08
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function respawn(NPC)
  11. spawn(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. end
  15. function fayfolk_healthchanged(NPC, Spawn)
  16. --if HasLanguage(Spawn, Fayfolk) then
  17. --else
  18. SpeakGarbledFayfok(NPC, Spawn)
  19. --end
  20. end
  21. function death(NPC, Spawn)
  22. end
  23. function SpeakGarbledFayfok(NPC, Spawn)
  24. local choice = math.random(1, 4)
  25. if math.random(1, 4)
  26. if choice == 1 then
  27. PlayFlavor(NPC, "voiceover/english/dryad_corrupted/ft/dryad/dryad_corrupted_1_garbled_e858f993.mp3", "Tawaneee follahh dilifilongia avee", "", 677789876, 1792673679, Spawn)
  28. elseif choice == 2 then
  29. PlayFlavor(NPC, "voiceover/english/dryad_corrupted/ft/dryad/dryad_corrupted_1_garbled_dfa9e7d9.mp3", "Amamooenoo illysavah leetah", "", 1070184369, 1800384485, Spawn)
  30. elseif choice == 3 then
  31. PlayFlavor(NPC, "voiceover/english/dryad_corrupted/ft/dryad/dryad_corrupted_1_garbled_29e4606e.mp3", "Peelahha misialloniassaa laliallasala", "", 4241242710, 1388449419, Spawn)
  32. elseif choice == 4 then
  33. PlayFlavor(NPC, "voiceover/english/dryad_corrupted/ft/dryad/dryad_corrupted_1_garbled_628bdbdb.mp3", "Meraania suvalas itresteien", "", 2333386122, 320322749, Spawn)
  34. end
  35. end