9
3

ahungryBaubbleshirecitizen01.lua 943 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/ahungryBaubbleshirecitizen01.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. 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. end