Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Share] SQL Queries to monitor In-Game Statistics

Newbie Spellweaver
Joined
Apr 2, 2009
Messages
90
Reaction score
16
A simple share for those owners that are not familiar with SQL Query yet.
I know this is just a simple thing, would just like to help the community.

All queries below are Juver based database.

Feel free to comment if you have any request regarding sql query.

Code:
-- Get Total Online Players
SELECT count(*)
FROM RanGame1.dbo.ChaInfo
WHERE ChaOnline = 1

-- List all online players players, sorted by level and character name
SELECT ChaName, ChaLevel
FROM RanGame1.dbo.ChaInfo
WHERE ChaOnline = 1
ORDER BY ChaLevel, ChaName

-- Check Top 100 Characters sorted by Activity Points
SELECT TOP 100 ChaName, ChaActivityPoint
FROM RanGame1.dbo.ChaInfo
ORDER BY ChaActivityPoint desc

-- Check Top 100 Characters sorted by Contribution Points
SELECT TOP 100 ChaName, ChaContributionPoint
FROM RanGame1.dbo.ChaInfo
ORDER BY ChaContributionPoint desc

-- Check Top 100 Characters sorted by  Gold
SELECT TOP 100 ChaName, ChaMoney
FROM RanGame1.dbo.ChaInfo
ORDER BY ChaMoney desc

-- Check Top 100 Character sorted by PK Score
SELECT TOP 100 ChaName, ChaPKScore
FROM RanGame1.dbo.ChaInfo
ORDER BY ChaPKScore desc

-- Check Top 100 Character sorted by PK Death
SELECT TOP 100 ChaName, ChaPKDeath
FROM RanGame1.dbo.ChaInfo
ORDER BY ChaPKDeath desc

-- Check Top 100 Character sorted by CW Score
SELECT TOP 100 ChaName, ChaCWKill
FROM RanGame1.dbo.ChaInfo
ORDER BY ChaCWKill desc

-- Check Top 100 Character sorted by CW Death
SELECT TOP 100 ChaName, ChaCWDeath
FROM RanGame1.dbo.ChaInfo
ORDER BY ChaCWDeath desc
 
Last edited:
Back
Top