Jump to content
  • 0

[Request] userbar with character statistic and online player


pdc58

Question

3 answers to this question

Recommended Posts

  • 0

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.

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock