Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jin_bijuus = {
- ["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},
- ["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},
- ["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},
- ["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},
- ["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},
- ["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},
- ["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},
- ["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},
- ["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}
- }
- id_name = {
- -- 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
- [1] = "Shukaku",
- [2] = "Nibi",
- [3] = "Sanbi",
- [4] = "Yonbi",
- [5] = "Gobi",
- [6] = "Rokubi",
- [7] = "Shichibi",
- [8] = "Hachibi",
- [9] = "Kyuubi"
- }
- jin_Storage = 1234255 -- Storage que armazena o Jinchuuriki
- jin_StorageTime = 1234256 -- Storage de quanto tempo o player tem de Jinchuuriki
- jin_TimeDay = 5 -- Tempo em dias que o player ficará com a Bijuu selada nele
- jin_percentHp = 20 -- Porcentagem que precisa para selar o Bijuu
- jin_cond_id = 23 -- Sub-Id da condição do buff, assim não da conflito com outros buffs.
- jin_cond_id = 24 -- Sub-Id da condição do outfit, assim não da conflito com outros buffs.
- jin = {
- -- jin.getPlayerBijuu(uid)
- getPlayerBijuu = function(uid) -- retorna o nome da biju do player em string.
- if getPlayerStorageValue(uid, jin_Storage) == -1 then
- return 0
- end
- return id_name[getPlayerStorageValue(uid, jin_Storage)]
- end,
- -- jin.setPlayerBijuu(uid, BijuuId)
- setPlayerBijuu = function(uid, BijuuId) -- Set no player a Bijuu tornando-o um Jinchuuriki.
- return doCreatureSetStorage(uid, jin_Storage, BijuuId)
- end,
- -- jin.setBijuuTime(uid, days)
- setBijuuTime = function(uid, days) -- Seta a quantidade de dias que o player ficará com a bijuu.
- return doCreatureSetStorage(uid, jin_StorageTime, os.time()+days*24*60*60)
- end,
- -- jin.getPlayerBijuuTime(uid)
- getPlayerBijuuTime = function(uid) -- Retorna tempo e hora que falta pra acabar o Jinchuuriki do Player.
- if getPlayerStorageValue(uid, jin_StorageTime)-os.time() <= 0 then
- return "Tempo restante é de 0 dias, 0 horas e 0 segundos."
- end
- local tempo = getPlayerStorageValue(uid, jin_StorageTime)-os.time()
- local segundos = tempo % 60
- local minutos = math.floor(tempo%3600/60)
- local horas = math.floor(tempo%86400/3600)
- local dias = math.floor(tempo%604800/86400)
- 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 "")..""
- end,
- -- jin.doPlayerSetSpells(uid, spells)
- doPlayerSetSpells = function(uid, spells) -- Faz o player aprender mais de 1 spells.
- if type(spells) == "table" then
- for i = 1, #spells do
- doPlayerLearnInstantSpell(uid, spells[i])
- end
- else
- doPlayerLearnInstantSpell(uid, spells)
- end
- end,
- -- jin.doPlayerRemoveSpells(uid, spells)
- doPlayerRemoveSpells = function(uid, spells) -- Remove todas as spells aprendidas do player.
- if type(spells) == "table" then
- for i = 1, #spells do
- doPlayerUnlearnInstantSpell(uid, spells[i])
- end
- else
- doPlayerUnlearnInstantSpell(uid, spells)
- end
- end,
- -- jin.doPlayerRemoveJinchuuriki(uid)
- doPlayerRemoveJinchuuriki = function(uid) -- Remove o Jinchuuriki do player.
- if jin.getPlayerBijuu(uid) ~= 0 then
- jin.doPlayerRemoveSpells(uid, jin_bijuus[jin.getPlayerBijuu(uid):lower()].spells)
- doCreatureSetStorage(uid, jin_StorageTime, -1)
- doCreatureSetStorage(uid, jin_Storage, -1)
- end
- end
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement