9
3

aWillowWooddefender133771755.lua 2.7 KB

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