Acabei de testar e funcionou
-- public functions
function EnterGame.init()
enterGame = g_ui.displayUI('entergame')
enterGameButton = modules.client_topmenu.addLeftButton('enterGameButton', tr('Login') .. ' (Ctrl + G)', '/images/topbuttons/login', EnterGame.openWindow)
motdButton = modules.client_topmenu.addLeftButton('motdButton', tr('Message of the day'), '/images/topbuttons/motd', EnterGame.displayMotd)
motdButton:hide()
g_keyboard.bindKeyDown('Ctrl+G', EnterGame.openWindow)
if motdEnabled and G.motdNumber then
motdButton:show()
end
local account = g_settings.get('account')
local password = g_settings.get('password')
local host = g_settings.get('host')
local port = g_settings.get('port')
local autologin = g_settings.getBoolean('autologin')
local protocolVersion = g_settings.getInteger('protocol-version')
if port == nil or port == 0 then port = 7171 end
EnterGame.setAccountName(account)
EnterGame.setPassword(password)
enterGame:getChildById('serverHostTextEdit'):setText(host)
enterGame:getChildById('serverPortTextEdit'):setText(port)
enterGame:getChildById('autoLoginBox'):setChecked(autologin)
protocolBox = enterGame:getChildById('protocolComboBox')
protocolBox.onOptionChange = onChangeProtocol
if protocolVersion then
protocolBox:setCurrentOption(protocolVersion)
end
enterGame:hide()
if g_app.isRunning() and not g_game.isOnline() then
enterGame:show()
end
EnterGame.setUniqueServer('globalwar.no-ip.org', 7171, 870, 270, 210)
end








info
Grupo: Barão
Registrado: 16/11/10
Posts: 203
Reputação: +78
Char no Tibia: Lerv
Olá! Hoje fui editar o client do meu servidor para mandar para os jogadores ... segui o tutorial do enter_game, mais o ip não funciona no cliente. Fica como conectando ... mais logo em seguida da falha!
if g_app.isRunning() and not g_game.isOnline() then enterGame:show() end EnterGame.setUniqueServer('pokestras.zapto.org', 7171, 854, 270, 210) endEu mesmo testei no client mesmo não funciona nem colocando no local do "IP", tanto o meu ip quando o do no-ip nenhum. O único que funciona e 127.0.0.1
Porem no client de Tibia antigo funciona perfeitamente o no-ip.
Editado Abril 9 por LekoDS