ahungryBaubbleshirecitizen133771763.lua 966 B

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/ahungryBaubbleshirecitizen133771763.lua
  3. Script Author : Rylec
  4. Script Date : 2021.01.17 04:01:43
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. math.randomseed(os.time())
  10. local race = math.random(1,4)
  11. if race == 1 then
  12. SpawnSet(NPC, "model_type", "107")
  13. racevoice = 1039
  14. elseif race == 2 then
  15. SpawnSet(NPC, "model_type", "108")
  16. racevoice = 1040
  17. elseif race == 3 then
  18. SpawnSet(NPC, "model_type", "121")
  19. racevoice = 1040
  20. else
  21. SpawnSet(NPC, "model_type", "122")
  22. racevoice = 1039
  23. end
  24. end
  25. function hailed(NPC, Spawn)
  26. math.randomseed(os.time())
  27. voice = math.random(1,3)
  28. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_"..racevoice..".mp3", "", "", 0, 0, Spawn)
  29. end
  30. function respawn(NPC)
  31. spawn(NPC)
  32. end