9
3

ahungryBaubbleshirecitizen133771764.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/ahungryBaubbleshirecitizen133771764.lua
  3. Script Author : Rylec
  4. Script Date : 2021.01.17 04:01:43
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, 1000, "selectrace")
  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.."_"..racevoice..".mp3", "", "", 0, 0, Spawn)
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function selectrace(NPC)
  20. math.randomseed(os.time())
  21. local race = math.random(1,4)
  22. if race == 1 then
  23. SpawnSet(NPC, "model_type", "107")
  24. racevoice = 1023
  25. elseif race == 2 then
  26. SpawnSet(NPC, "model_type", "108")
  27. racevoice = 1024
  28. elseif race == 3 then
  29. SpawnSet(NPC, "model_type", "121")
  30. racevoice = 1024
  31. else
  32. SpawnSet(NPC, "model_type", "122")
  33. racevoice = 1023
  34. end
  35. choice = math.random(1133,1140)
  36. SpawnSet(NPC, "hair_type", choice)
  37. end