Ir para conteúdo

Featured Replies

Postado
2 minutos atrás, iury alves potter disse:

local typess = {       --alterado v2.9 \/  TUDO!!
[1] = "normal",
[2] = "great",
[3] = "super",
[4] = "ultra",
[5] = "saffari",
}
function onSay(cid, words, param)

if param == "" or param == " " then
   doPlayerSendCancel(cid, 'Command needs parameters, function structure: "/cb [Pokemon Name], [boost], [Gender], [ball type], [cp only go pokemons]".')
   return true
end

local t = string.explode(param, ",")
--
local name = ""
local btype = (tostring(t[4]) and pokeballs[t[4]]) and t[4] or typess[math.random(1, #typess)] 
local gender = (t[3] and tonumber(t[3])) and tonumber(t[3]) or t[3] and t[3] or nil    

if tostring(t[1]) then
    name = doCorrectString(t[1])   
    if not pokes[name] then
       doPlayerSendCancel(cid, "Sorry, a pokemon with the name "..name.." doesn't exists.")
       return true
    end
print(""..name.." ball has been created by "..getPlayerName(cid)..".")
doWriteLogFile("data/logs/createpokeball.txt", "[".. os.date('%d %B %y - %H:%M') .."] ".. getCreatureName(cid) .." Criou um ".. name .." (BOOST: ".. (t[2] and tonumber(t[2]) or 0) ..")")
end

addPokeToPlayer(cid, name, (t[2] and tonumber(t[2]) or 0), gender, btype, false) 

return true
end

 

Bom amigo, eu vejo aqui que parece que você está adicionando o pokemon errado :x
Tente seguir esse tutorial:

 

  • Respostas 7
  • Visualizações 634
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Amigo, mande por favor o script de dentro da pasta de Talkactions !

  • Envie data/talkactions/createpokeball.lua

  • Bom amigo, eu vejo aqui que parece que você está adicionando o pokemon errado :x Tente seguir esse tutorial:  

Postado
2 minutos atrás, iury alves potter disse:

local typess = {       --alterado v2.9 \/  TUDO!!
[1] = "normal",
[2] = "great",
[3] = "super",
[4] = "ultra",
[5] = "saffari",
}
function onSay(cid, words, param)

if param == "" or param == " " then
   doPlayerSendCancel(cid, 'Command needs parameters, function structure: "/cb [Pokemon Name], [boost], [Gender], [ball type], [cp only go pokemons]".')
   return true
end

local t = string.explode(param, ",")
--
local name = ""
local btype = (tostring(t[4]) and pokeballs[t[4]]) and t[4] or typess[math.random(1, #typess)] 
local gender = (t[3] and tonumber(t[3])) and tonumber(t[3]) or t[3] and t[3] or nil    

if tostring(t[1]) then
    name = doCorrectString(t[1])   
    if not pokes[name] then
       doPlayerSendCancel(cid, "Sorry, a pokemon with the name "..name.." doesn't exists.")
       return true
    end
print(""..name.." ball has been created by "..getPlayerName(cid)..".")
doWriteLogFile("data/logs/createpokeball.txt", "[".. os.date('%d %B %y - %H:%M') .."] ".. getCreatureName(cid) .." Criou um ".. name .." (BOOST: ".. (t[2] and tonumber(t[2]) or 0) ..")")
end

addPokeToPlayer(cid, name, (t[2] and tonumber(t[2]) or 0), gender, btype, false) 

return true
end

 

Não vejo erro no script, siga o tutorial para adicionar pokémon, provavelmente você está esquecendo de alguma coisa.

 

Tutorial: https://tibiaking.com/forums/topic/47010-pda-adicionando-novos-pokemons-em-seu-servidor/

Cada escolha, uma oportunidade.
Cada queda, um aprendizado.
Cada atitude, uma consequência

 

.tumblr_nw2mfl0ut01r3aoszo1_400.gif

Postado
  • Autor
2 minutos atrás, RathBR disse:

Não vejo erro no script, siga o tutorial para adicionar pokémon, provavelmente você está esquecendo de alguma coisa.

 

Tutorial: https://tibiaking.com/forums/topic/47010-pda-adicionando-novos-pokemons-em-seu-servidor/

Ok vo la da uma olhada , vlw por responder ?

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo