lucasmourahere 4 Postado Setembro 1, 2016 Share Postado Setembro 1, 2016 Eai Xtibia, estou enfrentando um grande problema no meu Duel System, sendo eles: Citar [01/09/2016 19:32:34] [Error - Action Interface] [01/09/2016 19:32:34] data/actions/scripts/goback.lua:onUse [01/09/2016 19:32:34] Description: [01/09/2016 19:32:34] data/lib/011-string.lua:29: attempt to index local 'str' (a number value) [01/09/2016 19:32:34] stack traceback: [01/09/2016 19:32:34] data/lib/011-string.lua:29: in function 'explode' [01/09/2016 19:32:34] data/lib/Duel System.lua:59: in function 'removeFromTableDuel' [01/09/2016 19:32:34] data/lib/Duel System.lua:141: in function 'doEndDuel' [01/09/2016 19:32:34] data/lib/Duel System.lua:188: in function 'checkDuel' [01/09/2016 19:32:34] data/lib/some functions.lua:840: in function 'doReturnPokemon' [01/09/2016 19:32:34] data/actions/scripts/goback.lua:85: in function <data/actions/scripts/goback.lua:13> e também tem um outro que é quando verifica a quantidade de pokemons valida para chamar Duelo. Vamos supor que eu tenha 1 pokemon na bag, mesmo assim da pra mim chamar Duelo com 6 Pokemons.. alguem teria uma solução para isso? Ps: Eu já tenho a proteção para contar pokemons dos invitados do Duelo, segue abaixo: data\creaturescripts\scripts\tvsys.lua: Citar local sid = getPlayerByName(getPlayerStorageValue(cid, 52483):match("(.*),")) ---------------- Proteçao para ter um oponente valido! if not isCreature(sid) then doPlayerSendTextMessage(cid, 20, "The other player isn't online! Duel is canceled!") doPlayerSetVocation(cid, 1) for i = 1, #storagesDuel do setPlayerStorageValue(cid, storagesDuel, -1) end doCreatureSetSkullType(cid, 0) return false end ---------------- Proteçao para os 2 players terem a qntdade de pokes pro duel local pokes1 = getLivePokeballs(cid, getPlayerSlotItem(cid, 3).uid, true) local pokes2 = getLivePokeballs(sid, getPlayerSlotItem(sid, 3).uid, true) if #pokes1 < (channelId-12) or #pokes2 < (channelId-12) then local tpw = getPlayerStorageValue(cid, 52480) > 1 and "ally" or "opponent" doPlayerSendTextMessage(cid, 20, "You or your "..tpw.." doesn't have that amount of pokemons in their bags! Duel are canceled!") doPlayerSetVocation(cid, 1) for i = 1, #storagesDuel do setPlayerStorageValue(cid, storagesDuel, -1) end doCreatureSetSkullType(cid, 0) return false end ---------------- if getPlayerStorageValue(cid, 52480) > 1 then setPlayerStorageValue(cid, 52482, getPlayerStorageValue(cid, 52482).. getCreatureName(sid)..",") setPlayerStorageValue(cid, 52483, "") end ---------------- data\actions\scripts\order.lua: Citar local pokes = getLivePokeballs(cid, getPlayerSlotItem(cid, 3).uid, true) if #pokes < getPlayerStorageValue(player, 52481) then return doPlayerSendTextMessage(cid, 20, "You need atleast ".. getPlayerStorageValue(player, 52481).." pokemons to duel with this person!") end OBS: Não é o arquivo inteiro, são apeans partes da proteção incluidas nos arquivos citados nos diretorios acima. INFOS DO SERVIDOR: Base: PDA (Pokemon Dash Advanced) Versão 8.54 TFS: 0.3.6 Link para o comentário https://xtibia.com/forum/topic/242015-encerrado-error-duel-system/ Compartilhar em outros sites More sharing options...
lucasmourahere 4 Postado Setembro 2, 2016 Autor Share Postado Setembro 2, 2016 (editado) up Editado Setembro 3, 2016 por lucasmourahere Link para o comentário https://xtibia.com/forum/topic/242015-encerrado-error-duel-system/#findComment-1703415 Compartilhar em outros sites More sharing options...
lucasmourahere 4 Postado Setembro 3, 2016 Autor Share Postado Setembro 3, 2016 up Link para o comentário https://xtibia.com/forum/topic/242015-encerrado-error-duel-system/#findComment-1703427 Compartilhar em outros sites More sharing options...
lucasmourahere 4 Postado Setembro 3, 2016 Autor Share Postado Setembro 3, 2016 up Link para o comentário https://xtibia.com/forum/topic/242015-encerrado-error-duel-system/#findComment-1703467 Compartilhar em outros sites More sharing options...
lucasmourahere 4 Postado Setembro 4, 2016 Autor Share Postado Setembro 4, 2016 up Link para o comentário https://xtibia.com/forum/topic/242015-encerrado-error-duel-system/#findComment-1703523 Compartilhar em outros sites More sharing options...
lucasmourahere 4 Postado Setembro 5, 2016 Autor Share Postado Setembro 5, 2016 up Link para o comentário https://xtibia.com/forum/topic/242015-encerrado-error-duel-system/#findComment-1703593 Compartilhar em outros sites More sharing options...
lucasmourahere 4 Postado Setembro 6, 2016 Autor Share Postado Setembro 6, 2016 up Link para o comentário https://xtibia.com/forum/topic/242015-encerrado-error-duel-system/#findComment-1703649 Compartilhar em outros sites More sharing options...
lucasmourahere 4 Postado Setembro 7, 2016 Autor Share Postado Setembro 7, 2016 up Link para o comentário https://xtibia.com/forum/topic/242015-encerrado-error-duel-system/#findComment-1703722 Compartilhar em outros sites More sharing options...
Josegvb 87 Postado Setembro 7, 2016 Share Postado Setembro 7, 2016 Em 6/19/2016 at 09:41, Daniel disse: UP nos comentários é errado @Josegvb Utilize o botão localizado no início do tópico, veja a imagem: Link para o comentário https://xtibia.com/forum/topic/242015-encerrado-error-duel-system/#findComment-1703723 Compartilhar em outros sites More sharing options...
Stigal 585 Postado Abril 21, 2018 Share Postado Abril 21, 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/242015-encerrado-error-duel-system/#findComment-1737319 Compartilhar em outros sites More sharing options...
Posts Recomendados