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

AFK script / geisor

Duvbo

New Member
Joined
Sep 8, 2011
Messages
71
Reaction score
0
are there any script out there that make like ambera.net it show's AFK player but it will not be in total online so i can have nologut zone in training room without geting banned from otservlist?
 
In status.cpp you need to change:

Code:
sprintf(buffer, "%d", g_game.getPlayersOnline());
to

Code:
sprintf(buffer, "%d", Connection::connectionCount);
and

Code:
output->put<uint32_t>(g_game.getPlayersOnline());
to

Code:
output->put<uint32_t>(Connection::connectionCount);
3. Now you need to compile with --enable-server-diag


Code:
rm *.o
./configure --enable-mysql --enable-server-diag
make
And...
it's everything! Now you won't get banned for x-logged characters.


If you would like to modify whoisonline.php just change text there to:


PHP:
Currently '.$number_of_players_online.' players are Online - <b>'.$config['status']['serverStatus_players'] .' are active</b> and, '.($number_of_players_online-$config['status']['serverStatus_players']).' are AFK.
-------------------------------------------------------------------------------
Source: http://otland.net/f451/how-not-count-x-logged-players-81370/
 
It takes like less then a minute to compile so it's nothing hard :ninja:
 
Back
Top