Ir para conteúdo

Posts Recomendados

Estou com um erro no meu server de Pokemon que quando player joga a ball no Shiny Articuno,Mewtwo,Shiny Mewtwo,Shiny Mew,Mew,Zapdos,Shiny Zapdos trava o server e da esse erro:


[25/07/2013 11:54:17] [Error - Action Interface]

[25/07/2013 11:54:18] In a timer event called from:

[25/07/2013 11:54:18] data/actions/scripts/catch.lua:onUse

[25/07/2013 11:54:19] Description:

[25/07/2013 11:54:19] not enough memory


Estarei dando REP+



Se estiver na area errada por favor movam!

Editado por Extremex
Link para o comentário
https://xtibia.com/forum/topic/218418-encerrado-erro-ao-jogar-a-pokebola/
Compartilhar em outros sites

  • O título de um tópico deve conter uma breve descrição ou explicar o assunto do mesmo. Sendo assim, é expressamente proibido tópicos com títulos como "Socorro!!!" ou "Ajuda aqui plx".

Link para o comentário
https://xtibia.com/forum/topic/218418-encerrado-erro-ao-jogar-a-pokebola/#findComment-1544385
Compartilhar em outros sites

Sim Tem Esta ai!

  Mostrar conteúdo oculto

local ballcatch = {

[2394] = {cr = 40, on = 24, off = 23, ball = 11826, send = 47},

[2391] = {cr = 50, on = 198, off = 197, ball = 11832, send = 48},

[2393] = {cr = 60, on = 202, off = 201, ball = 11835, send = 46},

[2392] = {cr = 70, on = 200, off = 199, ball = 11829, send = 49},

[556] = {cr = 80, on = 187, off = 176, ball = 554, send = 45},

}


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


Editado por Extremex
Link para o comentário
https://xtibia.com/forum/topic/218418-encerrado-erro-ao-jogar-a-pokebola/#findComment-1544391
Compartilhar em outros sites

Cara seu server deve ser um PDA !!!

 

caso for como eu imagino tente pega o cath do srever do slicer 1.9 ou 2.9 !!

 

e teste ^^

Link para o comentário
https://xtibia.com/forum/topic/218418-encerrado-erro-ao-jogar-a-pokebola/#findComment-1544523
Compartilhar em outros sites

pode ser em data>lib>catch system verefique la


 

  Mostrar conteúdo oculto

Espero que de certo
Link para o comentário
https://xtibia.com/forum/topic/218418-encerrado-erro-ao-jogar-a-pokebola/#findComment-1544524
Compartilhar em outros sites

tenta substitui...

 

[spoilero]local ballcatch = { --id normal, id da ball shiy

[2394] = {cr = 3, on = 24, off = 23, ball = {11826, 11737}, send = 47, typeee = "normal"}, --alterado v1.9 \/
[2391] = {cr = 6, on = 198, off = 197, ball = {11832, 11740}, send = 48, typeee = "great"},
[2393] = {cr = 10, on = 202, off = 201, ball = {11835, 11743}, send = 46, typeee = "super"},
[2392] = {cr = 20, on = 200, off = 199, ball = {11829, 11746}, send = 49, typeee = "ultra"},
[12617] = {cr = 3, on = 204, off = 203, ball = {10975, 12621}, send = 35, typeee = "saffari"},
}
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
if getItemAttribute(item2.uid, "golden") and getItemAttribute(item2.uid, "golden") == 1 then
return doPlayerSendCancel(cid, "You can't try to catch a pokemon in the Golden Arena!")
end
local name = string.lower(getItemNameById(item2.itemid)) --alterado v1.9 \/
name = string.gsub(name, "fainted ", "")
name = string.gsub(name, "defeated ", "")
name = doCorrectPokemonName(name)
local x = pokecatches[name]
local storage = newpokedex[name].stoCatch --alterado v1.9 \/
if getPlayerStorageValue(cid, storage) == -1 or not string.find(getPlayerStorageValue(cid, storage), ";") 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
doPlayerSendCancel(cid, "You are not allowed to catch this pokemon.")
return true
end
local newidd = isShinyName(name) and ballcatch[item.itemid].ball[2] or ballcatch[item.itemid].ball[1] --alterado v1.9
local 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)
if getPlayerStorageValue(cid, 98796) >= 1 and getPlayerItemCount(cid, 12617) <= 0 then --alterado v1.9
setPlayerStorageValue(cid, 98796, -1)
setPlayerStorageValue(cid, 98797, -1)
doTeleportThing(cid, SafariOut, false)
doSendMagicEffect(getThingPos(cid), 21)
doPlayerSendTextMessage(cid, 27, "You spend all your saffari balls, good luck in the next time...")
end
addEvent(doSendPokeBall, d * 70 + 100 - (d * 14) , cid, catchinfo, false, false, typeee)
addEvent(doSendMagicEffect, (d * 70 + 100 - (d * 14)) - 100, topos, 3)
return true
end

Catch.lua em data actions

Link para o comentário
https://xtibia.com/forum/topic/218418-encerrado-erro-ao-jogar-a-pokebola/#findComment-1544535
Compartilhar em outros sites

VC deve tar usando o server centurion e simples va em Data/lib/ abra o configuration e procure pelos pokemos que dão bug ate chegar no cacth e mude pq ta 999999

exemplo

["Zapdos"] = {chance = poe aq 1000, corpse = 6074},

Link para o comentário
https://xtibia.com/forum/topic/218418-encerrado-erro-ao-jogar-a-pokebola/#findComment-1544546
Compartilhar em outros sites

Não entendi eu uso o centurionv6 poderia explica dnv para eu entender melhor?

@edit

Entendi vou tenta se eu conseguir aviso!


jonasneto12

Vlw Pela Tentativa :)

 

Vlw Por Tenta me ajuda

 

Brunnoo

 

Vlw msm pela atenção e Por tenta ajuda

 

 

CallOfTibia

 

Cara você e dahora vei funfo direitinho REP+ :D

Editado por Extremex
Link para o comentário
https://xtibia.com/forum/topic/218418-encerrado-erro-ao-jogar-a-pokebola/#findComment-1544565
Compartilhar em outros sites

  • 4 years later...
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ 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.
Link para o comentário
https://xtibia.com/forum/topic/218418-encerrado-erro-ao-jogar-a-pokebola/#findComment-1734683
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...