Postado Fevereiro 16, 2017 8 anos Galera muito tempo atrás procurei e não achei como colocar outfits para mostrar no Highscores, dei uma olhada por ai e não encontrei, por sorte eu estava mexendo por aqui e achei um script mostrando a outfit no highscore. Vamos lá. Em htdocs/pages/ abre highscore.php Delata tudo que está dentro e cola esse script: <?php if(!defined('INITIALIZED')) exit; $list = 'experience'; if(isset($_REQUEST['list'])) $list = $_REQUEST['list']; $page = 0; if(isset($_REQUEST['page'])) $page = min(50, $_REQUEST['page']); $vocation = ''; if(isset($_REQUEST['vocation'])) $vocation = $_REQUEST['vocation']; switch($list) { case "hand": $id=Highscores::SKILL_FIST; $list_name='Hand Ability'; break; case "weapon": $id=Highscores::SKILL_CLUB; $list_name='Weapon Ability'; break; case "sword": $id=Highscores::SKILL_SWORD; $list_name='Sword Fighting'; break; case "str": $id=Highscores::SKILL_AXE; $list_name='Strenght'; break; case "blasting": $id=Highscores::SKILL_DISTANCE; $list_name='Ki Blasting'; break; case "def": $id=Highscores::SKILL_SHIELD; $list_name='Defense'; break; case "fish": $id=Highscores::SKILL_FISHING; $list_name='Fishing'; break; case "kilvl": $id=Highscores::SKILL__MAGLEVEL; $list_name='Ki Level'; break; default: $id=Highscores::SKILL__LEVEL; $list_name='Experience'; break; } if(count($config['site']['worlds']) > 1) { foreach($config['site']['worlds'] as $idd => $world_n) { if($idd == (int) $_REQUEST['world']) { $world_id = $idd; $world_name = $world_n; } } } if(!isset($world_id)) { $world_id = 0; $world_name = $config['server']['serverName']; } if(count($config['site']['worlds']) > 1) { $main_content .= '<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR><TD></TD><TD> <FORM ACTION="" METHOD=get><INPUT TYPE="hidden" NAME="subtopic" VALUE="highscores"><TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['vdarkborder'].'" CLASS=white><B>World Selection</B></TD></TR><TR><TD BGCOLOR="'.$config['site']['darkborder'].'"> <TABLE BORDER=0 CELLPADDING=1><TR><TD>Best players on world:</TD><TD><SELECT SIZE="1" NAME="world">'; foreach($config['site']['worlds'] as $wid => $world_n) { if($wid == $world_id) $main_content .= '<OPTION VALUE="'.htmlspecialchars($wid).'" selected="selected">'.htmlspecialchars($world_n).'</OPTION>'; else $main_content .= '<OPTION VALUE="'.htmlspecialchars($wid).'">'.htmlspecialchars($world_n).'</OPTION>'; } $main_content .= '</SELECT> </TD><TD><INPUT TYPE="image" NAME="Submit" ALT="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif"> </TD></TR></TABLE></TABLE></FORM></TABLE>'; } $offset = $page * 100; $skills = new Highscores($id, 100, $page, $world_id, $vocation); $main_content .= ' <table cellspacing="0" cellpadding="0" width="100%" class="highskills"> <tbody> <tr> <td style="text-align: center;"><a href="?subtopic=highscores&list=experience&world=' . $world_id . '"><img src="images/skills/level.gif" alt="" style="border-style: none"/></td> <td style="text-align: center;"><a href="?subtopic=highscores&list=kilvl&world=' . $world_id . '"><img src="images/skills/ml.gif" alt="" style="border-style: none"/></td> <td style="text-align: center;"><a href="?subtopic=highscores&list=hand&world=' . $world_id . '"><img src="images/skills/fist.gif" alt="" style="border-style: none"/></td> <td style="text-align: center;"><a href="?subtopic=highscores&list=weapon&world=' . $world_id . '"><img src="images/skills/club.gif" alt="" style="border-style: none"/></td> <td style="text-align: center;"><a href="?subtopic=highscores&list=sword&world=' . $world_id . '"><img src="images/skills/sword.gif" alt="" style="border-style: none"/></td> <td style="text-align: center;"><a href="?subtopic=highscores&list=str&world=' . $world_id . '"><img src="images/skills/axe.gif" alt="" style="border-style: none"/></td> <td style="text-align: center;"><a href="?subtopic=highscores&list=blasting&world=' . $world_id . '"><img src="images/skills/dist.gif" alt="" style="border-style: none"/></td> <td style="text-align: center;"><a href="?subtopic=highscores&list=def&world=' . $world_id . '"><img src="images/skills/def.gif" alt="" style="border-style: none"/></td> <td style="text-align: center;"><a href="?subtopic=highscores&list=fish&world=' . $world_id . '"><img src="images/skills/fish.gif" alt="" style="border-style: none"/></td> </tr> <tr> <tr><td style="text-align: center;">Level</td> <td style="text-align: center;">Ki Level</td> <td style="text-align: center;">Hand</td> <td style="text-align: center;">Weapon</td> <td style="text-align: center;">Sword</td> <td style="text-align: center;">Strenght</td> <td style="text-align: center;">Blasting</td> <td style="text-align: center;">Defense</td> <td style="text-align: center;">Fishing</td> </tr> </table> <br> <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR><TD><CENTER><H2>Rank Level</H2></CENTER> '; $main_content .= '<br><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%></TABLE><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD CLASS=whites><B>#</B></TD><TD CLASS=whites><b></b></TD><TD WIDTH=75% CLASS=whites><B>Name</B></TD><TD WIDTH=15% CLASS=whites><b><center>Level</center></B></TD>'; if($list == "experience") $main_content .= '<TD CLASS=whites><b><center>Experience</center></B></TD>'; //$main_content .= '</TR><TR>'; $main_content .= '</TR>'; $number_of_rows = 0; foreach($skills as $skill) { if($list == "kilvl") $value = $skill->getMagLevel(); elseif($list == "experience") $value = $skill->getLevel(); else $value = $skill->getScore(); $bgcolor = (($number_of_rows++ % 2 == 1) ? $config['site']['darkborder'] : $config['site']['lightborder']); $main_content .= '<tr bgcolor="'.$bgcolor.'"><td style="text-align:right">'.($offset + $number_of_rows).'.</td><TD><center><img src="Monsters/'. $skill->getLookType() . '_0.png" alt="" /></center></TD><td><a href="?subtopic=characters&name='.urlencode($skill->getName()).'">'.($skill->getOnline()>0 ? "<font color=\"green\">".htmlspecialchars($skill->getName())."</font>" : "<font color=\"red\">".htmlspecialchars($skill->getName())."</font>").'</a><img src="' . $config['site']['flag_images_url'] . $skill->getFlag() . $config['site']['flag_images_extension'] . '" title="Country: ' . $skill->getFlag() . '" alt="' . $skill->getFlag() . '" /></td><td><center>'.$value.'</center></td>'; if($list == "experience") $main_content .= '<td><center>'.$skill->getExperience().'</center></td>'; $main_content .= '</tr>'; } $main_content .= '</TABLE><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%>'; if($page > 0) $main_content .= '<TR><TD WIDTH=100% ALIGN=right VALIGN=bottom><A HREF="?subtopic=highscores&list='.urlencode($list).'&page='.($page - 1).'&vocation=' . urlencode($vocation) . '&world=' . urlencode($world_id) . '" CLASS="size_xxs">Previous Page</A></TD></TR>'; if($page < 50) $main_content .= '<TR><TD WIDTH=100% ALIGN=right VALIGN=bottom><A HREF="?subtopic=highscores&list='.urlencode($list).'&page='.($page + 1).'&vocation=' . urlencode($vocation) . '&world=' . urlencode($world_id) . '" CLASS="size_xxs">Next Page</A></TD></TR>'; $main_content .= '</TABLE></TD></TR></TABLE>'; Após isso, copia sua pasta de Outfits e cola depois renomeia para monsters Só testar agora, desculpe se tem algum outro tópico explicativo disso, mas não achei nenhum =/ Lembrando que é para Gesior e testado na versão compatível com 8.60 TFS 0.4 Provavelmente funcional em versão 1.0.0 e 0.3.6 Algumas nomes de skill podem estar trocadas, pois não foi para tibia que estava usando Editado Fevereiro 16, 2017 8 anos por bringsz (veja o histórico de edições) Servidor de Dragon Ball Online - dbsbattleofgods.com
Postado Fevereiro 16, 2017 8 anos Parabéns, seu tópico de conteúdo foi aprovado! Muito obrigado pela sua contribuição, nós do Tibia King agradecemos. Seu conteúdo com certeza ajudará à muitos outros, você recebeu +1 REP. Spoiler Congratulations, your content has been approved! Thank you for your contribution, we of Tibia King we are grateful. Your content will help many other users, you received +1 REP. [*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*] DISCORD: vodkart#6090
Postado Fevereiro 17, 2017 8 anos @bringsz Fiz tudo certinho, mas quando eu entro no highscores, a tela fica toda branca.
Postado Fevereiro 17, 2017 8 anos Autor oque você acessou: http://localhost/index.php?subtopic=highscores tenta acessar: http://localhost/?subtopic=highscores Mano estou com ele aberto aqui nesse exato momento, refaz o processo novamente. Depois de refazer continuar em branco, layouts/tibiabr ou tibiacom depende do nome da pasta do seu layout e abre o arquivo layout.php digita ctrl F e procura por Highscore e substitua por: <a href="?subtopic=highscores"> <div id="submenu_highscores" class="Submenuitem" onmouseover="MouseOverSubmenuItem(this)" onmouseout="MouseOutSubmenuItem(this)"> <div class="LeftChain" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);"></div> <div id="ActiveSubmenuItemIcon_highscores" class="ActiveSubmenuItemIcon" style="background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);"></div> <div id="ActiveSubmenuItemLabel_highscores" class="SubmenuitemLabel">Highscores</div> <div class="RightChain" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);"></div> </div> </a> Editado Fevereiro 17, 2017 8 anos por bringsz (veja o histórico de edições) Servidor de Dragon Ball Online - dbsbattleofgods.com
Postado Fevereiro 17, 2017 8 anos 2 horas atrás, bringsz disse: oque você acessou: http://localhost/index.php?subtopic=highscores tenta acessar: http://localhost/?subtopic=highscores Mano estou com ele aberto aqui nesse exato momento, refaz o processo novamente. Depois de refazer continuar em branco, layouts/tibiabr ou tibiacom depende do nome da pasta do seu layout e abre o arquivo layout.php digita ctrl F e procura por Highscore e substitua por: <a href="?subtopic=highscores"> <div id="submenu_highscores" class="Submenuitem" onmouseover="MouseOverSubmenuItem(this)" onmouseout="MouseOutSubmenuItem(this)"> <div class="LeftChain" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);"></div> <div id="ActiveSubmenuItemIcon_highscores" class="ActiveSubmenuItemIcon" style="background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);"></div> <div id="ActiveSubmenuItemLabel_highscores" class="SubmenuitemLabel">Highscores</div> <div class="RightChain" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);"></div> </div> </a> Opa parceiro, foi mal tinha ido pra academia, cheguei e fui testar e mesmo assim a tela fica toda branca, fiz oque mandou mudei no layout e mesmo assim fica branco =\
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.