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
- Fórum
- xTibia - Notícias e Suporte
- Soluções
- Archived
- [ Bug ] Otclient, Com Video
info
Grupo: Visconde
Registrado: 28/02/14
Posts: 416
Reputação: +90
Gênero: Masculino

Editado Julho 17 por valakas
info
Grupo: Conde
Registrado: 12/04/15
Posts: 655
Reputação: +65
Gênero: Masculino
Char no Tibia: Developer Berg

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
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.
info
Grupo: Conde
Registrado: 12/04/15
Posts: 655
Reputação: +65
Gênero: Masculino
Char no Tibia: Developer Berg

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
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ê.
info
Grupo: Conde
Registrado: 12/04/15
Posts: 655
Reputação: +65
Gênero: Masculino
Char no Tibia: Developer Berg

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
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 .
info
Grupo: Conde
Registrado: 12/04/15
Posts: 655
Reputação: +65
Gênero: Masculino
Char no Tibia: Developer Berg

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 '-'
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





info
Grupo: Conde
Registrado: 12/04/15
Posts: 655
Reputação: +65
Gênero: Masculino
Char no Tibia: Developer Berg
Up