Necesito ayuda con pagina de Highscores!

eduardoaam

Member
Exodus Github
Messages
24
Points
78
Hola buenas, ya he generado todos los outfits y items para mi pagina y todo se ve bien. Al buscar un character salen los items y outfits, Salen todos las imagens de items y outfits en la tienda de mi pagina. Todo bien. Pero no puedo corregir este problema que tengo con la pagina de highscores, no me aparecen los outfits y al lado derecho de la pagina tampoco salen las imagenes. Intente ver en rightside.php y config.php de la web.

Apreciaria mucho la ayuda, gracias!!


images.png

highscores.png
highscores2.png
 
Solution
Creo que asi esta bien, pense que en el layout venia donde dice rank y foto del outfit. Pero no creo que sea necesario el outfit en el Rank como se ve en la imagen. De igual manera si pude solucionar del rightside. Nombres con sus outfits. Gracias por aporte!😁😁
Hola buenas, ya he generado todos los outfits y items para mi pagina y todo se ve bien. Al buscar un character salen los items y outfits, Salen todos las imagens de items y outfits en la tienda de mi pagina. Todo bien. Pero no puedo corregir este problema que tengo con la pagina de highscores, no me aparecen los outfits y al lado derecho de la pagina tampoco salen las imagenes. Intente ver en rightside.php y config.php de la web.

Apreciaria mucho la ayuda, gracias!!


View attachment 5149

View attachment 5150
View attachment 5151

Hola,
A la derecha es con el rightside.php, o los varios que tenga, dentro hay un link http o https que dirige hacia los outfits, hay que modificarlo pero no totalmente creo que apartir del ? , interrogante no hay que modificar, es antes, una vez los cambios hechos, se vera en todas las paginas.
En highscores, si no aparece es porqué no esta agregado, tocara copiar el codigo del outfit ejemplo en rightside.php, ir en higshscores.php y donde sale el numero 1 / 2 , 3, 4.... esa parte del bloque, dentro del <div> o <td>, poner el codigo del outfit y ver como aparece, deberia de salir justo al lado.

El rightside.php:

JavaScript:
 echo '<img style="margin-top: -35px; margin-left: -35px;" src="https://outfit-images.ots.me/1285_walk_animation/animoutfit.php?id='.$player['lookt

Cambia el https://outfit... o usa ese mismo, quizas funciona aun.

en highscores:

1735460416388.png
Teoricamente, ya hay la parte de outfits, diria mas que config.php highscores hay que poner true para verlos:

1735460453938.png
 
Gracias @Alex me ha servido para el rightside y ahora se ven los outfits pero al ingresar a la pagina de highscores no aparecen todavia.
Crees que pueda estar algo mas en mi highscores.php? Ya chequee el config.php del www y estuvo siempre tal cual como lo subiste tu con los "true". Por ahora solo me falta arreglar el highscores.php

No se si algo estaria mal:(

<?php require_once 'engine/init.php'; include 'layout/overall/header.php';

if ($config['log_ip']) {
znote_visitor_insert_detailed_data(3);
}

// Fetch highscore type
$type = (isset($_GET['type'])) ? (int)getValue($_GET['type']) : 7;
if ($type > 9) $type = 7;

// Fetch highscore vocation
$configVocations = $config['vocations'];
//$debug['configVocations'] = $configVocations;

$vocationIds = array_keys($configVocations);

$vocation = 'all';
if (isset($_GET['vocation']) && is_numeric($_GET['vocation'])) {
$vocation = (int)$_GET['vocation'];
if (!in_array($vocation, $vocationIds)) {
$vocation = "all";
}
}

// Fetch highscore page
$page = getValue(@$_GET['page']);
if (!$page || $page == 0) $page = 1;
else $page = (int)$page;

$highscore = $config['highscore'];
$loadFlags = ($config['country_flags']['enabled'] && $config['country_flags']['highscores']) ? true : false;
$loadOutfits = ($config['outfits/animoutfit.php']['highscores']) ? true : false;

$rows = $highscore['rows'];
$rowsPerPage = $highscore['rowsPerPage'];

function skillName($type) {
$types = array(
1 => "Club",
2 => "Sword",
3 => "Axe",
4 => "Distance",
5 => "Shield",
6 => "Fish",
7 => "Experience", // Hardcoded
8 => "Magic Level", // Hardcoded
9 => "Fist", // Since 0 returns false I will make 9 = 0. :)
);
return $types[(int)$type];
}

function pageCheck($index, $page, $rowPerPage) {
return ($index < ($page * $rowPerPage) && $index >= ($page * $rowPerPage) - $rowPerPage) ? true : false;
}

$cache = new Cache('engine/cache/highscores');
if ($cache->hasExpired()) {
$vocGroups = fetchAllScores($rows, $config['ServerEngine'], $highscore['ignoreGroupId'], $configVocations, $vocation, $loadFlags, $loadOutfits);
$cache->setContent($vocGroups);
$cache->save();
} else {
$vocGroups = $cache->load();
}

if ($vocGroups) {
$vocGroup = (is_array($vocGroups[$vocation])) ? $vocGroups[$vocation] : $vocGroups[$vocGroups[$vocation]];
?>
<div id="news" class="Box">
<div class="Corner-tl" style="background-image:url(layout/images/global/content/corner-tl.gif);"></div>
<div class="Corner-tr" style="background-image:url(layout/images/global/content/corner-tr.gif);"></div>
<div class="Border_1" style="background-image:url(layout/images/global/content/border-1.gif);"></div>
<div class="BorderTitleText" style="background-image:url(layout/images/global/content/title-background-green.gif);"></div>
<img id="ContentBoxHeadline" class="Title" src="layout/images/global/images/highscores.png" alt="Contentbox headline" />
<div class="Border_2">
<div class="Border_3">
<div class="BoxContent" style="background-image:url(layout/images/global/content/scroll.gif);">
<h1>Ranking for <?php echo skillName($type) .", ". (($vocation === 'all') ? 'any vocation' : vocation_id_to_name($vocation)) ?>.</h1>

<form action="" method="GET">

<select name="type">
<option value="7" <?php if ($type == 7) echo "selected"; ?>>Experience</option>
<option value="8" <?php if ($type == 8) echo "selected"; ?>>Magic</option>
<option value="5" <?php if ($type == 5) echo "selected"; ?>>Shield</option>
<option value="2" <?php if ($type == 2) echo "selected"; ?>>Sword</option>
<option value="1" <?php if ($type == 1) echo "selected"; ?>>Club</option>
<option value="3" <?php if ($type == 3) echo "selected"; ?>>Axe</option>
<option value="4" <?php if ($type == 4) echo "selected"; ?>>Distance</option>
<option value="6" <?php if ($type == 6) echo "selected"; ?>>Fish</option>
<option value="9" <?php if ($type == 9) echo "selected"; ?>>Fist</option>
</select>

<select name="vocation">
<option value="all" <?php if (!is_int($vocation)) echo "selected"; ?>>Any vocation</option>
<?php
foreach ($configVocations as $v_id => $v_data) {
if ($v_data['fromVoc'] === false) {
$selected = (is_int($vocation) && $vocation == $v_id) ? " selected $vocation = $v_id" : "";
echo '<option value="'. $v_id .'"'. $selected .'>'. $v_data['name'] .'</option>';
}
}
?>
</select>

<select name="page">
<?php
$pages = ($vocGroup[$type] !== false) ? ceil(min(($highscore['rows'] / $highscore['rowsPerPage']), (count($vocGroup[$type]) / $highscore['rowsPerPage']))) : 1;
for ($i = 0; $i < $pages; $i++) {
$x = $i + 1;
if ($x == $page) echo "<option value='".$x."' selected>Page: ".$x."</option>";
else echo "<option value='".$x."'>Page: ".$x."</option>";
}
?>
</select>

<input type="submit" value=" View " class="btn btn-info">
</form>

<table id="highscoresTable" class="table table-striped table-hover">

<tr class="yellow">
<?php if ($loadOutfits) echo "<td>Outfit</td>"; ?>
<td>Rank</td>
<td>Name</td>
<td>Vocation</td>
<td>Level</td>
<?php if ($type === 7) echo "<td>Points</td>"; ?>
</tr>

<?php
if ($vocGroup[$type] === false) {
?>
<tr>
<td colspan="5">Nothing to show here yet.</td>
</tr>
<?php
} else {
for ($i = 0; $i < count($vocGroup[$type]); $i++) {
if (pageCheck($i, $page, $rowsPerPage)) {
$flag = ($loadFlags === true && strlen($vocGroup[$type][$i]['flag']) > 1) ? '<img src="' . $config['country_flags']['server'] . '/' . $vocGroup[$type][$i]['flag'] . '.png"> ' : '';
?>
<tr>
<?php if ($loadOutfits): ?>
<td class="outfitColumn"><img src="<?php echo $config['show_outfits']['imageServer']; ?>?id=<?php echo $vocGroup[$type][$i]['type']; ?>&addons=<?php echo $vocGroup[$type][$i]['addons']; ?>&head=<?php echo $vocGroup[$type][$i]['head']; ?>&body=<?php echo $vocGroup[$type][$i]['body']; ?>&legs=<?php echo $vocGroup[$type][$i]['legs']; ?>&feet=<?php echo $vocGroup[$type][$i]['feet']; ?>" alt="img"></td>
<?php endif; ?>
<td><?php echo $i+1; ?></td>
<td><?php echo $flag; ?><a href="characterprofile.php?name=<?php echo $vocGroup[$type][$i]['name']; ?>"><?php echo $vocGroup[$type][$i]['name']; ?></a></td>
<td><?php echo vocation_id_to_name($vocGroup[$type][$i]['vocation']); ?></td>
<td><?php echo $vocGroup[$type][$i]['value']; ?></td>
<?php if ($type === 7) echo "<td>". $vocGroup[$type][$i]['experience'] ."</td>"; ?>
</tr>
<?php
}
}
}
?>
</table>
<?php
}
include 'layout/overall/footer.php'; ?>
 
Gracias @Alex me ha servido para el rightside y ahora se ven los outfits pero al ingresar a la pagina de highscores no aparecen todavia.
Crees que pueda estar algo mas en mi highscores.php? Ya chequee el config.php del www y estuvo siempre tal cual como lo subiste tu con los "true". Por ahora solo me falta arreglar el highscores.php

No se si algo estaria mal:(

Tienes una linea que dice
JavaScript:
$cache = new Cache('engine/cache/highscores');

Entra en engine/cache/highscore, abrelo, borra lo que hay dentro, y haber si aparecen ?
 
Listo pero todavia sigue igual 😕

Entonces en la parte de highscores:


JavaScript:
<tr>
                        <?php if ($loadOutfits): ?>
                            <td class="outfitColumn"><img src="<?php echo $config['show_outfits']['imageServer']; ?>?id=<?php echo $vocGroup[$type][$i]['type']; ?>&addons=<?php echo $vocGroup[$type][$i]['addons']; ?>&head=<?php echo $vocGroup[$type][$i]['head']; ?>&body=<?php echo $vocGroup[$type][$i]['body']; ?>&legs=<?php echo $vocGroup[$type][$i]['legs']; ?>&feet=<?php echo $vocGroup[$type][$i]['feet']; ?>" alt="img"></td>
                        <?php endif; ?>
                        <td><?php echo $i+1; ?></td>
                        <td><?php echo $flag; ?><a href="characterprofile.php?name=<?php echo $vocGroup[$type][$i]['name']; ?>"><?php echo $vocGroup[$type][$i]['name']; ?></a></td>
                        <td><?php echo vocation_id_to_name($vocGroup[$type][$i]['vocation']); ?></td>
                        <td><?php echo $vocGroup[$type][$i]['value']; ?></td>
                        <?php if ($type === 7) echo "<td>". $vocGroup[$type][$i]['experience'] ."</td>"; ?>
                    </tr>
Has probado algo como:

JavaScript:
<tr>
                        <td class="outfitColumn"><img src="<?php echo $config['show_outfits']['imageServer']; ?>?id=<?php echo $vocGroup[$type][$i]['type']; ?>&addons=<?php echo $vocGroup[$type][$i]['addons']; ?>&head=<?php echo $vocGroup[$type][$i]['head']; ?>&body=<?php echo $vocGroup[$type][$i]['body']; ?>&legs=<?php echo $vocGroup[$type][$i]['legs']; ?>&feet=<?php echo $vocGroup[$type][$i]['feet']; ?>" alt="img"></td>
                        <td><?php echo $i+1; ?></td>
                        <td><?php echo $flag; ?><a href="characterprofile.php?name=<?php echo $vocGroup[$type][$i]['name']; ?>"><?php echo $vocGroup[$type][$i]['name']; ?></a></td>
                        <td><?php echo vocation_id_to_name($vocGroup[$type][$i]['vocation']); ?></td>
                        <td><?php echo $vocGroup[$type][$i]['value']; ?></td>
                        <?php if ($type === 7) echo "<td>". $vocGroup[$type][$i]['experience'] ."</td>"; ?>
                    </tr>


Para que mostrara directamente el outfit ??

O bien borrar la linea y probar como en rightside ?
JavaScript:
<tr>
                        <td class="outfitColumn"><?php
            if ($players) {
            $count = 1;
            foreach($players as $player) {
            echo '<img style="margin-top: -35px; margin-left: -35px;" src="https://outfit-images.ots.me/1285_walk_animation/animoutfit.php?id='.$player['looktype'].'&addons='.$player['lookaddons'].'&head='.$player['lookhead'].'&body='.$player['lookbody'].'&legs='.$player['looklegs'].'&feet='.$player['lookfeet'].'&g=0&h=3&i=1"></img> <a href="characterprofile.php?name='.$player['name'].'" style="color:white;font-size:10px">'.$player['name'].'</a>&ensp;<strong>'. $player['level'].'</strong><br>';
           $count++;
            }
            }
            ?></td>
                        <td><?php echo $i+1; ?></td>
                        <td><?php echo $flag; ?><a href="characterprofile.php?name=<?php echo $vocGroup[$type][$i]['name']; ?>"><?php echo $vocGroup[$type][$i]['name']; ?></a></td>
                        <td><?php echo vocation_id_to_name($vocGroup[$type][$i]['vocation']); ?></td>
                        <td><?php echo $vocGroup[$type][$i]['value']; ?></td>
                        <?php if ($type === 7) echo "<td>". $vocGroup[$type][$i]['experience'] ."</td>"; ?>
                    </tr>
 
Creo que asi esta bien, pense que en el layout venia donde dice rank y foto del outfit. Pero no creo que sea necesario el outfit en el Rank como se ve en la imagen. De igual manera si pude solucionar del rightside. Nombres con sus outfits. Gracias por aporte!😁😁
 
Solution
hola una cosa donde puedo encontrar el archivo nightside yo no lo encuentro estoy en canary ot 13.40 quiero saber como ayuda porfavor a mi me salen los addons, pero no los nuevos como archer celestial y los últimos que han ido saliendo espero su respuesta :)
 
osea en highscore no en la tienda de tibia coins points de donated igual me gustaría poner una tienda de tibia coins points pero uso versión mas reciente en mi caso seria highscore y rank no me salen las imágenes :c solo los addon actuales no los nuevos
 
Ayuda porfavor llegue hasta este foro como pongo los addons nuevos ? en el highscore y rank solo aparecen uno que otro nuevo pero no los mas recientes y también aparecen los addons viejitos uso canary
 

Attachments

  • Captura de pantalla 2025-01-12 045709.png
    Captura de pantalla 2025-01-12 045709.png
    159.3 KB · Views: 6
  • Captura de pantalla 2025-01-12 045613.png
    Captura de pantalla 2025-01-12 045613.png
    118.1 KB · Views: 6
Ayuda porfavor llegue hasta este foro como pongo los addons nuevos ? en el highscore y rank solo aparecen uno que otro nuevo pero no los mas recientes y también aparecen los addons viejitos uso canary

Hola, este tema es algo distinto pero,
El hecho es porqué estas usando nuevos outfits, por lo cual deberas encontrar una carpeta de animatedOutfits mas RECIEN a tu version de protocolo.

Mira en canary si no tienen una mas recien, sea en github o cualquier parte.
 
mi versión de protocolo es 13.40 pero tiene las cosas de la 14.11 ya use esto y todavía no me sale el celestial archer 1736740792891.png
tengo que compilarlo con el spider client ? el tibia original o algun server para poder sacar los outfits de la version 13.40 o 14.11 ? no entiendo ayuda porfavor estoy perdido dime los pasos a seguir plis :3 ya compile el cliente que venia con mi server y no funciono estoy confundido debo usar otro cliente ? para el spr. y dat. ? o como debo hacerlo 1 por 1 ?
 
mi versión de protocolo es 13.40 pero tiene las cosas de la 14.11 ya use esto y todavía no me sale el celestial archer View attachment 5189
tengo que compilarlo con el spider client ? el tibia original o algun server para poder sacar los outfits de la version 13.40 o 14.11 ? no entiendo ayuda porfavor estoy perdido dime los pasos a seguir plis :3 ya compile el cliente que venia con mi server y no funciono estoy confundido debo usar otro cliente ? para el spr. y dat. ? o como debo hacerlo 1 por 1 ?

Que dice la pagina ?

TYPE 1099 for the latest dat spr version (ex from 12+)
Has escrito 1340, tienes que escribir 1099 como indicado, a veces una palabra cambia todo.
 
como genero la cache amigo no uso ZnoteAAC config.php: uso MyAAC config.php: que es mas mysql debo usar otro link o algo ? para generar el cache generated porque dicen que no funciona si no se genera :/ osea no aparecen las imagenes
 
1736794503039.png
listo tenia que poner http:// se supone que ahora debieran de salir las imagenes no ? que pasos ahi q hacer ahora debo poner http:// en config.php 1736794558212.png
 
Alex tienes discord :? para mostrarte mi problema mas o menos genero la cache pero siguen si aparecer las imágenes debo poner '/images/animated-outfits/animoutfit.php' o 'http://localhost/images/animated-outfits/animoutfit.php' no entiendo la verdad ya genere cache y probe 2 versiones el que genere 1099 y el latest walk y aun haci no funciona es mysql mi base de datos :/ necesito ayuda a lo mejor al limpiar la pc borre algún archivo de la pagina y por eso no genera la cache correctamente no entiendo
 
View attachment 5194
listo tenia que poner http:// se supone que ahora debieran de salir las imagenes no ? que pasos ahi q hacer ahora debo poner http:// en config.php View attachment 5195

Quitas localhost, es "images/animated-outfits.... " es dependiendo las carpetas que tienes en tu web, significa que tienes la carpeta images, luego dentro carpeta animated-outfits, y ahi dentro el animoutfit.php
 
Alex tienes discord :? para mostrarte mi problema mas o menos genero la cache pero siguen si aparecer las imágenes debo poner '/images/animated-outfits/animoutfit.php' o 'http://localhost/images/animated-outfits/animoutfit.php' no entiendo la verdad ya genere cache y probe 2 versiones el que genere 1099 y el latest walk y aun haci no funciona es mysql mi base de datos :/ necesito ayuda a lo mejor al limpiar la pc borre algún archivo de la pagina y por eso no genera la cache correctamente no entiendo
Mira para que mas o menos tengo idea de como lo tengo yo y me funciono.
Tengo una carpeta que se llama Outfits. Dentro de ella los mismos archivos que tienes tu, dos carpetas llamadas libs y outfits_anim y el animeoutfit.php y otros archivos mas. La manera en como lo tengo yo en mi config.php de mi www es:
// Show outfits
$config['show_outfits'] = array(
'shop' => true,
'highscores' => true,
'characterprofile' => true,
'onlinelist' => true,
// Image server may be unreliable and only for test,
// host yourself: https://otland.net/threads/item-images-10-92.242492/
'imageServer' => 'outfits/animoutfit.php'
 

Tibia Server Lists

#1 FEATURED US Ultron OT 1,520 / 5,000Online EXPStages PROTO8.6 ENGINEUltron OT RANK PTS6.0 +100% VOTES0 #2 FEATURED US Nefera 139 / 0Online EXPx1 PROTO15.20 ENGINECrystal Server RANK PTS5.2 +100% VOTES0 #3 FEATURED ES Deixis 1 / 0Online EXPStages PROTO1098 ENGINETFS RANK PTS3.8 +100% VOTES1 #4 FEATURED ES Maeli 4 / 150Online EXPx10 PROTO10.98 ENGINETFS 1.4.2 RANK PTS3.7 +100% VOTES0 #5 MX Marlboro War 34 / 300Online EXP999 PROTO8.6 ENGINETFS 0.3.7 RANK PTS5.5 -32% VOTES0 #6 BR Tibinha YurOts 15 / 150Online EXPStages PROTO7.4 ENGINEYurOTS 1.5 RANK PTS5.2 -15% VOTES0 #7 BR Exordion Legacy 48 / 2,000Online EXPx2 PROTO7.72 ENGINEExordion RANK PTS4.9 +100% VOTES0 #8 US Halera 2 / 0Online EXPStages PROTO10.98 ENGINETFS 1.4.2 RANK PTS4.9 -84% VOTES0 #9 PL Lubelski 9 / 1,000Online EXP200 PROTO7.6 ENGINELubelskiOTS 2.56.0 RANK PTS4.6 -16% VOTES0 #10 ES JustRL FreeTC 1530 23 / 250Online EXPx2 PROTO15.30 ENGINECrystal Server RANK PTS4.4 +100% VOTES0 #11 DE DBU Online 0 / 400Online EXP11 PROTO8.6 ENGINETFS 1.0 RANK PTS4.3 +100% VOTES0 #12 PL ReWar 0 / 2,000Online EXPcustom PROTO8.6 ENGINEOther RANK PTS4.3 0% VOTES0 #13 PL Velesta 0 / 1,000Offline EXP20 PROTO8.0 ENGINETFS 1.4.2 RANK PTS4.3 -99% VOTES0 #14 ES Farlia Global 2026 0 / 333Offline EXPx5 PROTO15.25 ENGINEFarliaServ 1.525 RANK PTS3.9 -24% VOTES0 #15 SE MortalisOT Custom 0 / 500Offline EXP100x -1.2x PROTO10.98 ENGINEMortalisOT V1 RANK PTS3.8 +100% VOTES0 #16 US BerethaOnline 2 / 2,000Online EXPStages PROTO10.98 ENGINETFS RANK PTS3.6 +100% VOTES0 #17 US Rommania 0 / 500Online EXPstages, x10 PROTO7.4 ENGINETFS 0.4 RANK PTS3.6 +100% VOTES0
Top