(Duvida) OtClient

BrunooMaciell
em Clients
  • 1
  • 2

BrunooMaciell

Bruno Maciel
avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 27/08/11Posts: 1919Gênero: MasculinoChar no Tibia: Bruno Maciel

Estou com uma duvida relacionado ao meu cliente - base do OtClient !!

 

Eu queria aprender como deixa ele proprio tira aqula parte de coloca ip verçao port estas coisas =S

 

Eu vi varios ots que usa este cliente como PGalaxy que tem um cliente mais sem estas coisas tipo proprio =X

 

Quem puder mi encinar !!

 

Rep++

Caronte

Ex-Moderador de Scripting
avatar
Marquês
Marquês

INFOS

Grupo: MarquêsRegistrado: 25/09/10Posts: 1341Gênero: Masculino

Siga este tutorial

Parece ser permitido , apesar do site ser de outro forum.

BrunooMaciell

Bruno Maciel
avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 27/08/11Posts: 1919Gênero: MasculinoChar no Tibia: Bruno Maciel

Siga este tutorial

Parece ser permitido , apesar do site ser de outro forum.

mais so uma coisa este tutorial e do otclient ou cliente normal pq fazer cliente normal proprio eu sei eu quero aprender do otclient ??

Caronte

Ex-Moderador de Scripting
avatar
Marquês
Marquês

INFOS

Grupo: MarquêsRegistrado: 25/09/10Posts: 1341Gênero: Masculino

Próprio

aaa ta , se não quer próprio né ?

Moskei.

BrunooMaciell

Bruno Maciel
avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 27/08/11Posts: 1919Gênero: MasculinoChar no Tibia: Bruno Maciel

Próprio

aaa ta , se não quer próprio né ?

Moskei.

tipo conheçe o otclient que o Eduardo Bean posto ??

 

caso saiba entao eu queria deixa ele proprio ^^

Darckx13

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 02/01/13Posts: 87

Opa blzzz?

 

primeiramente vc vai na pasta modulos/client_entergame e abre o arquivo entergame.otui com algum editor

 

depois vc apaga tudo que tem la e cola isso

EnterGameWindow < MainWindow

 

EnterGameWindow

id: enterGame

!text: tr('Enter Game')

size: 236 200

@onEnter: EnterGame.doLogin()

 

MenuLabel

!text: tr('Account name')

anchors.left: parent.left

anchors.top: parent.top

text-auto-resize: true

 

TextEdit

id: accountNameTextEdit

anchors.left: parent.left

anchors.right: parent.right

anchors.top: prev.bottom

margin-top: 2

 

MenuLabel

!text: tr('Password')

anchors.left: prev.left

anchors.top: prev.bottom

margin-top: 8

text-auto-resize: true

 

PasswordTextEdit

id: accountPasswordTextEdit

anchors.left: parent.left

anchors.right: parent.right

anchors.top: prev.bottom

margin-top: 2

 

 

CheckBox

id: rememberPasswordBox

!text: tr('Remember password')

!tooltip: tr('Remember account and password when starts otclient')

anchors.left: parent.left

anchors.right: parent.right

anchors.top: prev.bottom

margin-top: 10

@onCheckChange: self:getParent():getChildById('autoLoginBox'):setEnabled(self:isChecked())

 

CheckBox

id: autoLoginBox

enabled: false

!text: tr('Auto login')

!tooltip: tr('Open charlist automatically when starting otclient')

anchors.left: parent.left

anchors.right: parent.right

anchors.top: prev.bottom

margin-top: 2

 

Button

!text: tr('Ok')

width: 64

anchors.right: parent.right

anchors.bottom: parent.bottom

@onClick: EnterGame.doLogin()

 

 

volte na pasta mods e crie um arquivo com o nome de server.otmod e cole isso

 

Module

name: addon_server

description: Server protocol extended

author: Darckx13

website: http://xtibia.com

 

autoload: true

autoload-priority: 1000

 

dependencies:

-client_entergame

 

@onLoad: |

EnterGame.setDefaultServer("SEU SERVIDOR AQUI", 7171, 860)

 

 

edite seu endereço na parte vermelha

 

espero ter ajudado

 

rep+

Slicer

Insanity
avatar
Príncipe
Príncipe

INFOS

Grupo: PríncipeRegistrado: 19/08/10Posts: 4014Gênero: Masculino

tem q editar o entergame.lua tb n? pq se n vai da erro... n sei se tu excluiu aqueles 'campos' do entergame... pq se excluiu o .lua vai tentar chamar eles e n vai achar..

 

outra coisa.. se soh copiar esse serv.otmod vai da erro.. pq precisa ter os espaços corretos no script..

eh melhor usar esse..

server.rar

q ja ta com os espaços corretos..

"Só a beira do abismo que os seres humanos acham forças para mudar."... E isso me da nojo... ¬¬

"Insanity is doing the exact... same fucking thing... over and over again expecting... shit to change... That. Is. Crazy." -Vass/Einstein

 

Nathannael

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 12/10/12Posts: 45Char no Tibia: num lebro o nome

Pode explicar melhor slicer tipo oque precisa mudar de verdade?

kalawalo

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 14/10/12Posts: 66Char no Tibia: kalawalo

No Meu Deu Erro Ele Nao Aparece Opçao De Escreve Login Senha :/

BrunooMaciell

Bruno Maciel
avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 27/08/11Posts: 1919Gênero: MasculinoChar no Tibia: Bruno Maciel

Vou testa aqui de todos qual pega sem da erro nada !!

 

Amanha do rep+

 

Obs: aqui deu erro nao aparece o painel =/

Oneshot

avatar
Marquês
Marquês

INFOS

Grupo: MarquêsRegistrado: 05/07/09Posts: 1347

Vocês complicaram demais, uma coisa que era para ser deveras simples.

 


 

Abra seu arquivo client.lua em modules/client e procure por isso:

 

function Client.startup()
 -- Play startup music (The Silver Tree, by Mattias Westlund)
 g_sounds.playMusic(musicFilename, 3)
 connect(g_game, { onGameStart = function() g_sounds.stopMusic(3) end })
 connect(g_game, { onGameEnd = function() g_sounds.playMusic(musicFilename, 3) end })

 -- Check for startup errors
 local errtitle = nil
 local errmsg = nil

 if g_graphics.getRenderer():lower():match('gdi generic') then
   errtitle = tr('Graphics card driver not detected')
   errmsg = tr('No graphics card detected, everything will be drawn using the CPU,\nthus the performance will be really bad.\nPlease update your graphics driver to have a better performance.')
 end

 -- Show entergame
 if errmsg or errtitle then
   local msgbox = displayErrorBox(errtitle, errmsg)
   msgbox.onOk = function() EnterGame.firstShow() end
 else
   EnterGame.firstShow()
 end
end

 

Antes do último end, coloque isso:

 

EnterGame.setUniqueServer("127.0.0.1", 7171, 860)

 

Ficando assim:

 

function Client.startup()
 -- Play startup music (The Silver Tree, by Mattias Westlund)
 g_sounds.playMusic(musicFilename, 3)
 connect(g_game, { onGameStart = function() g_sounds.stopMusic(3) end })
 connect(g_game, { onGameEnd = function() g_sounds.playMusic(musicFilename, 3) end })

 -- Check for startup errors
 local errtitle = nil
 local errmsg = nil

 if g_graphics.getRenderer():lower():match('gdi generic') then
   errtitle = tr('Graphics card driver not detected')
   errmsg = tr('No graphics card detected, everything will be drawn using the CPU,\nthus the performance will be really bad.\nPlease update your graphics driver to have a better performance.')
 end

 -- Show entergame
 if errmsg or errtitle then
   local msgbox = displayErrorBox(errtitle, errmsg)
   msgbox.onOk = function() EnterGame.firstShow() end
 else
   EnterGame.firstShow()
 end

 EnterGame.setUniqueServer("127.0.0.1", 7171, 860)
end

 

Os três parâmetros são:

 

EnterGame.setUniqueServer(IP, Port, Protocol)

 

Abraços.

BrunooMaciell

Bruno Maciel
avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 27/08/11Posts: 1919Gênero: MasculinoChar no Tibia: Bruno Maciel

/\ Vou Testa Aqui ^^

 

Duvida: qual script fica issu ??

StyloMaldoso

a good son makes the house...;p
avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 25/01/12Posts: 1593

/\ modules/client/client.lua o.O

 

 

@edit ta dando esse erro na hora de abrir o client.

'unable to load 'client' module' o.O

Project Pokémon Mysterion OpenSoures 2016.

Em breve, mais informações!

 

23vfcht.png

Nathannael

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 12/10/12Posts: 45Char no Tibia: num lebro o nome

È ta dando o error do cara de cima /\ oque fazer?

Oneshot

avatar
Marquês
Marquês

INFOS

Grupo: MarquêsRegistrado: 05/07/09Posts: 1347

Bom, não sei vocês, mas compilei a versão mais atual do OtClient disponível em https://github.com/edubart/otclient. Então talvez essa função não exista no OtClient de vocês.

 

Abraços.

  • 1
  • 2