Post
Topic
Board Meta
Re: Forum ranks/positions/badges (What do those shiny coins under my name mean?)
by
dogie
on 11/12/2014, 10:44:30 UTC
Is there a way to work out the requirement for each account's Legendary? I thought I remembered you could calculate it based off something, but looked through the last 10 pages and can't see it.

It's between 775 Activity and 1030+. The individual account's numbers are not known, although I'm sure it's based on something on the account, maybe the number, or the hash of it, or something.

use something like the hash of UID + a salt to determine the point?

That's what I did. It just takes the first byte of the SHA-1 hash of UID+salt and adds it to 775. There aren't many users with more than 775 activity, so checking people for upgrades every 10 minutes doesn't cause any problems. I was able to do it with just one SQL statement because MySQL has a built-in SHA-1 function.

That's what I was looking for, thanks. Guess its not something I can calculate myself then.