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.

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...