KanniDarkrock.lua 688 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/KanniDarkrock.lua
  3. Script Author : Rylec
  4. Script Date : 2021.02.17 08:02:45
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. EmoteLoop(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. math.randomseed(os.time())
  14. voice = math.random(1,3)
  15. PlayAnimation(NPC, 11682)
  16. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1059.mp3", "", "", 0, 0, Spawn)
  17. end
  18. function respawn(NPC)
  19. spawn(NPC)
  20. end
  21. function EmoteLoop(NPC)
  22. PlayAnimation(NPC, 11150)
  23. AddTimer(NPC, math.random(10000,15000), "EmoteLoop")
  24. end