• 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!

2 Servers 1 Database

xLosT

Member
Joined
Jan 11, 2010
Messages
1,021
Reaction score
13
Location
Brasil, Rio Grande do Sul
if I connect two servers to the same database it is possible to make the player is an online on server port 7171 it will not be able to log into the server 2 port 7272?
 
I did read the topic and as far as I know what you want is impossible... Everything will be exactly the same if you use the same database the only difference being is that you just have 2 servers running instead of one so it's pointless.
 
I think it is possible, since you always have the the servers connected to the database.
Example:
Webpage and game server, they both connect to the same address and port of the database.

but IMO it is best to run separate database and have those two communicate with each other, to keep only player info on both servers, so if you have a house on one server you will not have it in the other, but items, skills, dp items, etc. will be shared between both servers.

LuaSQL: Database connectivity for the Lua programming language
make a globalscript that searches for online player and using luasql you can connect to the second database and commit all the changes that are needed on the second database.

Edit:
Not just only a globalscript but also a few creaturescript(onLogin, onLogoff, onKill, onDeath and onAdvance)
 
Last edited:
I'll give an example
1º server edron pvp 7171
2º server edron non-pvp 7172
same accounts
same map
I just want to know if is possible to make a storage or something in C + + that if the player is on a pvp server 7171 can not log into the server only server 7172 non pvp, except insofar as it is offline
 
How I am does Login Server?

two server on world=0
Dafuq u want

u wot m8?

enjoy faggotry server OP went full retard im gone

edit disregard below
I think it is possible, since you always have the the servers connected to the database.
1 server = 1 database
2 server = 2 database,

in 1 database not is possible o.O'

or yes?
never heard about it
Yes r possible

ITT Idiots giving idiot advice
Just upload the database again to xampp/uniserver and call it something different, it will be the same database just blank with no players etc.
If you used the same database then it would probably just make it so they have the same character, house, items, money etc but on 2 servers.

Edit disregard same idiot
 
Last edited:
Back
Top