Jump to content
Sign in to follow this  
GummyBear

Ranking by Chaos Points

Recommended Posts

I can see 2 ways of doing this:

 

1)

Load all players inventorys, decrypt and check medal of valor parameters, then sort. But this would be very inefficient.

 

2)

Record all changes to chaos points ingame and write to file, load this file on the webpage.

 

 

 

Actually, you could probably use SQL triggers to record it, I'll try that tomorrow

  • Like 1

Share this post


Link to post
Share on other sites

Done using triggers, add these functions/triggers to your db, then you can just select chaospoint from character and order by descending for rankings.

(split function is not mine, found on stackoverflow)

I havent fully tested, so let me know if there are any issues.

 

 

(Updated to fix dupe bug when user doesnt have a medal of valor)

CHAOS.sql

  • Like 2

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Sign in to follow this  

×
×
  • Create New...