Bryson.lua 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/Bryson.lua
  3. Script Author : Rylec
  4. Script Date : 2021.09.08 09:09:29
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, 5000, "EmoteLoop")
  10. end
  11. function hailed(NPC, Spawn)
  12. PlayFlavor(NPC, "voiceover/english/bryson/qey_elddar/100_archer_human_bryson_multhail1_591026b2.mp3", "Now, if you hope to be as fine an archer as me, you should be off practicing instead of talking to me!", "idle03", 2519962645, 3532721498, Spawn)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function EmoteLoop(NPC)
  18. local emoteChoice = MakeRandomInt(1,13)
  19. if emoteChoice == 1 then
  20. -- chuckle
  21. PlayAnimation(NPC, 11152)
  22. AddTimer(NPC, MakeRandomInt(8000,12000), "EmoteLoop")
  23. elseif emoteChoice == 2 then
  24. -- converse_female01
  25. PlayAnimation(NPC, 11221)
  26. AddTimer(NPC, MakeRandomInt(6000,10000), "EmoteLoop")
  27. elseif emoteChoice == 3 then
  28. -- converse_female05
  29. PlayAnimation(NPC, 11225)
  30. AddTimer(NPC, MakeRandomInt(6000,10000), "EmoteLoop")
  31. elseif emoteChoice == 4 then
  32. -- converse_female06
  33. PlayAnimation(NPC, 11226)
  34. AddTimer(NPC, MakeRandomInt(6000,10000), "EmoteLoop")
  35. elseif emoteChoice == 5 then
  36. -- converse_female07
  37. PlayAnimation(NPC, 11227)
  38. AddTimer(NPC, MakeRandomInt(5000,9000), "EmoteLoop")
  39. elseif emoteChoice == 6 then
  40. -- converse_female08
  41. PlayAnimation(NPC, 11228)
  42. AddTimer(NPC, MakeRandomInt(5000,9000), "EmoteLoop")
  43. elseif emoteChoice == 7 then
  44. -- converse_female09
  45. PlayAnimation(NPC, 11229)
  46. AddTimer(NPC, MakeRandomInt(5000,9000), "EmoteLoop")
  47. elseif emoteChoice == 8 then
  48. -- converse_female10
  49. PlayAnimation(NPC, 11230)
  50. AddTimer(NPC, MakeRandomInt(5000,9000), "EmoteLoop")
  51. elseif emoteChoice == 9 then
  52. -- converse_female11
  53. PlayAnimation(NPC, 11231)
  54. AddTimer(NPC, MakeRandomInt(5000,9000), "EmoteLoop")
  55. elseif emoteChoice == 10 then
  56. -- converse_female12
  57. PlayAnimation(NPC, 11232)
  58. AddTimer(NPC, MakeRandomInt(5000,9000), "EmoteLoop")
  59. elseif emoteChoice == 11 then
  60. -- giggle
  61. PlayAnimation(NPC, 11648)
  62. AddTimer(NPC, MakeRandomInt(6000,10000), "EmoteLoop")
  63. elseif emoteChoice == 12 then
  64. -- happy
  65. PlayAnimation(NPC, 11668)
  66. AddTimer(NPC, MakeRandomInt(9000,13000), "EmoteLoop")
  67. else
  68. -- smile
  69. PlayAnimation(NPC, 12285)
  70. AddTimer(NPC, MakeRandomInt(7000,11000), "EmoteLoop")
  71. end
  72. end