Fix Ranking from resets to master level
Hello !
I have a request for you guys, is there someone who could help me and convert resets from ranking to mastering level and make order level by mastering.
I was trying to do it myself but kept getting blank page.
Used these custom ranking files : http://forum.ragezone.com/f197/mu-core-1-0-8-a-944572/
PHP Code:
<?include("Custom_Rankings/Custom_Rankings_cfg.php"); $get_config = simplexml_load_file('engine/config_mods/rankings_settings.xml');if ($get_config->active == '0') { echo msg('0', 'Sorry, this feature is temporarily unavailable at the moment.');} else { $hide_stats = trim($get_config->hide_stats); if (!isset($_GET['rank'])) { $rank_type = 'characters'; } elseif (isset($_GET['rank'])) { $rank_type = safe_input($_GET['rank'], ''); } if (!isset($_GET['class'])) { if ($_GET['rank'] == 'guilds') { $rank_class_type = 'no_rank_type'; } else { $rank_class_type = 'all'; } } elseif (isset($_GET['class'])) { $rank_class_type = safe_input(set_limit($_GET['class'], '4', ''), ''); } echo '<script type="text/javascript"> load_image= new Image(16,16); load_image.src="template/' . $core['config']['template'] . '/images/load_page.gif"; function get_data(div,id, page, form, append, data){ document.getElementById(div).innerHTML = \'<img src="template/' . $core['config']['template'] . '/images/load_page.gif" width="16" height="16">\'; var veri; if( typeof(data) == "string") veri = data; else veri = $(form).serialize(); $.ajax({ type: "POST", url: page, data: veri, error: function(html) { alert("Falied to get data."); }, success: function(html) { if( typeof(append) == "boolean") $(id).append(html); else $(id).html(html); } }); return false;}</script>'; echo '<style>.cas { font-weight:bold; color:#FF6600; }</style><div class="iR_rank_type" style="margin-top: 3px;">';$case = $_GET['rank']; if(!isset($case) || $case == 'characters') {$r1 = '<span class="cas">Characters</span>';} else { $r1 = 'Characters'; } if($case == 'guilds') {$r2 = '<span class="cas">Guilds</span>';} else { $r2 = 'Guilds'; } if($case == 'onlinep') {$r3 = '<span class="cas">Online</span>';} else { $r3 = 'Online'; } if($case == 'gmasters') {$r5 = '<span class="cas">Game Masters</span>';} else { $r5 = 'Game Masters'; } if($case == 'tkillers') {$r6 = '<span class="cas">Killers</span>';} else { $r6 = 'Killers'; } if($case == 'tgens') {$r7 = '<span class="cas">Gens</span>';} else { $r7 = 'Gens'; } if($case == 'tduel') {$r8 = '<span class="cas">Top Duel</span>';} else { $r8 = 'Top Duel'; }
$crtc = '<a href="' . $core_run_script . '&rank=characters">'.$r1.'</a>'; if ($corecr['TopGuildsR'] == 1) {$crtg = ' - <a href="' . $core_run_script . '&rank=guilds">'.$r2.'</a>'; } if ($corecr['OnlinePlayersR'] == 1) {$crop = ' - <a href="' . $core_run_script . '&rank=onlinep">'.$r3.'</a>'; }
if ($corecr['GameMastersR'] == 1) {$crgm = ' - <a href="' . $core_run_script . '&rank=gmasters">'.$r5.'</a>'; } if ($corecr['TopKillersR'] == 1) {$crtk = ' - <a href="' . $core_run_script . '&rank=tkillers">'.$r6.'</a>'; } if ($corecr['TopGensR'] == 1) {$crtf = ' - <a href="' . $core_run_script . '&rank=tgens">'.$r7.'</a>'; } if ($corecr['TopDuelR'] == 1) {$crtd = ' - <a href="' . $core_run_script . '&rank=tduel">'.$r8.'</a>'; }
if ($corecr['TopZenR'] == 1) {$crtz = ' - <a href="' . $core_run_script . '&rank=tzen">'.$r11.'</a>'; } switch ($rank_type) { case 'rankings': echo $crtc,$crtg,$crop,$crto,$crgm,$crtk,$crtf,$crtd,$crtv,$crtm,$crtz; break; case 'characters': echo $crtc,$crtg,$crop,$crto,$crgm,$crtk,$crtf,$crtd,$crtv,$crtm,$crtz; break; case 'guilds': echo $crtc,$crtg,$crop,$crto,$crgm,$crtk,$crtf,$crtd,$crtv,$crtm,$crtz; break; case 'onlinep': echo $crtc,$crtg,$crop,$crto,$crgm,$crtk,$crtf,$crtd,$crtv,$crtm,$crtz; break; case 'tonline': echo $crtc,$crtg,$crop,$crto,$crgm,$crtk,$crtf,$crtd,$crtv,$crtm,$crtz; break; case 'gmasters': echo $crtc,$crtg,$crop,$crto,$crgm,$crtk,$crtf,$crtd,$crtv,$crtm,$crtz; break; case 'tkillers': echo $crtc,$crtg,$crop,$crto,$crgm,$crtk,$crtf,$crtd,$crtv,$crtm,$crtz; break; case 'tgens': echo $crtc,$crtg,$crop,$crto,$crgm,$crtk,$crtf,$crtd,$crtv,$crtm,$crtz; break; case 'tduel': echo $crtc,$crtg,$crop,$crto,$crgm,$crtk,$crtf,$crtd,$crtv,$crtm,$crtz; break; case 'tvoters': echo $crtc,$crtg,$crop,$crto,$crgm,$crtk,$crtf,$crtd,$crtv,$crtm,$crtz; break; case 'tmarry': echo $crtc,$crtg,$crop,$crto,$crgm,$crtk,$crtf,$crtd,$crtv,$crtm,$crtz; break; case 'tzen': echo $crtc,$crtg,$crop,$crto,$crgm,$crtk,$crtf,$crtd,$crtv,$crtm,$crtz; break; } echo '</div>'; if ($rank_type == 'characters') { echo '<div style="margin-left: 4px; border-left: #2A2A2A dashed 1px; border-bottom: #2A2A2A dashed 1px; padding: 4px;" class="iR_rank_type_sub">'; if ($rank_class_type == 'all') { echo '<span style="color: #FF6600;">[ All ]</span>'; } else { echo '<a href="' . $core_run_script . '&rank=characters&class=all">[ All ]</a>'; } foreach ($characters_class as $cls => $cls_n) { if ($rank_class_type == 'all') { echo ' - <a href="' . $core_run_script . '&rank=characters&class=' . $cls . '">' . $cls_n[0] . '</a>'; } else { if ($rank_class_type == $cls) { echo ' - <span style="color: #FF6600;">' . $cls_n[0] . '</span>'; } else { echo ' - <a href="' . $core_run_script . '&rank=characters&class=' . $cls . '">' . $cls_n[0] . '</a>'; } } } echo '</div> '; } switch ($rank_type) { case 'characters': if ($rank_class_type == 'all') { //Cron Job check $jq_cron = $core_db->Execute("Select next_cron from MUCore_Cron_Jobs where cron_id=?", array( trim($get_config->cron_job_1) )); if (cron_check($jq_cron->fields[0]) == false) { $jq_cron_up = $core_db->Execute("Update MUCore_Cron_Jobs set next_cron=(" . time() . "+cron_time_set) where cron_id=?", array( trim($get_config->cron_job_1) )); $qry_r = $core_db->Execute("Select top " . $get_config->char_top . " mu_id,name,class,clevel,resets,strength,dexterity,vitality,energy,ctlcode,accountid,leadership,pklevel,grand_resets from character order by grand_resets desc, resets desc, clevel desc"); while (!$qry_r->EOF) { $init_r .= "" . $qry_r->fields[0] . "|" . base64_encode($qry_r->fields[1]) . "|" . $qry_r->fields[2] . "|" . $qry_r->fields[3] . "|" . $qry_r->fields[4] . "|" . $qry_r->fields[5] . "|" . $qry_r->fields[6] . "|" . $qry_r->fields[7] . "|" . $qry_r->fields[8] . "|" . $qry_r->fields[9] . "|" . $qry_r->fields[10] . "|" . $qry_r->fields[11] . "|" . $qry_r->fields[12] . "|" . $qry_r->fields[13] . "|\n"; $qry_r->MoveNext(); } $ge_ra_0 = "engine/cache/ra_0/ra_0.cache"; $o_ra_0 = fopen($ge_ra_0, 'w'); fputs($o_ra_0, $init_r); fclose($o_ra_0); } //Show All Rankings from cache echo '<table border="0" cellspacing="4" cellpadding="0" width="100%" style="margin-top: 10px;">'; $cache_ra_0 = file('engine/cache/ra_0/ra_0.cache'); $cache_count = 0; foreach ($cache_ra_0 as $r_cache) { $r_cache = explode("|", $r_cache); if ($get_config->gm == '1') { if (in_array($r_cache[9], get_array_variables($characters_ctlcode))) { $cache_count++; echo ' <tr> <td align="center" rowspan="3" class="iR_rank">' . $cache_count . '</td> <td align="left" class="iR_name" >' . htmlspecialchars(base64_decode($r_cache[1])) . '</td> <td align="left" rowspan="3" width="60"><img src="template/' . $core['config']['template'] . '/images/class/' . decode_class($r_cache[2], '2') . '" width="60" height="60"></td> <td align="left" class="iR_stats" >Str: '; if ($hide_stats == '1') { echo '--'; } else { echo number_format($r_cache[5]); } echo '</td> <td align="left" class="iR_stats" >Vit: '; if ($hide_stats == '1') { echo '--'; } else { echo number_format($r_cache[7]); } echo '</td> <td align="left" class="iR_stats" >PK Level: '.decode_pk($r_cache[12]).'</td> </tr> <tr> <td align="left" class="iR_class">' . decode_class($r_cache[2]) . '</td> <td align="left" class="iR_stats">Agi: '; if ($hide_stats == '1') { echo '--'; } else { echo number_format($r_cache[6]); } echo '</td> <td align="left" class="iR_stats">Eng: '; if ($hide_stats == '1') { echo '--'; } else { echo number_format($r_cache[8]); } echo '</td> <td align="left" class="iR_stats_level">Level ' . ($r_cache[3]) . '</td> </tr> <tr> <td align="left" class="iR_status">'; if ($get_config->char_status == '1') { echo '<div id="s_' . $cache_count . '"><a href="javascript:void(0)" onclick="get_data(\'s_' . $cache_count . '\',\'#s_' . $cache_count . '\', \'get.php?aG=' . base64_encode(crypt_it($r_cache[10], $core['config']['crypt_key'])) . '\', null, \'data=s_' . $cache_count . '\');">Check Status</a></div>'; } echo '</td> <td align="left" class="iR_status">'; if ($get_config->location == '1') { echo '<div id="m_' . $cache_count . '"><a href="javascript:void(0)" onclick="get_data(\'m_' . $cache_count . '\',\'#m_' . $cache_count . '\', \'get.php?aM=' . $r_cache[0] . '\', null, \'data=m_' . $cache_count . '\');">Location</a></div>'; } echo '</td> <td align="left" class="iR_stats">Com: '; if ($hide_stats == '1') { echo '--'; } else { echo number_format($r_cache[9]); } echo '</td> <td align="left" class="iR_stats_reset">Resets ' . ($r_cache[4]) . ', Grand Resets ' . $r_cache[13] . '</td> </tr> <tr> <td colspan="6" colspan="6" style="background-image:url(template/' . $core['config']['template'] . '/images/inner_line.jpg); background-repeat:repeat-x;"> </td> </tr> '; } } else { if ($r_cache[9] == '0') { $cache_count++; echo ' <tr> <td align="center" rowspan="3" class="iR_rank">' . $cache_count . '</td> <td align="left" class="iR_name" >' . htmlspecialchars(base64_decode($r_cache[1])) . '</td> <td align="left" rowspan="3" width="60"><img src="template/' . $core['config']['template'] . '/images/class/' . decode_class($r_cache[2], '2') . '" width="60" height="60"></td> <td align="left" class="iR_stats" >Str: '; if ($hide_stats == '1') { echo '--'; } else { echo number_format($r_cache[5]); } echo '</td> <td align="left" class="iR_stats" >Vit: '; if ($hide_stats == '1') { echo '--'; } else { echo number_format($r_cache[7]); } echo '</td> <td align="left" class="iR_stats" >PK Level: '.decode_pk($r_cache[12]).'</td> </tr> <tr> <td align="left" class="iR_class">' . decode_class($r_cache[2]) . '</td> <td align="left" class="iR_stats">Agi: '; if ($hide_stats == '1') { echo '--'; } else { echo number_format($r_cache[6]); } echo '</td> <td align="left" class="iR_stats">Eng: '; if ($hide_stats == '1') { echo '--'; } else { echo number_format($r_cache[8]); } echo '</td> <td align="left" class="iR_stats_level">Level ' . ($r_cache[3]) . '</td> </tr> <tr> <td align="left" class="iR_status">'; if ($get_config->char_status == '1') { echo '<div id="s_' . $cache_count . '"><a href="javascript:void(0)" onclick="get_data(\'s_' . $cache_count . '\',\'#s_' . $cache_count . '\', \'get.php?aG=' . base64_encode(crypt_it($r_cache[10], $core['config']['crypt_key'])) . '\', null, \'data=s_' . $cache_count . '\');">Check Status</a></div>'; } echo '</td> <td align="left" class="iR_status">'; if ($get_config->location == '1') { echo '<div id="m_' . $cache_count . '"><a href="javascript:void(0)" onclick="get_data(\'m_' . $cache_count . '\',\'#m_' . $cache_count . '\', \'get.php?aM=' . $r_cache[0] . '\', null, \'data=m_' . $cache_count . '\');">Location</a></div>'; } echo '</td> <td align="left" class="iR_stats">Com: '; if ($hide_stats == '1') { echo '--'; } else { echo number_format($r_cache[9]); } echo '</td> <td align="left" class="iR_stats_reset">Resets ' . ($r_cache[4]) . ', Grand Resets ' . $r_cache[13] . '</td> </tr> <tr> <td colspan="6" style="background-image:url(template/' . $core['config']['template'] . '/images/inner_line.jpg); background-repeat:repeat-x;"> </td> </tr>'; } } } echo '</table>'; echo '<div align="right" class="iR_task">Next Scheduled Update for Rankings is on ' . date('M j, Y H:i A', $jq_cron->fields[0]) . '</div>'; } elseif (is_numeric($rank_class_type)) { //Cron Job Check $jq_cron = $core_db->Execute("Select next_cron from MUCore_Cron_Jobs where cron_id=?", array( trim($get_config->cron_job_2) )); if (cron_check($jq_cron->fields[0]) == false) { $jq_cron_up = $core_db->Execute("Update MUCore_Cron_Jobs set next_cron=(" . time() . "+cron_time_set) where cron_id=?", array( trim($get_config->cron_job_2) )); $qry_c_dis = $core_db->Execute("Select DISTINCT class from character"); while (!$qry_c_dis->EOF) { $qry_c = $core_db->Execute("Select top " . $get_config->char_top . " mu_id,name,class,clevel,resets,strength,dexterity,vitality,energy,ctlcode,accountid,leadership,pklevel,grand_resets from character where class='" . $qry_c_dis->fields[0] . "' order by grand_resets desc, resets desc, clevel desc"); while (!$qry_c->EOF) { $init_cls .= "" . $qry_c->fields[0] . "|" . base64_encode($qry_c->fields[1]) . "|" . $qry_c->fields[2] . "|" . $qry_c->fields[3] . "|" . $qry_c->fields[4] . "|" . $qry_c->fields[5] . "|" . $qry_c->fields[6] . "|" . $qry_c->fields[7] . "|" . $qry_c->fields[8] . "|" . $qry_c->fields[9] . "|" . $qry_c->fields[10] . "|" . $qry_c->fields[11] . "|" . $qry_c->fields[12] . "|" . $qry_c->fields[13] . "|\n"; $qry_c->MoveNext(); } $qry_c_dis->MoveNext(); } $ge_ra_1 = "engine/cache/ra_0/ra_1.cache"; $o_ra_1 = fopen($ge_ra_1, 'w'); fputs($o_ra_1, $init_cls); fclose($o_ra_1); } //Show Class Rankings from cache echo '<table border="0" cellspacing="4" cellpadding="0" width="100%" style="margin-top: 10px;">'; $cache_ra_1 = file('engine/cache/ra_0/ra_1.cache'); $cache_count = 0; foreach ($cache_ra_1 as $r_cache) { $r_cache = explode("|", $r_cache); if ($r_cache[2] == $rank_class_type) { if ($get_config->gm == '1') { if (in_array($r_cache[9], get_array_variables($characters_ctlcode))) { $cache_count++; echo ' <tr> <td align="center" rowspan="3" class="iR_rank">' . $cache_count . '</td> <td align="left" class="iR_name" >' . htmlspecialchars(base64_decode($r_cache[1])) . '</td> <td align="left" rowspan="3" width="60"><img src="template/' . $core['config']['template'] . '/images/class/' . decode_class($r_cache[2], '2') . '" width="60" height="60"></td> <td align="left" class="iR_stats" >Str: '; if ($hide_stats == '1') { echo '--'; } else { echo number_format($r_cache[5]); } echo '</td> <td align="left" class="iR_stats" >Vit: '; if ($hide_stats == '1') { echo '--'; } else { echo number_format($r_cache[7]); } echo '</td> <td align="left" class="iR_stats" >PK Level: '.decode_pk($r_cache[12]).'</td> </tr> <tr> <td align="left" class="iR_class">' . decode_class($r_cache[2]) . '</td> <td align="left" class="iR_stats">Agi: '; if ($hide_stats == '1') { echo '--'; } else { echo number_format($r_cache[6]); } echo '</td> <td align="left" class="iR_stats">Eng: '; if ($hide_stats == '1') { echo '--'; } else { echo number_format($r_cache[8]); } echo '</td> <td align="left" class="iR_stats_level">Level ' . ($r_cache[3]) . '</td> </tr> <tr> <td align="left" class="iR_status">'; if ($get_config->char_status == '1') { echo '<div id="s_' . $cache_count . '"><a href="javascript:void(0)" onclick="get_data(\'s_' . $cache_count . '\',\'#s_' . $cache_count . '\', \'get.php?aG=' . base64_encode(crypt_it($r_cache[10], $core['config']['crypt_key'])) . '\', null, \'data=s_' . $cache_count . '\');">Check Status</a></div>'; } echo '</td> <td align="left" class="iR_status">'; if ($get_config->location == '1') { echo '<div id="m_' . $cache_count . '"><a href="javascript:void(0)" onclick="get_data(\'m_' . $cache_count . '\',\'#m_' . $cache_count . '\', \'get.php?aM=' . $r_cache[0] . '\', null, \'data=m_' . $cache_count . '\');">Location</a></div>'; } echo '</td> <td align="left" class="iR_stats">Com: '; if ($hide_stats == '1') { echo '--'; } else { echo number_format($r_cache[9]); } echo '</td> <td align="left" class="iR_stats_reset">Resets ' . ($r_cache[4]) . ', Grand Resets ' . $r_cache[13] . '</td> </tr> <tr> <td colspan="6" colspan="6" style="background-image:url(template/' . $core['config']['template'] . '/images/inner_line.jpg); background-repeat:repeat-x;"> </td> </tr>'; } } else { if ($r_cache[9] == '0') { $cache_count++; echo ' <tr> <td align="center" rowspan="3" class="iR_rank">' . $cache_count . '</td> <td align="left" class="iR_name" >' . htmlspecialchars(base64_decode($r_cache[1])) . '</td> <td align="left" rowspan="3" width="60"><img src="template/' . $core['config']['template'] . '/images/class/' . decode_class($r_cache[2], '2') . '" width="60" height="60"></td> <td align="left" class="iR_stats" >Str: '; if ($hide_stats == '1') { echo '--'; } else { echo number_format($r_cache[5]); } echo '</td> <td align="left" class="iR_stats" >Vit: '; if ($hide_stats == '1') { echo '--'; } else { echo number_format($r_cache[7]); } echo '</td> <td align="left" class="iR_stats" >PK Level: '.decode_pk($r_cache[12]).'</td> </tr> <tr> <td align="left" class="iR_class">' . decode_class($r_cache[2]) . '</td> <td align="left" class="iR_stats">Agi: '; if ($hide_stats == '1') { echo '--'; } else { echo number_format($r_cache[6]); } echo '</td> <td align="left" class="iR_stats">Eng: '; if ($hide_stats == '1') { echo '--'; } else { echo number_format($r_cache[8]); } echo '</td> <td align="left" class="iR_stats_level">Level ' . ($r_cache[3]) . '</td> </tr> <tr> <td align="left" class="iR_status">'; if ($get_config->char_status == '1') { echo '<div id="s_' . $cache_count . '"><a href="javascript:void(0)" onclick="get_data(\'s_' . $cache_count . '\',\'#s_' . $cache_count . '\', \'get.php?aG=' . base64_encode(crypt_it($r_cache[10], $core['config']['crypt_key'])) . '\', null, \'data=s_' . $cache_count . '\');">Check Status</a></div>'; } echo '</td> <td align="left" class="iR_status">'; if ($get_config->location == '1') { echo '<div id="m_' . $cache_count . '"><a href="javascript:void(0)" onclick="get_data(\'m_' . $cache_count . '\',\'#m_' . $cache_count . '\', \'get.php?aM=' . $r_cache[0] . '\', null, \'data=m_' . $cache_count . '\');">Location</a></div>'; } echo '</td> <td align="left" class="iR_stats">Com: '; if ($hide_stats == '1') { echo '--'; } else { echo number_format($r_cache[9]); } echo '</td> <td align="left" class="iR_stats_reset">Resets ' . ($r_cache[4]) . ', Grand Resets ' . $r_cache[13] . '</td> </tr> <tr> <td colspan="6" colspan="6" style="background-image:url(template/' . $core['config']['template'] . '/images/inner_line.jpg); background-repeat:repeat-x;"> </td> </tr>'; } } } } echo '</table>'; echo '<div align="right" class="iR_task">Next Scheduled Update for Rankings is on ' . date('M j, Y H:i A', $jq_cron->fields[0]) . '</div>'; } break; case 'guilds': if ($corecr['UseNewGRank'] == 0) { $jq_cron = $core_db->Execute("Select next_cron from MUCore_Cron_Jobs where cron_id=?", array( trim($get_config->cron_job_3) )); if (cron_check($jq_cron->fields[0]) == false) { $jq_cron_up = $core_db->Execute("Update MUCore_Cron_Jobs set next_cron=(" . time() . "+cron_time_set) where cron_id=?", array( trim($get_config->cron_job_3) )); $qry_g = $core_db->Execute("Select top " . $get_config->guild_top . " G_name,G_Mark,G_Score,G_Master from Guild order by G_Score desc"); while (!$qry_g->EOF) { $qry_n_m = $core_db->Execute("Select name from GuildMember where G_name=?", array( $qry_g->fields[0] )); $ra_02 .= "" . md5_encrypt($qry_g->fields[0]) . "|" . urlencode(bin2hex($qry_g->fields[1])) . "|" . $qry_g->fields[2] . "|" . md5_encrypt($qry_g->fields[3]) . "|" . $qry_n_m->RecordCount() . "|\n"; $qry_g->MoveNext(); } $ge_ra_2 = "engine/cache/ra_0/ra_2.cache"; $o_ra_2 = fopen($ge_ra_2, 'w'); fputs($o_ra_2, $ra_02); fclose($o_ra_2); } echo '<table border="0" cellspacing="4" cellpadding="0" width="100%" style="margin-top: 10px;">'; $cache_ra_1 = file('engine/cache/ra_0/ra_2.cache'); $cache_count = 0; foreach ($cache_ra_1 as $r_cache) { $r_cache = explode("|", $r_cache); $cache_count++; echo ' <tr> <td align="center" rowspan="2" class="iR_rank">' . $cache_count . '</td> <td align="left" class="iR_name" >' . htmlspecialchars(md5_decrypt($r_cache[0])) . '</td> <td align="right" rowspan="2"><img src="get.php?aL=' . $r_cache[1] . '" width="50" height="50"></td> <td align="left" class="iR_stats">Guild Master: ' . htmlspecialchars(md5_decrypt($r_cache[3])) . '</td> </tr> <tr> <td align="left" class="iR_class">' . $r_cache[4] . ' members</td> <td align="left" class="iR_stats_level">Score: ' . $r_cache[2] . '</td> </tr> <tr> <td colspan="4" colspan="6" style="background-image:url(template/' . $core['config']['template'] . '/images/inner_line.jpg); background-repeat:repeat-x;"> </td> </tr> '; } echo '</table>'; echo '<div align="right" class="iR_task">Next Scheduled Update for Rankings is on ' . date('M j, Y H:i A', $jq_cron->fields[0]) . '</div>'; } else { /* ---------------------------------------------------------------- Guilds Mu Core Ranking by Martin a.k.a 4FUNer (c) 2013 Coded & Released for Ragezone Community----------------------------------------------------------------- */ echo "<link rel='stylesheet' href='".dec_css($corecr['TopGuildsStyle'])."'>";if ($corecr['TitlesR'] == 1){echo '<div align="center" class="customRTitle">Top Guilds</div>';$pm = 0;} else {$pm = $corecr['M-Top'];}echo'<table border="0" style ="margin-top:'.$pm.'px;"cellspacing="2" cellpadding="2" width="100%" class="customRTable"><tr id="customRbg"><div style="height: 3px;"></div><td><div id="customRLegend" class="co-Legend">-</div></td><td><div id="customRLegend" class="co-Legend">Name</div></td>';if ($gporgg == 1) {echo'<td><div id="customRLegend" class="co-Legend">Logo</div></td>';}echo'<td><div id="customRLegend" class="co-Legend">G-Master</div></td><td><div id="customRLegend" class="co-Legend">Members</div></td>';if ($gporgl == 1) {echo'<td><div id="customRLegend" class="co-Legend">Level</div></td>';}if ($gporgp == 1) {echo'<td><div id="customRLegend" class="co-Legend">PK Count</div></td>';}if ($gporgs == 1) {echo'<td><div id="customRLegend" class="co-Legend">Strength</div></td>';}if ($gporgc == 1) { echo'<td><div id="customRLegend" class="co-Legend">Score</div></td>';}if ($corecr['TGUCronJobStatus'] == '0') { ($corecr['TGUCronJobID'] == false); } else$jq_cron = $core_db->Execute("Select next_cron from MUCore_Cron_Jobs where cron_id=?", array($corecr['TGUCronJobID']));if (cron_check($jq_cron->fields[0]) == false) {$jq_cron_up = $core_db->Execute("Update MUCore_Cron_Jobs set next_cron=(" . time() . "+cron_time_set) where cron_id=?", array($corecr['TGUCronJobID']));
$gd = $core_db->Execute("Select G_Name,G_Mark,G_Score,G_Master from Guild ".$gp4fr.""); while (!$gd->EOF){$gpinfo = $core_db->Execute("Select Name from GuildMember where G_Name=? ", array($gd->fields[0]));$gplv =0; $gpmm=0; $gppk=0; $gpgs=0; while (!$gpinfo->EOF) {if ($gpML == 1) {$mls = $gpMLC;} $gpin = $gpinfo->fetchrow();$gpl = $core_db->Execute("Select cLevel,PkCount,Money,Strength,Dexterity,Vitality,Energy,Leadership,LevelUpPoint".$mls." from Character where Name = '$gpin[0]'");$gplx = $gpl->fetchrow();if ($gpML == 1) {$gplv+=$gplx[0]+$gplx[9];}else {$gplv+=$gplx[0];} $gppk+=$gplx[1]; $gpmm+=$gplx[2]; $gpgs+=$gplx[3]+$gplx[4]+$gplx[5]+$gplx[6]+$gplx[7]+$gplx[8]; }$core_db->Execute("Update Guild set G_LV =?, G_PK =?, G_STR =? where G_Name =?", array($gplv,$gppk,$gpgs,$gd->fields[0])); $guildc.= "" . $gd->fields[0] . "|" . urlencode(bin2hex($gd->fields[1])) . "|" . $gd->fields[2] . "|" . $gd->fields[3] ."|" . $gpinfo->RecordCount() . "|" . $gplv . "|" . $gppk . "|" . $gpgs . "|\n";$gd->MoveNext();}$toguildg = "Custom_Rankings/Cache/TopGuilds.cache";$toguildo = fopen($toguildg, 'w');fputs($toguildo, $guildc);fclose($toguildo);}
$ctoguild = file('Custom_Rankings/Cache/TopGuilds.cache');$guildidc = 0;foreach ($ctoguild as $toguild ) {$toguild = explode("|", $toguild);$guildidc ++; echo ' <tr id="customRbg" > <td id="customRTDcontrol" class="co-ID">'. $guildidc .'</td>'; if ($gpsigGRGP == 1) { echo'<td id="customRTDcontrol" class="co-1"><a href="index.php?page_id=user_cp&panel=guild_profile&4F='.base64_encode($toguild[0]).'"><span class="co-1">'.htmlspecialchars($toguild[0]).'</span></a></td>'; } else { echo'<td id="customRTDcontrol" class="co-1"><span class="co-1">'.$toguild[0].'</span></td>'; } echo'</td>'; if ($gporgg == 1) { echo'<td id="customRTDcontrol"><img src="get.php?aL=' . $toguild[1] . '" width="35" height="35"></td>'; } if ($gpsigGRCP == 1) { echo'<td id="customRTDcontrol" class="co-2"><a href="index.php?page_id=user_cp&panel=character_profile&4F='.base64_encode($toguild[3]).'"><span class="co-3">'.htmlspecialchars($toguild[3]).'</span></a></td>'; } else { echo'<td id="customRTDcontrol" class="co-4"><span class="co-2">'.$toguild[3].'</span></td>'; } echo'<td id="customRTDcontrol" class="co-4">'.$toguild[4].'</td>'; if ($gporgl == 1) { echo'<td id="customRTDcontrol" class="co-3">'.$toguild[5].'</td>'; } if ($gporgp == 1) { echo'<td id="customRTDcontrol" class="co-4">'.$toguild[6].'</td>'; } if ($gporgs == 1) { echo'<td id="customRTDcontrol" class="co-3">'.$toguild[7].'</td>'; } if ($gporgc == 1) { echo'<td id="customRTDcontrol" class="co-4">'.($toguild[2]).'</td>'; } echo'</tr>'; } echo'</table> <br><div class="cachemsg" align="right">'; if ($corecr['TGUCronJobStatus'] == '0') { echo 'Update for Guilds is currently <span id="cRcJ">Live</span> ' ; } else echo 'Next Scheduled Update for Guilds is on ', date('M j, Y H:i a', $jq_cron->fields[0]); echo'</div>'; /* ---------------------------------------------------------------- Guilds Mu Core Ranking by Martin a.k.a 4FUNer (c) 2013 Coded & Released for Ragezone Community----------------------------------------------------------------- */ } break; case 'onlinep':/* ---------------------------------------------------------------- Online Players Mu Core Ranking by Martin a.k.a 4FUNer (c) 2013 Coded & Released for Ragezone Community----------------------------------------------------------------- */
echo "<link rel='stylesheet' href='".dec_css($corecr['OnlinePlayersStyle'])."'>";if ($corecr['TitlesR'] == 1){echo '<div align="center" class="customRTitle">Online Players</div>';$pm = 0;} else {$pm = $corecr['M-Top'];}echo'<table border="0" style ="margin-top:'.$pm.'px;" cellspacing="2" cellpadding="2" width="100%" class="customRTable"><tr id="customRbg"><div style="height: 3px;"></div><td><div id="customRLegend" class="co-Legend">-</div></td><td><div id="customRLegend" class="co-Legend">Name</div></td><td><div id="customRLegend" class="co-Legend">Level</div></td><td><div id="customRLegend" class="co-Legend">Map</div></td><td><div id="customRLegend" class="co-Legend">In-Game since</div></td></tr>';$onlinedata = $core_db2->Execute("Select top ".$corecr['OnlinePlayersTop']." memb___id, ConnectStat, ConnectTM from MEMB_STAT where ConnectStat = 1 order by ".$corecr['OnlinePlayersOrderBy']." ");$onlineid=1;while (!$onlinedata->EOF) { $onlinename = $core_db->Execute("Select GameIDC from AccountCharacter where id=?", array($onlinedata->fields[0])); $onlinemap = $core_db->Execute("Select MapNumber,CtlCode,cLevel from Character where Name=?", array($onlinename->fields[0]));
if ($corecr['ShowGM-2'] == 1) { if($onlinemap->fields[1] >= 0) { echo ' <tr id="customRbg" > <td id="customRTDcontrol" class="co-ID">'. $onlineid .'</td> <td id="customRTDcontrol" class="co-1"> '; if ($onlinename->fields[0] == '' ) { echo 'Newbie'; } else { echo $onlinename->fields[0]; } echo' </td><td id="customRTDcontrol" class="co-2">'.$onlinemap->fields[2].' </td><td id="customRTDcontrol" class="co-3"> '; if ($onlinename->fields[0] == '' ) { echo '--'; } else { echo decode_map($onlinemap->fields[0]); } echo'</td> <td id="customRTDcontrol" class="co-4">'; if ($onlinedata->fields[2] == '' ) { echo 'Never'; } else { echo $onlinedata->fields[2]; } echo'</td> </tr>'; $onlineid++; } $onlinedata->MoveNext(); } else { if($onlinemap->fields[1] == 0) { echo ' <tr id="customRbg" > <td id="customRTDcontrol" class="co-ID">'. $onlineid .'</td> <td id="customRTDcontrol" class="co-1"> '; if ($onlinename->fields[0] == '' ) { echo 'Newbie'; } else { echo $onlinename->fields[0]; } echo' </td><td id="customRTDcontrol" class="co-2"> '; if ($onlinename->fields[0] == '' ) { echo '--'; } else { echo decode_map($onlinemap->fields[0]); } echo' </td><td id="customRTDcontrol" class="co-3"> '. $onlinedata->fields[3] .'</td> <td id="customRTDcontrol" class="co-4">'; if ($onlinedata->fields[2] == '' ) { echo 'Never'; } else { echo $onlinedata->fields[2]; } echo'</td> </tr>'; $onlineid++; } $onlinedata->MoveNext(); } } echo'</table> <br><div class="cachemsg" align="right">Update for Online Players is <span id="cRcJ">Live</span></div>';
/* ---------------------------------------------------------------- Online Players Mu Core Ranking by Martin a.k.a 4FUNer (c) 2013 Coded & Released for Ragezone Community----------------------------------------------------------------- */ break; case 'tonline':/* ---------------------------------------------------------------- Top Online Mu Core Ranking by Martin a.k.a 4FUNer (c) 2013 Coded & Released for Ragezone Community----------------------------------------------------------------- */ echo "<link rel='stylesheet' href='".dec_css($corecr['TopOnlineStyle'])."'>";if ($corecr['TitlesR'] == 1){echo '<div align="center" class="customRTitle">Top Online</div>';$pm = 0;} else {$pm = $corecr['M-Top'];}echo'<table border="0" style ="margin-top:'.$pm.'px;" cellspacing="2" cellpadding="2" width="100%" class="customRTable"><tr id="customRbg"><div style="height: 3px;"></div><td><div id="customRLegend" class="co-Legend">-</div></td><td><div id="customRLegend" class="co-Legend">Name</div></td><td><div id="customRLegend" class="co-Legend">Total Hours</div></td><td><div id="customRLegend" class="co-Legend">Rank</div></td><td><div id="customRLegend" class="co-Legend">Last seen at</div></td></tr>';
if ($corecr['TOCronJobStatus'] == '0') { ($corecr['TOCronJobID'] == false); } else$jq_cron = $core_db->Execute("Select next_cron from MUCore_Cron_Jobs where cron_id=?", array($corecr['TOCronJobID']));if (cron_check($jq_cron->fields[0]) == false) {$jq_cron_up = $core_db->Execute("Update MUCore_Cron_Jobs set next_cron=(" . time() . "+cron_time_set) where cron_id=?", array($corecr['TOCronJobID']));
$tonlinedata = $core_db2->Execute("Select top ".$corecr['TopOnlineTop']." memb___id, ".$corecr['TOcolumn'].", DisConnectTM from MEMB_STAT order by ".$corecr['TOcolumn']." desc");while (!$tonlinedata->EOF) { $tonlinename = $core_db->Execute("Select ".$corecr['CharacterNameTopOnline']." from AccountCharacter where id=?", array($tonlinedata->fields[0])); $tonlinectl = $core_db->Execute("Select CtlCode from Character where Name=?", array($tonlinename->fields[0]));
$toc .= "" . $tonlinectl->fields[0] . "|" . $tonlinename->fields[0] . "|" . $tonlinedata->fields[1] . "|" .$tonlinedata->fields[2]."|\n";$tonlinedata->MoveNext();}$tocg = "Custom_Rankings/Cache/TopOnline.cache";$toco = fopen($tocg, 'w');fputs($toco, $toc);fclose($toco);}$ctoc = file('Custom_Rankings/Cache/TopOnline.cache');$toidc = 0;foreach ($ctoc as $topo) {$topo = explode("|", $topo);
if ($corecr['ShowGM-5'] == 1) { if($topo[0] >= 0) { $toidc ++; echo ' <tr id="customRbg" > <td id="customRTDcontrol" class="co-ID">'. $toidc .'</td> <td id="customRTDcontrol" class="co-1">'; if ($topo[1] == '' ) { echo 'Newbie'; } else { echo $topo[1]; } echo' </td><td id="customRTDcontrol" class="co-2">'; $hh = (int)($topo[2]/60); echo $hh; echo' </td><td id="customRTDcontrol" class="co-3">'; if ($topo[2] <= $corecr['TopOnRule1']) { echo $corecr['TopOnMsg1']; } elseif ($topo[2] <= $corecr['TopOnRule2']) { echo $corecr['TopOnMsg2']; } elseif ($topo[2] <= $corecr['TopOnRule3']) { echo $corecr['TopOnMsg3']; } elseif ($topo[2] <= $corecr['TopOnRule4']) { echo $corecr['TopOnMsg4']; } else echo $corecr['TopOnMsg5']; echo'</td> <td id="customRTDcontrol" class="co-4">'; if ($topo[3] == '' ) { echo 'Never'; } else { echo $topo[3]; } echo'</td> </tr>'; } } else { if($topo[0] == 0) { $toidc ++; echo ' <tr id="customRbg" > <td id="customRTDcontrol" class="co-ID">'. $toidc .'</td> <td id="customRTDcontrol" class="co-1"> '; if ($topo[1] == '' ) { echo 'Newbie'; } else { echo $topo[1]; } echo' </td><td id="customRTDcontrol" class="co-2"> '; $hh = (int)($topo[2]/60); echo $hh; echo' </td><td id="customRTDcontrol" class="co-3">'; if ($topo[2] <= $corecr['TopOnRule1']) { echo $corecr['TopOnMsg1']; } elseif ($topo[2] <= $corecr['TopOnRule2']) { echo $corecr['TopOnMsg2']; } elseif ($topo[2] <= $corecr['TopOnRule3']) { echo $corecr['TopOnMsg3']; } elseif ($topo[2] <= $corecr['TopOnRule4']) { echo $corecr['TopOnMsg4']; } else echo $corecr['TopOnMsg5']; echo'</td> <td id="customRTDcontrol" class="co-4">'; if ($topo[3] == '' ) { echo 'Never'; } else { echo $topo[3]; } echo'</td> </tr>'; } } } echo'</table> <br><div class="cachemsg" align="right">'; if ($corecr['TOCronJobStatus'] == '0') { echo 'Update for Top Online is currently <span id="cRcJ">Live</span> ' ; } else echo 'Next Scheduled Update for Top Online is on ', date('M j, Y H:i a', $jq_cron->fields[0]); echo'</div>'; /* ---------------------------------------------------------------- Top Online Mu Core Ranking by Martin a.k.a 4FUNer (c) 2013 Coded & Released for Ragezone Community----------------------------------------------------------------- */ break; case 'gmasters':/* ---------------------------------------------------------------- Game Masters Mu Core Ranking by Martin a.k.a 4FUNer (c) 2013 Coded & Released for Ragezone Community----------------------------------------------------------------- */ echo "<link rel='stylesheet' href='".dec_css($corecr['GameMastersStyle'])."'>";if ($corecr['TitlesR'] == 1){echo '<div align="center" class="customRTitle">Game Masters</div>';$pm = 0;} else {$pm = $corecr['M-Top'];}echo'<table border="0" style ="margin-top:'.$pm.'px;" cellspacing="2" cellpadding="2" width="100%" class="customRTable"><tr id="customRbg"><div style="height: 3px;"></div><td><div id="customRLegend" class="co-Legend">-</div></td><td><div id="customRLegend" class="co-Legend">Name</div></td><td><div id="customRLegend" class="co-Legend">Map</div></td><td><div id="customRLegend" class="co-Legend">Class</div></td><td><div id="customRLegend" class="co-Legend">Status</div></td><td><div id="customRLegend" class="co-Legend">Position</div></td></tr>';
$gmdata = $core_db->Execute("Select top ".$corecr['GameMastersTop']." Name , AccountId, MapNumber,Class from Character where CtlCode > 1 order by case Name ".$corecr['GMO']." ");
$gmid=1;while (!$gmdata->EOF) { $gmstatus = $core_db2->Execute("Select memb___id, ConnectStat from MEMB_STAT where memb___id=?", array($gmdata->fields[1])); $gmname = $core_db->Execute("Select GameIDC from AccountCharacter where id=?", array($gmdata->fields[1])); echo ' <tr id="customRbg" > <td id="customRTDcontrol" class="co-ID">'. $gmid .'</td> <td id="customRTDcontrol" class="co-1">'.$gmdata->fields[0].' </td><td id="customRTDcontrol" class="co-2">'.decode_map($gmdata->fields[2]).' </td><td id="customRTDcontrol" class="co-3"> '.decode_class($gmdata->fields[3]).'</td> <td id="customRTDcontrol" class="co-4">'; if(($gmname->fields[0] == $gmdata->fields[0]) && ($gmstatus->fields[1] == 1)) { echo '<span id="cRonline">Online</span>'; } else echo'<span id="cRoffline">Offline</span>'; echo' </td> <td id="customRTDcontrol" class="co-4">'; if (in_array($gmdata->fields[0],$rank1)) { echo $corecr['GM-R1']; } elseif (in_array($gmdata->fields[0],$rank2)) { echo $corecr['GM-R2']; } elseif (in_array($gmdata->fields[0],$rank3)) { echo $corecr['GM-R3']; } elseif (in_array($gmdata->fields[0],$rank4)) { echo $corecr['GM-R4']; } elseif (in_array($gmdata->fields[0],$rank5)) { echo $corecr['GM-R5']; } else echo $corecr['GM-RDef']; echo'</td></tr>'; $gmid++; $gmdata->MoveNext(); } echo'</table> <br><div class="cachemsg" align="right">Update for Game Masters is <span id="cRcJ">Live</span></div>';
/* ---------------------------------------------------------------- Game Masters Mu Core Ranking by Martin a.k.a 4FUNer (c) 2013 Coded & Released for Ragezone Community----------------------------------------------------------------- */ break; case 'tkillers':/* ---------------------------------------------------------------- Top Killers Mu Core Ranking by Martin a.k.a 4FUNer (c) 2013 Coded & Released for Ragezone Community----------------------------------------------------------------- */ echo "<link rel='stylesheet' href='".dec_css($corecr['TopKillersStyle'])."'>";if ($corecr['TitlesR'] == 1){echo '<div align="center" class="customRTitle">Top Killers</div>';$pm = 0;} else {$pm = $corecr['M-Top'];}echo'<table border="0" style ="margin-top:'.$pm.'px;" cellspacing="2" cellpadding="2" width="100%" class="customRTable"><tr id="customRbg"><div style="height: 3px;"></div><td><div id="customRLegend" class="co-Legend">-</div></td><td><div id="customRLegend" class="co-Legend">Name</div></td><td><div id="customRLegend" class="co-Legend">Total Kills</div></td><td><div id="customRLegend" class="co-Legend">Class</div></td><td><div id="customRLegend" class="co-Legend">Rank</div></td></tr>';
if ($corecr['TKCronJobStatus'] == '0') { ($corecr['TKCronJobID'] == false); } else$jq_cron = $core_db->Execute("Select next_cron from MUCore_Cron_Jobs where cron_id=?", array($corecr['TKCronJobID']));if (cron_check($jq_cron->fields[0]) == false) {$jq_cron_up = $core_db->Execute("Update MUCore_Cron_Jobs set next_cron=(" . time() . "+cron_time_set) where cron_id=?", array($corecr['TKCronJobID']));
$pkdata = $core_db->Execute("Select top ".$corecr['TopKillersTop']." Name, PkCount, Class from Character where CtlCode ".$corecr['ShowGM']." order by PkCount desc ");while (!$pkdata->EOF) { $pkc .= "" . $pkdata->fields[0] . "|" . $pkdata->fields[1] . "|" . $pkdata->fields[2] . "|\n";$pkdata->MoveNext();}$pkcg = "Custom_Rankings/Cache/TopKillers.cache";$pkco = fopen($pkcg, 'w');fputs($pkco, $pkc);fclose($pkco);}$cpkc = file('Custom_Rankings/Cache/TopKillers.cache');$pkidc = 0;foreach ($cpkc as $topk) {$topk = explode("|", $topk);$pkidc ++; echo ' <tr id="customRbg" > <td id="customRTDcontrol" class="co-ID">'. $pkidc .'</td> <td id="customRTDcontrol" class="co-1">'.$topk[0].' </td><td id="customRTDcontrol" class="co-2">'; if ($topk[1] == '') { echo ':('; } else echo $topk[1]; echo'</td><td id="customRTDcontrol" class="co-3">'; if ($topk[2] == '') { echo'Unknown'; } else echo decode_class($topk[2]); echo'</td> <td id="customRTDcontrol" class="co-4">'; if ($topk[1] < $corecr['PkRule1'] ) { echo $corecr['PkMsg1']; } elseif ($topk[1] <= $corecr['PkRule2'] ) { echo $corecr['PkMsg2']; } elseif ($topk[1] <= $corecr['PkRule3'] ) { echo $corecr['PkMsg3']; } elseif ($topk[1] <= $corecr['PkRule4'] ) { echo $corecr['PkMsg4']; } elseif ($topk[1] <= $corecr['PkRule5'] ) { echo $corecr['PkMsg5']; } elseif ($topk[1] > $corecr['PkRule6'] ) { echo $corecr['PkMsg6']; } else echo $corecr['PkMsg7']; echo'</td></tr>'; } echo'</table> <br><div class="cachemsg" align="right">'; if ($corecr['TKCronJobStatus'] == '0') { echo 'Update for Top Killers is currently <span id="cRcJ">Live</span> ' ; } else echo 'Next Scheduled Update for Top Killers is on ', date('M j, Y H:i a', $jq_cron->fields[0]); echo'</div>'; /* ---------------------------------------------------------------- Top Killers Mu Core Ranking by Martin a.k.a 4FUNer (c) 2013 Coded & Released for Ragezone Community----------------------------------------------------------------- */ break; case 'tgens':/* ---------------------------------------------------------------- Top Gens Mu Core Ranking by Martin a.k.a 4FUNer (c) 2013 Coded & Released for Ragezone Community----------------------------------------------------------------- */ echo "<link rel='stylesheet' href='".dec_css($corecr['TopGensStyle'])."'>";$gensdata1 = $core_db->Execute("Select Sum(".$corecr['GensContributionColumn'].") from ".$corecr['GensTable']." where ".$corecr['GensFamilly']." = 1");$gensdata2 = $core_db->Execute("Select Sum(".$corecr['GensContributionColumn'].") from ".$corecr['GensTable']." where ".$corecr['GensFamilly']." = 2");$gensdata3 = $core_db->Execute("Select ".$corecr['GensFamilly']." from ".$corecr['GensTable']." where ".$corecr['GensFamilly']." = 1");$gensdata4 = $core_db->Execute("Select ".$corecr['GensFamilly']." from ".$corecr['GensTable']." where ".$corecr['GensFamilly']." = 2");if ($corecr['TitlesR'] == 1){echo '<div align="center" class="customRTitle">Gens vs Gens</div>';$pmg = '<div align="center" class="customRTitle">Top Gens Members</div>';$pm = 0;} else {$pm = $corecr['M-Top'];}echo'<table style ="margin-top:'.$pm.'px;" width="100%" height="30" align="center" class="customRTable"><tr id="customRbg"><div style="height: 3px;"></div><td><div id="customRLegend" class="co-Legend">Duprian Score</div></td><td><div id="customRLegend" class="co-Legend">Members</div></td><td><div id="customRLegend" class="co-Legend">Vanert Score</div></td><td><div id="customRLegend" class="co-Legend">Members</div></td></tr><tr id="customRbg" ><td id="customRTDcontrol"><span id="sumgensD">';if (!$gensdata1) {echo '<span style="color:#FF5555;">Please configure Gens Table/Columns at config<br>else Gens data is empty - Cheers 4FUNer</span>';} else echo $gensdata1->fields[0];echo'</span></td><td id="customRTDcontrol"><span id="sumgensD">'.$gensdata3->RecordCount().'</span></td><td id="customRTDcontrol"><span id="sumgensV">';if ($gensdata2->fields[0] == '') {echo '--';} else echo $gensdata2->fields[0];echo'</span></td><td id="customRTDcontrol"><span id="sumgensV">'.$gensdata4->RecordCount().'</span></td></tr>';echo '</table>'.$pmg.'<table border="0" style ="margin-top:'.$pm.'px;" cellspacing="2" cellpadding="2" width="100%" class="customRTable" ><tr id="customRbg"><div style="height: 3px;"></div><td><div id="customRLegend" class="co-Legend">-</div></td><td><div id="customRLegend" class="co-Legend">Name</div></td><td><div id="customRLegend" class="co-Legend">Contribution</div></td><td><div id="customRLegend" class="co-Legend">Guild</div></td><td><div id="customRLegend" class="co-Legend">Gens Familly</div></td></tr>';
if ($corecr['TGCronJobStatus'] == '0') { ($corecr['TGCronJobID'] == false); } else$jq_cron = $core_db->Execute("Select next_cron from MUCore_Cron_Jobs where cron_id=?", array($corecr['TGCronJobID']));if (cron_check($jq_cron->fields[0]) == false) {$jq_cron_up = $core_db->Execute("Update MUCore_Cron_Jobs set next_cron=(" . time() . "+cron_time_set) where cron_id=?", array($corecr['TGCronJobID']));
$topgensdata = $core_db->Execute("Select top ".$corecr['TopGensTop']." Name, ".$corecr['GensContributionColumn'].",".$corecr['GensFamilly'].",AccountID from ".$corecr['GensTable']." where CtlCode ".$corecr['ShowGM']." order by ".$corecr['TopGensOrderBy']." desc");while (!$topgensdata->EOF) { $topgensg = $core_db->Execute("Select G_Name from GuildMember where Name=?", array($topgensdata->fields[0]));if(!$topgensdata){echo 'Please configure Gens Table/Columns at config<br>or Gens data is empty - Cheers 4FUNer';}$tgc .= "" . $topgensdata->fields[0] . "|" . $topgensdata->fields[1] . "|" . $topgensg->fields[0] . "|" . $topgensdata->fields[2] . "|\n";$topgensdata->MoveNext();}$tgcg = "Custom_Rankings/Cache/TopGens.cache";$tgco = fopen($tgcg, 'w');fputs($tgco, $tgc);fclose($tgco);}$ctgc = file('Custom_Rankings/Cache/TopGens.cache');$tgidc = 0;foreach ($ctgc as $topg) {$topg = explode("|", $topg);$tgidc ++; echo ' <tr id="customRbg" > <td id="customRTDcontrol" class="co-ID">'. $tgidc .'</td> <td id="customRTDcontrol" class="co-1">'.$topg[0].' </td><td id="customRTDcontrol" class="co-2">'; if ($topg[1] == '') { echo '--'; } else echo $topg[1]; echo'</td><td id="customRTDcontrol" class="co-3">'; if ($topg[2] == '') { echo'--'; } else echo $topg[2]; echo'</td> <td id="customRTDcontrol" class="co-4">'; if ($topg[3] == '1' ) { echo '<span id="gensD">Duprian</span>'; } elseif ($topg[3] == '2' ) { echo '<span id="gensV">Vanert</span>'; } else echo '--'; echo'</td></tr>'; } echo'</table> <br><div class="cachemsg" align="right">'; if ($corecr['TGCronJobStatus'] == '0') { echo 'Update for Top Gens is currently <span id="cRcJ">Live</span> ' ; } else echo 'Next Scheduled Update for Top Gens is on ', date('M j, Y H:i a', $jq_cron->fields[0]); echo'</div>'; /* ---------------------------------------------------------------- Top Gens Mu Core Ranking by Martin a.k.a 4FUNer (c) 2013 Coded & Released for Ragezone Community----------------------------------------------------------------- */ break; case 'tduel':/* ---------------------------------------------------------------- Top Duel Mu Core Ranking by Martin a.k.a 4FUNer (c) 2013 Coded & Released for Ragezone Community----------------------------------------------------------------- */ echo "<link rel='stylesheet' href='".dec_css($corecr['TopDuelStyle'])."'>";if ($corecr['TitlesR'] == 1){echo '<div align="center" class="customRTitle">Top Duel</div>';$pm = 0;} else {$pm = $corecr['M-Top'];}echo'<table border="0" style ="margin-top:'.$pm.'px;" cellspacing="2" cellpadding="2" width="100%" class="customRTable" ><tr id="customRbg"><div style="height: 3px;"></div><td><div id="customRLegend" class="co-Legend">-</div></td><td><div id="customRLegend" class="co-Legend">Name</div></td><td><div id="customRLegend" class="co-Legend">Win</div></td><td><div id="customRLegend" class="co-Legend">Lost</div></td>';if ($corecr['TopDuel-DBT'] == '1') {echo'<td><div id="customRLegend" class="co-Legend">'.$corecr['tdx4'].'</div></td>';}if ($corecr['TopDuel-DBT'] == '2') {echo'<td><div id="customRLegend" class="co-Legend">'.$corecr['2tdx4'].'</div></td>';}echo'</tr>';
if ($corecr['TDCronJobStatus'] == '0') { ($corecr['TDCronJobID'] == false); } else$jq_cron = $core_db->Execute("Select next_cron from MUCore_Cron_Jobs where cron_id=?", array($corecr['TDCronJobID']));if (cron_check($jq_cron->fields[0]) == false) {$jq_cron_up = $core_db->Execute("Update MUCore_Cron_Jobs set next_cron=(" . time() . "+cron_time_set) where cron_id=?", array($corecr['TDCronJobID']));
if ($corecr['TopDuel-DBT'] == '0') {echo '<tr id="customRbg" ><td colspan ="4" id="customRTDcontrol" class="co-1">Please configure Duel Info located in config<br><br><span style="color:#FFFFFF">Custom_Rankings/Custom_Rankings_cfg.php</span><br><br>corecr[\'TopDuel-DBT\'] = 1 for MuOnline databse (default support for igcn)<br>or<br>corecr[\'TopDuel-DBT\'] = 2 for Ranking database location (default support for titan tech)<br><br>in case you doesnt use igcn or tt files configure table/columns if ur server files support top duel ranking<br><br>else just disable ranking ;)<br><br>Cheers <span style="color:#FF6600">4FUNer</span></td><tr>';}
if ($corecr['TopDuel-DBT'] == '1') {$dueldata = $core_db->Execute("Select top ".$corecr['TopDuelTop']." ".$corecr['tdc1'].", ".$corecr['tdc2'].", ".$corecr['tdc3'].", ".$corecr['tdc4']." from ".$corecr['tdt1']." order by ".$corecr['tdc2']." DESC");}
if ($corecr['TopDuel-DBT'] == '2') {$core_dbTD = &ADONewConnection(''.$corecr['contype'].'');$core_dbTD->Connect($core['db_host'],$core['db_user'],$core['db_password'],"Ranking");$dueldata = $core_dbTD->Execute("Select top ".$corecr['TopDuelTop']." ".$corecr['2tdc1'].", ".$corecr['2tdc2'].", ".$corecr['2tdc3'].", ".$corecr['2tdc4']." from ".$corecr['2tdt1']." order by ".$corecr['2tdc2']." DESC, ".$corecr['2tdc3']." ASC");}if (!$dueldata) {echo '<span style="color:#FF5555;">Please configure Duel DB/Table/Columns at config<br>else duel data is empty - Cheers 4FUNer</span>';}while (!$dueldata->EOF) {$duelc .= "" . $dueldata->fields[0] . "|" . $dueldata->fields[1] . "|" . $dueldata->fields[2] . "|" . $dueldata->fields[3] . "|\n";$dueldata->MoveNext();}$duelcg = "Custom_Rankings/Cache/TopDuel.cache";$duelco = fopen($duelcg, 'w');fputs($duelco, $duelc);fclose($duelco);}$cduelc = file('Custom_Rankings/Cache/TopDuel.cache');$duelidc = 0;foreach ($cduelc as $topd) {$topd = explode("|", $topd);$duelidc ++; echo ' <tr id="customRbg" > <td id="customRTDcontrol" class="co-ID">'. $duelidc .'</td> <td id="customRTDcontrol" class="co-1">'.$topd[0].' </td><td id="customRTDcontrol" class="co-3">'.$topd[1].' </td><td id="customRTDcontrol" class="co-2">'.$topd[2].'</td> <td id="customRTDcontrol" class="co-4">'.$topd[3].'</td> </tr>'; } echo'</table> <br><div class="cachemsg" align="right">'; if ($corecr['TDCronJobStatus'] == '0') { echo 'Update for Top Duel is currently <span id="cRcJ">Live</span> ' ; } else echo 'Next Scheduled Update for Top Duel is on ', date('M j, Y H:i a', $jq_cron->fields[0]); echo'</div>';
/* ---------------------------------------------------------------- Top Duel Mu Core Ranking by Martin a.k.a 4FUNer (c) 2013 Coded & Released for Ragezone Community----------------------------------------------------------------- */ break; case 'tvoters': /* ---------------------------------------------------------------- Top Voters Mu Core Ranking by Martin a.k.a 4FUNer (c) 2013 Coded & Released for Ragezone Community----------------------------------------------------------------- */ echo "<link rel='stylesheet' href='".dec_css($corecr['TopVotersStyle'])."'>";if ($corecr['TitlesR'] == 1){echo '<div align="center" class="customRTitle">Top Voters</div>';$pm = 0;} else {$pm = $corecr['M-Top'];}echo'<table border="0" style ="margin-top:'.$pm.'px;" cellspacing="2" cellpadding="2" width="100%" class="customRTable"><tr id="customRbg"><div style="height: 3px;"></div><td><div id="customRLegend" class="co-Legend">-</div></td><td><div id="customRLegend" class="co-Legend">Name</div></td><td><div id="customRLegend" class="co-Legend">Total Votes</div></td><td><div id="customRLegend" class="co-Legend">Rank</div></td><td><div id="customRLegend" class="co-Legend">Last seen at</div></td></tr>';
if ($corecr['TVCronJobStatus'] == '0') { ($corecr['TVCronJobID'] == false); } else$jq_cron = $core_db->Execute("Select next_cron from MUCore_Cron_Jobs where cron_id=?", array($corecr['TVCronJobID']));if (cron_check($jq_cron->fields[0]) == false) {$jq_cron_up = $core_db->Execute("Update MUCore_Cron_Jobs set next_cron=(" . time() . "+cron_time_set) where cron_id=?", array($corecr['TVCronJobID']));
$votecount = $core_db2->Execute("Select top ".$corecr['TopVotersTop']." TVote, memb___id from MEMB_INFO order by TVote Desc");while (!$votecount->EOF) {$votename = $core_db->Execute("Select ".$corecr['CharacterNameTopVoters']." from AccountCharacter where id=?", array($votecount->fields[1])); $votedata = $core_db2->Execute("Select DisConnectTM from MEMB_STAT where memb___id=?", array($votecount->fields[1])); $votectl = $core_db->Execute("Select CtlCode from Character where Name=?", array($votename->fields[0]));
$votec .= "" . $votectl->fields[0] . "|" . $votename->fields[0] . "|" . $votecount->fields[0] ."|" . $votedata->fields[0] . "|\n";$votecount->MoveNext();}$votecg = "Custom_Rankings/Cache/TopVoters.cache";$voteco = fopen($votecg, 'w');fputs($voteco, $votec);fclose($voteco);}$cvotec = file('Custom_Rankings/Cache/TopVoters.cache');$voteidc = 0;foreach ($cvotec as $topv) {$topv = explode("|", $topv);
if ($corecr['ShowGM-4'] == 1) { if($topv[0] >= 0) { $voteidc ++; echo ' <tr id="customRbg" > <td id="customRTDcontrol" class="co-ID">'. $voteidc .'</td> <td id="customRTDcontrol" class="co-1">'; if ($topv[1] == '' ) { echo 'Newbie'; } else { echo $topv[1]; } echo' </td><td id="customRTDcontrol" class="co-2">'; if ($topv[2] == '' ) { echo '0'; } else { echo $topv[2]; } echo' </td><td id="customRTDcontrol" class="co-3">'; if ($topv[2] <= $corecr['VoteRule1']) { echo $corecr['VoteMsg1']; } elseif ($topv[2] <= $corecr['VoteRule2']) { echo $corecr['VoteMsg2']; } elseif ($topv[2] <= $corecr['VoteRule3']) { echo $corecr['VoteMsg3']; } elseif ($topv[2] <= $corecr['VoteRule4']) { echo $corecr['VoteMsg4']; } else echo $corecr['VoteMsg5']; echo'</td> <td id="customRTDcontrol" class="co-4">'; if ($topv[3] == '' ) { echo 'Never'; } else { echo $topv[3]; } echo'</td> </tr>'; } } else { if($topv[0] == 0) { $voteidc ++; echo ' <tr id="customRbg" > <td id="customRTDcontrol" class="co-ID">'. $voteidc .'</td> <td id="customRTDcontrol" class="co-1"> '; if ($topv[1] == '' ) { echo 'Newbie'; } else { echo $topv[1]; } echo' </td><td id="customRTDcontrol" class="co-2">'; if ($topv[2] == '' ) { echo '0'; } else { echo $topv[2]; } echo' </td><td id="customRTDcontrol" class="co-3">'; if ($topv[2] <= $corecr['VoteRule1']) { echo $corecr['VoteMsg1']; } elseif ($topv[2] <= $corecr['VoteRule2']) { echo $corecr['VoteMsg2']; } elseif ($topv[2] <= $corecr['VoteRule3']) { echo $corecr['VoteMsg3']; } elseif ($topv[2] <= $corecr['VoteRule4']) { echo $corecr['VoteMsg4']; } else echo $corecr['VoteMsg5']; echo'</td> <td id="customRTDcontrol" class="co-4">'; if ($topv[3] == '' ) { echo 'Never'; } else { echo $topv[3]; } echo'</td> </tr>'; } } } echo'</table> <br><div class="cachemsg" align="right">'; if ($corecr['TVCronJobStatus'] == '0') { echo 'Update for Top Voters is currently <span id="cRcJ">Live</span> ' ; } else echo 'Next Scheduled Update for Top Voters is on ', date('M j, Y H:i a', $jq_cron->fields[0]); echo'</div>';
/* ---------------------------------------------------------------- Top Voters Mu Core Ranking by Martin a.k.a 4FUNer (c) 2013 Coded & Released for Ragezone Community----------------------------------------------------------------- */ break; case 'tmarry':/* ---------------------------------------------------------------- Marry Status Mu Core Ranking by Martin a.k.a 4FUNer (c) 2013 Coded & Released for Ragezone Community----------------------------------------------------------------- */ echo "<link rel='stylesheet' href='".dec_css($corecr['MarryStatusStyle'])."'>";if ($corecr['TitlesR'] == 1){echo '<div align="center" class="customRTitle">Marry Status</div>';$pm = 0;} else {$pm = $corecr['M-Top'];}echo'<table border="0" style ="margin-top:'.$pm.'px;" cellspacing="2" cellpadding="2" width="100%" class="customRTable" ><tr id="customRbg"><div style="height: 3px;"></div><td><div id="customRLegend" class="co-Legend">Class</div></td><td><div id="customRLegend" class="co-Legend">Husband</div></td><td><div id="customRLegend" class="co-Legend"></div></td><td><div id="customRLegend" class="co-Legend">Wife</div></td><td><div id="customRLegend" class="co-Legend">Class</div></td></tr>';
if ($corecr['MSCronJobStatus'] == '0') { ($corecr['MSCronJobID'] == false); } else$jq_cron = $core_db->Execute("Select next_cron from MUCore_Cron_Jobs where cron_id=?", array($corecr['MSCronJobID']));if (cron_check($jq_cron->fields[0]) == false) {$jq_cron_up = $core_db->Execute("Update MUCore_Cron_Jobs set next_cron=(" . time() . "+cron_time_set) where cron_id=?", array($corecr['MSCronJobID']));
foreach ($husband as $hc => $hcn) {$marrydata = $core_db->Execute("Select Name,".$corecr['MarryColumn'].",Class from Character where CtlCode ".$corecr['ShowGM-3']." and ".$corecr['MarryColumn']." > '' and Class =?", array($hc)); while (!$marrydata->EOF) {$marrydata2 = $core_db->Execute("Select Class from Character where Name=?", array($marrydata->fields[1])); if (!$marrydata){echo '<span style="color:#FF5555;">Please configure Marry Column at config<br>else Marry data is empty - Cheers 4FUNer</span>';}$msc .= "" . decode_class($marrydata->fields[2]) . "|" . $marrydata->fields[0] . "|" . $marrydata->fields[1] . "|" . decode_class($marrydata2->fields[0]) . "|\n";$marrydata->MoveNext();}
$mscg = "Custom_Rankings/Cache/MarryStatus.cache";$msco = fopen($mscg, 'w');fputs($msco, $msc);fclose($msco);}}$cmsc = file('Custom_Rankings/Cache/MarryStatus.cache');$msidc = 0;foreach ($cmsc as $msd) {$msd = explode("|", $msd);$msidc++; echo ' <tr id="customRbg" > <td id="customRTDcontrol" class="co-2">'.$msd[0].' <td id="customRTDcontrol" class="co-H">'.$msd[1].' <td id="customRTDcontrol" class="co-2">+</td> </td><td id="customRTDcontrol" class="co-W">'.$msd[2].' </td><td id="customRTDcontrol" class="co-4">'.$msd[3].' </td></tr>'; } echo'</table> <br><div class="cachemsg" align="right">'; if ($corecr['MSCronJobStatus'] == '0') { echo 'Update for Marry Status is currently <span id="cRcJ">Live</span> ' ; } else echo 'Next Scheduled Update for Marry Status is on ', date('M j, Y H:i a', $jq_cron->fields[0]); echo'</div>';
/* ---------------------------------------------------------------- Marry Status Mu Core Ranking by Martin a.k.a 4FUNer (c) 2013 Coded & Released for Ragezone Community----------------------------------------------------------------- */ break; case 'tzen':/* ---------------------------------------------------------------- Top Zen Mu Core Ranking by Martin a.k.a 4FUNer (c) 2013 Coded & Released for Ragezone Community----------------------------------------------------------------- */ echo "<link rel='stylesheet' href='".dec_css($corecr['TopZenStyle'])."'>";if ($corecr['TitlesR'] == 1){echo '<div align="center" class="customRTitle">Top Zen</div>';$pm = 0;} else {$pm = $corecr['M-Top'];}echo'<table border="0" style ="margin-top:'.$pm.'px;" cellspacing="2" cellpadding="2" width="100%" class="customRTable" ><tr id="customRbg"><div style="height: 3px;"></div><td><div id="customRLegend" class="co-Legend">-</div></td><td><div id="customRLegend" class="co-Legend">Name</div></td><td><div id="customRLegend" class="co-Legend">Zen</div></td><td><div id="customRLegend" class="co-Legend">Map</div></td><td><div id="customRLegend" class="co-Legend">Rank</div></td></tr>';
if ($corecr['TZCronJobStatus'] == '0') { ($corecr['TZCronJobID'] == false); } else$jq_cron = $core_db->Execute("Select next_cron from MUCore_Cron_Jobs where cron_id=?", array($corecr['TZCronJobID']));if (cron_check($jq_cron->fields[0]) == false) {$jq_cron_up = $core_db->Execute("Update MUCore_Cron_Jobs set next_cron=(" . time() . "+cron_time_set) where cron_id=?", array($corecr['TZCronJobID']));
$zendata = $core_db->Execute("Select top ".$corecr['ZenTop']." Name, Money,MapNumber from Character where CtlCode ".$corecr['ShowGM']." order by Money desc, ".$corecr['ZenOrderBy1'].", ".$corecr['ZenOrderBy2']." ");while (!$zendata->EOF) {$zenc .= "" . $zendata->fields[0] . "|" . decode_map($zendata->fields[2]) . "|" . $zendata->fields[1] . "|\n";$zendata->MoveNext();}$zencg = "Custom_Rankings/Cache/TopZen.cache";$zenco = fopen($zencg, 'w');fputs($zenco, $zenc);fclose($zenco);}$czenc = file('Custom_Rankings/Cache/TopZen.cache');$zenidc = 0;foreach ($czenc as $topz) {$topz = explode("|", $topz);$zenidc ++; echo ' <tr id="customRbg" > <td id="customRTDcontrol" class="co-ID">'. $zenidc .'</td> <td id="customRTDcontrol" class="co-1">'.$topz[0].' </td><td id="customRTDcontrol" class="co-2">'; if ($topz[2] > 2000000000) { echo 'Cheater!'; } elseif ($topz[2] == '') { echo ':('; } else echo $topz[2]; echo'</td><td id="customRTDcontrol" class="co-3">'.$topz[1].'</td> <td id="customRTDcontrol" class="co-4">'; if ($topz[2] <= $corecr['ZenMsgRule1'] ) { echo $corecr['ZenMsg1']; } elseif ($topz[2] <= $corecr['ZenMsgRule2'] ) { echo $corecr['ZenMsg2']; } elseif ($topz[2] <= $corecr['ZenMsgRule3'] ) { echo $corecr['ZenMsg3']; } elseif ($topz[2] <= $corecr['ZenMsgRule4'] ) { echo $corecr['ZenMsg4']; } elseif ($topz[2] <= $corecr['ZenMsgRule5'] ) { echo $corecr['ZenMsg5']; } elseif ($topz[2] <= $corecr['ZenMsgRule6'] ) { echo $corecr['ZenMsg6']; } else echo $corecr['ZenMsg7']; echo'</td></tr>'; } echo'</table> <br><div class="cachemsg" align="right">'; if ($corecr['TZCronJobStatus'] == '0') { echo 'Update for Top Zen is currently <span id="cRcJ">Live</span> ' ; } else echo 'Next Scheduled Update for Top Zen is on ', date('M j, Y H:i a', $jq_cron->fields[0]); echo'</div>';
/* ---------------------------------------------------------------- Top Zen Mu Core Ranking by Martin a.k.a 4FUNer (c) 2013 Coded & Released for Ragezone Community----------------------------------------------------------------- */ break; } }?>
PHP Code:
<?
/* ---------------------------------------------------------------- Mu Core Custom Rankings Config by Martin a.k.a 4FUNer (c) 2013 Coded & Released for Ragezone Community----------------------------------------------------------------- */
/* Global Rankings Control ON/OFF */$corecr['TopGuildsR'] = '1'; // 1 = ON, 0 = OFF$corecr['OnlinePlayersR'] = '1'; // 1 = ON, 0 = OFF$corecr['TopOnlineR'] = '1'; // 1 = ON, 0 = OFF$corecr['GameMastersR'] = '1'; // 1 = ON, 0 = OFF$corecr['TopKillersR'] = '1'; // 1 = ON, 0 = OFF$corecr['TopGensR'] = '1'; // 1 = ON, 0 = OFF$corecr['TopDuelR'] = '1'; // 1 = ON, 0 = OFF$corecr['TopVotersR'] = '1'; // 1 = ON, 0 = OFF$corecr['TopMarryR'] = '1'; // 1 = ON, 0 = OFF$corecr['TopZenR'] = '1'; // 1 = ON, 0 = OFF$corecr['TitlesR'] = '1'; // Rankings Title 1 = ON, 0 = OFF$corecr['UseNewGRank'] = '0'; // Use new guild ranking 1 = ON, 0 = OFF$corecr['M-Top'] = '20'; // Margin Top while Title are disabled (px)
// Top Duel Support // 1 = MuOnline database location (default IGCN)// 2 = Ranking database support/location (default Titan Tech)$corecr['TopDuel-DBT'] = '1'; // MuOnline database based Settings (default igcn info)$corecr['tdt1'] = 'Character'; // Duel Table$corecr['tdc1'] = 'Name'; // Name column$corecr['tdc2'] = 'WinDuels'; // Wins column$corecr['tdc3'] = 'LoseDuels'; // Losse column$corecr['tdc4'] = 'cLevel'; // 4th column (any you want but must be in the same table)$corecr['tdx4'] = 'Level'; // 4h column Legend text
// Ranking database based Settings (default titan tech info)$corecr['contype'] = 'mssql'; // connection type mssql / odbc$corecr['2tdt1'] = 'DUEL_INFO'; // Duel Table$corecr['2tdc1'] = 'Name'; // Name column$corecr['2tdc2'] = 'Win'; // Wins column$corecr['2tdc3'] = 'Lost'; // Losse column$corecr['2tdc4'] = 'Average'; // 4th column (any you want but must be in the same table)$corecr['2tdx4'] = 'Average'; // 4h column Legend text
/* Ranking Limits */$corecr['OnlinePlayersTop'] = "15";$corecr['GameMastersTop'] = "50";$corecr['TopKillersTop'] = "15";$corecr['TopGensTop'] = "15";$corecr['ZenTop'] = "15";$corecr['TopOnlineTop'] = "15";$corecr['TopVotersTop'] = "15";$corecr['TopDuelTop'] = "15";/* Tables *///$corecr['GensTable'] = "Character"; // Gens Table (default Titan Tech & others)$corecr['GensTable'] = "IGC_Gens"; // Gens Table IGCN remove "//" if you wish to use & comment out default one.
/* Columns */$corecr['TOcolumn'] = "TH"; // Top Online Time - Column
// Gens Contribution Column Name (default Titan Tech)//$corecr['GensContributionColumn'] = "SCFGensContribution";// Gens Contribution IGCN remove "//" if you wish to use & comment out default one.$corecr['GensContributionColumn'] = "Points";
//$corecr['GensFamilly'] = "SCFGensFamily"; // Gens Familly Column (default Titan Tech)$corecr['GensFamilly'] = "Influence"; // Gens Familly Column IGCN remove "//" if you wish to use & comment out default one.
//$corecr['MarryColumn'] = "SCFMarryHusbandWife"; // Marry Column (default Titan Tech)$corecr['MarryColumn'] = "MarryName"; // Marry Column IGCN remove "//" if you wish to use & comment out default one.
$corecr['CharacterNameTopOnline'] = "GameIDC"; // Character on Top (GameIDC = Last active of acc) (GameID1 = ID1 of acc etc)$corecr['CharacterNameTopVoters'] = "GameIDC"; // Character on Top (GameIDC = Last active of acc) (GameID1 = ID1 of acc etc)/* Custom OrderBy *///$corecr['TopGensOrderBy'] = "SCFGensContribution"; // Column Name in MuOnline DB -> Character Table / desc or asc// Gens Contribution IGCN remove "//" if you wish to use & comment out default one.$corecr['TopGensOrderBy'] = "Points"; $corecr['ZenOrderBy1'] = "cLevel desc"; // Column Name in MuOnline DB -> Character Table / desc or asc$corecr['ZenOrderBy2'] = "mLevel desc"; // Column Name in MuOnline DB -> Character Table / desc or asc$corecr['OnlinePlayersOrderBy'] ="ConnectTM desc"; // Connect Time of account / desc or asc/* Rank Rules */$corecr['PkRule1'] = "10"; // Less or equal to (Msg1)$corecr['PkRule2'] = "100"; // Less or equal to (Msg2) $corecr['PkRule3'] = "1000"; // Less or equal to (Msg3)$corecr['PkRule4'] = "10000"; // Less or equal to (Msg4)$corecr['PkRule5'] = "100000"; // Less or equal to (Msg5)$corecr['PkRule6'] = "100000"; // More than (Msg6)$corecr['ZenMsgRule1'] = "1000000"; // Less or equal to (Msg1)$corecr['ZenMsgRule2'] = "10000000"; // Less or equal to (Msg2)$corecr['ZenMsgRule3'] = "100000000"; // Less or equal to (Msg3)$corecr['ZenMsgRule4'] = "1000000000"; // Less or equal to (Msg4)$corecr['ZenMsgRule5'] = "1500000000"; // Less or equal to (Msg5)$corecr['ZenMsgRule6'] = "2000000000"; // Less or equal to (Msg6)$corecr['VoteRule1'] = "10"; // Less or equal to (Msg1)$corecr['VoteRule2'] = "100"; // Less or equal to (Msg2)$corecr['VoteRule3'] = "500"; // Less or equal to (Msg3)$corecr['VoteRule4'] = "1000"; // Less or equal to (Msg4)$corecr['TopOnRule1'] = "60"; // Less or equal to (Msg1) (minutes)$corecr['TopOnRule2'] = "600"; // Less or equal to (Msg2) (minutes)$corecr['TopOnRule3'] = "6000"; // Less or equal to (Msg3) (minutes)$corecr['TopOnRule4'] = "60000"; // Less or equal to (Msg4) (minutes)/* Ranks Msg */$corecr['PkMsg1'] = "Newbie !";$corecr['PkMsg2'] = "Outlaw !";$corecr['PkMsg3'] = "Elite !";$corecr['PkMsg4'] = "Ninja !";$corecr['PkMsg5'] = "H4X0R !";$corecr['PkMsg6'] = "Legend !";$corecr['PkMsg7'] = "Cheater !"; // Error msg.$corecr['ZenMsg1'] = "Newbie !";$corecr['ZenMsg2'] = "Senior !";$corecr['ZenMsg3'] = "Master !";$corecr['ZenMsg4'] = "Millionaire !";$corecr['ZenMsg5'] = "Billionaire !";$corecr['ZenMsg6'] = "Overlord !";$corecr['ZenMsg7'] = "Cheater !"; // Error msg.$corecr['VoteMsg1'] = "Newbie !";$corecr['VoteMsg2'] = "Supporter !";$corecr['VoteMsg3'] = "No Life !";$corecr['VoteMsg4'] = "O.M.G !";$corecr['VoteMsg5'] = "Legend !"; // More than VoteRule 4$corecr['TopOnMsg1'] = "Newbie !";$corecr['TopOnMsg2'] = "Soldier !";$corecr['TopOnMsg3'] = "Supporter !";$corecr['TopOnMsg4'] = "Mu Lover !";$corecr['TopOnMsg5'] = "King !"; // More than TopOnRule 4/* GM on Rank Config */$corecr['ShowGM'] = ">=0"; // Show GM on Rankings ( ">=0" - YES) ("=0" = NO)$corecr['ShowGM-2'] = "1"; // Show GM on Online Players Ranking ( "1" = YES) ("0" = NO)$corecr['ShowGM-3'] = ">=0"; // Show GM on Marry List ( ">=0" - YES) ("=0" = NO)$corecr['ShowGM-4'] = "1"; // Show GM on Top Voters Ranking ( "1" = YES) ("0" = NO)$corecr['ShowGM-5'] = "1"; // Show GM on Top Online Ranking ( "1" = YES) ("0" = NO)/* GM Positions */$rank1 = array('Tukasas',);$rank2 = array('BLANK',);$rank3 = array('BLANK');$rank4 = array('BLANK');$rank5 = array('BLANK');// Game Masters order by Case (Order by Nickname + then NUMBER )$corecr['GMO'] = "when 'Tukasas' then 1when 'BLANK' then 2when 'BLANK' then 4when 'BLANK' then 3when 'BLANK' then 101else 100 end";$corecr['GM-R1'] = "<b><font color=#33CC33>Server Owner</font></b>"; // Rank #1 $corecr['GM-R2'] = "<b><font color=#FF8080>Global Administrator</font></b>"; // Rank #2$corecr['GM-R3'] = "<b><font color=#FFFF00>A~Game Master</font></b>"; // Rank #3$corecr['GM-R4'] = "<b><font color=#FFFF99>Donation Manager</font></b>"; // Rank #4$corecr['GM-R5'] = "<b><font color=#FFFFD6>Test Game Master</font></b>"; // Rank #5$corecr['GM-RDef'] ="<b><font color=#FF3300>Game Master</font></b>"; // Default Rank/* Cron Jobs */$corecr['TGUCronJobID'] = "2"; // Cron Job ID$corecr['TGUCronJobStatus'] = "1"; // 1 = ON, 0 = OFF$corecr['TKCronJobID'] = "20"; // Cron Job ID$corecr['TKCronJobStatus'] = "0"; // 1 = ON, 0 = OFF$corecr['TGCronJobID'] = "21"; // Cron Job ID$corecr['TGCronJobStatus'] = "1"; // 1 = ON, 0 = OFF$corecr['TZCronJobID'] = "22"; // Cron Job ID$corecr['TZCronJobStatus'] = "1"; // 1 = ON, 0 = OFF$corecr['TOCronJobID'] = "23"; // Cron Job ID$corecr['TOCronJobStatus'] = "1"; // 1 = ON, 0 = OFF$corecr['TVCronJobID'] = "24"; // Cron Job ID$corecr['TVCronJobStatus'] = "1"; // 1 = ON, 0 = OFF$corecr['MSCronJobID'] = "25"; // Cron Job ID$corecr['MSCronJobStatus'] = "1"; // 1 = ON, 0 = OFF$corecr['TDCronJobID'] = "26"; // Cron Job ID$corecr['TDCronJobStatus'] = "1"; // 1 = ON, 0 = OFF/* Styles */$style4F = array(// Dark styles1 => 'Custom_Rankings/Styles/Dark_4F/Dark_Default/Custom_Rankings.css',2 => 'Custom_Rankings/Styles/Dark_4F/Dark_Blue/Custom_Rankings.css',3 => 'Custom_Rankings/Styles/Dark_4F/Dark_Red/Custom_Rankings.css',4 => 'Custom_Rankings/Styles/Dark_4F/Dark_Green/Custom_Rankings.css',5 => 'Custom_Rankings/Styles/Dark_4F/Dark_Orange/Custom_Rankings.css',// Grey styles6 => 'Custom_Rankings/Styles/Grey_4F/Grey_Default/Custom_Rankings.css',7 => 'Custom_Rankings/Styles/Grey_4F/Grey_Blue/Custom_Rankings.css',8 => 'Custom_Rankings/Styles/Grey_4F/Grey_Red/Custom_Rankings.css',9 => 'Custom_Rankings/Styles/Grey_4F/Grey_Green/Custom_Rankings.css',10 => 'Custom_Rankings/Styles/Grey_4F/Grey_Orange/Custom_Rankings.css');// Rankings Style Number Config$corecr['TopGuildsStyle'] = "1";$corecr['TopKillersStyle'] = "1";$corecr['TopGensStyle'] = "1";$corecr['TopVotersStyle'] = "1";$corecr['TopOnlineStyle'] = "1";$corecr['TopZenStyle'] = "1";$corecr['GameMastersStyle'] = "1";$corecr['OnlinePlayersStyle'] = "1";$corecr['MarryStatusStyle'] = "1";$corecr['TopDuelStyle'] = "1";// Marry Husband Class Config$husband = array ( 0=> 'Dark Wizard', 1=> 'Soul Master', 2=> 'Grand Master', 16=> 'Dark Knight', 17=> 'Blade Knight', 18=> 'Blade Master', 48=> 'Magic Gladiator', 50=> 'Duel Master', 64=> 'Dark Lord', 66=> 'Lord Emperor', 96=> 'Rage Fighter', 97=> 'Fist Master');/* ----------------------------------- Guild Ranking Additional Config ----------------------------------- */$gpML = 1; // Master Level Support 1 ON | 0 OFF$gpMLC = ',mLevel'; // Master Level Column (TT = SCFMasterLevel / IGCN = mlevel)$gpsigGRCP = 1; // Character profile on guild ranking 1 ON | 0 OFF (Will be working with My Character Profile release)$gpsigGRGP = 1; // Guild profile on guild ranking 1 ON | 0 OFF (Will be working with My Guild Profile release)$gporgg = 1; // Guild Logo 1 ON | 0 OFF$gporgc = 1; // Guild Score 1 ON | 0 OFF$gporgl = 1; // Guild Level 1 ON | 0 OFF$gporgp = 1; // Guild Pk Count 1 ON | 0 OFF$gporgs = 1; // Guild Strength 1 ON | 0 OFF$gp4fr = "order by G_LV desc"; // Guild Ranking Custom order// available options by G_Score, G_PK, G_LV, G_STR | if multi then go like this // order by G_Score desc, G_PK desc etc (desc or asc of)
function dec_css($stkey){ global $style4F; foreach ($style4F as $stnum => $stpath) { if($stnum == $stkey) { return $stpath; break; }else{ $ster = 1; } }if($ster == 1) { return "Wrong Path"; } }
/* ---------------------------------------------------------------- Mu Core Custom Rankings Config by Martin a.k.a 4FUNer (c) 2013 Coded & Released for Ragezone Community----------------------------------------------------------------- */
?>
Thank you !
Re: Fix Ranking from resets to master level
Re: Fix Ranking from resets to master level