Ir para conteúdo
  • 0

Client nao pega Versao Estended+Transparency {PFV AJUDEM}


ClaudioMar231o

Pergunta

Meu Client (OTC) Nao aceita Versao Transparency, So pega a Extended junto com o Codigo ! , Alguem poderia Me ajudar com o meu poblema , eu quero que o meu client aceite a versao transparency e extended =) Rep +++++"

post-378724-0-47021400-1442799409_thumb.png

 

 

Game-Things

ilename = nil

loaded = false

 

function init()

connect(g_game, { onProtocolVersionChange = load })

end

 

function terminate()

disconnect(g_game, { onProtocolVersionChange = load })

end

 

function setFileName(name)

filename = name

end

 

function isLoaded()

return loaded

end

 

function load() g_game.enableFeature(GameSpritesU32)g_game.enableFeature(GameSpritesAlphaChannel)local version = g_game.getProtocolVersion()

local datPath, sprPath

if filename then

datPath = resolvepath('/images/topbuttons/' .. filename)

sprPath = resolvepath('/images/topbuttons/things/' .. filename)

else

datPath = resolvepath('/images/topbuttons/things/' .. version .. '/Tibia')

sprPath = resolvepath('/images/topbuttons/things/' .. version .. '/Tibia')

end

 

local errorMessage = ''

if not g_things.loadDat(datPath) then

errorMessage = errorMessage .. tr("Unable to load dat file, please place a valid dat in '%s'", datPath) .. '\n'

end

if not g_sprites.loadSpr(sprPath) then

errorMessage = errorMessage .. tr("Unable to load spr file, please place a valid spr in '%s'", sprPath)

end

 

loaded = (errorMessage:len() == 0)

 

if errorMessage:len() > 0 then

local messageBox = displayErrorBox(tr('Error'), errorMessage)

addEvent(function() messageBox:raise() messageBox:focus() end)

 

disconnect(g_game, { onProtocolVersionChange = load })

g_game.setProtocolVersion(0)

connect(g_game, { onProtocolVersionChange = load })

end

g_game.enableFeature(GameBlueNpcNameColor)

end

 

 

Link para o comentário
Compartilhar em outros sites

8 respostass a esta questão

Posts Recomendados

×
×
  • Criar Novo...