Advertisement
MyGuester

Untitled

Feb 23rd, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.35 KB | None | 0 0
  1. jin_bijuus = {
  2. ["shukaku"] = {sto = 1, spells = {"buff jinchuuriki shukaku","Liberaçao de Vento: Dispersao de Balas de Areia","Bola da Besta com Cauda Instantânea","Garra de Shukaku","Transferencia de Chakra"}, bijuu_outfit = 158, skill_p = 15, time_buff = 60, effBuff = 3},
  3. ["nibi"] = {sto = 2, spells = {"buff jinchuuriki nibi","Bola da Besta com Cauda Instantânea","Chama Envoltória do Gato de Fogo","Rugido Flamejante do Gato de Fogo","Transferencia de Chakra"}, bijuu_outfit = 337, skill_p = 15, time_buff = 60, effBuff = 3},
  4. ["sanbi"] = {sto = 3, spells = {"buff jinchuuriki sanbi","Bola da Besta com Cauda Instantânea","Liberaçao de Água: Projétil da Grande Massa de Água","Transferencia de Chakra"}, bijuu_outfit = 385, skill_p = 15, time_buff = 60, effBuff = 3},
  5. ["yonbi"] = {sto = 4, spells = {"buff jinchuuriki yonbi","Incendio da Chama do Macaco","Bola da Besta com Cauda Instantânea","Bola da Besta Instantânea de Fogo","Ultimate Bijuu Dama","Estilo Lava - Destruiçao da Mao de Fog","Transferencia de Chakra"}, bijuu_outfit = 352, skill_p = 15, time_buff = 60, effBuff = 3},
  6. ["gobi"] = {sto = 5, spells = {"buff jinchuuriki gobi","Bola da Besta com Cauda Instantânea","Bola da Besta com Cauda Inigualável","Transferencia de Chakra"}, bijuu_outfit = 368, skill_p = 15, time_buff = 60, effBuff = 3},
  7. ["rokubi"] = {sto = 6, spells = {"buff jinchuuriki rokubi","Liberaçao de Água: Captura do Campo de Xarope de Amido","Bola da Besta com Cauda Instantânea","Transferencia de Chakra"}, bijuu_outfit = 351, skill_p = 15, time_buff = 60, effBuff = 3},
  8. ["shichibi"] = {sto = 7, spells = {"buff jinchuuriki shichibi","Bola da Besta com Cauda Instantânea","Transferencia de Chakra","Pó de Escama"}, bijuu_outfit = 353, skill_p = 15, time_buff = 60, effBuff = 3},
  9. ["hachibi"] = {sto = 8, spells = {"buff jinchuuriki hachibi","Bola da Besta com Cauda Instantânea","Transferencia de Chakra","Tinta Preta","Relâmpago","Dissipaçao de Genjutsu"}, bijuu_outfit = 350, skill_p = 15, time_buff = 60, effBuff = 3},
  10. ["kyuubi"] = {sto = 9, spells = {"buff jinchuuriki kyuubi","Braços de Chakra da Besta com Cauda","Bola da Besta com Cauda","Bola da Besta com Cauda Instantânea","Transferencia de Chakra"}, bijuu_outfit = 157, skill_p = 10, time_buff = 60, effBuff = 3}
  11. }
  12.  
  13. id_name = {
  14. -- id da storage refrente ao monstro na primeira tabela, lembrando que se for adicionar mais, a variável sto tem que dar um valor de storage referente ao novo monstro adicionado
  15. [1] = "Shukaku",
  16. [2] = "Nibi",
  17. [3] = "Sanbi",
  18. [4] = "Yonbi",
  19. [5] = "Gobi",
  20. [6] = "Rokubi",
  21. [7] = "Shichibi",
  22. [8] = "Hachibi",
  23. [9] = "Kyuubi"
  24. }
  25.  
  26.  
  27.  
  28. jin_Storage = 1234255 -- Storage que armazena o Jinchuuriki
  29. jin_StorageTime = 1234256 -- Storage de quanto tempo o player tem de Jinchuuriki
  30. jin_TimeDay = 5 -- Tempo em dias que o player ficará com a Bijuu selada nele
  31. jin_percentHp = 20 -- Porcentagem que precisa para selar o Bijuu
  32. jin_cond_id = 23 -- Sub-Id da condição do buff, assim não da conflito com outros buffs.
  33. jin_cond_id = 24 -- Sub-Id da condição do outfit, assim não da conflito com outros buffs.
  34.  
  35. jin = {
  36. -- jin.getPlayerBijuu(uid)
  37. getPlayerBijuu = function(uid) -- retorna o nome da biju do player em string.
  38. if getPlayerStorageValue(uid, jin_Storage) == -1 then
  39. return 0
  40. end
  41. return id_name[getPlayerStorageValue(uid, jin_Storage)]
  42. end,
  43.  
  44. -- jin.setPlayerBijuu(uid, BijuuId)
  45. setPlayerBijuu = function(uid, BijuuId) -- Set no player a Bijuu tornando-o um Jinchuuriki.
  46. return doCreatureSetStorage(uid, jin_Storage, BijuuId)
  47. end,
  48.  
  49. -- jin.setBijuuTime(uid, days)
  50. setBijuuTime = function(uid, days) -- Seta a quantidade de dias que o player ficará com a bijuu.
  51. return doCreatureSetStorage(uid, jin_StorageTime, os.time()+days*24*60*60)
  52. end,
  53.  
  54. -- jin.getPlayerBijuuTime(uid)
  55. getPlayerBijuuTime = function(uid) -- Retorna tempo e hora que falta pra acabar o Jinchuuriki do Player.
  56. if getPlayerStorageValue(uid, jin_StorageTime)-os.time() <= 0 then
  57. return "Tempo restante é de 0 dias, 0 horas e 0 segundos."
  58. end
  59. local tempo = getPlayerStorageValue(uid, jin_StorageTime)-os.time()
  60. local segundos = tempo % 60
  61. local minutos = math.floor(tempo%3600/60)
  62. local horas = math.floor(tempo%86400/3600)
  63. local dias = math.floor(tempo%604800/86400)
  64. return "Tempo restante é de "..dias.." dia"..(dias > 1 and "s" or "")..", "..horas.." hora"..(horas > 1 and "s" or "")..", "..minutos.." minuto"..(minutos > 1 and "s"or "").." e "..segundos.." segundo"..(segundos > 1 and "s" or "")..""
  65. end,
  66.  
  67.  
  68.  
  69. -- jin.doPlayerSetSpells(uid, spells)
  70. doPlayerSetSpells = function(uid, spells) -- Faz o player aprender mais de 1 spells.
  71. if type(spells) == "table" then
  72. for i = 1, #spells do
  73. doPlayerLearnInstantSpell(uid, spells[i])
  74. end
  75. else
  76. doPlayerLearnInstantSpell(uid, spells)
  77. end
  78. end,
  79.  
  80.  
  81. -- jin.doPlayerRemoveSpells(uid, spells)
  82. doPlayerRemoveSpells = function(uid, spells) -- Remove todas as spells aprendidas do player.
  83. if type(spells) == "table" then
  84. for i = 1, #spells do
  85. doPlayerUnlearnInstantSpell(uid, spells[i])
  86. end
  87. else
  88. doPlayerUnlearnInstantSpell(uid, spells)
  89. end
  90. end,
  91.  
  92.  
  93. -- jin.doPlayerRemoveJinchuuriki(uid)
  94. doPlayerRemoveJinchuuriki = function(uid) -- Remove o Jinchuuriki do player.
  95. if jin.getPlayerBijuu(uid) ~= 0 then
  96. jin.doPlayerRemoveSpells(uid, jin_bijuus[jin.getPlayerBijuu(uid):lower()].spells)
  97. doCreatureSetStorage(uid, jin_StorageTime, -1)
  98. doCreatureSetStorage(uid, jin_Storage, -1)
  99. end
  100. end
  101. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement