Quote:
Originally Posted by Smythe94
@LookBehind, you can create a status checker by having a TCP Client connect to your IP:PORT.
Count the amount of values of accounts and characters in your MySQL database. It's really easy to code that.
|
Actually with coemu you first need to add a function to show if players are on or offline and then count those values.
So you need to add a Online field to character database, then in login code have it change to online. On server startup/character logoff/kicking etc change it to offline. Then have a php script count those values in the database and print out the number as players online.
Unless I'm mistaken that's the best way to do the script, hope that helps you some LBY