aninjuredBaubbleshirecitizen570787.lua 690 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/aninjuredBaubbleshirecitizen570787.lua
  3. Script Author : Rylec
  4. Script Date : 2021.01.17 01:01:52
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, 2000, "hairstyle")
  10. end
  11. function hailed(NPC, Spawn)
  12. math.randomseed(os.time())
  13. voice = math.random(1,3)
  14. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1040.mp3", "", "", 0, 0, Spawn)
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function hairstyle(NPC)
  20. math.randomseed(os.time())
  21. choice = math.random(1133,1140)
  22. SpawnSet(NPC, "hair_type", choice)
  23. end