Register for your free account! | Forgot your password?

You last visited: Today at 04:10

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

Advertisement



[TopLegions Rank]

Discussion on [TopLegions Rank] within the EO PServer Hosting forum part of the Eudemons Online category.

Reply
 
Old   #1
 
fusionkid's Avatar
 
elite*gold: 0
Join Date: Nov 2007
Posts: 163
Received Thanks: 29
[TopLegions Rank]

Hey everyone ive just made a top legions rank

Hres the code it shows the legions name rank money and how many members and leaders name ive also made pk rank health rank ep rank thats allready been done and exp rank but i cnt seem to get eudemons rank working so if any one has that working plz post thanks Heres code for legions if u want the other ranks just post

Legions rank code!
PHP Code:
  <?php            

    $myhost
="localhost";
    
$mypass="test";
    
$myuser="test";
    
$mydb="my";
    
mysql_connect($myhost,$myuser,$mypass);
    
mysql_select_db($mydb);?>
                            Top Ranking 5 Best Legions </strong></p>
                          <p>&nbsp;</p>
                        </div>
                          <table width="310" height="56" border="0">
                            <tr>
                              <td width="35"><div align="center"><span style="padding-left: 11px;"><a title="Contact" href="http://eo.91.com/contact/contact.shtml"> </a><a href="/eudemons2/index.php"></a><strong>Rank</strong></span></div></td>
                              <td width="102"><div align="center">
                                <p style="padding-left: 11px;"><strong>Legions-</strong><strong>Name</strong></p>
                                </div></td>
                              <td width="52"><div align="center"><span style="padding-left: 11px;"><strong>Leaders </strong></span></div></td>
                              <td width="52"><div align="center"><span style="padding-left: 11px;"><strong>Money</strong></span></div></td>
                              <td width="52"><span style="padding-left: 11px;"><strong>Members</strong></span></td>
                            </tr>
                            <tr>
                              <?php    
                
    $rank 
mysql_query("SELECT NAME,leader_name,money,amount FROM cq_syndicate ORDER by money desc limit 5");
    
//$row = mysql_fetch_array($rank);
    
$i=1;
    while(
$row mysql_fetch_array($rank)){
    if(
$row['profession']==10){
        
$profesion='<img src="images/staff.jpg" width="34" height="37">';
    }
    else{
            
$profesion='<img src="images/weapon.jpg" width="34" height="37">';
    
    }
        echo 
'
    <td>'
.$i.'-</td>
    <td><div align="center">'
.$row['NAME'].'</td>
    <td><div align="center">'
.$row['leader_name'].'</td>
    <td><div align="center">£'
.$row['money'].'</td>
    <td><div align="center">'
.$row['amount'].'</td>
  </tr> '
;
  
$i=$i+1;
    }
    
?>
Feel free to edit!
fusionkid is offline  
Old 02/05/2008, 21:24   #2
 
elite*gold: 0
Join Date: Nov 2006
Posts: 179
Received Thanks: 62
um i got eudemons working just fine i cant seem to change the star rank to actual stars so if you could help me on that but heres the code

<?php
require_once './inc/class.captcha.php';
$myhost="localhost";
$mypass="test";
$myuser="test";
$mydb="my";
mysql_connect($myhost,$myuser,$mypass);
mysql_select_db($mydb);?>

<table width="217" height="137" border="0">
<tr>
<td width="38"><div align="center">
<a href="status.php"><<</a><strong>Rank</td>
<td width="107"><div align="center"><strong>Name</td>
<td width="50"><div align="center"><strong>Owner Name</td>
<td width="107"><div align="center"><strong>Stars</td>
<td width="50"><div align="center"><strong>Level</td>
</tr>
<tr>
<?php

$rank = mysql_query("SELECT name,level,star_lev,ori_owner_name FROM cq_eudemon ORDER by star_lev desc;");
//$row = mysql_fetch_array($rank);
$i=1;
while($row = mysql_fetch_array($rank)){

echo '
<td>'.$i.'-</td>
<td><div align="center">'.$row['name'].'</td>
<td><div align="center">'.$row['ori_owner_name'].'</td>
<td><div align="center">'.$row['star_lev'].'</td>
<td><div align="center">'.$row['level'].'</td>
</tr> ';
$i=$i+1;
}


?>
DarkBebi is offline  
Old 02/05/2008, 22:37   #3
 
fusionkid's Avatar
 
elite*gold: 0
Join Date: Nov 2007
Posts: 163
Received Thanks: 29
Ok ill have a look thanks for the share maybe i can have a look i just don't no what table acctuly has the stars or u have to enter somthing to make it show acctuly stars
fusionkid is offline  
Old 02/05/2008, 23:06   #4
 
elite*gold: 0
Join Date: Nov 2006
Posts: 179
Received Thanks: 62
hey fusionkid (off-topic) maybe you could still add me on msn i have alittle thing to show you on your post up there where it shows Top Ranking 5 Best Legions </strong></p>, you dont have the starting strong and p... just alittle hint so you can correct your self

EDIT:Sorry my email is
DarkBebi is offline  
Old 02/05/2008, 23:34   #5
 
elite*gold: 0
Join Date: Dec 2005
Posts: 28
Received Thanks: 3
Quote:
Originally Posted by fusionkid View Post
Ok ill have a look thanks for the share maybe i can have a look i just don't no what table acctuly has the stars or u have to enter somthing to make it show acctuly stars
cq_eudemon has a field called star_lev It shows the stars in points.. ie 10* = star_lev 1000. So you'd have to do

(Pseudo-code)

$star_lev = "1234";
$stars = "";

if (Length($star_lev) == 4) {
$stars = $star_lev[0] + $star_lev[1];
} else if (Length($star_lev) == 5 {
$stars = $star_lev[0] + $star_lev[1] + $star_lev[2];
}

echo $stars;



(It wont shows variables in [ code] or [ php]
jackyyll is offline  
Old 02/06/2008, 00:34   #6
 
fusionkid's Avatar
 
elite*gold: 0
Join Date: Nov 2007
Posts: 163
Received Thanks: 29
Quote:
Originally Posted by jackyyll View Post
cq_eudemon has a field called star_lev It shows the stars in points.. ie 10* = star_lev 1000. So you'd have to do

(Pseudo-code)

= "1234";
= "";

if (Length() == 4) {
= + ;
} else if (Length() == 5 {
= + + ;
}

echo ;



(It wont shows variables in [ code] or [ php]
Thanks for this but if its no trouble may u wud post the whole code with this one?
fusionkid is offline  
Old 02/06/2008, 03:29   #7
 
elite*gold: 0
Join Date: Dec 2005
Posts: 28
Received Thanks: 3
Don't you know what pseudo-code means -.-
jackyyll is offline  
Reply


Similar Threads Similar Threads
[TUT]Rank in VSF to PSF
04/15/2011 - Soldier Front Hacks, Bots, Cheats & Exploits - 49 Replies
`1st of all this is only a tutorial.. `2nd download vsf `now get the menu 001 in vsf and place in mygame folder `u nid a backup for this .. `if this is not working .. my account will be band :) `So Enjoy ! Ok.. Attachments : Link:menu_001.sff
sale rank bug rank 12-18 cabal chronicel
09/15/2010 - Cabal Online Trading - 2 Replies
seling rank bug (rank 12-18) no need do story quess just take rank quess add me in ym [email protected]
[GP] Rank
06/27/2010 - CrossFire - 8 Replies
Hey, es ist doch eigentlich so dass man nach einigen ranks ne bestimmt summe GP bekommt. Und meine frage ist wann bekomme ich wieder mal automatisch Gp :D ( des war ungefähr so weit ich mich noch erinnern kann 20 k Gp was ich bekommen hatte ) und meine vorstellung ist je höher der rank desto mehr gp aber dafür dauert länger kann des sein ? mein rank (aCc) : http://crossfire-germany.eu/API/sign.php?usn=61747 19 Lg
nobility rank
06/19/2009 - CO2 Private Server - 1 Replies
the nobility rank is added in coemu v2?
[Request-Help] Online Server Rank like GW Rank
12/05/2008 - CO2 Private Server - 6 Replies
im requesting for help for this idea: when you enter guild gate you see a top 5 guilds is it possible that when you enter Market and Twincity and Jail and PKArena you see a top 5 players based on Level EXP? so when you have 2x lvl 134 they will rank the 134 higher with the higher exp.



All times are GMT +1. The time now is 04:12.


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.