aWillowWooddefendermale.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/aWillowWooddefender.lua
  3. Script Author : Rylec
  4. Script Date : 2021.01.16 05:01:26
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, 3000, "EmoteLoop")
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. Say(NPC, "Thank you for the assistance, " .. GetName(Spawn) .. ".")
  14. PlayAnimation(NPC, 11682)
  15. end
  16. function respawn(NPC)
  17. end
  18. function EmoteLoop(NPC)
  19. math.randomseed(os.time())
  20. local choice = math.random(1,17)
  21. if choice == 1 then
  22. -- converse_male01
  23. PlayAnimation(NPC, 11233)
  24. AddTimer(NPC, math.random(6000,10000), "EmoteLoop")
  25. elseif choice == 2 then
  26. -- converse_male02
  27. PlayAnimation(NPC, 11234)
  28. AddTimer(NPC, math.random(6000,10000), "EmoteLoop")
  29. elseif choice == 3 then
  30. -- converse_male03
  31. PlayAnimation(NPC, 11235)
  32. AddTimer(NPC, math.random(6000,10000), "EmoteLoop")
  33. elseif choice == 4 then
  34. -- converse_male04
  35. PlayAnimation(NPC, 2983)
  36. AddTimer(NPC, math.random(6000,10000), "EmoteLoop")
  37. elseif choice == 5 then
  38. -- converse_male05
  39. PlayAnimation(NPC, 11236)
  40. AddTimer(NPC, math.random(6000,10000), "EmoteLoop")
  41. elseif choice == 6 then
  42. -- converse_male06
  43. PlayAnimation(NPC, 11237)
  44. AddTimer(NPC, math.random(6000,10000), "EmoteLoop")
  45. elseif choice == 7 then
  46. -- converse_male07
  47. PlayAnimation(NPC, 11238)
  48. AddTimer(NPC, math.random(6000,10000), "EmoteLoop")
  49. elseif choice == 8 then
  50. -- converse_male08
  51. PlayAnimation(NPC, 11239)
  52. AddTimer(NPC, math.random(6000,10000), "EmoteLoop")
  53. elseif choice == 9 then
  54. -- converse_male09
  55. PlayAnimation(NPC, 11240)
  56. AddTimer(NPC, math.random(6000,10000), "EmoteLoop")
  57. elseif choice == 10 then
  58. -- converse_male10
  59. PlayAnimation(NPC, 11241)
  60. AddTimer(NPC, math.random(6000,10000), "EmoteLoop")
  61. elseif choice == 11 then
  62. -- converse_male11
  63. PlayAnimation(NPC, 11242)
  64. AddTimer(NPC, math.random(6000,10000), "EmoteLoop")
  65. elseif choice == 12 then
  66. -- converse_male12
  67. PlayAnimation(NPC, 2991)
  68. AddTimer(NPC, math.random(6000,10000), "EmoteLoop")
  69. elseif choice == 13 then
  70. -- no
  71. PlayAnimation(NPC, 11881)
  72. AddTimer(NPC, math.random(6000,10000), "EmoteLoop")
  73. elseif choice == 14 then
  74. -- agree
  75. PlayAnimation(NPC, 10745)
  76. AddTimer(NPC, math.random(6000,10000), "EmoteLoop")
  77. elseif choice == 15 then
  78. -- nod
  79. PlayAnimation(NPC, 11882)
  80. AddTimer(NPC, math.random(6000,10000), "EmoteLoop")
  81. elseif choice == 16 then
  82. -- heckno
  83. PlayAnimation(NPC, 11680)
  84. AddTimer(NPC, math.random(6000,10000), "EmoteLoop")
  85. else
  86. -- shrug
  87. PlayAnimation(NPC, 12240)
  88. AddTimer(NPC, math.random(6000,10000), "EmoteLoop")
  89. end
  90. end