9
3

Telandra.lua 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/Telandra.lua
  3. Script Author : Rylec
  4. Script Date : 2021.09.08 08:09:06
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, 3000, "EmoteLoop")
  10. end
  11. function hailed(NPC, Spawn)
  12. local choice = MakeRandomInt(1,2)
  13. if choice == 1 then
  14. PlayFlavor(NPC, "voiceover/english/woodelf_eco_race_good/ft/eco/good/woodelf_eco_race_good_hail_gf_3e59423a.mp3", "The blessing of Tunare is the highest blessing of all.", "idle03", 853299003, 3297095439, Spawn)
  15. else
  16. PlayFlavor(NPC, "voiceover/english/woodelf_eco_race_good/ft/eco/good/woodelf_eco_race_good_hail_gf_50387146.mp3", "To be among the highest leaves and branches of a tree is to feel free.", "idle03", 1191446540, 711911709, Spawn)
  17. end
  18. end
  19. function respawn(NPC)
  20. spawn(NPC)
  21. end
  22. function EmoteLoop(NPC)
  23. local emoteChoice = MakeRandomInt(1,13)
  24. if emoteChoice == 1 then
  25. -- chuckle
  26. PlayAnimation(NPC, 11152)
  27. AddTimer(NPC, MakeRandomInt(8000,12000), "EmoteLoop")
  28. elseif emoteChoice == 2 then
  29. -- converse_female01
  30. PlayAnimation(NPC, 11221)
  31. AddTimer(NPC, MakeRandomInt(6000,10000), "EmoteLoop")
  32. elseif emoteChoice == 3 then
  33. -- converse_female05
  34. PlayAnimation(NPC, 11225)
  35. AddTimer(NPC, MakeRandomInt(6000,10000), "EmoteLoop")
  36. elseif emoteChoice == 4 then
  37. -- converse_female06
  38. PlayAnimation(NPC, 11226)
  39. AddTimer(NPC, MakeRandomInt(6000,10000), "EmoteLoop")
  40. elseif emoteChoice == 5 then
  41. -- converse_female07
  42. PlayAnimation(NPC, 11227)
  43. AddTimer(NPC, MakeRandomInt(5000,9000), "EmoteLoop")
  44. elseif emoteChoice == 6 then
  45. -- converse_female08
  46. PlayAnimation(NPC, 11228)
  47. AddTimer(NPC, MakeRandomInt(5000,9000), "EmoteLoop")
  48. elseif emoteChoice == 7 then
  49. -- converse_female09
  50. PlayAnimation(NPC, 11229)
  51. AddTimer(NPC, MakeRandomInt(5000,9000), "EmoteLoop")
  52. elseif emoteChoice == 8 then
  53. -- converse_female10
  54. PlayAnimation(NPC, 11230)
  55. AddTimer(NPC, MakeRandomInt(5000,9000), "EmoteLoop")
  56. elseif emoteChoice == 9 then
  57. -- converse_female11
  58. PlayAnimation(NPC, 11231)
  59. AddTimer(NPC, MakeRandomInt(5000,9000), "EmoteLoop")
  60. elseif emoteChoice == 10 then
  61. -- converse_female12
  62. PlayAnimation(NPC, 11232)
  63. AddTimer(NPC, MakeRandomInt(5000,9000), "EmoteLoop")
  64. elseif emoteChoice == 11 then
  65. -- giggle
  66. PlayAnimation(NPC, 11648)
  67. AddTimer(NPC, MakeRandomInt(6000,10000), "EmoteLoop")
  68. elseif emoteChoice == 12 then
  69. -- happy
  70. PlayAnimation(NPC, 11668)
  71. AddTimer(NPC, MakeRandomInt(9000,13000), "EmoteLoop")
  72. else
  73. -- smile
  74. PlayAnimation(NPC, 12285)
  75. AddTimer(NPC, MakeRandomInt(7000,11000), "EmoteLoop")
  76. end
  77. end