Gobantik.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : SpawnScripts/SourceEvil/Gobantik.lua
  3. Script Author : Rylec
  4. Script Date : 2021.01.16 01:01:47
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. --[[ Don't use this code (crashes things)
  10. math.randomseed(os.time())
  11. local petname = math.random (1,10)
  12. if petname == 1 then
  13. SpawnSet(NPC, "name", "Jonobtik")
  14. elseif petname == 2 then
  15. SpawnSet(NPC, "name", "Jibaner")
  16. elseif petname == 3 then
  17. SpawnSet(NPC, "name", "Zartik")
  18. elseif petname == 4 then
  19. SpawnSet(NPC, "name", "Konantik")
  20. elseif petname == 5 then
  21. SpawnSet(NPC, "name", "Kebn")
  22. elseif petname == 6 then
  23. SpawnSet(NPC, "name", "Lenarn")
  24. elseif petname == 7 then
  25. SpawnSet(NPC, "name", "Jonarn")
  26. elseif petname == 8 then
  27. SpawnSet(NPC, "name", "Jonober")
  28. elseif petname == 9 then
  29. SpawnSet(NPC, "name", "Ganer")
  30. else
  31. SpawnSet(NPC, "name", "Gobantik")
  32. end
  33. --]]
  34. end
  35. function hailed(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. end
  38. function respawn(NPC)
  39. end