• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

How i can do to player only use my version of otclient in my server?

Exedion

Active Member
Joined
Jun 11, 2007
Messages
628
Reaction score
30
well i only whant players only use my custom version of otclient for play my server, not the oficial, not another otclient version, only my version, can be do? how will be highly explained?
 
Code:
EnterGame.setUniqueServer(hostName, port, protocolVersion, windowWidth, windowHeight)

EnterGame.setUniqueServer('127.0.0.1', 7171, 862, 270, 210)
 
Code:
EnterGame.setUniqueServer(hostName, port, protocolVersion, windowWidth, windowHeight)

EnterGame.setUniqueServer('127.0.0.1', 7171, 862, 270, 210)

thanks! can explain me more detailed? i'm newby with OTC
 
where do i need to put this?

Code:
EnterGame.setUniqueServer(hostName, port, protocolVersion, windowWidth, windowHeight)

EnterGame.setUniqueServer('127.0.0.1', 7171, 862, 270, 210)
 
> otclient\modules\client_entergame\entergame.lua

after:
Lua:
  if g_app.isRunning() and not g_game.isOnline() then
    enterGame:show()
  end
 
> otclient\modules\client_entergame\entergame.lua

after:
Lua:
  if g_app.isRunning() and not g_game.isOnline() then
    enterGame:show()
  end

Editing modules like this is a bad behaviour.
You should create a new module with:

Code:
  autoload: true
  autoload-priority: 998

Then on this module init function you call what i've showed you.

If you need something more complex, then you make a function just like this on desired module and make a pull request.
 
Back
Top