Show Outifit Modern Acc
Lembre-se de verificar o caminho outfitter.php para evitar erros!
Primeiramente salve o outfitter.php na pasta PUBLIC [public/outfitter.php]
Abra
sistema de aplicação / views / view_character.php
Você pode adicionar este em qualquer lugar do script.
Código PHP:
<tr><td width='30%'>Outfit</td><td><?php echo '<div style="position: relative; width: 32px; height: 32px;"><div style="background:transparent url(/public/outfitter.php?id='.$player->getLookType().'&addons='.$player->getLookAddons().'&head='.$player->getLookHead().'&body='.$player->getLookBody().'&legs='.$player->getLookLegs().'&feet='.$player->getLookFeet().'); position: absolute; width: 64px; height: 80px; background-position: bottom right; background-repeat: no-repeat; right: 0px; bottom: 0px;"></div></div>'; ?></td></tr>
Ou se preferir coloque por cima deste (Eu Uso este)
<tr><td width='30%'>Created</td><td><?php echo ago($created)." | ".UNIX_TimeStamp($created); ?></td></tr>
Abra o seguinte arquivo system/application/views/online_players.php
Substitua tudo que tem dentro do arquivo por este codigo
<?php
require("config.php");
$ots = POT::getInstance();
$ots->connect(POT::DB_MYSQL, connection());
$SQL = $ots->getDBHandle();
require("system/application/config/create_character.php");
if(count($players) > 0) {
echo "<table width='100%' cellspacing='1' cellpadding='3'>";
echo "<tr><td align=center><b>Outfit</b></td><td align=center><b>Name</b></td><td align=center><b>Level</b></td><td align=center><b>Vocation</b></td><td align=center><b>World</b></td></tr>";
$players = $SQL->query("SELECT `name`, `level`, `promotion`, `world_id`, `vocation`, `lookfeet`, `lookhead`, `looklegs`, `lookbody`, `looktype`, `lookaddons` FROM `players` WHERE `online`='1' ORDER BY `level` DESC;")->fetchAll();
foreach($players as $row) {
if(in_array(strtolower($row['name']), $config['restricted_names'])) continue;
echo "<tr><td><div style='position: relative; width: 64px; height: 32px;'><div style='background:transparent url(/public/outfitter.php?id=".$row['looktype']."&addons=".$row['lookaddons']."&head=".$row['lookhead']."&body=".$row['lookbody']."&legs=".$row['looklegs']."&feet=".$row['lookfeet']."); position: absolute; width: 64px; height: 80px; background-position: bottom right; background-repeat: no-repeat; right: 0px; bottom: 0px;'></div></div></td><td align=center><a href=\"../character/view/".$row['name']."\">".$row['name']."</a></td><td align=center>".$row['level']."</td><td align=center>".getVocationName($row['vocation'], $row['promotion'])."</td><td align=center>".$config['worlds'][$row['world_id']]."</td></tr>";
}
echo "</table>";
}
else
alert("There is no players online.");
?>
DOWNLOAD PACK ~~> http://www.mediafire...k1w886bo8kjsqa1
Espero que gostem, Lembrando que este script era vendido por alguns sites !
Abraços!