View Full Version : [REQUEST] does anyone have something like this?
jtomasrl
05.05.2006, 02:30
shows online/ofline status for Login server and Game Server
shows online users
shows number of accounts / characters
shows number of clans
http://l2.rivulusgames.com/7.JPG
module for joomla =S
thx. :oops:
Can be done in php...
I did something like this for MobL2 server (without access to server files :P) long time ago. Script shows how many users was online, login/game server status (sockets - peace of cake)... If i could have access to server files i could do script to number of users too =) PHP rulz =)
Heres script for sockets:
[php:1:b5d3371218]<?
$IP = "Ip address"; # <--- PUT HERE IP
$PORTL = "2106"; # YOU CAN CHANGE HERE PORT
$PORTG = "7777"; # YOU CAN CHANGE HERE PORT
$TIMEOUTSERV = "0.3";
$STATLOGIN = @FSOCKOPEN($IP, $PORTL, $ERRNO, $ERRSTR, $TIMEOUTSERV);
$STATGAME = @FSOCKOPEN($IP, $PORTG, $ERRNO, $ERRSTR, $TIMEOUTSERV);
IF (!$STATLOGIN) {
ECHO "Login offline";
} ELSE {
ECHO "Login online";}
@FCLOSE($STATLOGIN);
IF (!$STATGAME) {
ECHO "Game offline";
} ELSE {
ECHO "Game online";}
@FCLOSE($STATLOGIN);
?>[/php:1:b5d3371218]
jtomasrl
05.05.2006, 21:54
doesnt show users =(
Megatronpt
06.05.2006, 01:17
That's easy jtomasrl..
Simply do a query, in SQL.. where you compare two fields.. logout and login. If one is newer than the other.. players are online or offline accordingly.
jtomasrl
06.05.2006, 03:24
i dont think is as simple like that :S
how can mssql know if a player is online or offline :S
Megatronpt
06.05.2006, 03:57
select char_name as Char from user_data where login>logout