Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

ranking page

Initiate Mage
Joined
Jun 7, 2004
Messages
5
Reaction score
0
hi,

im looking for a good ranking page.Greensmurf has a very kwel ranking page.Maybe he is willing to share the php code?
 
Initiate Mage
Joined
Jan 21, 2004
Messages
29
Reaction score
0
certainly just right click and goto save target as to save my php code onto your computer
 
Initiate Mage
Joined
Jan 21, 2004
Messages
29
Reaction score
0
I realized my lost post was kinda penis.... I have uploaded my rank page.


edit:actually the forum won't let me so here...

<?

{

include ("config.php");
$query="SELECT * FROM tblGameID1 ORDER BY Lvl*2+STotalBonus DESC";
$result = mssql_query($query,$conn);

if (mssql_num_rows($result) < 1) {

echo "<b>No data in table.</b>";

**

else {

$range = mssql_num_rows($result);
if ($range > 999) { $range = 999; **

echo "<body bgcolor=\"c02022\">";
echo "<table border=\"2\" frame=\"hisides\" rules=\"groups\" bgcolor=\"d03045\">";
echo "<caption><b>Player Ranks</b></caption>";
echo "<colgroup align=\"center\">";
echo "<colgroup align=\"center\">";
echo "<colgroup align=\"center\">";
echo "<colgroup align=\"center\">";
echo "<colgroup align=\"center\">";
echo "<colgroup align=\"center\">";
echo "<colgroup align=\"center\">";
echo "<colgroup align=\"center\">";
echo "<colgroup align=\"center\">";
echo "<thead valign=\"top\">";
echo "<tr>";
echo "<th>Rank";
echo "<th>Game ID";
echo "<th>Level";
echo "<th>Strength";
echo "<th>Spirit";
echo "<th>Dexterity";
echo "<th>Power";
echo "<th>Honor";
echo "<th>PK Count";
for ($i=0;$i<$range;$i++) {

$rank = $i + 1;
$f = mssql_fetch_array($result);
echo "<tr><td>".$rank."<td>".$f['GameID']."<td>".$f['Lvl']."<td>".$f['Strength']."<td>".$f['Spirit']."<td>".$f['Dexterity']."<td>".$f['Power']."<td>".$f['Fame']."<td>".$f['PKPenaltyCount'];
**

echo "</tr>";
echo "</table>";

**

**

?>
 
Last edited:
Initiate Mage
Joined
Jan 21, 2004
Messages
29
Reaction score
0
<?

{

include ("config.php");
$query="SELECT * FROM tblGameID1 ORDER BY Lvl*2+STotalBonus DESC";
$result = mssql_query($query,$conn);

if (mssql_num_rows($result) < 1) {

echo "<b>No data in table.</b>";

**

else {

$range = mssql_num_rows($result);
if ($range > 999) { $range = 999; **

echo "<body bgcolor=\"c02022\">";
echo "<table border=\"2\" frame=\"hisides\" rules=\"groups\" bgcolor=\"d03045\">";
echo "<caption><b>Player Ranks</b></caption>";
echo "<colgroup align=\"center\">";
echo "<colgroup align=\"center\">";
echo "<colgroup align=\"center\">";
echo "<colgroup align=\"center\">";
echo "<colgroup align=\"center\">";
echo "<colgroup align=\"center\">";
echo "<colgroup align=\"center\">";
echo "<colgroup align=\"center\">";
echo "<colgroup align=\"center\">";
echo "<colgroup align=\"center\">";
echo "<thead valign=\"top\">";
echo "<tr>";
echo "<th>Rank";
echo "<th>Game ID";
echo "<th>Character Type";
echo "<th>Level";
echo "<th>Strength";
echo "<th>Spirit";
echo "<th>Dexterity";
echo "<th>Power";
echo "<th>Honor";
echo "<th>PK Count";
for ($i=0;$i<$range;$i++) {

$rank = $i + 1;
$f = mssql_fetch_array($result);

if ($f['Face'] == 0)
$char='Philar';
else if ($f['Face'] == 1)
$char='Azlar';
else if ($f['Face'] == 2)
$char='Sadad';
else if ($f['Face'] == 3)
$char='Destino';
else if ($f['Face'] == 4)
$char='Jarexx';
else if ($f['Face'] == 5)
$char='Canon';
else if ($f['Face'] == 6)
$char='Kitara';
else if ($f['Face'] == 7)
$char='Lunarena';
else if ($f['Face'] == 8)
$char='Lavita';
else if ($f['Face'] > 8)
$char='?';
else if ($f['Face'] < 0)
$char='?';
echo "<tr><td>".$rank."<td>".$f['GameID']."<td>".$char."<td>".$f['Lvl']."<td>".$f['Strength']."<td>".$f['Spirit']."<td>".$f['Dexterity']."<td>".$f['Power']."<td>".$f['Fame']."<td>".$f['PKPenaltyCount'];
**

echo "</tr>";
echo "</table>";

**

**

?>



This is my new Rank.php it makes it so you can see the char type too!
 
Initiate Mage
Joined
Jun 7, 2004
Messages
5
Reaction score
0
Thanks a lot for sharing your ranking page but i get this error :p, maybe because the forum doesnt accept all phgp codes?

Parse error: parse error, unexpected '*' in c:\program files\apache group\apache\htdocs\rank.php on line 13

hope this helps :p
 
Initiate Mage
Joined
Jan 21, 2004
Messages
29
Reaction score
0
yeah it looks that way. some of it may need to be fixed by you. or you can right click and goto 'save target as' to get my file.
 
Initiate Mage
Joined
May 9, 2004
Messages
37
Reaction score
0
you need to add that the character has 0 permission or else your gm/gcs will appear.
 
Initiate Mage
Joined
May 9, 2004
Messages
37
Reaction score
0
btw, Ranking is made on levels. Remove the Legendary Medecines :\ Cause your guys ate too much. or Add Levels and Legendary Medecines, not the stats you added.
 
Initiate Mage
Joined
Jan 21, 2004
Messages
29
Reaction score
0
its not based on stats added... its based on LM and PP and Level... check the table more carefully...
 
Initiate Mage
Joined
May 9, 2004
Messages
37
Reaction score
0
well, you gave too many LMs to some guys, class the table by level, then put a row on how many extra bp they gained after their level...

Then add that they need their permission set to 0 to be in the rankings :p
 
Back
Top