Postado Julho 25, 2018 7 anos 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: Meus trabalhos: [Movements] TFS 1.1+ Area Hardcore [Movements] TFS 1.1+ Tile Party [Action] TFS 1.1+ Bau diário [Action] TFS 1.1+ Guild Dungeon Lever [Talkactions] TFS 0.3.6 / 0.4 Quest Hunt por Tempo Contato: Discord: Tataboy67#4934
Postado Julho 25, 2018 7 anos 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 .
Postado Julho 25, 2018 7 anos 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.