Developer Berg 65 Postado Julho 17, 2015 Share Postado Julho 17, 2015 Olá Gente é o seguinte eu peguei um otclient zerado na versão 0.6.5 e comecei a editar, mais estou com um erro fatal no meu otclient, da um monte de erro, Tipo, quando eu usava uma versão anterior do otclient tipo a versão 0.6.2 ela n dava esse bug, vou deixar um video para vcs verem o erro, n da pra explicar sem mostrar rsrs, Do Rep+ Quem Me Ajudar Video Up Link para o comentário https://xtibia.com/forum/topic/235565-bug-otclient-com-video/ Compartilhar em outros sites More sharing options...
valakas 90 Postado Julho 17, 2015 Share Postado Julho 17, 2015 (editado) pega um otc sem editar e coloca seu dat e spr e entra para ve se buga, caso se bugar e porque tem alguma coisa errado no seu dat e spr , esperimente também fazer attacks menores Editado Julho 17, 2015 por valakas Link para o comentário https://xtibia.com/forum/topic/235565-bug-otclient-com-video/#findComment-1661228 Compartilhar em outros sites More sharing options...
Developer Berg 65 Postado Julho 17, 2015 Autor Share Postado Julho 17, 2015 pega um otc sem editar e coloca seu dat e spr e entra para ve se buga, caso se bugar e porque tem alguma coisa errado no seu dat e spr , esperimente também fazer attacks menores vou testar aqui o client sem ta editado, mais a questão dos ataques menores eu n sei, pq em versão antiga do otc pega normal sem da esses bugs pega um otc sem editar e coloca seu dat e spr e entra para ve se buga, caso se bugar e porque tem alguma coisa errado no seu dat e spr , esperimente também fazer attacks menores dessa vez deu erros diferentes com o client zerado olha Up Up Link para o comentário https://xtibia.com/forum/topic/235565-bug-otclient-com-video/#findComment-1661240 Compartilhar em outros sites More sharing options...
nociam 90 Postado Julho 18, 2015 Share Postado Julho 18, 2015 Como posso de explicar é alguma informação a mais que o servidor ta mandando e o client não ta lendo. Faz um teste abre o seu arquivo things. lua e exclua essas opção se tiver se nao tiver coloque se nao for isso nao sei o que pode ser. g_game.enableFeature(GameMagicEffectU16) Link para o comentário https://xtibia.com/forum/topic/235565-bug-otclient-com-video/#findComment-1661293 Compartilhar em outros sites More sharing options...
Developer Berg 65 Postado Julho 18, 2015 Autor Share Postado Julho 18, 2015 Como posso de explicar é alguma informação a mais que o servidor ta mandando e o client não ta lendo. Faz um teste abre o seu arquivo things. lua e exclua essas opção se tiver se nao tiver coloque se nao for isso nao sei o que pode ser. g_game.enableFeature(GameMagicEffectU16) Aeeeee Cara U.u, vc é de+ obg man Reputado e Resolvido ^^, ai cara tem como me ajudar nesse erro da minha Cb bar que ta dando ? olha Link para o comentário https://xtibia.com/forum/topic/235565-bug-otclient-com-video/#findComment-1661302 Compartilhar em outros sites More sharing options...
nociam 90 Postado Julho 18, 2015 Share Postado Julho 18, 2015 Vc pode passar o arquivo para poder ta uma olhada e uma informação de talk que o client não lê ou o servidor não lê. Link para o comentário https://xtibia.com/forum/topic/235565-bug-otclient-com-video/#findComment-1661335 Compartilhar em outros sites More sharing options...
Developer Berg 65 Postado Julho 18, 2015 Autor Share Postado Julho 18, 2015 Vc pode passar o arquivo para poder ta uma olhada e uma informação de talk que o client não lê ou o servidor não lê. olha aqui o arquivo, mais a informação de talk n sei '-' acho que ta por aqui if string.find(text, '12|,') then g_game.talk("!code64 cd") atualizarCDs(text) elseif string.find(text, '12&,') then olha o arquivo -- Privates variables local cdBarWin = nil local isIn = 'H' --[[ 'H' = horizontal; 'V' = vertical ]]-- local namesAtks = '' local icons = {} local visiblekpdo = false local text2 = "" -- End privates variables -- Public functions function init() cdBarWin = g_ui.displayUI('cdBar', modules.game_interface.getRootPanel()) cdBarWin:setVisible(false) cdBarWin:move(250,50) connect(g_game, 'onTextMessage', getParams) connect(g_game, { onGameEnd = hide } ) connect(LocalPlayer, { onLevelChange = onLevelChange }) connect(LocalPlayer, { onManaChange = onManaChange}) --inventoryButton = modules.client_topmenu.addRightGameToggleButton('Cooldown', tr('Cool Down Bar') .. ' (Ctrl+I)', '/images/topbuttons/inventory', showhide) --inventoryButton:setOn(true) g_mouse.bindPress(cdBarWin, function() createMenu() end, MouseRightButton) createIcons() end function terminate() disconnect(g_game, { onGameEnd = hide }) disconnect(g_game, 'onTextMessage', getParams) disconnect(LocalPlayer, { onLevelChange = onLevelChange }) disconnect(LocalPlayer, { onManaChange = onManaChange }) destroyIcons() cdBarWin:destroy() end local maninha = 0 function onManaChange(localPlayer, mana, maxMana) maninha = mana if mana == 0 then hide() end end function onLevelChange(localPlayer, value, percent) --g_game.talk("/otclient on") end function getParams(mode, text) if not g_game.isOnline() then return end if mode == MessageModes.Failure then if string.find(text, '12|,') then g_game.talk("!code64 cd") atualizarCDs(text) elseif string.find(text, '12&,') then --hide() text2 = text show() --createIcons() g_game.talk("!code64 ex") FixTooltip(text) atualizarCDs(text) end end end function atualizarCDs(text) if not g_game.isOnline() then return end if not cdBarWin:isVisible() then return end local t = text:explode(",") table.remove(t, 1) for i = 1, 12 do barChange(i, tonumber(t[i]), 1, 1) end end function changePercent(progress, icon, perc, num, init) if not cdBarWin:isVisible() then return end if init then progress:setPercent(0) else progress:setPercent(progress:getPercent()+perc) end if progress:getPercent() >= 100 then progress:setText("") return end progress:setText(num) icons[icon:getId()].event = scheduleEvent(function() changePercent(progress, icon, perc, num-1) end, 1000) end function file_exists(name) local f=io.open(name,"r") if f~=nil then io.close(f) return true else return false end end function barChange(ic, num, lvl, lvlPoke) if not g_game.isOnline() then return end if not cdBarWin:isVisible() then return end local icon = icons['Icon'..ic].icon local progress = icons['Icon'..ic].progress if not progress:getTooltip() then return end local player = g_game.getLocalPlayer() local pathOn = "moves_icon/"..progress:getTooltip().."_on.png" icon:setImageSource(pathOn) if num and num >= 1 then cleanEvents('Icon'..ic) changePercent(progress, icon, 100/num, num, true) else if (lvlPoke and lvlPoke < lvl) or player:getLevel() < lvl then progress:setPercent(0) progress:setText('L.'.. lvl) progress:setColor('#FF0000') else progress:setPercent(100) progress:setText("") end end end function FixTooltip(text) cdBarWin:setHeight(isIn == 'H' and 416 or 40) cdBarWin:setWidth(isIn == 'H' and 40 or 416) if not text then text = namesAtks else namesAtks = text end local t2 = text:explode(",") local count = 0 for j = 2, 13 do local ic = icons['Icon'..(j-1)] ic.icon:setMarginLeft(isIn == 'H' and 4 or ic.dist) ic.icon:setMarginTop(isIn == 'H' and ic.dist or 4) if t2[j] == 'n/n' then ic.icon:hide() ic.progress:setVisible(false) count = count+1 else count = 0 ic.icon:show() ic.progress:setTooltip(t2[j]) ic.progress:setVisible(true) end end if count > 0 and count ~= 12 then if isIn == "H" then cdBarWin:setHeight(416 - (count*34)) else cdBarWin:setWidth(416 - (count*34)) end elseif count == 12 then cdBarWin:setHeight(40) cdBarWin:setWidth(40) local p = icons['Icon1'].progress p:setTooltip(false) p:setVisible(false) end end function createIcons() visiblekpdo = true local d = 38 for i = 1, 12 do local icon = g_ui.createWidget('SpellIcon', cdBarWin) local progress = g_ui.createWidget('SpellProgress', cdBarWin) icon:setId('Icon'..i) progress:setId('Progress' ..i) icons['Icon'..i] = {icon = icon, progress = progress, dist = (i == 1 and 5 or i == 2 and 38 or d + ((i-2)*34)), event = nil} icon:setMarginTop(icons['Icon'..i].dist) icon:setMarginLeft(4) progress:fill(icon:getId()) progress.onClick = function() g_game.talk('m'..i) end end end function destroyIcons() visiblekpdo = false for i = 1, 12 do icons['Icon'..i].icon:destroy() icons['Icon'..i].progress:destroy() end cleanEvents() icons = {} end function cleanEvents(icon) local e = icons[icon] if icon then if e and e.event ~= nil then removeEvent(e.event) e.event = nil end else for i = 1, 12 do e = icons['Icon'..i] cleanEvents('Icon'..i) e.progress:setPercent(100) e.progress:setText("") end end end function createMenu() local menu = g_ui.createWidget('PopupMenu') menu:addOption("Set "..(isIn == 'H' and 'Vertical' or 'Horizontal'), function() toggle() end) menu:display() end local vertical = false function toggle() vertical = true if not cdBarWin:isVisible() then return end cdBarWin:setVisible(false) if isIn == 'H' then isIn = 'V' else isIn = 'H' end FixTooltip() -- destroyIcons() --createIcons() show() end local hidefunction = true function showhide() if hidefunction then cdBarWin:setVisible(false) hidefunction = false elseif maninha >= 1 then cdBarWin:setVisible(true) hidefunction = true end end function hide() cdBarWin:setVisible(false) --destroyIcons() end function show() if vertical then vertical = false cdBarWin:setVisible(true) return true end cdBarWin:setVisible(true) --createIcons() end -- End public functions Link para o comentário https://xtibia.com/forum/topic/235565-bug-otclient-com-video/#findComment-1661386 Compartilhar em outros sites More sharing options...
nociam 90 Postado Julho 19, 2015 Share Postado Julho 19, 2015 vc ta vendo essa parte g_game.talk("!code64 cd") então no seu arquivo talkactions.xml tem que ter ele ai se me passa o arquivo que ele chama se vc não tiver e porque falta esse arquivo . Link para o comentário https://xtibia.com/forum/topic/235565-bug-otclient-com-video/#findComment-1661499 Compartilhar em outros sites More sharing options...
Developer Berg 65 Postado Julho 20, 2015 Autor Share Postado Julho 20, 2015 vc ta vendo essa parte g_game.talk("!code64 cd") então no seu arquivo talkactions.xml tem que ter ele ai se me passa o arquivo que ele chama se vc não tiver e porque falta esse arquivo . n achei esse comando " !code64 cd " achei essa tag aqui com esse comando <talkaction words="m1;m2;m3;m4;m5;m6;m7;m8;m9;m10;m11;m12;!cd" hide="yes" event="script" value="move1.lua"/> e tipo na versão antiga do meu otc que eu usava n dava esse erro na cb bar '-' Link para o comentário https://xtibia.com/forum/topic/235565-bug-otclient-com-video/#findComment-1661519 Compartilhar em outros sites More sharing options...
HolyMaN 14 Postado Julho 22, 2015 Share Postado Julho 22, 2015 tenta colocar isso no talkactions.xml <talkaction words="!code64" case-sensitive="no" event="script" value="cdbar.lua"/> e dentro da pasta scripts abre o arquivo e embaixo de if not useKpdoDlls then return true end coloca isso: if words == "!code64" then return 0 end Link para o comentário https://xtibia.com/forum/topic/235565-bug-otclient-com-video/#findComment-1661926 Compartilhar em outros sites More sharing options...
Bruno 536 Postado Setembro 11, 2015 Share Postado Setembro 11, 2015 O tópico foi fechado e movido para lixeira por estar inativo a mais de 10 dias. Caso seja preciso reabrir o mesmo, favor entrar em contato com a equipe. Link para o comentário https://xtibia.com/forum/topic/235565-bug-otclient-com-video/#findComment-1668387 Compartilhar em outros sites More sharing options...
Posts Recomendados