<?php
/********************************************************************************
MU Antrum Hall Of Fame
Copyright: Deathless
Skype: MuAntrum
E-Mail:
MuAntrum@GMail.com http://antrum.lv (c) 2009
********************************************************************************/
/********************************************************************************
Hall Of Fame Configurations
********************************************************************************/
$Admin['show'] = '0'; // Показывать ГМов на доске славы (1 - да; 0 - нет)
$Admin['guild'] = 'DARK'; // Гильдия админов (не будет отображаться в Castle Siege)
$CharPre['fix'] = '?op=character&character='; // Ссылка на информацию о персонаже
$GuildPre['fix'] = '?op=guild&guild='; // Ссылка на информацию о гильдии
$UrlPost['fix'] = ''; // Если ссылка не иммет постфикса - то оставьте место пустым
/*** Пример для MMW ************************************************************
$CharPre['fix'] = '?op=character&character=';
$GuildPre['fix'] = '?op=guild&guild=';
$UrlPost['fix'] = '';
********************************************************************************/
/********************************************************************************
Language Configurations
********************************************************************************/
define('antrum_power',"Strongest");
define('antrum_dk',"Knight");
define('antrum_dw',"Wizard");
define('antrum_elf',"Elf");
define('antrum_mg',"Gladiator");
define('antrum_dl',"Lord");
define('antrum_sum',"Summoner");
define('antrum_rf',"Rage Fighter");
define('antrum_reach',"Reachest");
define('antrum_bguild',"Best Guild");
define('antrum_cguild',"Castle Siege");
/********************************************************************************
Hall Of Fame
********************************************************************************/
if ($Admin['show'] == 0) {
$noadmina = 'WHERE (ctlcode != 32 AND ctlcode != 8)';
$noadminb = 'AND (ctlcode != 32 AND ctlcode != 8)';
}
$BEST_PLAYER = mssql_fetch_row(mssql_query("SELECT TOP 1 name,clevel,resets FROM Character $noadmina order by resets desc, clevel desc"));
$BEST_DK = mssql_fetch_row(mssql_query("SELECT TOP 1 name,clevel,resets FROM Character WHERE (Class = 16 OR Class = 17 OR Class = 18 OR Class = 19) $noadminb order by resets desc, clevel desc"));
$BEST_DW = mssql_fetch_row(mssql_query("SELECT TOP 1 name,clevel,resets FROM Character WHERE (Class = 0 OR Class = 1 OR Class = 2 OR Class = 3) $noadminb order by resets desc, clevel desc"));
$BEST_ELF = mssql_fetch_row(mssql_query("SELECT TOP 1 name,clevel,resets FROM Character WHERE (Class = 32 OR Class = 33 OR Class = 34 OR Class = 35) $noadminb order by resets desc, clevel desc"));
$BEST_MG = mssql_fetch_row(mssql_query("SELECT TOP 1 name,clevel,resets FROM Character WHERE (Class = 48 OR Class = 49 OR Class = 50) $noadminb order by resets desc, clevel desc"));
$BEST_DL = mssql_fetch_row(mssql_query("SELECT TOP 1 name,clevel,resets FROM Character WHERE (Class = 64 OR Class = 65 OR Class = 66) $noadminb order by resets desc, clevel desc"));
$BEST_SUM = mssql_fetch_row(mssql_query("SELECT TOP 1 name,clevel,resets FROM Character WHERE (Class = 80 OR Class = 81 OR Class = 82 OR Class = 83) $noadminb order by resets desc, clevel desc"));
$BEST_RF = mssql_fetch_row(mssql_query("SELECT TOP 1 name,clevel,resets FROM Character WHERE (Class = 96 OR Class = 98) $noadminb order by resets desc, clevel desc"));
$BEST_ZEN = mssql_fetch_row(mssql_query("SELECT TOP 1 name,clevel,resets,money FROM Character WHERE (ctlcode != 32 AND ctlcode != 8) order by money desc"));
$BEST_GUILD = mssql_fetch_row(mssql_query("SELECT TOP 1 G_Name,G_Score,G_Master FROM Guild order by G_SCORE desc"));
$CS_GUILD = mssql_fetch_row(mssql_query("SELECT OWNER_GUILD FROM MuCastle_DATA"));
if ($CS_GUILD[0] == $Admin['guild']) {
$cs = 'Castle is empty';
}
else {
$cs = '<a href="'.$GuildPre[fix].$CS_GUILD[0].$UrlPost[fix].'">'.$CS_GUILD[0].'</a>';
}
print "
<div align=\"left\">
<div>".antrum_power.": <a title=\"Level: ".$BEST_PLAYER[1]."
Resets: ".$BEST_PLAYER[2]."\" href=\"".$CharPre['fix'].$BEST_PLAYER[0].$UrlPost['fix']."\">".$BEST_PLAYER[0]."</a></div>
<div style=\"padding-left:10px;\">» ".antrum_dk.": <a title=\"Level: ".$BEST_DK[1]."
Resets: ".$BEST_DK[2]."\" href=\"".$CharPre['fix'].$BEST_DK[0].$UrlPost['fix']."\">".$BEST_DK[0]."</a></div>
<div style=\"padding-left:10px;\">» ".antrum_dw.": <a title=\"Level: ".$BEST_DW[1]."
Resets: ".$BEST_DW[2]."\" href=\"".$CharPre['fix'].$BEST_DW[0].$UrlPost['fix']."\">".$BEST_DW[0]."</a></div>
<div style=\"padding-left:10px;\">» ".antrum_elf.": <a title=\"Level: ".$BEST_ELF[1]."
Resets: ".$BEST_ELF[2]."\" href=\"".$CharPre['fix'].$BEST_ELF[0].$UrlPost['fix']."\">".$BEST_ELF[0]."</a></div>
<div style=\"padding-left:10px;\">» ".antrum_mg.": <a title=\"Level: ".$BEST_MG[1]."
Resets: ".$BEST_MG[2]."\" href=\"".$CharPre['fix'].$BEST_MG[0].$UrlPost['fix']."\">".$BEST_MG[0]."</a></div>
<div style=\"padding-left:10px;\">» ".antrum_dl.": <a title=\"Level: ".$BEST_DL[1]."
Resets: ".$BEST_DL[2]."\" href=\"".$CharPre['fix'].$BEST_DL[0].$UrlPost['fix']."\">".$BEST_DL[0]."</a></div>
<div style=\"padding-left:10px;\">» ".antrum_sum.": <a title=\"Level: ".$BEST_SUM[1]."
Resets: ".$BEST_SUM[2]."\" href=\"".$CharPre['fix'].$BEST_SUM[0].$UrlPost['fix']."\">".$BEST_SUM[0]."</a></div>
<div style=\"padding-left:10px;\">» ".antrum_rf.": <a title=\"Level: ".$BEST_RF[1]."
Resets: ".$BEST_RF[2]."\" href=\"".$CharPre['fix'].$BEST_RF[0].$UrlPost['fix']."\">".$BEST_RF[0]."</a></div>
<div>".antrum_reach.": <a title=\"Level: ".$BEST_ZEN[1]."
Resets: ".$BEST_ZEN[2]."
Money: ".$BEST_ZEN[3]." Zen\" href=\"".$CharPre['fix'].$BEST_ZEN[0].$UrlPost['fix']."\">".$BEST_ZEN[0]."</a>
<div>".antrum_bguild.": <a title=\"Guild Master: ".$BEST_GUILD[2]."
Points: ".$BEST_GUILD[1]."\" href=\"".$GuildPre['fix'].$BEST_GUILD[0].$UrlPost['fix']."\">".$BEST_GUILD[0]."</a></div>
<div>".antrum_cguild.": ".$cs."</div>
</div>
";
/* Mu.Antrum.Lv (c) 2009 Deathless Project */
?>