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

Cipsofts borders?

Thanks, seems good. But it seems to be logging all characters towards AFK when loggin on the server?
Even when i walk, do spells still seems to count me as AFK and not active.

Not sure if this is suppose to be like that x x
And active stays the same :P


Owe you so much for helping with this :L
 
it's a flaw of the serverstatus, it's only updated every 5 minutes (config.lua statusTimeout) or so, which is why the AFK players count increases until it's "synced". not sure if you'll understand.

to fix some of the mess with vocation sorting, replace
PHP:
		function cmp($a, $b) {
			return $a[2][0] == $b[2][0] ? 0 :
				$GLOBALS['order'] == 'vocation_asc'
					? ($a[2][0] < $b[2][0] ? -1 : 1)
					: ($a[2][0] > $b[2][0] ? -1 : 1);
		}
with
PHP:
		function cmp($a, $b) {
			$r = strcmp($a[2], $b[2]);
			return $GLOBALS['order'] == 'vocation_desc' ? ($r == 1 ? -1 : ($r == -1 ? 1 : 0)) : $r;
		}
 
Last edited:
Aha, thanks for explaining. :)
Will see how it goes from this point on x x


You have no idea how much grateful i am for this,
Thank you so much. x x
 
Thanks, updated the vocation thing and yes you were right about serverstatus. :P

This might be basic php... but still it seems crazy x x

Glad this works and looks really nice, always makes a difference having a nice looking website :L
 
a possible fix for level sorting when sorting by vocation. if it works i'll update the first post as a final edit
Code:
		function cmp($a, $b) {
			$r = strcmp($a[2], $b[2]);
			$r = $GLOBALS['order'] == 'vocation_desc' ? ($r == 1 ? -1 : ($r == -1 ? 1 : 0)) : $r;
			return ($r == 0 && $a[1] < $b[1]) ? 1 : $r;
		}
		usort($a, 'cmp');
 
Yes x x

I'll be requesting characters page fix next :P
So ill be trying to get achievements there to :L

Thanks again. x x
 
Last edited:
Back
Top