EcologyEmotes.lua 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : SpawnScripts/Generic/EcologyEmotes.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.02.20 05:02:12
  5. Script Purpose : For generic NPC Flavor emotes - particular merchants.
  6. :
  7. --]]
  8. function EcologyEmotes(NPC,Spawn)
  9. local choice = math.random(1,10)
  10. if choice == 1 then
  11. PlayFlavor(NPC, "", "", "tap", 0, 0, Spawn)
  12. AddTimer(NPC, 12000, "EcologyEmotes",1,Spawn)
  13. elseif choice == 2 then
  14. PlayFlavor(NPC, "", "", "ponder", 0, 0, Spawn)
  15. AddTimer(NPC, 11000, "EcologyEmotes",1,Spawn)
  16. elseif choice == 3 then
  17. PlayFlavor(NPC, "", "", "shiver", 0, 0, Spawn)
  18. AddTimer(NPC, 10000, "EcologyEmotes",1,Spawn)
  19. elseif choice == 4 then
  20. PlayFlavor(NPC, "", "", "sniff", 0, 0, Spawn)
  21. AddTimer(NPC, 8000, "EcologyEmotes",1,Spawn)
  22. elseif choice == 5 then
  23. PlayFlavor(NPC, "", "", "confused", 0, 0, Spawn)
  24. AddTimer(NPC, 7000, "EcologyEmotes",1,Spawn)
  25. elseif choice == 6 then
  26. PlayFlavor(NPC, "", "", "agree", 0, 0, Spawn)
  27. AddTimer(NPC, 5000, "EcologyEmotes",1,Spawn)
  28. elseif choice == 7 then
  29. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  30. AddTimer(NPC, 6000, "EcologyEmotes",1,Spawn)
  31. elseif choice == 8 then
  32. PlayFlavor(NPC, "", "", "yawn", 0, 0, Spawn)
  33. AddTimer(NPC, 9000, "EcologyEmotes",1,Spawn)
  34. elseif choice == 9 then
  35. PlayFlavor(NPC, "", "", "smirk", 0, 0, Spawn)
  36. AddTimer(NPC, 8000, "EcologyEmotes",1,Spawn)
  37. elseif choice == 10 then
  38. PlayFlavor(NPC, "", "", "cough", 0, 0, Spawn)
  39. AddTimer(NPC, 8000, "EcologyEmotes",1,Spawn)
  40. end
  41. end