• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

x-logged players on otservlist = no, on server = yes. Need Fix!

bury

Active Member
Joined
Jul 27, 2008
Messages
421
Solutions
7
Reaction score
25
Hello.

I changed the idle time from 15 min to 2h. I want to show all the 100% players online in my website, but I want to show only active players in otservlist.org, do you know how can I do this?

I'm using tfs 0.4 and gesior 2012 last updated. If I go to who is online now:

Code:
Currently 2 players are online - 2 are active and 0 is AFK on Server.

And both 2 players have been afk for 30 or 40 min.


whoisonline.php:

PHP:
//server status - someone is online
    $main_content .= '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD CLASS=white><B>Server Status</B></TD></TR><TR BGCOLOR='.$config['site']['darkborder'].'><TD><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1><TR><TD>Currently '.$number_of_players_online.' players are online - <b>'.$config['status']['serverStatus_players'] .' ' . (($config['status']['serverStatus_players']  > 1) ? 'are' : 'is') . ' active</b> and <b>'.($number_of_players_online-$config['status']['serverStatus_players']).' ' . (($number_of_players_online-$config['status']['serverStatus_players']  > 1) ? 'are' : 'is') . ' AFK</b> on <b>'.htmlspecialchars($config['site']['worlds'][$world_id]).'</b>.</TD></TR></TABLE></TD></TR></TABLE><BR>';


Thanks!




bumpp

bumpp

bump :(
 
Last edited by a moderator:
PHP:
$main_content .= '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD CLASS=white><B>Server Status</B></TD></TR><TR BGCOLOR='.$config['site']['darkborder'].'><TD><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1><TR><TD>Currently '.$number_of_players_online.' players are online.</TD></TR></TABLE></TD></TR></TABLE><BR>';

Like this?

Currently '.$number_of_players_online.' players are online.
 
PHP:
$main_content .= '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD CLASS=white><B>Server Status</B></TD></TR><TR BGCOLOR='.$config['site']['darkborder'].'><TD><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1><TR><TD>Currently '.$number_of_players_online.' players are online.</TD></TR></TABLE></TD></TR></TABLE><BR>';

Like this?

Currently '.$number_of_players_online.' players are online.

Thanks Wibben! Now it seems it shows 100% of players in website but now I would like to show ONLY ACTIVE players in otservlist.org (because I changed idle time from 15 min to 2h) and if a player has been online for 16 min must be considered a 'no-active' or 'afk' player so that you can avoid banishement in otservlist.
 
Thanks Wibben! Now it seems it shows 100% of players in website but now I would like to show ONLY ACTIVE players in otservlist.org (because I changed idle time from 15 min to 2h) and if a player has been online for 16 min must be considered a 'no-active' or 'afk' player so that you can avoid banishement in otservlist.

Well that is handeld in the source code.
Hard to say, but check if you have this in your source code, if you do revert it; How to NOT count x-logged players?
 
Ok thanks. If I dont want to compile it again, If I set the idle time in 15 minutes its supossed that I wont be banned in otservlist, isn't it?

You mean the idle setting in config.lua?
If it's set to 15 min or w/e they count then no you won't get banned.
 
You mean the idle setting in config.lua?
If it's set to 15 min or w/e they count then no you won't get banned.

Yes, the problem is you can spoof/abuse for example exiting players in a secret room with no-logout sqm. So in otservlist they have like an "auto-system" that bans you, sometimes, without reason...

Most of the server now has this system, if you go to their website you can see like 500 players online for example but if you go and search it in otservlist you will see, 200 or 300, why? Because 200 are AFK but it only shows it in otservlist.

Why they're AFK? Because they have been without moving for more than 15 minutes, and maybe the idle time is set in 60 minutes. I think is cool set the idle time in 1h for example because people will stay online longer.
 
@WibbenZ

I patched the binaries and compiled again. Logged in with two characters some hours ago and uploaded the server to otservlist to make the test. I haven't touched tibia since then.

It has been like 3 hours and the players are still active because they're showed in otservlist online players:

https://otservlist.org/ots/1602737
 
Pay xinn and he won't ban you, these systems doesn't matter.

What you mean? Ive paid countdown and dont have more money... but I want to follow the rules :S

I've installed and compiled this How to NOT count x-logged players? but I just see the active players. Maybe I shouldn't edit the idlekicktime? But I want the chars stay logged in for more than 15 min, but when they are more than that without moving, they will be AFK and won't show in otservlist.

I dont know if I'm asking a really hard thing o.o
 
Very important - Rules change on otservlist.org
I don't know if there is a code for 0.3, im not really that updated with otservlist crap xD

Unless you edit the source code you have to have the kick time set to 15 min.
And unless you can find a version for 0.3 (link above) you will have to rewrite it yourself from 1.x.
 
Very important - Rules change on otservlist.org
I don't know if there is a code for 0.3, im not really that updated with otservlist crap xD

Unless you edit the source code you have to have the kick time set to 15 min.
And unless you can find a version for 0.3 (link above) you will have to rewrite it yourself from 1.x.

Mmmm what is the issue if I change the idlekicktime to 60 min? I mean what is wrong in the sources then?
I use tfs 0.4 btw

I changed it back atm
 
Mmmm what is the issue if I change the idlekicktime to 60 min? I mean what is wrong in the sources then?
I use tfs 0.4 btw

I changed it back atm

Im not 100% sure, but you will most likely send inactive players to otservlist.
If they notice that you will get banned for 30? days.
 
Im not 100% sure, but you will most likely send inactive players to otservlist.
If they notice that you will get banned for 30? days.

mm I think the first time is for a week or something, at least before but yes, they considere you're spoofing and ban you. Although Yuggi says if you pay you won't get banned xD

btw @WibbenZ , It's related to this. Do you know why in my server you can log out in a 'non-logout' sqm? Is like that non-logout sqm doesn't work and you can ctrl+L without problem
 
mm I think the first time is for a week or something, at least before but yes, they considere you're spoofing and ban you. Although Yuggi says if you pay you won't get banned xD

btw @WibbenZ , It's related to this. Do you know why in my server you can log out in a 'non-logout' sqm? Is like that non-logout sqm doesn't work and you can ctrl+L without problem

Well you can still get banned xD

No, never heard of it and can't find anything with a quick serach.
Maybe a source code issue?
 
Well you can still get banned xD

No, never heard of it and can't find anything with a quick serach.
Maybe a source code issue?

I dont know, just realized. For example in my last man standing event, in the before join room, obiously all is pz and non-log out zone. If I log out, character logs out and if I log in I appear in temple lol
 
Back
Top