9
3

aninjuredBaubbleshirecitizenHalflingmale.lua 686 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/aninjuredBaubbleshirecitizen.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, 1000, "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