[Request] top3 ranking

Results 1 to 10 of 10
  1. #1
    Member lotje is offline
    MemberRank
    Dec 2006 Join Date
    55Posts

    [Request] top3 ranking

    Hi,

    On few servers i seen something like top 3 ranking above the top 100 with mage,knight and archer picture with the name of the 3 highest off all 3 chars bellow that picture,

    could someone give me the php code for it? (aint that perfect with making php etc.)


  2. #2
    Enthusiast custre is offline
    MemberRank
    Oct 2007 Join Date
    29Posts

    Re: [Request] top3 ranking

    yes, I like that very much too;)

    I got a script from DeathArt, which is the only script that works for me. Its nice, but doesn't show a picture of the best archer etc. But he is a great coder so its the best scripts:P
    But I wanna try that script too

  3. #3
    Member lotje is offline
    MemberRank
    Dec 2006 Join Date
    55Posts

    Re: [Request] top3 ranking

    those picture need to be uploaded also with the top3 php

  4. #4
    A.K.A /v\aX /--/ PHP Guru ToXiC L33T is offline
    MemberRank
    Aug 2007 Join Date
    Prestwich, UnitLocation
    1,112Posts

    Re: [Request] top3 ranking

    try this.. its from my old site :)



    Code:
    <center>
    <?php
    	echo "<table width='500' align='center' height='1' cellspacing='0' border='0'>";
    	echo "<tr valign='top'>";
    	echo "<td width='5%'><center><b>Top Knight</b></center></td><td width='5%'><center><b>Top Mage</b></center></td><td width='5%'><center><b>Top Archer</b></center></td><tr valign='top'>";
    
    	$msconnect = mssql_connect("*****" ,"***" ,"******");
    	$msdb = mssql_select_db("kal_db", $msconnect);
    	
    	$plist =  $plist = "SELECT TOP 1 * FROM [Player] WHERE [Class] = '0' ORDER BY 
    	[Admin], [Level] Desc, [Exp] Desc";
    	$pplist = mssql_query($plist);
    
    
    	
    	while($list = mssql_fetch_array($pplist)){
    
    
    	if($list['Class'] == "0"){
    	echo "<td><center>";
    	echo "<img src=\"http://i3.photobucket.com/albums/y63/mattylongden/knight.jpg\"><br>";
    	}
    	elseif($list['Class'] == "1"){
    	echo "<td><center>";
    	echo "<img src=\"http://i3.photobucket.com/albums/y63/mattylongden/mage.jpg\"><br>";
    	}
    	elseif($list['Class'] == "2"){
    	echo "<td><center>";
    	echo "<img src=\"http://i3.photobucket.com/albums/y63/mattylongden/archer.jpg\"><br>";
    	}
    
    	echo "$cha";
    	echo "$list[Name]";
    	echo ":";
    	echo "&nbsp;";
    	echo "&nbsp;";
    	echo "$list[Level]";
    	echo "</center></td>";	
    	}
    //	echo "<br><br>";
    //	echo "</tr></table>";
    
    	
    	
    
    
    	
    ;/////////////new field\\\\\\\\\\\\\\\\
    
    	$msconnect = mssql_connect("*****" ,"****" ,"******");
    	$msdb = mssql_select_db("kal_db", $msconnect);
    	
    	$plist =  $plist = "SELECT TOP 1 * FROM [Player] WHERE [Class] = '1' ORDER BY 
    	[Admin], [Level] Desc, [Exp] Desc";
    	$pplist = mssql_query($plist);
    	
    	while($list = mssql_fetch_array($pplist)){
    
    	if($list['Class'] == "0"){
    	echo "<td><center>";
    //	$char = "Knight";
    	echo "<img src=\"http://i3.photobucket.com/albums/y63/mattylongden/knight.jpg\"><br>";
    	}
    	elseif($list['Class'] == "1"){
    	echo "<td><center>";
    //	$char = "Mage";
    	echo "<img src=\"http://i3.photobucket.com/albums/y63/mattylongden/mage.jpg\"><br>";
    	}
    	elseif($list['Class'] == "2"){
    	echo "<td><center>";
    //	$char = "Archer";
    	echo "<img src=\"http://i3.photobucket.com/albums/y63/mattylongden/archer.jpg\"><br>";
    	}
    	
    	echo "$cha";
    	echo "$list[Name]";
    	echo ":";
    	echo "&nbsp;";
    	echo "&nbsp;";
    	echo "$list[Level]";
    	echo "</center></td>";	
    	}
    //	echo "<br><br>";
    //	echo "</tr></table>";
    
    	
    	
    	
    	
    ;///////////////////// new field \\\\\\\\\\\\\\\\\\\\\\\
    
    	$msconnect = mssql_connect("*****" ,"****" ,"*****");
    	$msdb = mssql_select_db("kal_db", $msconnect);
    	
    	$plist =  $plist = "SELECT TOP 1 * FROM [Player] WHERE [Class] = '2' ORDER BY 
    	[Admin], [Level] Desc, [Exp] Desc";
    	$pplist = mssql_query($plist);
    	
    	while($list = mssql_fetch_array($pplist)){
    	if($list['Class'] == "0"){
    	echo "<td><center>";
    //	$char = "Knight";
    	echo "<img src=\"http://i3.photobucket.com/albums/y63/mattylongden/knight.jpg\"><br>";
    	}
    	elseif($list['Class'] == "1"){
    	echo "<td><center>";
    //	$char = "Mage";
    	echo "<img src=\"http://i3.photobucket.com/albums/y63/mattylongden/mage.jpg\"><br>";
    	}
    	elseif($list['Class'] == "2"){
    	echo "<td><center>";
    //	$char = "Archer";
    	echo "<img src=\"http://i3.photobucket.com/albums/y63/mattylongden/archer.jpg\"><br>";
    	}
    	
    	echo "$cha";
    	echo "$list[Name]";
    	echo ":";
    	echo "&nbsp;";
    	echo "&nbsp;";
    	echo "$list[Level]";
    	echo "</center></td>";	
    
    	}
    //	echo "<br><br>";
    	echo "</table>";	
    ?>
    </center>
    Attached Thumbnails Attached Thumbnails ranks.jpg  

  5. #5
    Member lotje is offline
    MemberRank
    Dec 2006 Join Date
    55Posts

    Re: [Request] top3 ranking

    thanks max <3

  6. #6
    Member Goobed is offline
    MemberRank
    Sep 2006 Join Date
    USALocation
    79Posts

    Re: [Request] top3 ranking

    :) been looking for this
    Last edited by Goobed; 16-10-07 at 03:41 AM.

  7. #7
    Arrogant Wizard DeathArt is offline
    MemberRank
    Mar 2007 Join Date
    StockholmLocation
    2,657Posts

    Re: [Request] top3 ranking

    Quote Originally Posted by Goobed View Post
    Unsecure i believe
    How? :p No user input ;-)

  8. #8
    Account Upgraded | Title Enabled! TrueDarKZONE is offline
    MemberRank
    Nov 2006 Join Date
    Some Were In ALocation
    686Posts

    Re: [Request] top3 ranking

    thats what i was going say like wdf O.o?

  9. #9
    Proficient Member SIN982 is offline
    MemberRank
    Sep 2006 Join Date
    USALocation
    197Posts

    Re: [Request] top3 ranking

    nice this will be most use full.. it be easy to change the pictures using adob dreamweaver.. if you go to regular kal website and copy those pictures. put them up on like photobucket , and replace it with the ones in there currently.. you will have your ranking .. then maybe change background then center it it will be very nice.. hehehe

  10. #10
    A.K.A /v\aX /--/ PHP Guru ToXiC L33T is offline
    MemberRank
    Aug 2007 Join Date
    Prestwich, UnitLocation
    1,112Posts

    Re: [Request] top3 ranking

    yep you are right.. I give this code away cos its lame xD thats why its not center and need work but its is what this topic needed.. so enjoy!
    Attached Thumbnails Attached Thumbnails untitled.jpg  



Advertisement