ataintedSapswillTapper.lua 549 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/ataintedSapswillTapper.lua
  3. Script Purpose : aSapswillTapper Animation Script
  4. Script Author : premierio015
  5. Script Date : 2020.09.04
  6. --]]
  7. function spawn(NPC)
  8. EmoteLoop(NPC)
  9. end
  10. function respawn(NPC)
  11. spawn(NPC)
  12. end
  13. function EmoteLoop (NPC)
  14. math.randomseed(os.time())
  15. local choice = math.random(1,5)
  16. str = tostring(choice)
  17. if choice == 1 then
  18. PlayAnimation(NPC, 11400)
  19. AddTimer(NPC, 3000, "EmoteLoop")
  20. else
  21. PlayAnimation(NPC, 11399)
  22. AddTimer(NPC, 3000, "EmoteLoop")
  23. end
  24. end