adicionase algum poke novo? a tua tabela newpokedex em lib/configuration.lua esta com isso? stoCatch = 666001...
- Fórum
- OTServ
- Suporte
- Tópicos Sem Resposta
- [Encerrado] (Bug) Cath Das Balls
[Encerrado] (Bug) Cath Das Balls
Por BrunooMaciell, 04 de nov. de 2012 em Tópicos Sem Resposta
info
Grupo: Príncipe
Registrado: 19/08/10
Posts: 4k
Reputação: +1.1k
Gênero: Masculino

info
Grupo: Infante
Registrado: 27/08/11
Posts: 1.9k
Reputação: +85
Gênero: Masculino
Char no Tibia: Bruno Maciel

nao vc que ke poste minha configuration aqui ??
info
Grupo: Conde
Registrado: 25/04/12
Posts: 752
Reputação: +125
Gênero: Masculino

Se não tiver é só colocar ;s
info
Grupo: Infante
Registrado: 27/08/11
Posts: 1.9k
Reputação: +85
Gênero: Masculino
Char no Tibia: Bruno Maciel

Se não tiver é só colocar ;s
ai nao estou conseguindo posta minha configuration
ta dando este erro \/
CONTENT_TOO_LONG
info
Grupo: Visconde
Registrado: 24/07/12
Posts: 265
Reputação: +15

Está muito longo a sua postagem. Por isso não está aceitando....Posta a metade em espoiler e depois posta a outra. Ou upa o arquivo lua todo
info
Grupo: Infante
Registrado: 27/08/11
Posts: 1.9k
Reputação: +85
Gênero: Masculino
Char no Tibia: Bruno Maciel

adicionase algum poke novo? a tua tabela newpokedex em lib/configuration.lua esta com isso? stoCatch = 666001...
Aii slicer minha dex da configuration \/
esta e so o começo ^^
\/
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},
["Squirtle"] = {gender = 875, level = 18, storage = 1007, stoCatch = 666007},
["Wartortle"] = {gender = 875, level = 38, storage = 1008, stoCatch = 666008},
["Blastoise"] = {gender = 875, level = 75, storage = 1009, stoCatch = 666009},
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: Infante
Registrado: 27/08/11
Posts: 1.9k
Reputação: +85
Gênero: Masculino
Char no Tibia: Bruno Maciel
Estou com um bug relacionado ao cath das balls !!
Bug !!
[04/11/2012 19:21:49] [Error - Action Interface]
[04/11/2012 19:21:49] In a timer event called from:
[04/11/2012 19:21:49] data/actions/scripts/catch.lua:onUse
[04/11/2012 19:21:49] Description:
[04/11/2012 19:21:49] data/lib/catch system.lua:27: bad argument #2 to 'find' (string expected, got nil)
[04/11/2012 19:21:49] stack traceback:
[04/11/2012 19:21:49] [C]: in function 'find'
[04/11/2012 19:21:49] data/lib/catch system.lua:27: in function 'doBrokesCount'
[04/11/2012 19:21:49] data/lib/catch system.lua:303: in function <data/lib/catch system.lua:266>
Script !!
local ballcatch = {
[2394] = {cr = 5, on = 24, off = 23, ball = 11826, send = 47},
[2391] = {cr = 10, on = 198, off = 197, ball = 11832, send = 48},
[2393] = {cr = 15, on = 202, off = 201, ball = 11835, send = 46},
[2392] = {cr = 20, on = 200, off = 199, ball = 11829, send = 49},
}
function onUse(cid, item, frompos, item3, topos)
local item2 = getTopCorpse(topos)
if item2 == null then
return true
end
if getItemAttribute(item2.uid, "catching") == 1 then
return true
end
local name = string.lower(getItemNameById(item2.itemid))
name = string.gsub(name, "fainted ", "")
name = string.gsub(name, "defeated ", "")
local x = pokecatches[doCorrectPokemonName(name)]
if not x then return true end
local owner = getItemAttribute(item2.uid, "corpseowner")
if owner and isCreature(owner) and isPlayer(owner) and cid ~= owner and isInArray({1,9}, getPlayerGroupId(cid)) then
doPlayerSendCancel(cid, "Você não pode capturar este pokemon.")
return true
end
local catchinfo = {}
catchinfo.rate = ballcatch[item.itemid].cr
catchinfo.catch = ballcatch[item.itemid].on
catchinfo.fail = ballcatch[item.itemid].off
catchinfo.newid = ballcatch[item.itemid].ball
catchinfo.name = doCorrectPokemonName(name)
catchinfo.topos = topos
catchinfo.chance = x.chance
doSendDistanceShoot(getThingPos(cid), topos, ballcatch[item.itemid].send)
doRemoveItem(item.uid, 1)
local d = getDistanceBetween(getThingPos(cid), topos)
addEvent(doSendPokeBall, d * 70 + 100 - (d * 14) , cid, catchinfo, false, false)
addEvent(doSendMagicEffect, (d * 70 + 100 - (d * 14)) - 100, topos, 3)
return true
end
Rep+