Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Ayuda con scrip top 10 de webmu para mu emu  (Visto 850 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline Hess Posteado: March 29, 2017, 04:29:31 PM

hola tengo una webmu de vaflan y desconosco esto, el top 10 ranking no funciona con  files muemu season 6.

<?php
/////// Start Top characters //////
$template_list_replace['$CUSTOM_TOP$'] = array('func_custom_top');
function func_custom_top() {
 global $wbv;

 $sort_mode = '';
 if($wbv['rankings']['show_gm'] < 1) $sort_mode = " ctlcode!='8' AND ctlcode!='32' ";
 if($wbv['rankings']['only_normal'] > 0) $sort_mode = " ctlcode<'1' ";
 if(empty($wbv['block']['top_characters'])) $wbv['block']['top_characters'] = 10;
 if(!isset($wbv['timeout']['func']['top_characters'])) $wbv['timeout']['func']['top_characters'] = 900;

 if(!$row=wbv_cache('func_top_characters', $wbv['timeout']['func']['top_characters'])) {
  if(!empty($sort_mode)) {$sort_mode = " WHERE ".$sort_mode;}
  $query = "SELECT TOP ".$wbv['block']['top_characters']." Name,cLevel,Reset".($wbv['grandreset']['switch']?','.$wbv

['grandreset']['column']:'')." FROM Character ".$sort_mode." ORDER BY ".($wbv['grandreset']['switch']?$wbv['grandreset']

['column'].' DESC, ':'')."Reset DESC, cLevel DESC";
  $result = sql_result($query);
  for($i=0; $i<$wbv['block']['top_characters']; $i++) {
   $row[$i] = @sql_row($result, 'fetch_row');
  }
  wbv_cache('func_top_characters', NULL, $row);
 }

 if($wbv['grandreset']['switch'] && $row[1][3] > 0) {$sort_name = wbv_lang_gr_abbreviation.'/'.wbv_lang_reset; $sort_num =

3;}
 elseif($row[1][2] > 0) {$sort_name = wbv_lang_reset; $sort_num = 2;}
 else {$sort_name = wbv_lang_level; $sort_num = 1;}

 $list = '';
 for($i=0; $i<$wbv['block']['top_characters']; $i++) {
  $list .= '<div class="player player_logged"><div class="left left_logged"><span>'.($i+1).'.</span>'.(!empty($row[$i][0])?

character($row[$i][0]):'').'</div><span class="right right_logged">'.($sort_num==3?$row[$i][3].'/'.$row[$i][2]:$row[$i]

[$sort_num]).'</span></div>';
 }

 return '<div class="name name_logged">'.wbv_lang_character.'<span>'.$sort_name.'</span></div>'.$list;
}
/////// End Top characters ///////
?>

Online ZabiinoOo #1 Posteado: March 29, 2017, 04:51:03 PM

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • Administrador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 6.281
  • Gracias recibida: 90039
  • pe
Reset = ResetCount
grandreset = MasterReset (algo asi no recuerdo esta tabla)
  • Like
    Dislike
    Love
    HaHa
    Angry
    Surprise
    Sad
    Party



Prohibido pedir soporte via MP
Leer las reglas de cada seccion
we trust god

Gracias:


Offline Hess #2 Posteado: March 29, 2017, 04:59:15 PM

Efectivamente la tabla es ResetCount y MasterReset, pero lo cambio y no pasa nada.

Offline Marote #3 Posteado: March 30, 2017, 06:24:20 AM

Efectivamente la tabla es ResetCount y MasterReset, pero lo cambio y no pasa nada.

No te carga los resets de ningun personaje ni los nombres?, pasa el modificado para ver como quedo.

Gracias:


Offline Hess #4 Posteado: March 30, 2017, 12:21:47 PM

no carga ni nombres ni lvl ni reset, files muemu

<?php
/////// Start Top characters //////
$template_list_replace['$CUSTOM_TOP$'] = array('func_custom_top');
function func_custom_top() {
 global $wbv;

 $sort_mode = '';
 if($wbv['rankings']['show_gm'] < 1) $sort_mode = " ctlcode!='8' AND ctlcode!='32' ";
 if($wbv['rankings']['only_normal'] > 0) $sort_mode = " ctlcode<'1' ";
 if(empty($wbv['block']['top_characters'])) $wbv['block']['top_characters'] = 10;
 if(!isset($wbv['timeout']['func']['top_characters'])) $wbv['timeout']['func']['top_characters'] = 900;

 if(!$row=wbv_cache('func_top_characters', $wbv['timeout']['func']['top_characters'])) {
  if(!empty($sort_mode)) {$sort_mode = " WHERE ".$sort_mode;}
  $query = "SELECT TOP ".$wbv['block']['top_characters']." Name,cLevel,ResetCount".($wbv['grandreset']['switch']?','.$wbv['grandreset']['column']:'')." FROM Character ".$sort_mode." ORDER BY ".($wbv['grandreset']['switch']?$wbv['grandreset']['column'].' DESC, ':'')."MasterReset DESC, cLevel DESC";
  $result = sql_result($query);
  for($i=0; $i<$wbv['block']['top_characters']; $i++) {
   $row[$i] = @sql_row($result, 'fetch_row');
  }
  wbv_cache('func_top_characters', NULL, $row);
 }

 if($wbv['grandreset']['switch'] && $row[1][3] > 0) {$sort_name = wbv_lang_gr_abbreviation.'/'.wbv_lang_reset; $sort_num = 3;}
 elseif($row[1][2] > 0) {$sort_name = wbv_lang_reset; $sort_num = 2;}
 else {$sort_name = wbv_lang_level; $sort_num = 1;}

 $list = '';
 for($i=0; $i<$wbv['block']['top_characters']; $i++) {
  $list .= '<div class="player player_logged"><div class="left left_logged"><span>'.($i+1).'.</span>'.(!empty($row[$i][0])?character($row[$i][0]):'').'</div><span class="right right_logged">'.($sort_num==3?$row[$i][3].'/'.$row[$i][2]:$row[$i][$sort_num]).'</span></div>';
 }

 return '<div class="name name_logged">'.wbv_lang_character.'<span>'.$sort_name.'</span></div>'.$list;
}
/////// End Top characters ///////
?>

Online ZabiinoOo #5 Posteado: March 30, 2017, 01:48:28 PM

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • Administrador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 6.281
  • Gracias recibida: 90039
  • pe
Que base de datos estas usando? pasamela para ayudarte
  • Like
    Dislike
    Love
    HaHa
    Angry
    Surprise
    Sad
    Party



Prohibido pedir soporte via MP
Leer las reglas de cada seccion
we trust god

Gracias:


Offline Hess #6 Posteado: March 30, 2017, 02:14:48 PM

la misma que los files mumu s6.

Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
845 Views
Last post July 21, 2017, 01:35:10 AM
by pepeeh
1 Replies
270 Views
Last post February 17, 2019, 11:44:02 AM
by kind
6 Replies
302 Views
Last post September 29, 2019, 10:53:10 AM
by MuArcano
2 Replies
150 Views
Last post March 09, 2020, 02:34:43 PM
by SaintZeus
1 Replies
109 Views
Last post April 23, 2020, 03:21:25 PM
by lunaticodeveloper