Atualiza seu server mano, aqui não da isso ![]()
- Fórum
- OTServ
- Suporte
- Tópicos Sem Resposta
- [Encerrado] Talk !pokeballs
info
Grupo: Conde
Registrado: 25/04/12
Posts: 752
Reputação: +125
Gênero: Masculino

info
Grupo: Lorde
Registrado: 22/07/12
Posts: 2.2k
Reputação: +453
Char no Tibia: Kissy

Tem como postar ele aki para mim verificar
info
Grupo: Príncipe
Registrado: 19/08/10
Posts: 4k
Reputação: +1.1k
Gênero: Masculino

aki tb esta tudo certo... va no seu lib/configuration.lua e veja se esta assim essa tabela..
newpokedex = {
["Bulbasaur"] = {gender = 875, level = 18, storage = 1001, stoCatch = 666001},
["Ivysaur"] = {gender = 875, level = 38, storage = 1002, stoCatch = 666002},
["Venusaur"] = {gender = 875, level = 75, storage = 1003, stoCatch = 666003},
["Charmander"] = {gender = 875, level = 18, storage = 1004, stoCatch = 666004},
["Charmeleon"] = {gender = 875, level = 38, storage = 1005, stoCatch = 666005},
["Charizard"] = {gender = 875, level = 75, storage = 100, stoCatch = 666006},
se alguma dessas linhas n tiver o 'stoCatch = xxxxx' eh esse o problema.. se n for isso.. n sei oq dizer, vc deve ter esquecido alguma coisa ;/
info
Grupo: Campones
Registrado: 12/02/08
Posts: 95
Reputação: +9
Gênero: Masculino

@Cleberadm minha versão é a 1.7 , se existe alguma mais atual me passe por favor.
@SkyLigh
Segue o script:
local pballs = {--msg q aparece, ball name, num de letras + " = "
[1] = {msg = "Poke Ball", ball = "normal", num = 9}, --normal = ... 9 letras
[2] = {msg = "Great Ball", ball = "great", num = 8}, --great = ... 8 letras
[3] = {msg = "Super Ball", ball = "super", num = 8},
[4] = {msg = "Ultra Ball", ball = "ultra", num = 8},
[5] = {msg = "Saffari Ball", ball = "saffari", num = 10},
}
local function sendBrokesCountMsg(cid, name, str)
if getPlayerStorageValue(cid, str) == -1 then
doPlayerSendTextMessage(cid, 27, "You haven't wasted any pokeball to try catch a "..name)
return true
end
local t = string.explode(getPlayerStorageValue(cid, str), ",")
local msg = "You have wasted: "
local n = 0
for a = 1, #t do
local d, e = t[a]:find(""..pballs[a].ball.." = (.-)")
local st2 = string.sub(t[a], d + pballs[a].num, e +5)
if tonumber(st2) ~= 0 then
if n ~= 0 then
msg = msg..", "
end
if tonumber(st2) ~= 1 then
msg = msg..st2.." "..pballs[a].msg.."s"
n = n +1
else
msg = msg..st2.." "..pballs[a].msg
n = n +1
end
end
end
msg = msg.." to try catch a "..name..", ultil now."
if n == 0 then
msg = "You haven't wasted any pokeball to try catch a "..name
end
doPlayerSendTextMessage(cid, 27, msg)
end
function onSay(cid, words, param)
if(param == '') then
doPlayerSendTextMessage(cid, 27, "Enter with a pokemon name...")
return true
end
if newpokedex[doCorrectPokemonName(param)] then
local storage = newpokedex[doCorrectPokemonName(param)].stoCatch
local name = doCorrectPokemonName(param)
sendBrokesCountMsg(cid, name, storage)
else
doPlayerSendTextMessage(cid, 27, "This isn't a pokemon...")
return true
end
return true
end
@Slicer
ta tudo com stoCatch
obs.: se meu sistema estiver desatualizado postem o atual aqui por favor...
info
Grupo: Lorde
Registrado: 22/07/12
Posts: 2.2k
Reputação: +453
Char no Tibia: Kissy

Veja assim.
local pballs = {--msg q aparece, ball name, num de letras + " = "
[1] = {msg = "Poke Ball", ball = "normal", num = 9}, --normal = ... 9 letras
[2] = {msg = "Great Ball", ball = "great", num = 8}, --great = ... 8 letras
[3] = {msg = "Super Ball", ball = "super", num = 8},
[4] = {msg = "Ultra Ball", ball = "ultra", num = 8},
[5] = {msg = "Saffari Ball", ball = "saffari", num = 10},
}
local function sendBrokesCountMsg(cid, name, str)
if getPlayerStorageValue(cid, str) == -1 then
doPlayerSendTextMessage(cid, 27, "You haven't wasted any pokeball to try catch a "..name)
return true
end
local t = string.explode(getPlayerStorageValue(cid, str), ",")
local msg = "You have wasted: "
local n = 0
for a = 1, #t do
local st2 = string.sub(t[a], d + pballs[a].num, e +5)
if tonumber(st2) ~= 0 then
if n ~= 0 then
msg = msg..", "
end
if tonumber(st2) ~= 1 then
msg = msg..st2.." "..pballs[a].msg.."s"
n = n +1
else
msg = msg..st2.." "..pballs[a].msg
n = n +1
end
end
end
msg = msg.." to try catch a "..name..", ultil now."
if n == 0 then
msg = "You haven't wasted any pokeball to try catch a "..name
end
doPlayerSendTextMessage(cid, 27, msg)
end
function onSay(cid, words, param)
if(param == '') then
doPlayerSendTextMessage(cid, 27, "Enter with a pokemon name...")
return true
elseif newpokedex[doCorrectPokemonName(param)] then
local storage = newpokedex[doCorrectPokemonName(param)].stoCatch
local name = doCorrectPokemonName(param)
sendBrokesCountMsg(cid, name, storage)
else
doPlayerSendTextMessage(cid, 27, "This isn't a pokemon...")
return true
end
return true
end
info
Grupo: Campones
Registrado: 12/02/08
Posts: 95
Reputação: +9
Gênero: Masculino

Veja assim.
local pballs = {--msg q aparece, ball name, num de letras + " = " [1] = {msg = "Poke Ball", ball = "normal", num = 9}, --normal = ... 9 letras [2] = {msg = "Great Ball", ball = "great", num = 8}, --great = ... 8 letras [3] = {msg = "Super Ball", ball = "super", num = 8}, [4] = {msg = "Ultra Ball", ball = "ultra", num = 8}, [5] = {msg = "Saffari Ball", ball = "saffari", num = 10}, } local function sendBrokesCountMsg(cid, name, str) if getPlayerStorageValue(cid, str) == -1 then doPlayerSendTextMessage(cid, 27, "You haven't wasted any pokeball to try catch a "..name) return true end local t = string.explode(getPlayerStorageValue(cid, str), ",") local msg = "You have wasted: " local n = 0 for a = 1, #t do local st2 = string.sub(t[a], d + pballs[a].num, e +5) if tonumber(st2) ~= 0 then if n ~= 0 then msg = msg..", " end if tonumber(st2) ~= 1 then msg = msg..st2.." "..pballs[a].msg.."s" n = n +1 else msg = msg..st2.." "..pballs[a].msg n = n +1 end end end msg = msg.." to try catch a "..name..", ultil now." if n == 0 then msg = "You haven't wasted any pokeball to try catch a "..name end doPlayerSendTextMessage(cid, 27, msg) end function onSay(cid, words, param) if(param == '') then doPlayerSendTextMessage(cid, 27, "Enter with a pokemon name...") return true elseif newpokedex[doCorrectPokemonName(param)] then local storage = newpokedex[doCorrectPokemonName(param)].stoCatch local name = doCorrectPokemonName(param) sendBrokesCountMsg(cid, name, storage) else doPlayerSendTextMessage(cid, 27, "This isn't a pokemon...") return true end return true end
mesma coisa... mas acho q encontrei o erro...
Quando peguei a lib configuration do slicer 1.7 alguns storages estao errados...
Ex.: Charizard o storage dele na newpokedex era p tar 1006, ta 100...
Vou testar e falo aki
-----Edit-----
Não mudou... continua o erro
-----Edit2------
Pode mover, ja arrumei!
Editado Outubro 20 por BobStriker
info
Grupo: Herói
Registrado: 28/11/10
Posts: 3.4k
Reputação: +585
Gênero: Masculino

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.





info
Grupo: Campones
Registrado: 12/02/08
Posts: 95
Reputação: +9
Gênero: Masculino
Bom, como o titulo ja diz... ta ocorrendo erro na talkaction !pokeballs que conta as brokes.
Em alguns pokes funciona, em outros da esse erro.
Ex.: sandshrew, charizard, e os shiny