aBaubbleshiredefender133771774.lua 2.8 KB

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