vinivini99 1 Postado Fevereiro 4, 2013 Share Postado Fevereiro 4, 2013 alguém me ajuda? já pesquisei aqui e não achei um tópico com solução . O meu é o PDA 1.6 sem level todo atualizado até o 1.8. aqui está o erro : [04/02/2013 11:34:28] [Error - MoveEvents Interface] [04/02/2013 11:34:28] data/movements/scripts/PVP/Trade_Back.lua:onStepIn [04/02/2013 11:34:28] Description: [04/02/2013 11:34:28] data/lib/011-string.lua:29: attempt to index local 'str' (a number value) [04/02/2013 11:34:28] stack traceback: [04/02/2013 11:34:28] data/lib/011-string.lua:29: in function 'explode' [04/02/2013 11:34:28] data/movements/scripts/PVP/Trade_Back.lua:13: in function <data/movements/scripts/PVP/Trade_Back.lua:3> Link para o comentário https://xtibia.com/forum/topic/206589-encerrado-erro-no-trade_back-e-011-string/ Compartilhar em outros sites More sharing options...
Slicer 1070 Postado Fevereiro 4, 2013 Share Postado Fevereiro 4, 2013 mano tu n pego o lib/011-string.lua da 1.8 sem+ Link para o comentário https://xtibia.com/forum/topic/206589-encerrado-erro-no-trade_back-e-011-string/#findComment-1459909 Compartilhar em outros sites More sharing options...
vinivini99 1 Postado Fevereiro 4, 2013 Autor Share Postado Fevereiro 4, 2013 http://www.youtube.com/watch?v=leRMpbYmSxA&feature tá ae a prova slicer Link para o comentário https://xtibia.com/forum/topic/206589-encerrado-erro-no-trade_back-e-011-string/#findComment-1460159 Compartilhar em outros sites More sharing options...
didogunner 2 Postado Fevereiro 4, 2013 Share Postado Fevereiro 4, 2013 (editado) esta faltando a PSY ActionID: [33800]. ;X cada um tem um Rock ActionID: [33801]. Wind ActionID: [33802]. Leaf ActionID: [33803]. Water ActionID: [33804]. Fight ActionID: [33805]. Ghost ActionID: [33806]. Thunder ActionID: [33807]. Fire ActionID: [33808]. e assim por diante vai no seu map editor e adiciona Editado Fevereiro 4, 2013 por DidoGunner Link para o comentário https://xtibia.com/forum/topic/206589-encerrado-erro-no-trade_back-e-011-string/#findComment-1460177 Compartilhar em outros sites More sharing options...
vinivini99 1 Postado Fevereiro 4, 2013 Autor Share Postado Fevereiro 4, 2013 já está com as actionID Link para o comentário https://xtibia.com/forum/topic/206589-encerrado-erro-no-trade_back-e-011-string/#findComment-1460186 Compartilhar em outros sites More sharing options...
didogunner 2 Postado Fevereiro 4, 2013 Share Postado Fevereiro 4, 2013 posta seu Trade_Back.lua ;X Link para o comentário https://xtibia.com/forum/topic/206589-encerrado-erro-no-trade_back-e-011-string/#findComment-1460199 Compartilhar em outros sites More sharing options...
vinivini99 1 Postado Fevereiro 4, 2013 Autor Share Postado Fevereiro 4, 2013 Trade_Back.lua local tileClans = {33800, 33801, 33802, 33803, 33804, 33805, 33806, 33807, 33808} -- psy ore win nat sea gard male rai volc function onStepIn(cid, item, pos) if isSummon(cid) then return false end -- local storage = 171877 if isInArray(tileClans, item.actionid) then storage = 171878 end -- local b = string.explode(getPlayerStorageValue(cid, storage), "/") local t = string.explode(b[1], ";") --alterado v1.8 -- if #getCreatureSummons(cid) >= 1 then for i = 1, #getCreatureSummons(cid) do doTeleportThing(getCreatureSummons(cid)[i], {x=tonumber(t[1]) - 1, y=tonumber(t[2]), z=tonumber(t[3])}, false) end end doTeleportThing(cid, {x=tonumber(t[1]), y=tonumber(t[2]), z=tonumber(t[3])}, false) setPlayerStorageValue(cid, storage, -1) return true end e estou postando o lib/011-string tbm: string.split = function (str) local t = {} return not str:gsub("%w+", function(s) table.insert(t, s) return "" end):find("%S") and t or {} end string.trim = function (str) return str:gsub("^%s*(.-)%s*$", "%1") end string.explode = function (str, sep, limit) if(type(sep) ~= 'string' or isInArray({tostring(str):len(), sep:len()}, 0)) then return {} end local i, pos, tmp, t = 0, 1, "", {} for s, e in function() return string.find(str, sep, pos) end do tmp = str:sub(pos, s - 1):trim() if tmp ~= "" then --alterado v1.8 table.insert(t, tmp) end pos = e + 1 i = i + 1 if(limit ~= nil and i == limit) then break end end tmp = str:sub(pos):trim() if tmp ~= "" then --alterado v1.8 table.insert(t, tmp) end return t end string.expand = function (str) return string.gsub(str, "$(%w+)", function(n) return _G[n] end) end string.timediff = function (diff) local format = { {"week", diff / 60 / 60 / 24 / 7}, {"day", diff / 60 / 60 / 24 % 7}, {"hour", diff / 60 / 60 % 24}, {"minute", diff / 60 % 60}, {"second", diff % 60} } local t = {} for k, v in ipairs(format) do local d, tmp = math.floor(v[2]), "" if(d > 0) then tmp = (k < table.maxn(format) and (table.maxn(t) > 0 and ", " or "") or " and ") .. d .. " " .. v[1] .. (d ~= 1 and "s" or "") table.insert(t, tmp) end end return t end Link para o comentário https://xtibia.com/forum/topic/206589-encerrado-erro-no-trade_back-e-011-string/#findComment-1460216 Compartilhar em outros sites More sharing options...
StyloMaldoso 330 Postado Fevereiro 4, 2013 Share Postado Fevereiro 4, 2013 você configurou as pos no trade_go certinho? coloko as pos certinho também ? @não vi o video por motivos de net lenta ;/ Link para o comentário https://xtibia.com/forum/topic/206589-encerrado-erro-no-trade_back-e-011-string/#findComment-1460218 Compartilhar em outros sites More sharing options...
vinivini99 1 Postado Fevereiro 4, 2013 Autor Share Postado Fevereiro 4, 2013 (editado) sim , nem precisei alterar pq eu uso seu mapa como base e vou modificando do meu jeito Editado Fevereiro 4, 2013 por vncs99 Link para o comentário https://xtibia.com/forum/topic/206589-encerrado-erro-no-trade_back-e-011-string/#findComment-1460225 Compartilhar em outros sites More sharing options...
Slicer 1070 Postado Fevereiro 4, 2013 Share Postado Fevereiro 4, 2013 o char q tas tentando sair do clan deve ter bugado... puxa ele de la e tenta denovo... agora se acontece com todos os chares, soh lamento pq n sei oq pode ta acontecendo... bye Link para o comentário https://xtibia.com/forum/topic/206589-encerrado-erro-no-trade_back-e-011-string/#findComment-1460235 Compartilhar em outros sites More sharing options...
vinivini99 1 Postado Fevereiro 4, 2013 Autor Share Postado Fevereiro 4, 2013 descobri o problema: está no trade_go. quem utiliza o mapa do stylomaldoso tem que editá-lo Link para o comentário https://xtibia.com/forum/topic/206589-encerrado-erro-no-trade_back-e-011-string/#findComment-1460324 Compartilhar em outros sites More sharing options...
Gabrieltxu 737 Postado Fevereiro 5, 2013 Share Postado Fevereiro 5, 2013 Duvida senada então Vou mandar feixar Link para o comentário https://xtibia.com/forum/topic/206589-encerrado-erro-no-trade_back-e-011-string/#findComment-1460685 Compartilhar em outros sites More sharing options...
Slicer 1070 Postado Fevereiro 5, 2013 Share Postado Fevereiro 5, 2013 sanado, movido Link para o comentário https://xtibia.com/forum/topic/206589-encerrado-erro-no-trade_back-e-011-string/#findComment-1460871 Compartilhar em outros sites More sharing options...
Stigal 584 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/206589-encerrado-erro-no-trade_back-e-011-string/#findComment-1733504 Compartilhar em outros sites More sharing options...
Posts Recomendados