Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 05.05.2006, 02:30   #1
jtomasrl
Архивный участник
 
Join Date: Apr 2006
Posts: 33
Default [REQUEST] does anyone have something like this?

shows online/ofline status for Login server and Game Server
shows online users
shows number of accounts / characters
shows number of clans



module for joomla =S

thx. ops:
jtomasrl is offline  
Old 05.05.2006, 12:29   #2
Drag
Архивный участник
 
Join Date: Mar 2006
Posts: 241
Default

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]
Drag is offline  
Old 05.05.2006, 21:54   #3
jtomasrl
Архивный участник
 
Join Date: Apr 2006
Posts: 33
Default

doesnt show users =(
jtomasrl is offline  
Old 06.05.2006, 01:17   #4
Megatronpt
Архивный участник
 
Join Date: Jan 2006
Posts: 584
Default

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.
Megatronpt is offline  
Old 06.05.2006, 03:24   #5
jtomasrl
Архивный участник
 
Join Date: Apr 2006
Posts: 33
Default

i dont think is as simple like that :S
how can mssql know if a player is online or offline :S
jtomasrl is offline  
Old 06.05.2006, 03:57   #6
Megatronpt
Архивный участник
 
Join Date: Jan 2006
Posts: 584
Default

Code:
select char_name as Char from user_data where login>logout
Megatronpt is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 20:24.