I am not familiar with PTS but if the online players are stored on DB under any value like online 1-0 or yes no (as a boolean) I can make a php for this propuse
I am not familiar with PTS but if the online players are stored on DB under any value like online 1-0 or yes no (as a boolean) I can make a php for this propuse
pts doesn't work that way, there are 2 fields called login and logout in user_data table but sometimes it doesn't give the right number of online players.
Best solution is adding new admin packet and fetch that info from admin socket. Or you can open a socket to login server and read it from packet "AC_SEND_SERVERLIST".
My bad, missread the code. Anyway this way is a bit tricky, because in case of crash / server shutdown those values are not updated by CacheD, so my way is still more accurate + does not require to unhide database port.
As expected - totally wrong. (Using my database from live server on test server)
My bad, missread the code. Anyway this way is a bit tricky, because in case of crash / server shutdown those values are not updated by CacheD, so my way is still more accurate + does not require to unhide database port.
As expected - totally wrong. (Using my database from live server on test server) Посмотреть вложение 74607
that's what i meant, you can't trust the database for this, i had this code to query l2server for online players many years ago but i lost it in an old HDD.
My bad, missread the code. Anyway this way is a bit tricky, because in case of crash / server shutdown those values are not updated by CacheD, so my way is still more accurate + does not require to unhide database port.
As expected - totally wrong. (Using my database from live server on test server) Посмотреть вложение 74607