Usuario, seu servidor é base pda? se for.
Vá "data/actions/scripts/catch.lua" e modifique por:
local ballcatch = {
[2394] = {cr = 1, on = 24, off = 23, ball = 11826, send = 47, typeee = "normal"},
[2391] = {cr = 1, on = 198, off = 197, ball = 11832, send = 48, typeee = "great"},
[2393] = {cr = 2, on = 202, off = 201, ball = 11835, send = 46, typeee = "super"},
[2392] = {cr = 2, on = 200, off = 199, ball = 11829, send = 49, typeee = "ultra"},
}
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)]
--------------------------------------------------------------------------------
local storage = newpokedex[doCorrectPokemonName(name)].stoCatch --edited brokes count system
if getPlayerStorageValue(cid, storage) == -1 then
setPlayerStorageValue(cid, storage, "normal = 0, great = 0, super = 0, ultra = 0, saffari = 0")
end
--------------------------------------------------------------------------------
if not x then return true end
local owner = getItemAttribute(item2.uid, "corpseowner")
if owner and isCreature(owner) and isPlayer(owner) and cid ~= owner then --alterado v1.5
doPlayerSendCancel(cid, "You are not allowed to catch this pokemon.")
return true
end
-----------------------------------------------------
newidd = ballcatch[item.itemid].ball
typeee = ballcatch[item.itemid].typeee
-----------------------------------------------------
local catchinfo = {}
catchinfo.rate = ballcatch[item.itemid].cr
catchinfo.catch = ballcatch[item.itemid].on
catchinfo.fail = ballcatch[item.itemid].off
catchinfo.newid = newidd
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, typeee) --edited brokes count system
addEvent(doSendMagicEffect, (d * 70 + 100 - (d * 14)) - 100, topos, 3)
return true
end
Aviso, esse que estou passando é base 1.5/1.6 pda slicer (sem level)
basta modificar as pokeballs novas e tudo mais...
Motivo do erro no seu:
Pode ter acontecido algum erro de portugues ou erro de tags, erro na colocação etc...
verefique as suas e veja oque foi que modificou de errado.
caso contrario adicione as minhas e modifique novamente.
Atenciosamente, Stigal.







info
Grupo: Campones
Registrado: 16/08/12
Posts: 92
Reputação: 0
Char no Tibia: Sedentaria
[18/09/2012 02:37:10] [Error - Action Interface]
[18/09/2012 02:37:10] In a timer event called from:
[18/09/2012 02:37:10] data/actions/scripts/catch.lua:onUse
[18/09/2012 02:37:10] Description:
[18/09/2012 02:37:10] data/lib/catch system.lua:127: attempt to perform arithmetic on local 'cexp' (a nil value)
[18/09/2012 02:37:10] stack traceback:
[18/09/2012 02:37:10] data/lib/catch system.lua:127: in function <data/lib/catch system.lua:89>