Jump to content
  • 0

[Request] userbar with character statistic and online player


Question

Posted

good afternoon someone has the script to see the players online and userbar with l2off statistic character? thanks and sorry for the inconvenience

3 answers to this question

Recommended Posts

  • 0
Posted

SELECT COUNT(*) FROM user_data WHERE login > logout;

 

This query is not 100% accurate I may have to say.

When the server crashes or whatsoever online players usually stay "online" for this query.

  • 0
Posted

If you are using hAuthD set UserCount in hAuthD.ini to 1

then use

SELECT TOP 1 world_user FROM lin2db.dbo.user_count WHERE server_id = 1 ORDER BY record_time DESC

where server_id is the id from the server table in lin2db, it is updated automatically by the native AuthD every 5 minutes, for hAuthD i'm not sure the delay, but it is more accurate and will return 0 when the server is down.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..