Brechtian87 2 Postado Dezembro 9, 2012 Share Postado Dezembro 9, 2012 eae galera bom no Server Centurion da um bug que não captura pokemon quando coloca o .exe sem virus mais quando coloca o que tem virus captura alguém pode ajudar? Olhar o Erro aii ;s \/ [Error - Action Interface] [09/12/2012 17:57:33] In a timer event called from: [09/12/2012 17:57:33] data/actions/scripts/catch.lua:onUse [09/12/2012 17:57:33] Description: [09/12/2012 17:57:33] data/lib/catch system.lua:24: attempt to perform arithmetic on a nil value [09/12/2012 17:57:34] stack traceback: [09/12/2012 17:57:34] data/lib/catch system.lua:24: in function <data/lib/catch system.lua:6> Link para o comentário https://xtibia.com/forum/topic/200972-encerrado-d%C3%BAvida-sistemar-de-catch/ Compartilhar em outros sites More sharing options...
DinoAdmin 57 Postado Dezembro 9, 2012 Share Postado Dezembro 9, 2012 Tenta colocar o catch Sistem Do Slicer (do server 2.6) No Meu Funcionou =D Link para o comentário https://xtibia.com/forum/topic/200972-encerrado-d%C3%BAvida-sistemar-de-catch/#findComment-1407890 Compartilhar em outros sites More sharing options...
GuhPk 111 Postado Dezembro 9, 2012 Share Postado Dezembro 9, 2012 Cara, procure no google "Centurion v4 em PT", ai vai aparecer la o link para um outro forúm... Baixa la o server, que está funcionando 100%!! usahsauh' Link para o comentário https://xtibia.com/forum/topic/200972-encerrado-d%C3%BAvida-sistemar-de-catch/#findComment-1407892 Compartilhar em outros sites More sharing options...
Slicer 1070 Postado Dezembro 9, 2012 Share Postado Dezembro 9, 2012 e tente nao fazer mais topicos com letra desse tamanhu.. da a impressao q tas gritando... todo mundo consegue ler com a letra no tamanho padrao --' Link para o comentário https://xtibia.com/forum/topic/200972-encerrado-d%C3%BAvida-sistemar-de-catch/#findComment-1407921 Compartilhar em outros sites More sharing options...
abmauromacedo 9 Postado Dezembro 10, 2012 Share Postado Dezembro 10, 2012 (editado) Slicer do server 2.6 da certo. Editado Dezembro 10, 2012 por abmauromacedo Link para o comentário https://xtibia.com/forum/topic/200972-encerrado-d%C3%BAvida-sistemar-de-catch/#findComment-1408875 Compartilhar em outros sites More sharing options...
Brechtian87 2 Postado Dezembro 11, 2012 Autor Share Postado Dezembro 11, 2012 (editado) Tenta colocar o catch Sistem Do Slicer (do server 2.6) No Meu Funcionou =D Bom eu consegui tirar quele erro que aparecia na hora de carregar o jogo mais ainda não captura, joga a ball mais não captura Bom eu não entendo muito de script mais acho que e pq o catch não esta configurado para o server vejam se vcs conseguem ajeitar. catch original do server: 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}, [556] = {cr = 40, 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, "You are not allowed to catch this 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 catch Novo que arrumei do server Slicer 2.6 local ballcatch = { [2394] = {cr = 3, on = 24, off = 23, ball = 11826, send = 47, typeee = "normal"}, [2391] = {cr = 6, on = 198, off = 197, ball = 11832, send = 48, typeee = "great"}, [2393] = {cr = 10, on = 202, off = 201, ball = 11835, send = 46, typeee = "super"}, [2392] = {cr = 15, 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 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!") --alterado v2.6 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 Aguem para ajudar ? Editado Dezembro 10, 2012 por Brechtian87 Link para o comentário https://xtibia.com/forum/topic/200972-encerrado-d%C3%BAvida-sistemar-de-catch/#findComment-1408876 Compartilhar em outros sites More sharing options...
Yan Oliveira 215 Postado Dezembro 19, 2012 Share Postado Dezembro 19, 2012 Tópico movido para a seção de dúvidas e pedidos resolvidos. Link para o comentário https://xtibia.com/forum/topic/200972-encerrado-d%C3%BAvida-sistemar-de-catch/#findComment-1417551 Compartilhar em outros sites More sharing options...
Stigal 585 Postado Abril 20, 2018 Share Postado Abril 20, 2018 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/200972-encerrado-d%C3%BAvida-sistemar-de-catch/#findComment-1733268 Compartilhar em outros sites More sharing options...
Posts Recomendados