9
3

QueenAntoniaBayle.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/QueenAntoniaBayle.lua
  3. Script Author : Rylec
  4. Script Date : 2021.10.05 02:10:01
  5. Script Purpose :
  6. :
  7. --]]
  8. local EndSpeech = 1
  9. function spawn(NPC)
  10. StartSpeech(NPC)
  11. end
  12. function StartSpeech(NPC)
  13. AddTimer(NPC, 5000, "flamesanimation")
  14. end
  15. function flamesanimation(NPC, Spawn)
  16. local EndSpeech = 1
  17. PlayAnimation(NPC, 10756)
  18. AddTimer(NPC, 3000, "visage01")
  19. end
  20. function visage01(NPC, Spawn)
  21. EmoteLoop(NPC)
  22. -- AddTimer(NPC, 2000, "visage02")
  23. end
  24. function EmoteLoop(NPC)
  25. math.randomseed(os.time())
  26. local choice = math.random(1,12)
  27. if choice == 1 then
  28. PlayAnimation(NPC, 13042)
  29. AddTimer(NPC, 5200, "Idle")
  30. elseif choice == 2 then
  31. PlayAnimation(NPC, 13043)
  32. AddTimer(NPC, 4400, "Idle")
  33. elseif choice == 3 then
  34. PlayAnimation(NPC, 13044)
  35. AddTimer(NPC, 6950, "Idle")
  36. elseif choice == 4 then
  37. PlayAnimation(NPC, 13045)
  38. AddTimer(NPC, 5300, "Idle")
  39. elseif choice == 5 then
  40. PlayAnimation(NPC, 13046)
  41. AddTimer(NPC, 3900, "Idle")
  42. elseif choice == 6 then
  43. PlayAnimation(NPC, 13047)
  44. AddTimer(NPC, 4900, "Idle")
  45. elseif choice == 7 then
  46. PlayAnimation(NPC, 13048)
  47. AddTimer(NPC, 4500, "Idle")
  48. elseif choice == 8 then
  49. PlayAnimation(NPC, 13049)
  50. AddTimer(NPC, 3700, "Idle")
  51. elseif choice == 9 then
  52. PlayAnimation(NPC, 13050)
  53. AddTimer(NPC, 3200, "Idle")
  54. elseif choice == 10 then
  55. PlayAnimation(NPC, 13051)
  56. AddTimer(NPC, 4700, "Idle")
  57. elseif choice == 11 then
  58. PlayAnimation(NPC, 13052)
  59. AddTimer(NPC, 3500, "Idle")
  60. else
  61. PlayAnimation(NPC, 13053)
  62. AddTimer(NPC, 3200, "Idle")
  63. end
  64. end
  65. function Idle(NPC)
  66. PlayAnimation(NPC, 13042)
  67. EmoteCheck(NPC)
  68. end
  69. function EmoteCheck(NPC)
  70. if EndSpeech == 1 then
  71. EmoteLoop(NPC)
  72. else
  73. PlayAnimation(NPC, 13042)
  74. AddTimer(NPC, 1200000, "flamesanimation")
  75. end
  76. end