Jump to content

[SOLVED] Ranking Players


MasterACE14

Recommended Posts

Good Afternoon Everyone,

 

I have a Text MMORPG, and I am trying to figure out how to "Rank" all the players, basically, each player has a strikeaction, defenceaction and covertaction column in the database, and I want to assign an Integer(their rank) to each player depending on what their 3 actions added together are.

 

So the person who would be Ranked "1", would have the highest action(when strike, defence and covert are added together). And the lowest person would have the smallest action etc.

 

Now, what I would like to do, is add a "Rank" column to the database for each user, and have each hour(my cronjob) update their "rank" column with an integer, depending on what their total action is compared to every other player.  ;)

 

How would I go about this?

 

Regards ACE

Link to comment
Share on other sites

Just have their scores update the "rank" column, if they have more points in the rank column, higher overall player rank they are.

 

So (going off runescape stats, I know funny...)

 

attack + defence + strength = 99 (at one hour in the day)

 

another hour it adds up to 105

 

105+99 = 204 ( i think )

 

204 > a person with 156 so 204 is a higher rank.

 

Am I on the right track?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.