Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Eudemons Online > EO PServer Hosting
You last visited: Today at 06:39

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



HOW DO I ......................

Discussion on HOW DO I ...................... within the EO PServer Hosting forum part of the Eudemons Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2008
Posts: 502
Received Thanks: 145
HOW DO I ......................

Dumb question here folks lol

How do i get the 'Top Players' list on a website to indicate the players by pot, rather than experience, (or whatever it uses).

I am not asking for myself because i know nothing about webpage design. I ask because i have yet to see anything on this site resembling this particular query and thought some people would like to know.
karnyge is offline  
Old 04/18/2010, 01:50   #2
 
.Ash's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,175
Received Thanks: 540
Quote:
Originally Posted by karnyge View Post
Dumb question here folks lol

How do i get the 'Top Players' list on a website to indicate the players by pot, rather than experience, (or whatever it uses).

I am not asking for myself because i know nothing about webpage design. I ask because i have yet to see anything on this site resembling this particular query and thought some people would like to know.
Well, you need a a source saying that this person have this much Potency, Then you can make an page for it to display, Example is provided below.

Code:
<?php
mysql_select_db($mydb);
	$rank = mysql_query("SELECT name,level,profession,[COLOR="Lime"]power[/COLOR] FROM cq_user WHERE name NOT LIKE '%[PM]%' AND  name NOT LIKE '%[GM]%' ORDER by [COLOR="Lime"]power[/COLOR] desc limit 50;");

	$i=1;
	while($row = mysql_fetch_array($rank)){
	if($row['profession']==10){
		$profesion='Mage';
	}
        if($row['profession']==30){
		$profesion='Paladin';
	}
	if($row['profession']==20){
		$profesion='Warrior';
	}
		echo '
    <td>'.$i.'-</td>
    <td><div align="center">'.$row['name'].'</td>
    <td><div align="center">'.$profesion.'</td>
    <td><div align="center">'.$row['[COLOR="Lime"]power[/COLOR]'].'</td>
    <td><div align="center">'.$row['level'].'</td>
  </tr> ';
  $i=$i+1;
	}


?>
I used power in cq_user. Replace the Green Color word to the Potency source.
.Ash is offline  
Thanks
1 User
Old 04/18/2010, 02:16   #3
 
elite*gold: 0
Join Date: Aug 2008
Posts: 502
Received Thanks: 145
So if i understand you correctly power = pot.
Yes?

thanks for the help.
karnyge is offline  
Old 04/18/2010, 03:21   #4
 
.Ash's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,175
Received Thanks: 540
no no lol i was just making power an example, Potency cant be in a DB, because its gained by Eudemons.
.Ash is offline  
Old 04/18/2010, 04:47   #5
 
elite*gold: 0
Join Date: Aug 2008
Posts: 502
Received Thanks: 145
So how do i get it to display the, as an example, top ten players based on the pot available to them. I understand that bit about it based on the pets.
Do you know how this can be achieved?
Would it mean having the website codes point to cq_eudemon, or could there be another way?
karnyge is offline  
Reply




All times are GMT +1. The time now is 06:39.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.