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 for your website with extra functions (Version II released)

Status
Not open for further replies.
Newbie Spellweaver
Joined
Jul 7, 2008
Messages
25
Reaction score
0
Keitake's Ranking Site
This is my ranking scripts for your website. I made it specially for my DrackonMS website, but I have decided to release it publicly. If you do not know how to make this work, scroll down until you find the instructions.I have coded it in an easy way, so it will be easier for you to understand it.

Version I Features:
- Does not show GM's name
- Top 3 players gets special color
- Player's job
- Job image for different jobs


Version II Features:
- Search player's name
- Search player in a certain order
- View character's "profile"
- Unlimited pages to view more characters (Every page is limited to 10 characters)
- Name exceptions
- Banned player's name have a "banned" text after their name


How to use:
Just add the files (not folder) to your "yourms" folder and it should work fine. If there is an SQL error, find this:

include('functions\config.php');

and change it to your mysql "config" file. That should do the trick :D



Preview:
Version II:

Banned character's preview:
Keitake - Ranking for your website with extra functions (Version II released) - RaGEZONE Forums


Newest player:
Keitake - Ranking for your website with extra functions (Version II released) - RaGEZONE Forums


Next/Previous page (available for both search and not):
Keitake - Ranking for your website with extra functions (Version II released) - RaGEZONE Forums


View character's profile:
Keitake - Ranking for your website with extra functions (Version II released) - RaGEZONE Forums


More preview:

Keitake - Ranking for your website with extra functions (Version II released) - RaGEZONE Forums


You can also browse through the 'pages' of the rankings, for example page 1 displays the top 10 players, page 2 displays those ranked at 11-20 and so on.

Ganbare, Kei! :renske:

Version I:

The style is not included in the file.
Keitake - Ranking for your website with extra functions (Version II released) - RaGEZONE Forums



Download:
Version I: Download from

Version II: Download from
 
Last edited:
Old Schooler
Banned
Joined
Jun 8, 2008
Messages
195
Reaction score
0
Re: [Release] Ranking for your website with extra functions

Wow looks really nice.....
 
Junior Spellweaver
Joined
Apr 21, 2007
Messages
158
Reaction score
1
Re: [Release] Ranking for your website with extra functions

Nice release. :D
Whats the (-1) in red? o,o
 
Newbie Spellweaver
Joined
Sep 10, 2006
Messages
58
Reaction score
0
Re: [Release] Ranking for your website with extra functions

nice
 
Old Schooler
Banned
Joined
Jun 8, 2008
Messages
195
Reaction score
0
Re: [Release] Ranking for your website with extra functions

errrr........i get this while adding it (using flarems v3 maxxy remix)

Code:
Warning: require(templates\default\userbar.php) [function.require]: failed to open stream: No such file or directory in C:\wamp\www\ranking.php on line 18

Fatal error: require() [function.require]: Failed opening required 'templates\default\userbar.php' (include_path='.;C:\php5\pear') in C:\wamp\www\ranking.php on line 18

theres no such file as userbar.php o_O
 
Newbie Spellweaver
Joined
Jun 1, 2008
Messages
83
Reaction score
0
Re: [Release] Ranking for your website with extra functions

<div id="content">
<div id="column1">
<div class="sidebaritem" style="width:168px; color:black;">
<h1>Server Status</h1>
<p><?php include('functions\functions.php'); echo "Login Server: ".$login_status; ?></p>
<p><?php echo "World Server: ".$world_status; ?></p><br>

</div>
</div>

u should know how to do =D
 
Experienced Elementalist
Joined
Jun 15, 2008
Messages
299
Reaction score
0
Re: [Release] Ranking for your website with extra functions

thats nice
 
Elite Diviner
Joined
Jan 15, 2008
Messages
417
Reaction score
7
Re: [Release] Ranking for your website with extra functions

nice I might use it ^_^
 
Elite Diviner
Joined
Feb 28, 2007
Messages
446
Reaction score
4
Re: [Release] Ranking for your website with extra functions

Looks nice :) Mostly probably will use on my Server.
 
Experienced Elementalist
Joined
Apr 2, 2008
Messages
255
Reaction score
0
Re: [Release] Ranking for your website with extra functions

my ranking has search, user can upload their char image, fame, foj, reset etc if u want mine just pm me
u may see some 200 under 200- players thats because my rank is order by reset desc.
what u think?
Keitake - Ranking for your website with extra functions (Version II released) - RaGEZONE Forums
 
Experienced Elementalist
Joined
Jun 15, 2008
Messages
299
Reaction score
0
Re: [Release] Ranking for your website with extra functions

thats cool but the lvls arent in order 0_o
 
Newbie Spellweaver
Joined
Jul 1, 2008
Messages
8
Reaction score
0
Re: [Release] Ranking for your website with extra functions

why does it say (-1) (-12) and those? has it anything to do with color?
 
Initiate Mage
Joined
Jul 8, 2008
Messages
2
Reaction score
0
Re: [Release] Ranking for your website with extra functions

my ranking has search, user can upload their char image, fame, foj, reset etc if u want mine just pm me
u may see some 200 under 200- players thats because my rank is order by reset desc.
what u think?
[imghttp://img185.imageshack.us/img185/6983/86503517dq2.jpg[/img]

Well, so does the TS's site, except for the option to upload the players' image.
He plans to release updates to this add-on didn't he? Let's just wait for it.
A little sneak preview to the site..

Keitake - Ranking for your website with extra functions (Version II released) - RaGEZONE Forums


You can also browse through the 'pages' of the rankings, for example page 1 displays the top 10 players, page 2 displays those ranked at 11-20 and so on.

Ganbare, Kei! :renske:
 
Junior Spellweaver
Joined
Apr 29, 2008
Messages
184
Reaction score
0
Re: [Release] Ranking for your website with extra functions

The Negatives(then number) are the rank move.
 
Master Summoner
Loyal Member
Joined
Apr 27, 2008
Messages
596
Reaction score
0
Re: [Release] Ranking for your website with extra functions

Good function!
 
Junior Spellweaver
Joined
Apr 12, 2008
Messages
181
Reaction score
2
Re: [Release] Ranking for your website with extra functions

Hmm.. nice script, here's my edit if you don't mind them.

Code:
<?php require ("./inc/info.inc.php");
include('config2.php'); ?>

<center>
<p class="title2">Ranking</p>
<tr><td class=listtitle colspan=2><center><span class='title2'></span></center></td></tr>

<?php

/*This script is done by Keitake. This script is the most recent code that I am using for my DrackonMS scripts.
You may modify it, but please, do it if you know what you are doing!
drackonms.forumdes.com
Feel free to contact me at uchiha_sasuke94@hotmail.com!
Edits by Andrew of LFS, I take no credit for the original script, I just made it pretty. :3
*/

$rank=0;
$rank2=0;
$job = "Unknown";
$jobpict = "job_Beginner.gif";
$winnerr = mysql_query("SELECT * FROM characters WHERE gm != '1' AND name != 'name exception 1' AND name != 'name exception 2 and so on' order by level DESC LIMIT 3", $db);
echo 'Congratulations to ';
while($winner=mysql_fetch_array($winnerr)){
echo "<b>$winner[name]</b>, ";
}
echo "<br>for being the top players in LFS!<br><br>Top 10 Characters (By Level):";
?>

<table cellspacing=1 cellpadding=5>
<tr>
<td class=listtitle colspan=1 align=center width=50>Rank</td> 
<td class=listtitle colspan=1 align=left   width=75>Name</td> 
<td class=listtitle colspan=1 align=center width=50>Category</td> 
<td class=listtitle colspan=1 align=center width=75>Level</td> 
<td class=listtitle colspan=1 align=left   width=95>Job</td></tr>

<?php
$result4 = mysql_query("SELECT * FROM characters WHERE gm != '1' AND name != 'name exception 1' AND name != 'name exception 2 and so on' order by level DESC LIMIT 10", $db);// Character section
while($player=mysql_fetch_array($result4)){

if($player[job] == "000"){
$jobpict = "/rank/rank_job0.gif";
$job = "Beginner";
}else if($player[job] == "100"){
$jobpict = "/rank/rank_job1.gif";
$job = "Swordsman";
}else if($player[job] == "110"){
$jobpict = "/rank/Rage.png";
$job = "Fighter";
}else if($player[job] == "120"){
$jobpict = "/rank/Threaten.png";
$job = "Page";
}else if($player[job] == "130"){
$jobpict = "/rank/HyperBody.png";
$job = "Spearman";
}else if($player[job] == "111"){
$jobpict = "/rank/ComboAttack.png";
$job = "Crusader";
}else if($player[job] == "121"){
$jobpict = "/rank/ChargedBlow.png";
$job = "White Knight";
}else if($player[job] == "131"){
$jobpict = "/rank/DragonRoar.png";
$job = "Dragon Knight";
}else if($player[job] == "112"){
$jobpict = "/rank/AdvancedComboAttack.png";
$job = "Hero";
}else if($player[job] == "122"){
$jobpict = "/rank/HolyChargeSword.png";
$job = "Paladin";
}else if($player[job] == "132"){
$jobpict = "/rank/Beholder.png";
$job = "Dark Knight";
}else if($player[job] == "200"){
$jobpict = "job_Magician.gif";
$job = "Magician";
}else if($player[job] == "210"){
$jobpict = "/rank/FireArrow.png";
$job = "Fire/Poison Wizard";
}else if($player[job] == "220"){
$jobpict = "/rank/ThunderBolt.png";
$job = "Ice/Lightning Wizard";
}else if($player[job] == "230"){
$jobpict = "/rank/Heal.png";
$job = "Cleric";
}else if($player[job] == "211"){
$jobpict = "/rank/Explosion.png";
$job = "Fire/Poison Mage";
}else if($player[job] == "221"){
$jobpict = "/rank/ThunderSpear.png";
$job = "Ice/Lightning Mage";
}else if($player[job] == "231"){
$job = "Priest";
$jobpict = "/rank/ShiningRay.png";
}else if($player[job] == "212"){
$jobpict = "/rank/MeteorShower.png";
$job = "Fire/Poison Arch Mage";
}else if($player[job] == "222"){
$jobpict = "/rank/Blizzard.png";
$job = "Ice/Lightning Arch Mage";
}else if($player[job] == "232"){
$jobpict = "/rank/Resurrection.png";
$job = "Bishop";
}else if($player[job] == "300"){
$jobpict = "job_Bowman.gif";
$job = "Bowman";
}else if($player[job] == "310"){
$jobpict = "/rank/ArrowBomb.png";
$job = "Hunter";
}else if($player[job] == "320"){
$jobpict = "/rank/IronArrow.png";
$job = "Crossbowman";
}else if($player[job] == "311"){
$jobpict = "/rank/ArrowRain.png";
$job = "Ranger";
}else if($player[job] == "321"){
$jobpict = "/rank/ArrowEruption.png";
$job = "Sniper";
}else if($player[job] == "312"){
$jobpict = "/rank/Hurricane.png";
$job = "Bow Master";
}else if($player[job] == "322"){
$jobpict = "/rank/Snipe.png";
$job = "Crossbow Master";
}else if($player[job] == "400"){
$jobpict = "job_Thief.gif";
$job = "Rogue";
}else if($player[job] == "410"){
$jobpict = "/rank/Haste.png";
$job = "Assassin";
}else if($player[job] == "420"){
$jobpict = "/rank/SavageBlow.png";
$job = "Bandit";
}else if($player[job] == "411"){
$jobpict = "/rank/ShadowPartner.png";
$job = "Hermit";
}else if($player[job] == "421"){
$jobpict = "/rank/MesoExplosion.png";
$job = "Chief Bandit";
}else if($player[job] == "412"){
$jobpict = "/rank/TripleThrow.png";
$job = "Night Lord";
}else if($player[job] == "422"){
$jobpict = "/rank/Assassinate.png";
$job = "Shadower";
}

$rank++;
if($rank == "1"){
echo "<tr>
      <td class=list align=center>$rank</td> 
      <td class=list align=left  ><font color='red'><b>$player[name]</b></font></td> 
      <td class=list align=center><img src=$jobpict></img></center></td> 
      <td class=list align=center><b>$player[level]</b></td>  
      <td class=list align=left  ><b>$job</b></td></tr>";
}else if ($rank == "2"){
echo "<tr>
      <td class=list align=center>$rank</td> 
      <td class=list align=left  ><font color='orange'><b>$player[name]</b></font></td> 
      <td class=list align=center><img src=$jobpict></img></center></td> 
      <td class=list align=center><b>$player[level]</b></td>  
      <td class=list align=left  ><b>$job</b></td></tr>";
}else if ($rank == "3"){
echo "<tr>
      <td class=list align=center>$rank</td> 
      <td class=list align=left  ><font color='green'><b>$player[name]</b></font></td> 
      <td class=list align=center><img src=$jobpict></img></td>
      <td class=list align=center><b>$player[level]</b></td>  
      <td class=list align=left  ><b>$job</b></td></tr>";
}else{
echo "<tr>
      <td class=list align=center>$rank</td> 
      <td class=list align=left  ><b>$player[name]</b></td>
      <td class=list align=center><img src=$jobpict></img></td> 
      <td class=list align=center><b>$player[level]</b></td>  
      <td class=list align=left  ><b>$job</b></td></tr>";
}
}
?>
</table>
</center>

Basically I cleaned the page up, removed statistics, added a rank column, and changed the ranking pictures.

I take no credit for the original scripting, just the edits to make it function a bit better.

And, for those that want the images, here's the upload for the ranking images:

Here's a picture of what it kinda looks like, depending on your style.

Keitake - Ranking for your website with extra functions (Version II released) - RaGEZONE Forums
 
Last edited:
Junior Spellweaver
Joined
Jun 25, 2008
Messages
118
Reaction score
0
Re: [Release] Ranking for your website with extra functions

Hmm where can i find Rankings For Reborns not lvls -_- actually means more than lvls =.= cause if u reborn u become 1 and u become rank 104280 LOL
 
Junior Spellweaver
Joined
Apr 12, 2008
Messages
181
Reaction score
2
Re: [Release] Ranking for your website with extra functions

Hmm where can i find Rankings For Reborns not lvls -_- actually means more than lvls =.= cause if u reborn u become 1 and u become rank 104280 LOL

If you have in your database a rebirth column for each character and the rebirth NPC adds to the column on each rebirth, then have the script look at the rebirth column before checking levels.
Code:
order by level
Would be changed to
Code:
order by rebirth, order by level
Or something very similar.

However, this is dependent on you having a rebirth column for each character in the database.
 
Junior Spellweaver
Joined
Apr 12, 2008
Messages
181
Reaction score
2
Re: [Release] Ranking for your website with extra functions

Sorry for the double post, but I've cleaned your script up a bit more.

Code:
<?php include('config2.php'); ?>

<center>
<p class="title2">Ranking</p>
<tr><td class=listtitle colspan=2><center><span class='title2'></span></center></td></tr>

<?php

/*This script is done by Keitake. This script is the most recent code that I am using for my DrackonMS scripts.
You may modify it, but please, do it if you know what you are doing!
drackonms.forumdes.com
Feel free to contact me at uchiha_sasuke94@hotmail.com!
Edits by Andrew of LFS, I take no credit for the original script, I just made it pretty. :3
*/

$rank=0;
$rank2=0;
$job = "Unknown";
$jobpict = "job_Beginner.gif";
$winnerr = mysql_query("SELECT * FROM characters WHERE gm != '1' AND name != 'name exception 1' AND name != 'name exception 2 and so on' order by rebirth DESC, level DESC LIMIT 3", $db);
echo 'Congratulations to ';
while($winner=mysql_fetch_array($winnerr)){
echo "<b>$winner[name]</b>, ";
}
echo "<br>for being the top players in LFS!<br><br>Top 10 Characters (By Rebirths & Level):";
?>

<table cellspacing=1 cellpadding=5>
<tr>
<td class=listtitle colspan=1 align=center width=50>Rank</td> 
<td class=listtitle colspan=1 align=center width=75>Name</td> 
<td class=listtitle colspan=1 align=center width=50>Level</td> 
<td class=listtitle colspan=1 align=center width=50>Rebirths</td>
<td class=listtitle colspan=1 align=center width=75>Job</td></tr>

<?php
$result4 = mysql_query("SELECT * FROM characters WHERE gm != '1' AND name != 'name exception 1' AND name != 'name exception 2 and so on' order by rebirth DESC, level DESC LIMIT 10", $db);// Character section
while($player=mysql_fetch_array($result4)){

if($player[job] == "000"){
$jobpict = "/rank/rank_job0.gif";
$job = "Beginner";
}else if($player[job] == "100"){
$jobpict = "/rank/rank_job1.gif";
$job = "Swordsman";
}else if($player[job] == "110"){
$jobpict = "/rank/Rage.png";
$job = "Fighter";
}else if($player[job] == "120"){
$jobpict = "/rank/Threaten.png";
$job = "Page";
}else if($player[job] == "130"){
$jobpict = "/rank/HyperBody.png";
$job = "Spearman";
}else if($player[job] == "111"){
$jobpict = "/rank/ComboAttack.png";
$job = "Crusader";
}else if($player[job] == "121"){
$jobpict = "/rank/ChargedBlow.png";
$job = "White Knight";
}else if($player[job] == "131"){
$jobpict = "/rank/DragonRoar.png";
$job = "Dragon Knight";
}else if($player[job] == "112"){
$jobpict = "/rank/AdvancedComboAttack.png";
$job = "Hero";
}else if($player[job] == "122"){
$jobpict = "/rank/HolyChargeSword.png";
$job = "Paladin";
}else if($player[job] == "132"){
$jobpict = "/rank/Beholder.png";
$job = "Dark Knight";
}else if($player[job] == "200"){
$jobpict = "job_Magician.gif";
$job = "Magician";
}else if($player[job] == "210"){
$jobpict = "/rank/FireArrow.png";
$job = "Fire/Poison Wizard";
}else if($player[job] == "220"){
$jobpict = "/rank/ThunderBolt.png";
$job = "Ice/Lightning Wizard";
}else if($player[job] == "230"){
$jobpict = "/rank/Heal.png";
$job = "Cleric";
}else if($player[job] == "211"){
$jobpict = "/rank/Explosion.png";
$job = "Fire/Poison Mage";
}else if($player[job] == "221"){
$jobpict = "/rank/ThunderSpear.png";
$job = "Ice/Lightning Mage";
}else if($player[job] == "231"){
$job = "Priest";
$jobpict = "/rank/ShiningRay.png";
}else if($player[job] == "212"){
$jobpict = "/rank/MeteorShower.png";
$job = "Fire/Poison Arch Mage";
}else if($player[job] == "222"){
$jobpict = "/rank/Blizzard.png";
$job = "Ice/Lightning Arch Mage";
}else if($player[job] == "232"){
$jobpict = "/rank/Resurrection.png";
$job = "Bishop";
}else if($player[job] == "300"){
$jobpict = "job_Bowman.gif";
$job = "Bowman";
}else if($player[job] == "310"){
$jobpict = "/rank/ArrowBomb.png";
$job = "Hunter";
}else if($player[job] == "320"){
$jobpict = "/rank/IronArrow.png";
$job = "Crossbowman";
}else if($player[job] == "311"){
$jobpict = "/rank/ArrowRain.png";
$job = "Ranger";
}else if($player[job] == "321"){
$jobpict = "/rank/ArrowEruption.png";
$job = "Sniper";
}else if($player[job] == "312"){
$jobpict = "/rank/Hurricane.png";
$job = "Bow Master";
}else if($player[job] == "322"){
$jobpict = "/rank/Snipe.png";
$job = "Crossbow Master";
}else if($player[job] == "400"){
$jobpict = "job_Thief.gif";
$job = "Rogue";
}else if($player[job] == "410"){
$jobpict = "/rank/Haste.png";
$job = "Assassin";
}else if($player[job] == "420"){
$jobpict = "/rank/SavageBlow.png";
$job = "Bandit";
}else if($player[job] == "411"){
$jobpict = "/rank/ShadowPartner.png";
$job = "Hermit";
}else if($player[job] == "421"){
$jobpict = "/rank/MesoExplosion.png";
$job = "Chief Bandit";
}else if($player[job] == "412"){
$jobpict = "/rank/TripleThrow.png";
$job = "Night Lord";
}else if($player[job] == "422"){
$jobpict = "/rank/Assassinate.png";
$job = "Shadower";
}

$rank++;
if($rank == "1"){
echo "<tr>
      <td class=list align=center>$rank</td> 
      <td class=list align=left  ><font color='red'><b>$player[name]</b></font></td>  
      <td class=list align=center><b>$player[level]</b></td>  
      <td class=list align=center><b>$player[rebirth]</b></td>
      <td class=list align=center><img src=$jobpict></img><br><b>$job</b></td></tr>";
}else if ($rank == "2"){
echo "<tr>
      <td class=list align=center>$rank</td> 
      <td class=list align=left  ><font color='orange'><b>$player[name]</b></font></td> 
      <td class=list align=center><b>$player[level]</b></td>
      <td class=list align=center><b>$player[rebirth]</b></td>  
      <td class=list align=center><img src=$jobpict></img><br><b>$job</b></td></tr>";
}else if ($rank == "3"){
echo "<tr>
      <td class=list align=center>$rank</td> 
      <td class=list align=left  ><font color='green'><b>$player[name]</b></font></td> 
      <td class=list align=center><b>$player[level]</b></td>
      <td class=list align=center><b>$player[rebirth]</b></td>
      <td class=list align=center><img src=$jobpict></img><br><b>$job</b></td></tr>";
}else{
echo "<tr>
      <td class=list align=center>$rank</td> 
      <td class=list align=left  ><b>$player[name]</b></td>
      <td class=list align=center><b>$player[level]</b></td>
      <td class=list align=center><b>$player[rebirth]</b></td>  
      <td class=list align=center><img src=$jobpict></img><br><b>$job</b></td></tr>";
}
}
?>
</table>
</center>

This is done to include the amount of rebirths you have had, the class/category has been combined into one column to clean the look up. It looks at the database and orders characters by those that have had the most rebirths then by level. Ranking has been given its own column, very clean and such. Not only that, but I've cleaned the script itself to be more user friendly, and make it easy for people to edit the script. Looks a bit like this:
Keitake - Ranking for your website with extra functions (Version II released) - RaGEZONE Forums


Would be nice if you could give us the search function, and the part that allows us to see the next set of rankings, 11~20.
 
Status
Not open for further replies.
Back
Top