aWillowWooddefender.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. EmoteLoop(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. Say(NPC, "Your deeds here will not be forgotten.")
  14. PlayAnimation(NPC, 12167)
  15. end
  16. function respawn(NPC)
  17. end
  18. function EmoteLoop(NPC)
  19. --[[ math.randomseed(os.time())
  20. local choice = math.random(1,6)
  21. if choice == 1 then
  22. -- converse_male01--]]
  23. PlayAnimation(NPC, 11233)
  24. AddTimer(NPC, 10500, "Idle")
  25. --[[ elseif choice == 2 then
  26. -- converse_male02
  27. PlayAnimation(NPC, 11234)
  28. AddTimer(NPC, 4500, "Idle")
  29. elseif choice == 3 then
  30. -- converse_male03
  31. PlayAnimation(NPC, 11235)
  32. AddTimer(NPC, 1700, "Idle")
  33. elseif choice == 5 then
  34. -- converse_male04
  35. PlayAnimation(NPC, 2983)
  36. AddTimer(NPC, 8500, "Idle")
  37. -- converse_male05
  38. PlayAnimation(NPC, 11236)
  39. AddTimer(NPC, 8500, "Idle")
  40. elseif choice == 5 then
  41. -- converse_male06
  42. PlayAnimation(NPC, 11237)
  43. AddTimer(NPC, 30000, "Idle")
  44. elseif choice == 5 then
  45. -- converse_male07
  46. PlayAnimation(NPC, 11238)
  47. AddTimer(NPC, 30000, "Idle")
  48. elseif choice == 5 then
  49. -- converse_male08
  50. PlayAnimation(NPC, 11239)
  51. AddTimer(NPC, 30000, "Idle")
  52. elseif choice == 5 then
  53. -- converse_male09
  54. PlayAnimation(NPC, 11240)
  55. AddTimer(NPC, 30000, "Idle")
  56. elseif choice == 5 then
  57. -- converse_male10
  58. PlayAnimation(NPC, 11241)
  59. AddTimer(NPC, 30000, "Idle")
  60. elseif choice == 5 then
  61. -- converse_male11
  62. PlayAnimation(NPC, 11242)
  63. AddTimer(NPC, 30000, "Idle")
  64. -- converse_male12
  65. PlayAnimation(NPC, 2991)
  66. AddTimer(NPC, 8500, "Idle")
  67. elseif choice == 5 then
  68. -- no
  69. PlayAnimation(NPC, 11881)
  70. AddTimer(NPC, 30000, "Idle")
  71. elseif choice == 4 then
  72. -- agree
  73. PlayAnimation(NPC, 10745)
  74. AddTimer(NPC, 3500, "Idle")
  75. elseif choice == 5 then
  76. -- nod
  77. PlayAnimation(NPC, 11882)
  78. AddTimer(NPC, 30000, "Idle")
  79. elseif choice == 5 then
  80. -- heckno
  81. PlayAnimation(NPC, 11680)
  82. AddTimer(NPC, 30000, "Idle")
  83. elseif choice == 5 then
  84. -- shrug
  85. PlayAnimation(NPC, 12240)
  86. AddTimer(NPC, 30000, "Idle")
  87. end--]]
  88. end
  89. function Idle(NPC)
  90. PlayAnimation(NPC, 323)
  91. EmoteLoop(NPC)
  92. end