Ir para conteúdo

Ltkshow

Posts Recomendados

<!--?PHP

$name = stripslashes(ucwords(strtolower(trim($_REQUEST['name']))));

if(empty($name)) {

$main_content .= 'Here you can get detailed information about a certain player on '.$config['server']['serverName'].'.<BR--> <form action="?subtopic=characters" method="post"><table border="0" cellpadding="4" cellspacing="1" width="100%"><tbody><tr><td class="white" bgcolor="'.$config['site']['vdarkborder'].'"><b>Search Character</b></td></tr><tr><td bgcolor="'.$config['site']['darkborder'].'"><table border="0" cellpadding="1"><tbody><tr><td>Name:</td><td><input name="name" value="" size="29" maxlength="29"></td><td><input name="Submit" src="%27.$layout_name.%27/images/buttons/sbutton_submit.gif" height="18" border="0" type="image" width="120"></td></tr></tbody></table></td></tr></tbody></table></form>';

}

else

{

if(check_name($name)) {

$player = $ots->createObject('Player');

$player->find($name);

if($player->isLoaded()) {

$account = $player->getAccount();

$main_content .= '<table border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td><img src="%27.$layout_name.%27/images/general/blank.gif" height="1" border="0" width="10"></td><td>';

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

$main_content .= '';

if($player->getOldName())

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

if($player->isNameLocked())

$main_content .= '';

else

$main_content .= '';

}

// BEGIN Position Showing *** Fixed by jerryb1988 from otfans.net

$group = $player->getGroup();

if ($group == 2){$group_name = 'Tutor';}

if ($group == 3){$group_name = 'Senior Tutor';}

if ($group == 4){$group_name = 'Gamemaster';}

if ($group == 5){$group_name = 'Community Manager';}

if ($group == 6){$group_name = 'GOD';}

if($group != 1)

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

$main_content .= '';

}

// END Position Showing

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

$main_content .= '';

if($config['site']['show_marriage_info'])

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

$main_content .= '';

else

$main_content .= 'single';

}

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

$main_content .= '';

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

$main_content .= '';

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

$main_content .= '';

if(!empty($towns_list[$player->getWorld()][$player->getTownId()]))

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

$main_content .= '';

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

$main_content .= '';

 

}

$rank_of_player = $player->getRank();

if(!empty($rank_of_player))

{

{

$guild_id = $rank_of_player->getGuild()->getId();

$guild_name = $rank_of_player->getGuild()->getName();

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

$main_content .= '';

}

}

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

$lastlogin = $player->getLastLogin();

if(empty($lastlogin))

$main_content .= '';

else

$main_content .= '';

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

if($config['site']['show_creationdate'] && $player->getCreated())

{

$main_content .= '';

}

if($config['site']['show_vip_status'])

{

$id = $player->getCustomField("id");

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

$main_content .= '';

$vip = $SQL->query('SELECT * FROM player_storage WHERE player_id = '.$id.' AND `key` = '.$config['site']['show_vip_storage'].';')->fetch();

if($vip == false) {

$main_content .= '';

}

else

{

$main_content .= '';

}

$comment = parseubb($player->getComment());

$newlines = array("\r\n", "\n", "\r");

$comment_with_lines = str_replace($newlines, '<br>', $comment, $count);

if($count < 50)

$comment = $comment_with_lines;

if(!empty($comment))

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

$main_content .= '';

}

}

//Outfit shower by Pening edited by loleslav

//Show or hide by Zakius

if($config['site']['show_outfit'] and $player->getCustomField( 'show_outfit' ) == 1) {

$id = $player->getCustomField("id");

$main_content .= '';

}

}

}

$main_content .= '';

//end Outfit shower by Pening edited by loleslav

if($config['site']['show_signature']) {

// Signature by makr0mango.

function randomSignature( $folder ) {

$files = scandir ( "./$folder/" );

$signature = array();

foreach ( $files as $file ):

if ( substr ( strtolower ( $file ) , -4 ) == ".png" )

$signature[] = $file;

endforeach;

return rand(0,count($signature)-1);

}

$random = randomSignature("signatures");

$main_content .= '<br><table border="0" cellpadding="4" cellspacing="1" width="100%"><tbody><tr site']['vdarkborder'].'="" bgcolor=".$config["><td colspan="2" class="white"><b>Character Information</b></td></tr><tr bgcolor="'.$bgcolor.'"><td width="20%">Name:</td><td><font color="';

$main_content .= ($player->isOnline()) ? 'green' : 'red';

$main_content .= '"><b>'.$player->getName().'</b></font>';

if($player->isDeleted())

$main_content .= '<font color="red"> [DELETED]</font>';

if($player->isNameLocked())

$main_content .= '<font color="red"> [NAMELOCK]</font>';

$main_content .= '</td></tr><tr bgcolor="'.$bgcolor.'"><td>Proposition:</td><td>'.$player->getOldName().'</td></tr><tr bgcolor="'.$bgcolor.'"><td>Old name:</td><td>'.$player->getOldName().'</td></tr><tr bgcolor="'.$bgcolor.'"><td>Position:</td><td>'.$group_name.'</td></tr><tr bgcolor="'.$bgcolor.'"><td>Sex:</td><td>';

$main_content .= ($player->getSex() == 0) ? 'female' : 'male';

$main_content .= '</td></tr><tr bgcolor="'.$bgcolor.'"><td>Marital status:</td><td>';

$marriage = new OTS_Player();

$marriage->load($player->getMarriage());

if($marriage->isLoaded())

$main_content .= 'married to <a href="?subtopic=characters&name=%27.urlencode%28$marriage-%3EgetName%28%29%29.%27"><b>'.$marriage->getName().'</b></a></td></tr><tr bgcolor="'.$bgcolor.'"><td>Profession:</td><td>'.$vocation_name[$player->getWorld()][$player->getPromotion()][$player->getVocation()].'</td></tr><tr bgcolor="'.$bgcolor.'"><td>Level:</td><td>'.$player->getLevel().'</td></tr><tr bgcolor="'.$bgcolor.'"><td>World:</td><td>'.$config['site']['worlds'][$player->getWorld()].'</td></tr><tr bgcolor="'.$bgcolor.'"><td>Residence:</td><td>'.$towns_list[$player->getWorld()][$player->getTownId()].'</td></tr><tr bgcolor="'.$bgcolor.'"><td>Balance:</td><td>'.$player->getBalance().' Gold Coins.</td></tr><tr bgcolor="'.$bgcolor.'"><td>Guild Membership:</td><td>'.$rank_of_player->getName().' of the <a href="?subtopic=guilds&action=show&guild=%27.$guild_id.%27">'.$guild_name.'</a></td></tr><tr bgcolor="'.$bgcolor.'"><td>Last login:</td><td>Never logged in.</td></tr><tr bgcolor="'.$bgcolor.'"><td>Last login:</td><td>'.date("j F Y, g:i a", $lastlogin).'</td></tr><tr bgcolor="'.$bgcolor.'"><td>Created:</td><td>'.date("j F Y, g:i a", $player->getCreated()).'</td></tr><tr bgcolor="'.$bgcolor.'"><td width="10%">Vip Status:</td><td><span class="red"><b>NOT VIP</b></span></td></tr><tr><td><span class="green"><b>VIP</b></span></td></tr><tr bgcolor="'.$bgcolor.'"><td valign="top">Comment:</td><td>'.$comment.'</td></tr><tr><td bgcolor="'.$config['site']['darkborder'].'">Outfit:';

$listaddon = array('128','129','130','131','132','133','134','135','136','137','138','139','140','141','142','143','144','145','146','147','148','149','150','151','152','153','154','155','158','159','251','252','268','269','270','273','278','279','288','289','302','324','325');

$lookadd = array('0','1','2','3');

foreach ($listaddon as $pid => $name)

foreach ($lookadd as $addo => $name) {

$addon1 = $SQL->query('SELECT * FROM players WHERE id = '.$id.' AND looktype = '.$listaddon[$pid].' AND lookaddons = '.$lookadd[$addo].';')->fetch();

if($addon1[looktype] == true ) {

$finaddon = $addon1[looktype] + $addon1[lookaddons] * 300;

$main_content .= '</td><td with="50%" style="background-color: '.$config['site']['darkborder'].'"><center><img src="images/addons/%27.$finaddon.%27.gif"></center></td></tr><tr></tr><tr></tr><tr></tr></tbody></table>';

$main_content .= "";

$main_content .= "";

$main_content .= "";

$main_content .= '<table border="0" cellpadding="4" cellspacing="1" width="100%"><tbody><tr site']['vdarkborder'].'="" bgcolor=".$config["><td colspan=2" class="white"><b>Signature</b></td></tr><tr bgcolor=".$config['site]['darkborder']."><td width="20%">Forum Link:</td><td><input size="75" onclick="this.select();" value="[url=\"http://" . $_SERVER[" http_host']="" .="" "\"]http:="" "="" $_server['http_host']="" signature.php?character=" .$player->getName(). " &image=" . $random . " [="" img][="" url]'="" type="text"></td></tr><tr bgcolor=".$config['site']['lightborder']."><td width="20%">Direct Link:</td><td><input size="75" onclick="this.select();" value="http://" . $_SERVER[" http_host']="" .="" "="" signature.php?character=" .$player->getName(). " &image=" . $random . " '="" type="text"></td></tr><tr bgcolor=".$config['site']['darkborder']."><td colspan="2" style="text-align: center;"><img src="signature.php?character=%22%20.$player-%3EgetName%28%29.%20%22&image=%22%20.%20$random%20.%20%22"></td></tr></tbody></table>';

// Signature by makr0mango.

}

//modified status scripts by ballack13

$main_content .= '';

//equipment shower by ballack13

if ($player->getCustomField( 'show_eq' ) == 1) {

$id = $player->getCustomField("id");

$number_of_items = 1;

$main_content .= '';}

if ($player->getCustomField( 'show_bars' ) == 1) {

//Hp/Mana/Exp Status by ballack13

$hp = ($player->getHealth() / $player->getHealthMax() * 100);

$main_content .= '<table width="100%"><tbody><tr><td align="center">';

$list = array('2','1','3','6','4','5','9','7','10','8');

foreach ($list as $pid => $name) {

$top = $SQL->query('SELECT * FROM player_items WHERE player_id = '.$id.' AND pid = '.$list[$pid].';')->fetch();

if($top[itemtype] == false) {

if($list[$pid] == '8') {

$main_content .= '';

}

if(is_int($number_of_items / 3)){

$main_content .= '';

} else {

$main_content .= '';

}

$number_of_items++;

}

else

{

if($list[$pid] == '8') {

$main_content .= '';

}

if(is_int($number_of_items / 3))

$main_content .= '';

else

$main_content .= '';

$number_of_items++;

}

if($list[$pid] == '8') {

$main_content .= '';

}

}

$main_content .= '<table with="100%" style="border: solid 1px #888888;" cellspacing="1"><tbody><tr><td style="background-color: '.$config['site']['darkborder'].'; text-align: center;">Soul:<br>'.$player->getSoul().'</td><td style="background-color: '.$config['site']['darkborder'].'; text-align: center;"><img src="images/items/%27.$list[$pid].%27.gif"></td></tr><tr><td style="background-color: '.$config['site']['darkborder'].'; text-align: center;"><img src="images/items/%27.$list[$pid].%27.gif"></td><td style="background-color: '.$config['site']['darkborder'].'; text-align: center;">Soul:<br>'.$player->getSoul().'</td><td style="background-color: '.$config['site']['darkborder'].'; text-align: center;"><img src="images/items/%27.$top[itemtype].%27.gif" width="45"></td></tr><tr><td style="background-color: '.$config['site']['darkborder'].'; text-align: center;"><img src="images/items/%27.$top[itemtype].%27.gif" width="45"></td><td style="background-color: '.$config['site']['darkborder'].'; text-align: center;">Cap:<br>'.$player->getCap().'</td></tr></tbody></table></td><td align="center">';

$next = ($player->getLevel() + 1);

$exp = ((50 / 3) * ($player->getLevel() * $player->getLevel() * $player->getLevel()) - (100 * ($player->getLevel() * $player->getLevel())) + ((850/3) * $player->getLevel()) - 200);

$expnext = ((50 / 3) * ($next * $next * $next) - (100 * ($next * $next)) + ((850/3) * $next) - 200 - $player->getExperience());

$expresult = ($expnext / (($expnext + $player->getExperience()) - $exp) * 100);

$main_content .= '<table width="100%"><tbody><tr><td align="center">';

if ($player->getManaMax() > 0) {

$mana = ($player->getMana() / $player->getManaMax() * 100);

$main_content .= '';

} else {

$main_content .= ''; }

$main_content .= '<table cellpadding="4" cellspacing="1"><tbody><tr><td align="left" bgcolor="#D4C0A1" width="20%"><b>Player Health:</b></td>

<td align="left" bgcolor="#D4C0A1">'.$player->getHealth().'/'.$player->getHealthMax().'<div style="width: 100%; height: 3px; border: 1px solid #000;"><div style="background: red; width: '.$hp.'%; height: 3px;"></div></div></td></tr><tr><td align="left" bgcolor="#F1E0C6"><b>Player Mana:</b></td><td align="left" bgcolor="#F1E0C6">'.$player->getMana().'/'.$player->getManaMax().'<div style="width: 100%; height: 3px; border: 1px solid #000;"><div style="background: blue; width: '.$mana.'%; height: 3px;"></div></div></td></tr><tr><td align="left" bgcolor="#F1E0C6"><b>Player Mana:</b></td><td align="left" bgcolor="#F1E0C6">0/0<div style="width: 100%; height: 3px; border: 1px solid #000;"><div style="background: blue; width: 100%; height: 3px;"></div></div></td></tr></tbody></table></td></tr><tr></tr><tr></tr></tbody></table><table cellpadding="4" cellspacing="1"><tbody><tr><td align="left" bgcolor="'.$config['site']['lightborder'].'" width="20%"><b>Player Level:</b></td><td align="left" bgcolor="'.$config['site']['lightborder'].'">'.$player->getLevel().'</td></tr>

<tr><td align="left" bgcolor="'.$config['site']['darkborder'].'"><b>Player Experience:</b></td><td align="left" bgcolor="'.$config['site']['darkborder'].'">'.$player->getExperience().' EXP.</td></tr>

<tr><td align="left" bgcolor="'.$config['site']['lightborder'].'"><b>To Next Level:</b></td><td align="left" bgcolor="'.$config['site']['lightborder'].'">You need <b>'.$exp.' EXP</b> to Level <b>'.$next.'</b>.<div title="99.320604545 %" style="width: 100%; height: 3px; border: 1px solid #000;"><div style="background: red; width: '.$expresult.'%; height: 3px;"></div></div></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table>';

}

if($config['site']['show_skills_info'] and $player->getCustomField( 'show_skills' ) == 1) {

//Skills Pics v2. Table borders optimized by Absolute Mango

$main_content .= '<br><table align="center" border="0" cellpadding="0" cellspacing="0" width="200"><caption><strong>Skills</strong></caption><tbody><tr>

<td align="center"><a href="?subtopic=highscores&list=experience"><img src="images/skills/level.png" style="border: none;"></a></td>

<td align="center"><a href="?subtopic=highscores&list=magic"><img src="images/skills/ml.png" style="border: none;"></a></td>

<td align="center"><a href="?subtopic=highscores&list=fist"><img src="images/skills/fist.png" style="border: none;"></a></td>

<td align="center"><a href="?subtopic=highscores&list=club"><img src="images/skills/club.png" style="border: none;"></a></td>

<td align="center"><a href="?subtopic=highscores&list=sword"><img src="images/skills/sword.png" style="border: none;"></a></td>

<td align="center"><a href="?subtopic=highscores&list=axe"><img src="images/skills/axe.png" style="border: none;"></a></td>

<td align="center"><a href="?subtopic=highscores&list=distance"><img src="images/skills/dist.png" style="border: none;"></a></td>

<td align="center"><a href="?subtopic=highscores&list=shield"><img src="images/skills/def.png" style="border: none;"></a></td>

<td align="center"><a href="?subtopic=highscores&list=fishing"><img src="images/skills/fish.png" style="border: none;"></a></td>

</tr></tbody></table>

<table align="center" border="1" cellpadding="0" cellspacing="0" width="360"><tbody><tr></tr><tr bgcolor="'.$config['site']['darkborder'].'">

<td align="center" width="38"><strong>Level</strong></td>

<td align="center" width="38"><strong>ML</strong></td>

<td align="center" width="42"><strong>Fist</strong></td>

<td align="center" width="40"><strong>Club</strong></td>

<td align="center" width="38"><strong>Swrd</strong></td>

<td align="center" width="38"><strong>Axe</strong></td>

<td align="center" width="38"><strong>Dist</strong></td>

<td align="center" width="38"><strong>Shield</strong></td>

<td align="center" width="38"><strong>Fish</strong></td>

</tr>

<tr bgcolor="'.$config['site']['lightborder'].'">

<td align="center" width="38">'.$player->getLevel().'</td>

<td align="center" width="38">'.$player->getMagLevel().'</td>

<td align="center" width="38">'.$player->getSkill(0).'</td>

<td align="center" width="38">'.$player->getSkill(1).'</td>

<td align="center" width="38">'.$player->getSkill(2).'</td>

<td align="center" width="38">'.$player->getSkill(3).'</td>

<td align="center" width="38">'.$player->getSkill(4).'</td>

<td align="center" width="38">'.$player->getSkill(5).'</td>

<td align="center" width="38">'.$player->getSkill(6).'</td>

</tr></tbody></table><div table="" align="center">&nbsp;<br>&nbsp;</div>';

//skill script end

}

//quest status by ballack13

if ($player->getCustomField( 'show_quests' ) == 1) {

$id = $player->getCustomField("id");

$number_of_quests = 0;

$main_content .= '';

$quests = $config['site']['quests'];

foreach ($quests as $storage => $name) {

if(is_int($number_of_quests / 2))

$bgcolor = $config['site']['darkborder'];

else

$bgcolor = $config['site']['lightborder'];

$number_of_quests++;

$main_content .= '';

$quest = $SQL->query('SELECT * FROM player_storage WHERE player_id = '.$id.' AND `key` = '.$quests[$storage].';')->fetch();

if($quest == false) {

$main_content .= '';

}

else

{

$main_content .= '';

}

}

$main_content .= '<table border="0" cellpadding="4" cellspacing="1" width="100%"><tbody><tr site']['vdarkborder'].'="" bgcolor=".$config["><td colspan=2" class="white" align="left"><b>Quests</b></td></tr><tr bgcolor="'.$bgcolor.'"><td width="95%">'.$storage.'</td><td><img src="images/false.png"></td></tr><tr><td><img src="images/true.png"></td></tr></tbody></table><br>';}

$deads = 0;

//deaths list

$player_deaths = $SQL->query('SELECT `id`, `date`, `level` FROM `player_deaths` WHERE `player_id` = '.$player->getId().' ORDER BY `date` DESC LIMIT 0,10;');

foreach($player_deaths as $death)

{

if(is_int($number_of_rows / 2))

$bgcolor = $config['site]['darkborder']; else $bgcolor = $config['site']['lightborder'];

$number_of_rows++; $deads++;

$dead_add_content .= "

".date("j M Y, H:i", $death['date'])."

";

$killers = $SQL->query("SELECT environment_killers.name AS monster_name, players.name AS player_name, players.deleted AS player_exists FROM killers LEFT JOIN environment_killers ON killers.id = environment_killers.kill_id

LEFT JOIN player_killers ON killers.id = player_killers.kill_id LEFT JOIN players ON players.id = player_killers.player_id

WHERE killers.death_id = ".$SQL->quote($death['id'])." ORDER BY killers.final_hit DESC, killers.id ASC")->fetchAll();

$i = 0;

$count = count($killers);

foreach($killers as $killer)

{

$i++;

if(in_array($i, array(1, $count)))

$killer['monster_name'] = str_replace(array("an ", "a "), array("", ""), $killer['monster_name']);

if($killer['player_name'] != "")

{

if($i == 1)

$dead_add_content .= "Killed at level <b>".$death['level']."</b> by ";

else if($i == $count)

$dead_add_content .= " and by ";

else

$dead_add_content .= ", ";

if($killer['monster_name'] != "")

$dead_add_content .= $killer['monster_name']." summoned by ";

if($killer['player_exists'] == 0)

$dead_add_content .= "<a href="%5C%22index.php?subtopic=characters&name=%22.urlencode%28$killer[%27player_name%27]%29.%22%5C%22">";

$dead_add_content .= $killer['player_name'];

if($killer['player_exists'] == 0)

$dead_add_content .= "</a>";

}

else

{

if($i == 1)

$dead_add_content .= "Died at level <b>".$death['level']."</b> by ";

else if($i == $count)

$dead_add_content .= " and by ";

else

$dead_add_content .= ", ";

$dead_add_content .= $killer['monster_name'];

}

if($i == $count)

$dead_add_content .= ".";

}

$dead_add_content .= ".";

}

if($deads > 0)

$main_content .= '' . $dead_add_content . '<table border="0" cellpadding="4" cellspacing="1" width="100%"><tbody><tr site']['vdarkborder'].'="" bgcolor=".$config["><td colspan=2" class="white"><b>Deaths</b></td></tr></tbody></table><br>';

//end

if(!$player->getHideChar()) {

$main_content .= '<table border="0"><tbody><tr><td></td></tr></tbody></table>';

if($account->getRLName())

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site]['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

$main_content .= '';

}

if($account->getLocation())

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

$main_content .= '';

}

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

if($account->getLastLogin())

$main_content .= '';

else

$main_content .= '';

if($account->getCreated())

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

$main_content .= '';

}

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

$main_content .= '<table border="0" cellpadding="4" cellspacing="1" width="100%"><tbody><tr site']['vdarkborder'].'="" bgcolor=".$config["><td colspan=2" class="white"><b>Account Information</b></td></tr><tr site]['lightborder'].'="" bgcolor=".$config["><td width=20%">Real name:</td><td>'.$account->getRLName().'</td></tr><tr site]['darkborder'].'="" bgcolor=".$config["><td width=20%">Location:</td><td>'.$account->getLocation().'</td></tr><tr site]['lightborder'].'="" bgcolor=".$config["><td width=20%">Last login:</td><td>'.date("j F Y, g:i a", $account->getLastLogin()).'</td></tr><tr site]['lightborder'].'="" bgcolor=".$config["><td width=20%">Last login:</td><td>Never logged in.</td></tr><tr site]['lightborder'].'="" bgcolor=".$config["><td width=20%">Created:</td><td>'.date("j F Y, g:i a", $account->getCreated()).'</td></tr><tr bgcolor="'.$bgcolor.'"><td>Account Status:</td><td>';

$main_content .= ($account->isPremium()) ? '<b><font color="green">Premium Account</font></b>' : '<b><font color="red">Free Account</font></b>';

if($account->isBanned())

if($account->getBanTime() > 0)

$main_content .= '<font color="red"> [banished until '.date("j F Y, G:i", $account->getBanTime()).]</font>';

else

$main_content .= '<font color="red"> [banished FOREVER]</font>';

$main_content .= '</td></tr></tbody></table>';

$main_content .= '<br><table border="0"><tbody><tr><td></td></tr></tbody></table>';

$account_players = $account->getPlayersList();

$account_players->orderBy('name');

$player_number = 0;

foreach($account_players as $player_list)

{

if(!$player_list->getHideChar())

{

$player_number++;

if(is_int($player_number / 2))

$bgcolor = $config['site']['darkborder'];

else

$bgcolor = $config['site']['lightborder'];

if(!$player_list->isOnline())

$player_list_status = '<font color="red">Offline</font>';

else

$player_list_status = '<font color="green">Online</font>';

$main_content .= '';

}

}

$main_content .= '<table border="0" cellpadding="4" cellspacing="1" width="100%"><tbody><tr site']['vdarkborder'].'="" bgcolor=".$config["><td colspan=5" class="white"><b>Characters</b></td></tr>

<tr site]['darkborder'].'="" bgcolor=".$config["><td><b>Name</b></td><td><b>World</b></td><td><b>Level</b></td><td><b>Status</b></td><td><b> </b></td></tr><tr bgcolor="'.$bgcolor.'"><td width="52%"><nobr>'.$player_number.'. '.$player_list->getName();

$main_content .= ($player_list->isDeleted()) ? '<font color="red"> [DELETED]</font>' : '';

$main_content .= '</nobr></td><td width="15%">'.$config['site']['worlds'][$player_list->getWorld()].'</td><td width="25%">'.$player_list->getLevel().' '.$vocation_name[$player_list->getWorld()][$player_list->getPromotion()][$player_list->getVocation()].'</td><td width="8%"><b>'.$player_list_status.'</b></td><td><table border="0" cellpadding="0" cellspacing="0"><form action="?subtopic=characters" method="post"></form><tbody><tr><td><input name="name" value="'.$player_list->getName().'" type="hidden"><input name="View '.$player_list->getName().'" alt="View '.$player_list->getName().'" src="%27.$layout_name.%27/images/buttons/sbutton_view.gif" height="18" border="0" type="image" width="120"></td></tr></tbody></table></td></tr></tbody></table><img src="%27.$layout_name.%27/images/general/blank.gif" height="1" border="0" width="10">';

}

$main_content .= '<br><br><form action="?subtopic=characters" method="post"><table border="0" cellpadding="4" cellspacing="1" width="100%"><tbody><tr><td class="white" bgcolor="'.$config['site']['vdarkborder'].'"><b>Search Character</b></td></tr><tr><td bgcolor="'.$config['site']['darkborder'].'"><table border="0" cellpadding="1"><tbody><tr><td>Name:</td><td><input name="name" value="" size="29" maxlength="29"></td><td><input name="Submit" src="%27.$layout_name.%27/images/buttons/sbutton_submit.gif" height="18" border="0" type="image" width="120"></td></tr></tbody></table></td></tr></tbody></table></form>';

$main_content .= '';

}

else

$search_errors[] = 'Character <b>'.$name.'</b> does not exist.';

}

else

$search_errors[] = 'This name contains invalid letters. Please use only A-Z, a-z and space.';

if(!empty($search_errors))

{

$main_content .= '<div class="SmallBox"> <div class="MessageContainer"> <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);"></div> <div class="BoxFrameEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></div> <div class="BoxFrameEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></div> <div class="ErrorMessage"> <div class="BoxFrameVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></div> <div class="BoxFrameVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></div> <div class="AttentionSign" style="background-image:url('.$layout_name.'/images/content/attentionsign.gif);"></div><b>The Following Errors Have Occurred:</b><br>';

foreach($search_errors as $search_error)

$main_content .= '<li>'.$search_error;

$main_content .= '</li></div> <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);"></div> <div class="BoxFrameEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></div> <div class="BoxFrameEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></div> </div></div><br>';

$main_content .= '<br><form action="?subtopic=characters" method="post"><table border="0" cellpadding="4" cellspacing="1" width="100%"><tbody><tr><td class="white" bgcolor="'.$config['site']['vdarkborder'].'"><b>Search Character</b></td></tr><tr><td bgcolor="'.$config['site']['darkborder'].'"><table border="0" cellpadding="1"><tbody><tr><td>Name:</td><td><input name="name" value="" size="29" maxlength="29"></td><td><input name="Submit" src="%27.$layout_name.%27/images/buttons/sbutton_submit.gif" height="18" border="0" type="image" width="120"></td></tr></tbody></table></td></tr></tbody></table></form>';

}

}

?>

Editado por Sociopataa
Link para o comentário
Compartilhar em outros sites

 

<?PHP

$name = stripslashes(ucwords(strtolower(trim($_REQUEST['name']))));

if(empty($name)) {

$main_content .= 'Aqui você pode obter informações detalhadas sobre um determinado jogador em'.$config['server']['serverName'].'.<BR> <FORM ACTION="?subtopic=characters" METHOD=post><TABLE WIDTH=100% BORDER=1 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site'][''].'" CLASS=white><B>Procurar Jogador</B></TD></TR><TR><TD BGCOLOR="'.$config['site'][''].'"><TABLE BORDER=0 CELLPADDING=1><TR><TD>Name:</TD><TD><INPUT NAME="name" VALUE=""SIZE=29 MAXLENGTH=29></TD><TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></TABLE></TD></TR></TABLE></FORM>';

}

else

{

if(check_name($name)) {

$player = $ots->createObject('Player');

$player->find($name);

if($player->isLoaded()) {

$account = $player->getAccount();

$main_content .= '<TABLE border=0 cellpadding=0 width=100%><td VALIGN=top><TABLE BORDER=1 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site'][''].'><TD COLSPAN=2 CLASS=white><B>Informações do Jogador</B></TD></TR>';

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD width=1><nobr>Nome:</TD><TD><font color="';

$main_content .= ($player->isOnline()) ? 'green' : 'red';

$main_content .= '"><b>'.$player->getName().'</b></font>';

if($player->isDeleted())

$main_content .= '<font color="red"> [DELETED]</font>';

if($player->isNameLocked())

$main_content .= '<font color="red"> [NAMELOCK]</font>';

$main_content .= '</TD></TR>';

if($player->getOldName())

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

if($player->isNameLocked())

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Proposition:</TD><TD>'.$player->getOldName().'</TD></TR>';

else

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Antigo Nome:</TD><TD>'.$player->getOldName().'</TD></TR>';

}

 

// BEGIN Position Showing *** Fixed by jerryb1988 from otfans.net

$group = $player->getGroup();

if ($group == 2){$group_name = 'Tutor';}

if ($group == 3){$group_name = 'Senior Tutor';}

if ($group == 4){$group_name = 'Gamemaster';}

if ($group == 5){$group_name = 'Community Manager';}

if ($group == 6){$group_name = 'GOD';}

if($group != 1)

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Position:</TD><TD>'.$group_name.'</TD></TR>';

}

// END Position Showing

 

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Sexo:</TD><TD>';

$main_content .= ($player->getSex() == 0) ? 'Female' : 'Male';

$main_content .= '</TD></TR>';

if($config['site']['show_marriage_info'])

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Status:</TD><TD>';

$marriage = new OTS_Player();

$marriage->load($player->getMarriage());

if($marriage->isLoaded())

$main_content .= 'married to <a href="?subtopic=characters&name='.urlencode($marriage->getName()).'"><b>'.$marriage->getName().'</b></a></TD></TR>';

else

$main_content .= 'Solteiro</TD></TR>';

}

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Vocação</TD><TD>'.$vocation_name[$player->getWorld()][$player->getPromotion()][$player->getVocation()].'</TD></TR>';

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Level:</TD><TD>'.$player->getLevel().'</TD></TR>';

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Mundo</TD><TD>'.$config['site']['worlds'][$player->getWorld()].'</TD></TR>';

if(!empty($towns_list[$player->getWorld()][$player->getTownId()]))

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Residence:</TD><TD>'.$towns_list[$player->getWorld()][$player->getTownId()].'</TD></TR>';

}

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'">';

$rank_of_player = $player->getRank();

if(!empty($rank_of_player))

{

{

$guild_id = $rank_of_player->getGuild()->getId();

$guild_name = $rank_of_player->getGuild()->getName();

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Guild Membership:</TD><TD>'.$rank_of_player->getName().' of the <a href="?subtopic=guilds&action=show&guild='.$guild_id.'">'.$guild_name.'</a></TD></TR>';

}

}

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$lastlogin = $player->getLastLogin();

if(empty($lastlogin))

$main_content .= '';

else

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Last login:</TD><TD>'.date("j F Y, g:i a", $lastlogin).'</TD></TR>';

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

if($config['site']['show_creationdate'] && $player->getCreated())

{

 

/*Vip Status*/

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Vip Status:</TD><TD>';

$main_content .= ($account->getPlayerVip_Time()) ? '<b><font color="lime">VIP</font></b>' : '<b><font color="red">NOT VIP</font></b>';

}

if($config['site']['show_vip_status'])

{

$id = $player->getCustomField("id");

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Vip Status:</TD>';

$vip = $SQL->query('SELECT * FROM player_storage WHERE player_id = '.$id.' AND `key` = '.$config['site']['show_vip_storage'].';')->fetch();

if($vip == false) {

$main_content .= '<TD><span class="red"><B>NOT VIP</B></TD></TR>';

}

else

{

$main_content .= '<TD><span class="green"><B>VIP</B></TD></TR>';

}

$comment = parseubb($player->getComment());

$newlines = array("\r\n", "\n", "\r");

$comment_with_lines = str_replace($newlines, '<br />', $comment, $count);

if($count < 50)

$comment = $comment_with_lines;

if(!empty($comment))

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD VALIGN=top>Comment:</TD><TD>'.$comment.'</TD></TR>';

}

}

//Outfit shower by Pening edited by loleslav

//Show or hide by Zakius

if($config['site']['show_outfit'] and $player->getCustomField( 'show_outfit' ) == 1) {

$id = $player->getCustomField("id");

$main_content .= '<TD BGCOLOR="'.$config['site']['darkborder'].'">Outfit:';

$listaddon = array('128','129','130','131','132','133','134','135','136','137','138','139','140','141','142','143','144','145','146','147','148','149','150','151','152','153','154','155','158','159','251','252','268','269','270','273','278','279','288','289','302','324','325');

$lookadd = array('0','1','2','3');

foreach ($listaddon as $pid => $name)

foreach ($lookadd as $addo => $name) {

$addon1 = $SQL->query('SELECT * FROM players WHERE id = '.$id.' AND looktype = '.$listaddon[$pid].' AND lookaddons = '.$lookadd[$addo].';')->fetch();

if($addon1[looktype] == true ) {

$finaddon = $addon1[looktype] + $addon1[lookaddons] * 300;

$main_content .= '<TD with=50% style="background-color: '.$config['site']['darkborder'].'"><center><img src="images/addons/'.$finaddon.'.gif"/></center></TD></TD>';

}

}

}

$main_content .= '</td>';

//end Outfit shower by Pening edited by loleslav

if($config['site']['show_signature']) {

// Signature by makr0mango.

function randomSignature( $folder ) {

$files = scandir ( "./$folder/" );

$signature = array();

foreach ( $files as $file ):

if ( substr ( strtolower ( $file ) , -4 ) == ".png" )

$signature[] = $file;

endforeach;

return rand(0,count($signature)-1);

}

 

}

//modified status scripts by ballack13

$main_content .= '<table width=100%><tr>';

//equipment shower by ballack13

if ($player->getCustomField( 'show_eq' ) == 1) {

$id = $player->getCustomField("id");

$number_of_items = 1;

$main_content .= '<td align=center><table with=100% style="border: solid 1px #888888;" CELLSPACING="1"><TR>';

$list = array('2','1','3','6','4','5','9','7','10','8');

foreach ($list as $pid => $name) {

$top = $SQL->query('SELECT * FROM player_items WHERE player_id = '.$id.' AND pid = '.$list[$pid].';')->fetch();

if($top[itemtype] == false) {

if($list[$pid] == '8') {

$main_content .= '<td style="background-color: '.$config['site']['darkborder'].'; text-align: center;">Soul:<br/>'.$player->getSoul().'</td>';

}

if(is_int($number_of_items / 3)){

$main_content .= '<TD style="background-color: '.$config['site']['darkborder'].'; text-align: center;"><img src="images/items/'.$list[$pid].'.gif"/></TD></tr><tr>';

} else {

$main_content .= '<TD style="background-color: '.$config['site']['darkborder'].'; text-align: center;"><img src="images/items/'.$list[$pid].'.gif"/></TD>';

}

$number_of_items++;

}

else

{

if($list[$pid] == '8') {

$main_content .= '<td style="background-color: '.$config['site']['darkborder'].'; text-align: center;">Soul:<br/>'.$player->getSoul().'</td>';

}

if(is_int($number_of_items / 3))

$main_content .= '<TD style="background-color: '.$config['site']['darkborder'].'; text-align: center;"><img src="images/items/'.$top[itemtype].'.gif" width="45"/></TD></tr><tr>';

else

$main_content .= '<TD style="background-color: '.$config['site']['darkborder'].'; text-align: center;"><img src="images/items/'.$top[itemtype].'.gif" width="45"/></TD>';

$number_of_items++;

}

if($list[$pid] == '8') {

$main_content .= '<td style="background-color: '.$config['site']['darkborder'].'; text-align: center;">Cap:<br/>'.$player->getCap().'</td>';

}

}

$main_content .= '</tr></TABLE></td>';}

if ($player->getCustomField( 'show_bars' ) == 1) {

//Hp/Mana/Exp Status by ballack13

$hp = ($player->getHealth() / $player->getHealthMax() * 100);

$main_content .= '<td align=center ><table width=100%><tr><td align=center><table CELLSPACING="1" CELLPADDING="4"><tr><td BGCOLOR="#363636" align="left" width="20%"><b>Player Health:</b></td>

<td BGCOLOR="#363636" align="left">'.$player->getHealth().'/'.$player->getHealthMax().'<div style="width: 100%; height: 3px; border: 1px solid #000;"><div style="background: red; width: '.$hp.'%; height: 3px;"></td></tr>';

if ($player->getManaMax() > 0) {

$mana = ($player->getMana() / $player->getManaMax() * 100);

$main_content .= '<tr><td BGCOLOR="#363636" align="left"><b>Player Mana:</b></td><td BGCOLOR="#363636" align="left">'.$player->getMana().'/'.$player->getManaMax().'<div style="width: 100%; height: 3px; border: 1px solid #000;"><div style="background: blue; width: '.$mana.'%; height: 3px;"></td>';

} else {

$main_content .= '<tr><td BGCOLOR="#363636" align="left"><b>Player Mana:</b></td><td BGCOLOR="#363636" align="left">0/0<div style="width: 100%; height: 3px; border: 1px solid #000;"><div style="background: blue; width: 100%; height: 3px;"></td>'; }

$main_content .= '</tr></table><tr>';

$next = ($player->getLevel() + 1);

$exp = ((50 / 3) * ($player->getLevel() * $player->getLevel() * $player->getLevel()) - (100 * ($player->getLevel() * $player->getLevel())) + ((850/3) * $player->getLevel()) - 200);

$expnext = ((50 / 3) * ($next * $next * $next) - (100 * ($next * $next)) + ((850/3) * $next) - 200 - $player->getExperience());

$expresult = ($expnext / (($expnext + $player->getExperience()) - $exp) * 100);

$main_content .= '';

}

if($config['site']['show_skills_info'] and $player->getCustomField( 'show_skills' ) == 1) {

//Skills Pics v2. Table borders optimized by Absolute Mango

$main_content .= '<br/><table cellspacing="0" cellpadding="0" border="0" width="200" align="center"><caption><strong>Skills</strong></caption><tbody><tr>

<td align="center"><a href="?subtopic=highscores&list=experience"><img src="images/skills/level.png" style="border: none;"/></a></td>

<td align="center"><a href="?subtopic=highscores&list=magic"><img src="images/skills/ml.png" style="border: none;"/></a></td>

<td align="center"><a href="?subtopic=highscores&list=fist"><img src="images/skills/fist.png" style="border: none;"/></a></td>

<td align="center"><a href="?subtopic=highscores&list=club"><img src="images/skills/club.png" style="border: none;"/></a></td>

<td align="center"><a href="?subtopic=highscores&list=sword"><img src="images/skills/sword.png" style="border: none;"/></a></td>

<td align="center"><a href="?subtopic=highscores&list=axe"><img src="images/skills/axe.png" style="border: none;"/></a></td>

<td align="center"><a href="?subtopic=highscores&list=distance"><img src="images/skills/dist.png" style="border: none;"/></a></td>

<td align="center"><a href="?subtopic=highscores&list=shield"><img src="images/skills/def.png" style="border: none;"/></a></td>

<td align="center"><a href="?subtopic=highscores&list=fishing"><img src="images/skills/fish.png" style="border: none;"/></a></td>

</tr></tbody></table>

<table cellspacing="0" cellpadding="0" border="1" width="360" align="center"><tbody><tr><tr bgcolor="'.$config['site']['darkborder'].'">

<td align="center" width="38"><strong>Level</strong></td>

<td align="center" width="38"><strong>ML</strong></td>

<td align="center" width="42"><strong>Fist</strong></td>

<td align="center" width="40"><strong>Club</strong></td>

<td align="center" width="38"><strong>Swrd</strong></td>

<td align="center" width="38"><strong>Axe</strong></td>

<td align="center" width="38"><strong>Dist</strong></td>

<td align="center" width="38"><strong>Shield</strong></td>

<td align="center" width="38"><strong>Fish</strong></td></font>

</tr>

<tr bgcolor="'.$config['site']['lightborder'].'">

<td align="center" width="38">'.$player->getLevel().'</td>

<td align="center" width="38">'.$player->getMagLevel().'</td>

<td align="center" width="38">'.$player->getSkill(0).'</td>

<td align="center" width="38">'.$player->getSkill(1).'</td>

<td align="center" width="38">'.$player->getSkill(2).'</td>

<td align="center" width="38">'.$player->getSkill(3).'</td>

<td align="center" width="38">'.$player->getSkill(4).'</td>

<td align="center" width="38">'.$player->getSkill(5).'</td>

<td align="center" width="38">'.$player->getSkill(6).'</td>

</tr></tbody></table><div table align="center"> <br /> </div>';

//skill script end

}

//quest status by ballack13

if ($player->getCustomField( 'show_quests' ) == 1) {

$id = $player->getCustomField("id");

$number_of_quests = 0;

$main_content .= '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=33%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD align="left" COLSPAN=2 CLASS=white><B>Quests</B></TD></TD align="right"></TD></TR>';

$quests = $config['site']['quests'];

foreach ($quests as $storage => $name) {

if(is_int($number_of_quests / 2))

$bgcolor = $config['site']['darkborder'];

else

$bgcolor = $config['site']['lightborder'];

$number_of_quests++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD WIDTH=95%>'.$storage.'</TD>';

$quest = $SQL->query('SELECT * FROM player_storage WHERE player_id = '.$id.' AND `key` = '.$quests[$storage].';')->fetch();

if($quest == false) {

$main_content .= '<TD><img src="images/false.png"/></TD></TR>';

}

else

{

$main_content .= '<TD><img src="images/true.png"/></TD></TR>';

}

}

$main_content .= '</TABLE></td></tr></table><br />';}

$deads = 0;

//deaths list

$player_deaths = $SQL->query('SELECT `id`, `date`, `level` FROM `player_deaths` WHERE `player_id` = '.$player->getId().' ORDER BY `date` DESC LIMIT 0,10;');

foreach($player_deaths as $death)

{

if(is_int($number_of_rows / 2))

$bgcolor = $config['site']['darkborder']; else $bgcolor = $config['site']['lightborder'];

$number_of_rows++; $deads++;

$dead_add_content .= "<tr bgcolor=\"".$bgcolor."\">

<td width=\"20%\" align=\"center\">".date("j M Y, H:i", $death['date'])."</td>

<td>";

$killers = $SQL->query("SELECT environment_killers.name AS monster_name, players.name AS player_name, players.deleted AS player_exists FROM killers LEFT JOIN environment_killers ON killers.id = environment_killers.kill_id

LEFT JOIN player_killers ON killers.id = player_killers.kill_id LEFT JOIN players ON players.id = player_killers.player_id

WHERE killers.death_id = ".$SQL->quote($death['id'])." ORDER BY killers.final_hit DESC, killers.id ASC")->fetchAll();

$i = 0;

$count = count($killers);

foreach($killers as $killer)

{

$i++;

if(in_array($i, array(1, $count)))

$killer['monster_name'] = str_replace(array("an ", "a "), array("", ""), $killer['monster_name']);

if($killer['player_name'] != "")

{

if($i == 1)

$dead_add_content .= "Killed at level <b>".$death['level']."</b> by ";

else if($i == $count)

$dead_add_content .= " and by ";

else

$dead_add_content .= ", ";

if($killer['monster_name'] != "")

$dead_add_content .= $killer['monster_name']." summoned by ";

if($killer['player_exists'] == 0)

$dead_add_content .= "<a href=\"index.php?subtopic=characters&name=".urlencode($killer['player_name'])."\">";

$dead_add_content .= $killer['player_name'];

if($killer['player_exists'] == 0)

$dead_add_content .= "</a>";

}

else

{

if($i == 1)

$dead_add_content .= "Died at level <b>".$death['level']."</b> by ";

else if($i == $count)

$dead_add_content .= " and by ";

else

$dead_add_content .= ", ";

$dead_add_content .= $killer['monster_name'];

}

if($i == $count)

$dead_add_content .= ".";

}

$dead_add_content .= ".</td></tr>";

}

if($deads > 0)

$main_content .= '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=2 CLASS=white><B>Deaths</B></TD></TR>' . $dead_add_content . '</TABLE><br />';

//end

if(!$player->getHideChar()) {

$main_content .= '';

if($account->isBanned())

if($account->getBanTime() > 0)

$main_content .= '<font color="red"> [banished until '.date("j F Y, G:i", $account->getBanTime()).']</font>';

else

$main_content .= '<font color="red"> [banished FOREVER]</font>';

$main_content .= '</TD></TR></TABLE>';

$main_content .= '<br><TABLE BORDER=0><TR><TD></TD></TR></TABLE><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=5 CLASS=white><B></B></TD></TR>

<TR BGCOLOR='.$config['site']['darkborder'].'><TD><B>Name</B></TD><TD><B>World</B></TD><TD><B>Level</B></TD><TD><b>Status</b></TD><TD><B> </B></TD></TR>';

$account_players = $account->getPlayersList();

$account_players->orderBy('name');

$player_number = 0;

foreach($account_players as $player_list)

{

if(!$player_list->getHideChar())

{

$player_number++;

if(is_int($player_number / 2))

$bgcolor = $config['site']['darkborder'];

else

$bgcolor = $config['site']['lightborder'];

if(!$player_list->isOnline())

$player_list_status = '<font color="red">Offline</font>';

else

$player_list_status = '<font color="green">Online</font>';

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD WIDTH=52%><NOBR>'.$player_number.'. '.$player_list->getName();

$main_content .= ($player_list->isDeleted()) ? '<font color="red"> [DELETED]</font>' : '';

$main_content .= '</NOBR></TD><TD WIDTH=15%>'.$config['site']['worlds'][$player_list->getWorld()].'</TD><TD WIDTH=25%>'.$player_list->getLevel().' '.$vocation_name[$player_list->getWorld()][$player_list->getPromotion()][$player_list->getVocation()].'</TD><TD WIDTH="8%"><b>'.$player_list_status.'</b></TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=characters" METHOD=post><TR><TD><INPUT TYPE=hidden NAME=name VALUE="'.$player_list->getName().'"><INPUT TYPE=image NAME="View '.$player_list->getName().'" ALT="View '.$player_list->getName().'" SRC="'.$layout_name.'/images/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></FORM></TABLE></TD></TR>';

}

}

$main_content .= '</TABLE></TD><TD><IMG SRC="'.$layout_name.'/images/general/blank.gif" WIDTH=10 HEIGHT=1 BORDER=0></TD></TR></TABLE>';

}

$main_content .= '<BR><BR><FORM ACTION="?subtopic=characters" METHOD=post><TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['vdarkborder'].'" CLASS=white><B>Search Character</B></TD></TR><TR><TD BGCOLOR="'.$config['site']['darkborder'].'"><TABLE BORDER=0 CELLPADDING=1><TR><TD>Name:</TD><TD><INPUT NAME="name" VALUE=""SIZE=29 MAXLENGTH=29></TD><TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></TABLE></TD></TR></TABLE></FORM>';

$main_content .= '</TABLE>';

}

else

$search_errors[] = 'Character <b>'.$name.'</b> does not exist.';

}

else

$search_errors[] = 'This name contains invalid letters. Please use only A-Z, a-z and space.';

if(!empty($search_errors))

{

$main_content .= '<div class="SmallBox" > <div class="MessageContainer" > <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="ErrorMessage" > <div class="BoxFrameVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div> <div class="BoxFrameVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div> <div class="AttentionSign" style="background-image:url('.$layout_name.'/images/content/attentionsign.gif);" /></div><b>The Following Errors Have Occurred:</b><br/>';

foreach($search_errors as $search_error)

$main_content .= '<li>'.$search_error;

$main_content .= '</div> <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> </div></div><br/>';

$main_content .= '<BR><FORM ACTION="?subtopic=characters" METHOD=post><TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['vdarkborder'].'" CLASS=white><B>Search Character</B></TD></TR><TR><TD BGCOLOR="'.$config['site']['darkborder'].'"><TABLE BORDER=0 CELLPADDING=1><TR><TD>Name:</TD><TD><INPUT NAME="name" VALUE=""SIZE=29 MAXLENGTH=29></TD><TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></TABLE></TD></TR></TABLE></FORM>';

}

}

?>

 

 

 

ou

 

 

<?PHP

$name = stripslashes(ucwords(strtolower(trim($_REQUEST['name']))));

if(empty($name)) {

$main_content .= 'Aqui você pode obter informações detalhadas sobre um determinado jogador em'.$config['server']['serverName'].'.<BR> <FORM ACTION="?subtopic=characters" METHOD=post><TABLE WIDTH=100% BORDER=1 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site'][''].'" CLASS=white><B>Procurar Jogador</B></TD></TR><TR><TD BGCOLOR="'.$config['site'][''].'"><TABLE BORDER=0 CELLPADDING=1><TR><TD>Name:</TD><TD><INPUT NAME="name" VALUE=""SIZE=29 MAXLENGTH=29></TD><TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></TABLE></TD></TR></TABLE></FORM>';

}

else

{

if(check_name($name)) {

$player = $ots->createObject('Player');

$player->find($name);

if($player->isLoaded()) {

$account = $player->getAccount();

$main_content .= '<TABLE border=0 cellpadding=0 width=100%><td VALIGN=top><TABLE BORDER=1 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site'][''].'><TD COLSPAN=2 CLASS=white><B>Informações do Jogador</B></TD></TR>';

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD width=1><nobr>Nome:</TD><TD><font color="';

$main_content .= ($player->isOnline()) ? 'green' : 'red';

$main_content .= '"><b>'.$player->getName().'</b></font>';

if($player->isDeleted())

$main_content .= '<font color="red"> [DELETED]</font>';

if($player->isNameLocked())

$main_content .= '<font color="red"> [NAMELOCK]</font>';

$main_content .= '</TD></TR>';

if($player->getOldName())

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

if($player->isNameLocked())

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Proposition:</TD><TD>'.$player->getOldName().'</TD></TR>';

else

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Antigo Nome:</TD><TD>'.$player->getOldName().'</TD></TR>';

}

 

// BEGIN Position Showing *** Fixed by jerryb1988 from otfans.net

$group = $player->getGroup();

if ($group == 2){$group_name = 'Tutor';}

if ($group == 3){$group_name = 'Senior Tutor';}

if ($group == 4){$group_name = 'Gamemaster';}

if ($group == 5){$group_name = 'Community Manager';}

if ($group == 6){$group_name = 'GOD';}

if($group != 1)

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Position:</TD><TD>'.$group_name.'</TD></TR>';

}

// END Position Showing

 

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Sexo:</TD><TD>';

$main_content .= ($player->getSex() == 0) ? 'Female' : 'Male';

$main_content .= '</TD></TR>';

if($config['site']['show_marriage_info'])

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Estado Civil:</TD><TD>';

$marriage = new OTS_Player();

$marriage->load($player->getMarriage());

if($marriage->isLoaded())

$main_content .= 'married to <a href="?subtopic=characters&name='.urlencode($marriage->getName()).'"><b>'.$marriage->getName().'</b></a></TD></TR>';

else

$main_content .= 'Solteiro</TD></TR>';

}

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Profissão</TD><TD>'.$vocation_name[$player->getWorld()][$player->getPromotion()][$player->getVocation()].'</TD></TR>';

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Level:</TD><TD>'.$player->getLevel().'</TD></TR>';

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Mundo</TD><TD>'.$config['site']['worlds'][$player->getWorld()].'</TD></TR>';

if(!empty($towns_list[$player->getWorld()][$player->getTownId()]))

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Residence:</TD><TD>'.$towns_list[$player->getWorld()][$player->getTownId()].'</TD></TR>';

}

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Balance:</TD><TD>'.$player->getBalance().' Gold Coins.</TD></TR>';

$rank_of_player = $player->getRank();

if(!empty($rank_of_player))

{

$guild_id = $rank_of_player->getGuild()->getId();

$guild_name = $rank_of_player->getGuild()->getName();

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD><NOBR>Guild Membership:</TD><TD>'.$rank_of_player->getName().' of the <a href="?subtopic=guilds&action=show&guild='.$guild_id.'">'.$guild_name.'</a></TD></TR>';

}

 

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$lastlogin = $player->getLastLogin();

if(empty($lastlogin))

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD><NOBR>Último Login</TD><TD>Never logged in.</TD></TR>';

else

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD><NOBR>Último Login:</TD><TD>'.date("j F Y, g:i a", $lastlogin).'</TD></TR>';

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

if($config['site']['show_creationdate'] && $player->getCreated())

{

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD><NOBR>Char Criado</TD><TD>'.date("j F Y, g:i a", $player->getCreated()).'</TD></TR>';

/*Vip Status*/

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Vip Status:</TD><TD>';

$main_content .= ($account->getPlayerVip_Time()) ? '<b><font color="lime">VIP</font></b>' : '<b><font color="red">NOT VIP</font></b>';

}

if($config['site']['show_vip_status'])

{

$id = $player->getCustomField("id");

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Vip Status:</TD>';

$vip = $SQL->query('SELECT * FROM player_storage WHERE player_id = '.$id.' AND `key` = '.$config['site']['show_vip_storage'].';')->fetch();

if($vip == false) {

$main_content .= '<TD><span class="red"><B>NOT VIP</B></TD></TR>';

}

else

{

$main_content .= '<TD><span class="green"><B>VIP</B></TD></TR>';

}

 

}

if($config['site']['show_health_information']) // Modified by Jerryb1988 from otfans.net

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$playerhp = $player->getHealth();

$playermaxhp = $player->getHealthMax();

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><td>Health:</td><td>' .number_format($playerhp). '/' .number_format($playermaxhp). '<div style="width: 100%; height: 3px; border: 0px solid #000;"><div style="background: red; width: '.(($playerhp / $playermaxhp) * 100).'%; height: 3px;"></td></tr>';

}

if($config['site']['show_mana_information']) // Modified by Jerryb1988 from otfans.net

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$playermana = $player->getMana();

$playermaxmana = $player->getManaMax();

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><td>Mana:</td><td>' .number_format($playermana). '/' .number_format($playermaxmana). '<div style="width: 100%; height: 3px; border: 0px solid #000;"><div style="background: blue; width: '.(($playermana / $playermaxmana) * 100).'%; height: 3px;"></td></tr>';

}

if($config['site']['show_exp_information']) // Modified by Jerryb1988 from otfans.net

{

// BEGIN *** Fixed EXP bar by Jerryb1988 from otfans.net

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$currentlevel = $player->getLevel();

$currentexp = $player->getExperience();

$currentlevelexp = (50 * ($currentlevel - 1) * ($currentlevel - 1) * ($currentlevel - 1) - 150 * ($currentlevel - 1) * ($currentlevel - 1) + 400 * ($currentlevel - 1)) / 3;

$nextlevel = ($currentlevel + 1);

$nextlevelexp = (50 * ($currentlevel) * ($currentlevel) * ($currentlevel) - 150 * ($currentlevel) * ($currentlevel) + 400 * ($currentlevel)) / 3;

$leveldifference = ($nextlevelexp - $currentlevelexp);

$expremaining = ($nextlevelexp - $currentexp);

$partofcurrentexp = ($currentexp-$currentlevelexp);

$expbarpercentage = (($partofcurrentexp / $leveldifference)*100);

$togopercentage = (100 - $expbarpercentage);

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>EXP:</td><td> ' .number_format($currentexp).'/' .number_format($nextlevelexp).' ('.number_format($expbarpercentage,2).'%) *** '.number_format($expremaining).' EXP (' .number_format($togopercentage,2). '%) Remaining.<div title="'.number_format($expbarpercentage,2).'%" style="width: 100%; height: 3px; border: 1px solid #000;"><div style="background: red; width: '.number_format($expbarpercentage,2).'%; height: 3px;"></td></tr>';

 

// END *** Fixed EXP bar by Jerryb1988 from otfans.net

}

//Outfit shower by Pening edited by loleslav

// ** ADDED GM/CM/GOD outfits by Jerryb1988 from otfans.net

if($config['site']['show_outfit']) {

$id = $player->getCustomField("id");

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TD BGCOLOR="'.$bgcolor.'">Outfit:';

$listaddon = array('75','128','129','130','131','132','133','134','135','136','137','138','139','140','141','142','143','144','145','146','147','148','149','150','151','152','153','154','155','158','159','251','252','266','268','269','270','273','278','279','288','289','302','324','325');

$lookadd = array('0','1','2','3');

foreach ($listaddon as $pid => $name)

foreach ($lookadd as $addo => $name) {

$addon1 = $SQL->query('SELECT * FROM players WHERE id = '.$id.' AND looktype = '.$listaddon[$pid].' AND lookaddons = '.$lookadd[$addo].';')->fetch();

if($addon1[looktype] == true ) {

$finaddon = $addon1[looktype] + $addon1[lookaddons] * 300;

$main_content .= '<TD style="background-color: '.$bgcolor.'"><img src="images/addons/'.$finaddon.'.gif"/></center></TD></TD>';

}

}

}

//end Outfit shower by Pening edited by loleslav

 

// Char Comment

$comment = parseubb($player->getComment());

$newlines = array("\r\n", "\n", "\r");

$comment_with_lines = str_replace($newlines, '<br />', $comment, $count);

if($count < 50)

$comment = $comment_with_lines;

if(!empty($comment))

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD VALIGN=top>Comment:</TD><TD>'.$comment.'</TD></TR>';

}

$main_content .= '</td></table></td>';

// END Char Comment

//modified status scripts by ballack13

 

//equipment shower by ballack13

$id = $player->getCustomField("id");

$number_of_items = 1;

$main_content .= '<td width=135 align=left valign=top><table with=100% style="border: solid 1px #000000;" CELLSPACING="1"><TR>';

$list = array('2','1','3','6','4','5','9','7','10','8');

foreach ($list as $pid => $name) {

$top = $SQL->query('SELECT * FROM player_items WHERE player_id = '.$id.' AND pid = '.$list[$pid].';')->fetch();

if($top[itemtype] == false) {

if($list[$pid] == '8') {

$main_content .= '<td style="background-color: '.$config['site'][''].'; text-align: center;">Soul:<br/>'.$player->getSoul().'</td>';

}

if(is_int($number_of_items / 3)){

$main_content .= '<TD style="background-color: '.$config['site'][''].'; text-align: center;"><img src="images/items/'.$list[$pid].'.gif"/></TD></tr><tr>';

} else {

$main_content .= '<TD style="background-color: '.$config['site'][''].'; text-align: center;"><img src="images/items/'.$list[$pid].'.gif"/></TD>';

}

$number_of_items++;

}

else

{

if($list[$pid] == '8') {

$main_content .= '<td style="background-color: '.$config['site'][''].'; text-align: center;">Soul:<br/>'.$player->getSoul().'</td>';

}

if(is_int($number_of_items / 3))

$main_content .= '<TD style="background-color: '.$config['site'][''].'; text-align: center;"><img src="images/items/'.$top[itemtype].'.gif" width="45"/></TD></tr><tr>';

else

$main_content .= '<TD style="background-color: '.$config['site'][''].'; text-align: center;"><img src="images/items/'.$top[itemtype].'.gif" width="45"/></TD>';

$number_of_items++;

}

if($list[$pid] == '8') {

$main_content .= '<td style="background-color: '.$config['site'][''].'; text-align: center;">Cap:<br/>'.$player->getCap().'</td>';

}

}

 

if($config['site']['show_skills_info']) {

$main_content .= '<TABLE BORDER=1 CELLSPACING=1 CELLPADDING=1 WIDTH=100%>';

$main_content .= '<TR BGCOLOR='.$config['site'][''].'><TD COLSPAN=2 CLASS=white><B>Skills</B></TD></TR>';

$main_content .= '<TR BGCOLOR="'.$config['site'][''].'"><TD width=75%>Magic:</TD><TD>'.$player->getMagLevel().'</TD></TR>';

$main_content .= '<TR BGCOLOR="'.$config['site'][''].'"><TD>Fisting:</TD><TD>'.$player->getSkill(0).'</TD></TR>';

$main_content .= '<TR BGCOLOR="'.$config['site'][''].'"><TD>Club:</TD><TD>'.$player->getSkill(1).'</TD></TR>';

$main_content .= '<TR BGCOLOR="'.$config['site'][''].'"><TD>Sword:</TD><TD>'.$player->getSkill(2).'</TD></TR>';

$main_content .= '<TR BGCOLOR="'.$config['site'][''].'"><TD>Axe:</TD><TD>'.$player->getSkill(3).'</TD></TR>';

$main_content .= '<TR BGCOLOR="'.$config['site'][''].'"><TD>Distance:</TD><TD>'.$player->getSkill(4).'</TD></TR>';

$main_content .= '<TR BGCOLOR="'.$config['site'][''].'"><TD>Shielding:</TD><TD>'.$player->getSkill(5).'</TD></TR>';

$main_content .= '<TR BGCOLOR="'.$config['site'][''].'"><TD>Fishing:</TD><TD>'.$player->getSkill(6).'</TD></TR>';

$main_content .= '</TABLE>';

}

 

//quest status by ballack13

$id = $player->getCustomField("id");

$number_of_quests = 0;

$main_content .= '<TABLE BORDER=1 CELLSPACING=1 CELLPADDING=1 WIDTH=100%><TR BGCOLOR='.$config['site'][''].'><TD align="left" COLSPAN=2 CLASS=white><B>Quests</B></TD></TD align="right"></TD></TR>';

$quests = $config['site']['quests'];

foreach ($quests as $storage => $name) {

if(is_int($number_of_quests / 2))

$bgcolor = $config['site'][''];

else

$bgcolor = $config['site'][''];

$number_of_quests++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD WIDTH=95%>'.$storage.'</TD>';

$quest = $SQL->query('SELECT * FROM player_storage WHERE player_id = '.$id.' AND `key` = '.$quests[$storage].';')->fetch();

if($quest == false) {

$main_content .= '<TD><img src="images/false.png"/></TD></TR>';

}

else

{

$main_content .= '<TD><img src="images/true.png"/></TD></TR>';

}

}

$main_content .= '</TABLE></td></tr></table><br />';

// end quest status

 

 

// Signature by makr0mango.

 

//BEGIN Player advances by jerryb1988 from otfans.net

if($config['site']['number_of_advances'] > 0) {

$numadvances = $config['site']['number_of_advances'];

$advances = 0;

$player_advances = $SQL->query('SELECT * FROM `player_advances` WHERE `cid` = '.$player->getId().' ORDER BY `time` DESC LIMIT '.$numadvances.';');

foreach($player_advances as $advance)

{

$skill = $advance['skill'];

if ($skill == 0){$skill_name = '<font color=purple><B>Fist</B></font>';}

if ($skill == 1){$skill_name = '<font color=purple><B>Club</B></font>';}

if ($skill == 2){$skill_name = '<font color=purple><B>Sword</B></font>';}

if ($skill == 3){$skill_name = '<font color=purple><B>Axe</B></font>';}

if ($skill == 4){$skill_name = '<font color=purple><B>Distance</B></font>';}

if ($skill == 5){$skill_name = '<font color=purple><B>Shielding</B></font>';}

if ($skill == 6){$skill_name = '<font color=purple><B>Fishing</B></font>';}

if ($skill == 7){$skill_name = '<font color=blue><B>Magic</B></font>';}

if ($skill == 8){$skill_name = '<font color=red><B>Level</B></font>';}

 

if(is_int($advances / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $advances++;

 

$advances_add_content .= "<tr bgcolor=\"".$bgcolor."\"><td width=\"20%\" align=\"center\"><nobr>".date("j M Y, g:i a", $advance['time'])."</td><td>".$skill_name."</td><td width=75><font color=red><B>".$advance['oldlevel']."</B></font></td><td width=75><font color=green><B>".$advance['newlevel']."</B></font></tr>";

 

}

if($advances > 0)

$main_content .= '<TABLE BORDER=1 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site'][''].'><TD COLSPAN=4 CLASS=white><B>Lastest Skill Advances</B></TD></TR><tr bgcolor='.$config['site'][''].'><td><b>Time</b></td><td><b>Skill</b></td><td><b>Old Level</b></td><td><b>New Level</b></td></tr>' . $advances_add_content . '</TABLE><br />';

}

//END Advances by jerryb1988 from otfans.net

 

//deaths list

$deads = 0;

$player_deaths = $SQL->query('SELECT `id`, `date`, `level` FROM `player_deaths` WHERE `player_id` = '.$player->getId().' ORDER BY `date` DESC LIMIT 0,10;');

foreach($player_deaths as $death)

{

if(is_int($number_of_rows / 2))

$bgcolor = $config['site']['']; else $bgcolor = $config['site'][''];

$number_of_rows++; $deads++;

$dead_add_content .= "<tr bgcolor=\"".$bgcolor."\"><td width=\"20%\" align=\"center\"><nobr>".date("j M Y, g:i a", $death['date'])."</td><td>";

$killers = $SQL->query("SELECT environment_killers.name AS monster_name, players.name AS player_name, players.deleted AS player_exists FROM killers LEFT JOIN environment_killers ON killers.id = environment_killers.kill_id LEFT JOIN player_killers ON killers.id = player_killers.kill_id LEFT JOIN players ON players.id = player_killers.player_id WHERE killers.death_id = ".$SQL->quote($death['id'])." ORDER BY killers.final_hit DESC, killers.id ASC")->fetchAll();

$i = 0;

$count = count($killers);

foreach($killers as $killer)

{

$i++;

if(in_array($i, array(1, $count)))

$killer['monster_name'] = str_replace(array("an ", "a "), array("", ""), $killer['monster_name']);

if($killer['player_name'] != "")

{

if($i == 1)

$dead_add_content .= "Killed at level <b>".$death['level']."</b> by ";

else if($i == $count)

$dead_add_content .= " and by ";

else

$dead_add_content .= ", ";

if($killer['monster_name'] != "")

$dead_add_content .= $killer['monster_name']." summoned by ";

if($killer['player_exists'] == 0)

$dead_add_content .= "<a href=\"index.php?subtopic=characters&name=".urlencode($killer['player_name'])."\">";

$dead_add_content .= $killer['player_name'];

if($killer['player_exists'] == 0)

$dead_add_content .= "</a>";

}

else

{

if($i == 1)

$dead_add_content .= "Died at level <b>".$death['level']."</b> by ";

else if($i == $count)

$dead_add_content .= " and by ";

else

$dead_add_content .= ", ";

$dead_add_content .= $killer['monster_name'];

}

if($i == $count)

$dead_add_content .= ".";

}

$dead_add_content .= "</td></tr>";

}

if($deads > 0)

$main_content .= '<TABLE BORDER=1 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site'][''].'><TD COLSPAN=2 CLASS=white><B>Deaths</B></TD></TR>' . $dead_add_content . '</TABLE><br />';

//end DEATHS

 

 

if(!$player->getHideChar()) {

$main_content .= '';

if($account->getRLName())

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR='.$config['site'][''].'><TD WIDTH=20%>Real Name:</TD><TD>'.$account->getRLName().'</TD></TR>';

}

if($account->getLocation())

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR='.$config['site'][''].'><TD WIDTH=20%>Real Location:</TD><TD>'.$account->getLocation().'</TD></TR>';

}

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

 

if($account->getCreated())

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

 

}

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

 

;

$main_content .= ($account->getPlayerVip_Time()) ? '<b><font color="green"></font></b>' : '<b><font color="red"></font></b>';

if($account->isBanned())

if($account->getBanTime() > 0)

$main_content .= '<font color="red"> [banished until '.date("j F Y, G:i", $account->getBanTime()).']</font>';

else

$main_content .= '<font color="red"> [banished FOREVER]</font>';

$main_content .= '</TD></TR></TABLE>';

$main_content .= '<br><TABLE BORDER=1><TR><TD></TD></TR></TABLE><TABLE BORDER=1 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site'][''].'><TD COLSPAN=5 CLASS=white><B>Characters</B></TD></TR>

<TR BGCOLOR='.$config['site'][''].'><TD><B>Name</B></TD><TD><B>World</B></TD><TD><B>Level</B></TD><TD><b>Status</b></TD><TD><B>*</B></TD></TR>';

$account_players = $account->getPlayersList();

$account_players->orderBy('name');

$player_number = 0;

foreach($account_players as $player_list)

{

if(!$player_list->getHideChar())

{

$player_number++;

if(is_int($player_number / 2))

$bgcolor = $config['site'][''];

else

$bgcolor = $config['site'][''];

if(!$player_list->isOnline())

$player_list_status = '<font color="red">Offline</font>';

else

$player_list_status = '<font color="green">Online</font>';

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD WIDTH=52%><NOBR>'.$player_number.'.*<a href="?subtopic=characters&name='.urlencode($player_list->getName()).'">'.$player_list->getName();

$main_content .= ($player_list->isDeleted()) ? '<font color="red"> [DELETED]</font>' : '';

$main_content .= '</NOBR></TD><TD WIDTH=15%>'.$config['site']['worlds'][$player_list->getWorld()].'</TD><TD WIDTH=25%>'.$player_list->getLevel().' '.$vocation_name[$player_list->getWorld()][$player_list->getPromotion()][$player_list->getVocation()].'</TD><TD WIDTH="8%"><b>'.$player_list_status.'</b></TD><TD><TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=characters" METHOD=post><TR><TD><INPUT TYPE=hidden NAME=name VALUE="'.$player_list->getName().'"><INPUT TYPE=image NAME="View '.$player_list->getName().'" ALT="View '.$player_list->getName().'" SRC="'.$layout_name.'/images/buttons/sbutton_view.gif" BORDER=1 WIDTH=120 HEIGHT=18></TD></TR></FORM></TABLE></TD></TR>';

}

}

$main_content .= '</TABLE></TD><TD><IMG SRC="'.$layout_name.'/images/general/blank.gif" WIDTH=10 HEIGHT=1 BORDER=1></TD></TR></TABLE>';

}

$main_content .= '<BR><BR><FORM ACTION="?subtopic=characters" METHOD=post><TABLE WIDTH=100% BORDER=1 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site'][''].'" CLASS=white><B>Procurar Jogardor</B></TD></TR><TR><TD BGCOLOR="'.$config['site'][''].'"><TABLE BORDER=1 CELLPADDING=1><TR><TD>Name:</TD><TD><INPUT NAME="name" VALUE=""SIZE=29 MAXLENGTH=29></TD><TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=1 WIDTH=120 HEIGHT=18></TD></TR></TABLE></TD></TR></TABLE></FORM>';

$main_content .= '</TABLE>';

}

else

$search_errors[] = 'Character <b>'.$name.'</b> does not exist.';

}

else

$search_errors[] = 'This name contains invalid letters. Please use only A-Z, a-z and space.';

if(!empty($search_errors))

{

$main_content .= '<div class="SmallBox" > <div class="MessageContainer" > <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="ErrorMessage" > <div class="BoxFrameVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div> <div class="BoxFrameVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div> <div class="AttentionSign" style="background-image:url('.$layout_name.'/images/content/attentionsign.gif);" /></div><b>The Following Errors Have Occurred:</b><br/>';

foreach($search_errors as $search_error)

$main_content .= '<li>'.$search_error;

$main_content .= '</div> <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> </div></div><br/>';

$main_content .= '<BR><FORM ACTION="?subtopic=characters" METHOD=post><TABLE WIDTH=100% BORDER=1 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site'][''].'" CLASS=white><B>Procurar Jogador</B></TD></TR><TR><TD BGCOLOR="'.$config['site'][''].'"><TABLE BORDER=1 CELLPADDING=1><TR><TD>Name:</TD><TD><INPUT NAME="name" VALUE=""SIZE=29 MAXLENGTH=29></TD><TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=1 WIDTH=120 HEIGHT=18></TD></TR></TABLE></TD></TR></TABLE></FORM>';

}

}

?>

 

 

 

Rep+?

Link para o comentário
Compartilhar em outros sites

O Primeiro Não èh Do Jeito Da Foto wacko.png

 

E O Segundo Deu Esse Erro Ae Fatal error: Call to undefined method OTS_Account::getPlayerVip_Time() in C:\xampp\htdocs\characters.php on line 357

Editado por LTK157
Link para o comentário
Compartilhar em outros sites

Usa esse, se der erro troque a versão do seu gesior, pois uso ele aqui e funciona de boa...

 

 

<?PHP

$name = stripslashes(ucwords(strtolower(trim($_REQUEST['name']))));

if(empty($name)) {

$main_content .= 'Aqui você pode obter informações detalhadas sobre um determinado jogador em'.$config['server']['serverName'].'.<BR> <FORM ACTION="?subtopic=characters" METHOD=post><TABLE WIDTH=100% BORDER=1 CELLSPACING=4 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site'][''].'" CLASS=white><B>Procurar Jogador</B></TD></TR><TR><TD BGCOLOR="'.$config['site'][''].'"><TABLE BORDER=0 CELLPADDING=1><TR><TD>Name:</TD><TD><INPUT NAME="name" VALUE=""SIZE=29 MAXLENGTH=29></TD><TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></TABLE></TD></TR></TABLE></FORM>';

}

else

{

if(check_name($name)) {

$player = $ots->createObject('Player');

$player->find($name);

if($player->isLoaded()) {

$account = $player->getAccount();

$main_content .= '<TABLE border=0 cellpadding=0 width=100%><td VALIGN=top><TABLE BORDER=1 CELLSPACING=4 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site'][''].'><TD COLSPAN=2 CLASS=white><B>Informações do Jogador</B></TD></TR>';

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD width=1><nobr>Nome:</TD><TD><font color="';

$main_content .= ($player->isOnline()) ? 'green' : 'red';

$main_content .= '"><b>'.$player->getName().'</b></font>';

if($player->isDeleted())

$main_content .= '<font color="red"> [DELETED]</font>';

if($player->isNameLocked())

$main_content .= '<font color="red"> [NAMELOCK]</font>';

$main_content .= '</TD></TR>';

if($player->getOldName())

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

if($player->isNameLocked())

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Proposition:</TD><TD>'.$player->getOldName().'</TD></TR>';

else

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Antigo Nome:</TD><TD>'.$player->getOldName().'</TD></TR>';

}

 

// BEGIN Position Showing *** Fixed by jerryb1988 from otfans.net

$group = $player->getGroup();

if ($group == 2){$group_name = 'Tutor';}

if ($group == 3){$group_name = 'Senior Tutor';}

if ($group == 4){$group_name = 'Gamemaster';}

if ($group == 5){$group_name = 'Community Manager';}

if ($group == 6){$group_name = 'GOD';}

if($group != 1)

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Position:</TD><TD>'.$group_name.'</TD></TR>';

}

// END Position Showing

 

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Sexo:</TD><TD>';

$main_content .= ($player->getSex() == 0) ? 'Female' : 'Male';

$main_content .= '</TD></TR>';

if($config['site']['show_marriage_info'])

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Status</TD><TD>';

$marriage = new OTS_Player();

$marriage->load($player->getMarriage());

if($marriage->isLoaded())

$main_content .= 'married to <a href="?subtopic=characters&name='.urlencode($marriage->getName()).'"><b>'.$marriage->getName().'</b></a></TD></TR>';

else

$main_content .= 'Solteiro</TD></TR>';

}

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Profissão</TD><TD>'.$vocation_name[$player->getWorld()][$player->getPromotion()][$player->getVocation()].'</TD></TR>';

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Level:</TD><TD>'.$player->getLevel().'</TD></TR>';

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Mundo</TD><TD>'.$config['site']['worlds'][$player->getWorld()].'</TD></TR>';

if(!empty($towns_list[$player->getWorld()][$player->getTownId()]))

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Residence:</TD><TD>'.$towns_list[$player->getWorld()][$player->getTownId()].'</TD></TR>';

}

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '';

$rank_of_player = $player->getRank();

if(!empty($rank_of_player))

{

$guild_id = $rank_of_player->getGuild()->getId();

$guild_name = $rank_of_player->getGuild()->getName();

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD><NOBR>Membro da Guild:</TD><TD>'.$rank_of_player->getName().' of the <a href="?subtopic=guilds&action=show&guild='.$guild_id.'">'.$guild_name.'</a></TD></TR>';

}

 

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$lastlogin = $player->getLastLogin();

if(empty($lastlogin))

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD><NOBR>Último Login</TD><TD>Never logged in.</TD></TR>';

else

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD><NOBR>Último Login:</TD><TD>'.date("j F Y, g:i a", $lastlogin).'</TD></TR>';

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

if($config['site']['show_creationdate'] && $player->getCreated())

{

$main_content .= '';

/*Vip Status*/

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Vip Status:</TD><TD>';

$main_content .= ($account->getPlayerVip_Time()) ? '<b><font color="lime">VIP</font></b>' : '<b><font color="red">NOT VIP</font></b>';

}

if($config['site']['show_vip_status'])

{

$id = $player->getCustomField("id");

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Vip Status:</TD>';

$vip = $SQL->query('SELECT * FROM player_storage WHERE player_id = '.$id.' AND `key` = '.$config['site']['show_vip_storage'].';')->fetch();

if($vip == false) {

$main_content .= '<TD><span class="red"><B>NOT VIP</B></TD></TR>';

}

else

{

$main_content .= '<TD><span class="green"><B>VIP</B></TD></TR>';

}

 

}

if($config['site']['show_health_information']) // Modified by Jerryb1988 from otfans.net

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$playerhp = $player->getHealth();

$playermaxhp = $player->getHealthMax();

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><td>Health:</td><td>' .number_format($playerhp). '/' .number_format($playermaxhp). '<div style="width: 100%; height: 3px; border: 0px solid #000;"><div style="background: red; width: '.(($playerhp / $playermaxhp) * 100).'%; height: 3px;"></td></tr>';

}

if($config['site']['show_mana_information']) // Modified by Jerryb1988 from otfans.net

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$playermana = $player->getMana();

$playermaxmana = $player->getManaMax();

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><td>Mana:</td><td>' .number_format($playermana). '/' .number_format($playermaxmana). '<div style="width: 100%; height: 3px; border: 0px solid #000;"><div style="background: blue; width: '.(($playermana / $playermaxmana) * 100).'%; height: 3px;"></td></tr>';

}

if($config['site']['show_exp_information']) // Modified by Jerryb1988 from otfans.net

{

// BEGIN *** Fixed EXP bar by Jerryb1988 from otfans.net

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$currentlevel = $player->getLevel();

$currentexp = $player->getExperience();

$currentlevelexp = (50 * ($currentlevel - 1) * ($currentlevel - 1) * ($currentlevel - 1) - 150 * ($currentlevel - 1) * ($currentlevel - 1) + 400 * ($currentlevel - 1)) / 3;

$nextlevel = ($currentlevel + 1);

$nextlevelexp = (50 * ($currentlevel) * ($currentlevel) * ($currentlevel) - 150 * ($currentlevel) * ($currentlevel) + 400 * ($currentlevel)) / 3;

$leveldifference = ($nextlevelexp - $currentlevelexp);

$expremaining = ($nextlevelexp - $currentexp);

$partofcurrentexp = ($currentexp-$currentlevelexp);

$expbarpercentage = (($partofcurrentexp / $leveldifference)*100);

$togopercentage = (100 - $expbarpercentage);

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>EXP:</td><td> ' .number_format($currentexp).'/' .number_format($nextlevelexp).' ('.number_format($expbarpercentage,2).'%) *** '.number_format($expremaining).' EXP (' .number_format($togopercentage,2). '%) Remaining.<div title="'.number_format($expbarpercentage,2).'%" style="width: 100%; height: 3px; border: 1px solid #000;"><div style="background: red; width: '.number_format($expbarpercentage,2).'%; height: 3px;"></td></tr>';

 

// END *** Fixed EXP bar by Jerryb1988 from otfans.net

}

//Outfit shower by Pening edited by loleslav

// ** ADDED GM/CM/GOD outfits by Jerryb1988 from otfans.net

if($config['site']['show_outfit']) {

$id = $player->getCustomField("id");

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TD BGCOLOR="'.$bgcolor.'">Outfit:';

$listaddon = array('64','128','129','130','131','132','133','134','135','136','137','138','139','140','141','142','143','144','145','146','147','148','149','150','151','152','153','154','155','158','159','251','252','266','268','269','270','273','278','279','288','289','302','324','325','2','59',);

$lookadd = array('0','1','2','3');

foreach ($listaddon as $pid => $name)

foreach ($lookadd as $addo => $name) {

$addon1 = $SQL->query('SELECT * FROM players WHERE id = '.$id.' AND looktype = '.$listaddon[$pid].' AND lookaddons = '.$lookadd[$addo].';')->fetch();

if($addon1[looktype] == true ) {

$finaddon = $addon1[looktype] + $addon1[lookaddons] * 300;

$main_content .= '<TD style="background-color: '.$bgcolor.'"><img src="images/addons/'.$finaddon.'.gif"/></center></TD></TD>';

}

}

}

//end Outfit shower by Pening edited by loleslav

 

// Char Comment

$comment = parseubb($player->getComment());

$newlines = array("\r\n", "\n", "\r");

$comment_with_lines = str_replace($newlines, '<br />', $comment, $count);

if($count < 50)

$comment = $comment_with_lines;

if(!empty($comment))

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD VALIGN=top>Comment:</TD><TD>'.$comment.'</TD></TR>';

}

$main_content .= '</td></table></td>';

// END Char Comment

//modified status scripts by ballack13

 

//equipment shower by ballack13

$id = $player->getCustomField("id");

$number_of_items = 1;

$main_content .= '<td width=135 align=left valign=top><table with=100% style="border: solid 1px #000000;" CELLSPACING="1"><TR>';

$list = array('2','1','3','6','4','5','9','7','10','8');

foreach ($list as $pid => $name) {

$top = $SQL->query('SELECT * FROM player_items WHERE player_id = '.$id.' AND pid = '.$list[$pid].';')->fetch();

if($top[itemtype] == false) {

if($list[$pid] == '8') {

$main_content .= '<td style="background-color: '.$config['site'][''].'; text-align: center;">Soul:<br/>'.$player->getSoul().'</td>';

}

if(is_int($number_of_items / 3)){

$main_content .= '<TD style="background-color: '.$config['site'][''].'; text-align: center;"><img src="images/items/'.$list[$pid].'.gif"/></TD></tr><tr>';

} else {

$main_content .= '<TD style="background-color: '.$config['site'][''].'; text-align: center;"><img src="images/items/'.$list[$pid].'.gif"/></TD>';

}

$number_of_items++;

}

else

{

if($list[$pid] == '8') {

$main_content .= '<td style="background-color: '.$config['site'][''].'; text-align: center;">Soul:<br/>'.$player->getSoul().'</td>';

}

if(is_int($number_of_items / 3))

$main_content .= '<TD style="background-color: '.$config['site'][''].'; text-align: center;"><img src="images/items/'.$top[itemtype].'.gif" width="45"/></TD></tr><tr>';

else

$main_content .= '<TD style="background-color: '.$config['site'][''].'; text-align: center;"><img src="images/items/'.$top[itemtype].'.gif" width="45"/></TD>';

$number_of_items++;

}

if($list[$pid] == '8') {

$main_content .= '<td style="background-color: '.$config['site'][''].'; text-align: center;">Cap:<br/>'.$player->getCap().'</td>';

}

}

 

if($config['site']['show_skills_info']) {

$main_content .= '<TABLE BORDER=1 CELLSPACING=4 CELLPADDING=1 WIDTH=100%>';

$main_content .= '<TR BGCOLOR='.$config['site'][''].'><TD COLSPAN=2 CLASS=white><B>Skills</B></TD></TR>';

$main_content .= '<TR BGCOLOR="'.$config['site'][''].'"><TD width=75%>Magic:</TD><TD>'.$player->getMagLevel().'</TD></TR>';

$main_content .= '<TR BGCOLOR="'.$config['site'][''].'"><TD>Fisting:</TD><TD>'.$player->getSkill(0).'</TD></TR>';

$main_content .= '<TR BGCOLOR="'.$config['site'][''].'"><TD>Club:</TD><TD>'.$player->getSkill(1).'</TD></TR>';

$main_content .= '<TR BGCOLOR="'.$config['site'][''].'"><TD>Sword:</TD><TD>'.$player->getSkill(2).'</TD></TR>';

$main_content .= '<TR BGCOLOR="'.$config['site'][''].'"><TD>Axe:</TD><TD>'.$player->getSkill(3).'</TD></TR>';

$main_content .= '<TR BGCOLOR="'.$config['site'][''].'"><TD>Distance:</TD><TD>'.$player->getSkill(4).'</TD></TR>';

$main_content .= '<TR BGCOLOR="'.$config['site'][''].'"><TD>Shielding:</TD><TD>'.$player->getSkill(5).'</TD></TR>';

$main_content .= '<TR BGCOLOR="'.$config['site'][''].'"><TD>Fishing:</TD><TD>'.$player->getSkill(6).'</TD></TR>';

$main_content .= '</TABLE>';

}

 

//quest status by ballack13

$id = $player->getCustomField("id");

$number_of_quests = 0;

$main_content .= '<TABLE BORDER=1 CELLSPACING=1 CELLPADDING=1 WIDTH=100%><TR BGCOLOR='.$config['site'][''].'><TD align="left" COLSPAN=2 CLASS=white><B>Quests</B></TD></TD align="right"></TD></TR>';

$quests = $config['site']['quests'];

foreach ($quests as $storage => $name) {

if(is_int($number_of_quests / 2))

$bgcolor = $config['site'][''];

else

$bgcolor = $config['site'][''];

$number_of_quests++;

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD WIDTH=95%>'.$storage.'</TD>';

$quest = $SQL->query('SELECT * FROM player_storage WHERE player_id = '.$id.' AND `key` = '.$quests[$storage].';')->fetch();

if($quest == false) {

$main_content .= '<TD><img src="images/false.png"/></TD></TR>';

}

else

{

$main_content .= '<TD><img src="images/true.png"/></TD></TR>';

}

}

$main_content .= '</TABLE></td></tr></table><br />';

// end quest status

 

 

// Signature by makr0mango.

 

//BEGIN Player advances by jerryb1988 from otfans.net

if($config['site']['number_of_advances'] > 0) {

$numadvances = $config['site']['number_of_advances'];

$advances = 0;

$player_advances = $SQL->query('SELECT * FROM `player_advances` WHERE `cid` = '.$player->getId().' ORDER BY `time` DESC LIMIT '.$numadvances.';');

foreach($player_advances as $advance)

{

$skill = $advance['skill'];

if ($skill == 0){$skill_name = '<font color=purple><B>Fist</B></font>';}

if ($skill == 1){$skill_name = '<font color=purple><B>Club</B></font>';}

if ($skill == 2){$skill_name = '<font color=purple><B>Sword</B></font>';}

if ($skill == 3){$skill_name = '<font color=purple><B>Axe</B></font>';}

if ($skill == 4){$skill_name = '<font color=purple><B>Distance</B></font>';}

if ($skill == 5){$skill_name = '<font color=purple><B>Shielding</B></font>';}

if ($skill == 6){$skill_name = '<font color=purple><B>Fishing</B></font>';}

if ($skill == 7){$skill_name = '<font color=blue><B>Magic</B></font>';}

if ($skill == 8){$skill_name = '<font color=red><B>Level</B></font>';}

 

if(is_int($advances / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $advances++;

 

$advances_add_content .= "<tr bgcolor=\"".$bgcolor."\"><td width=\"20%\" align=\"center\"><nobr>".date("j M Y, g:i a", $advance['time'])."</td><td>".$skill_name."</td><td width=75><font color=red><B>".$advance['oldlevel']."</B></font></td><td width=75><font color=green><B>".$advance['newlevel']."</B></font></tr>";

 

}

if($advances > 0)

$main_content .= '<TABLE BORDER=1 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site'][''].'><TD COLSPAN=4 CLASS=white><B>Lastest Skill Advances</B></TD></TR><tr bgcolor='.$config['site'][''].'><td><b>Time</b></td><td><b>Skill</b></td><td><b>Old Level</b></td><td><b>New Level</b></td></tr>' . $advances_add_content . '</TABLE><br />';

}

//END Advances by jerryb1988 from otfans.net

 

//deaths list

$deads = 0;

$player_deaths = $SQL->query('SELECT `id`, `date`, `level` FROM `player_deaths` WHERE `player_id` = '.$player->getId().' ORDER BY `date` DESC LIMIT 0,10;');

foreach($player_deaths as $death)

{

if(is_int($number_of_rows / 2))

$bgcolor = $config['site']['']; else $bgcolor = $config['site'][''];

$number_of_rows++; $deads++;

$dead_add_content .= "<tr bgcolor=\"".$bgcolor."\"><td width=\"20%\" align=\"center\"><nobr>".date("j M Y, g:i a", $death['date'])."</td><td>";

$killers = $SQL->query("SELECT environment_killers.name AS monster_name, players.name AS player_name, players.deleted AS player_exists FROM killers LEFT JOIN environment_killers ON killers.id = environment_killers.kill_id LEFT JOIN player_killers ON killers.id = player_killers.kill_id LEFT JOIN players ON players.id = player_killers.player_id WHERE killers.death_id = ".$SQL->quote($death['id'])." ORDER BY killers.final_hit DESC, killers.id ASC")->fetchAll();

$i = 0;

$count = count($killers);

foreach($killers as $killer)

{

$i++;

if(in_array($i, array(1, $count)))

$killer['monster_name'] = str_replace(array("an ", "a "), array("", ""), $killer['monster_name']);

if($killer['player_name'] != "")

{

if($i == 1)

$dead_add_content .= "Killed at level <b>".$death['level']."</b> by ";

else if($i == $count)

$dead_add_content .= " and by ";

else

$dead_add_content .= ", ";

if($killer['monster_name'] != "")

$dead_add_content .= $killer['monster_name']." summoned by ";

if($killer['player_exists'] == 0)

$dead_add_content .= "<a href=\"index.php?subtopic=characters&name=".urlencode($killer['player_name'])."\">";

$dead_add_content .= $killer['player_name'];

if($killer['player_exists'] == 0)

$dead_add_content .= "</a>";

}

else

{

if($i == 1)

$dead_add_content .= "Died at level <b>".$death['level']."</b> by ";

else if($i == $count)

$dead_add_content .= " and by ";

else

$dead_add_content .= ", ";

$dead_add_content .= $killer['monster_name'];

}

if($i == $count)

$dead_add_content .= ".";

}

$dead_add_content .= "</td></tr>";

}

if($deads > 0)

$main_content .= '<TABLE BORDER=1 CELLSPACING=4 CELLPADDING=10 WIDTH=100%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=2 CLASS=white><B>Suas Mortes</B></TD></TR>' . $dead_add_content . '</TABLE><br />';

//end DEATHS

 

//frags list by Xampy

 

$frags_limit = 10; // frags limit to show? // default: 10

$player_frags = $SQL->query('SELECT `player_deaths`.*, `players`.`name`, `killers`.`unjustified` FROM `player_deaths` LEFT JOIN `killers` ON `killers`.`death_id` = `player_deaths`.`id` LEFT JOIN `player_killers` ON `player_killers`.`kill_id` = `killers`.`id` LEFT JOIN `players` ON `players`.`id` = `player_deaths`.`player_id` WHERE `player_killers`.`player_id` = '.$player->getId().' ORDER BY `date` DESC LIMIT 0,'.$frags_limit.';');

if(count($player_frags))

{

$frags = 0;

$frag_add_content .= '<TABLE BORDER=1 CELLSPACING=4 CELLPADDING=2 WIDTH=100%><br><TR BGCOLOR='.$config['site'][''].'><TD COLSPAN=2 CLASS=white><B>Suas Vítimas</B></TD></TR>';

foreach($player_frags as $frag)

{

$frags++;

if(is_int($number_of_rows / 2)) $bgcolor = $config['site']['']; else $bgcolor = $config['site'][''];

$number_of_rows++;

$frag_add_content .= "<tr bgcolor=\"".$bgcolor."\">

<td width=\"20%\" align=\"center\">".date("j M Y, H:i", $frag['date'])."</td>

<td>".(($player->getSex() == 0) ? 'She' : 'He')." fragged <a href='index.php?subtopic=characters&name=".$frag[name]."'>".$frag[name]."</a> at level ".$frag[level]."";

$frag_add_content .= ". (".(($frag[unjustified] == 0) ? "<font size=\"1\" color=\"green\">Justified</font>" : "<font size=\"1\" color=\"red\">Unjustified</font>").")</td></tr>";

}

if($frags >= 1)

$main_content .= $frag_add_content . '</TABLE>';

}

// end of frags list by Xampy

 

 

if(!$player->getHideChar()) {

$main_content .= '';

if($account->getRLName())

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR='.$config['site'][''].'><TD WIDTH=20%>Real Name:</TD><TD>'.$account->getRLName().'</TD></TR>';

}

if($account->getLocation())

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

$main_content .= '<TR BGCOLOR='.$config['site'][''].'><TD WIDTH=20%>Real Location:</TD><TD>'.$account->getLocation().'</TD></TR>';

}

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

 

if($account->getCreated())

{

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

 

}

if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['']; } else { $bgcolor = $config['site']['']; } $number_of_rows++;

 

;

$main_content .= ($account->getPlayerVip_Time()) ? '<b><font color="green"></font></b>' : '<b><font color="red"></font></b>';

if($account->isBanned())

if($account->getBanTime() > 0)

$main_content .= '<font color="red"> [banished until '.date("j F Y, G:i", $account->getBanTime()).']</font>';

else

$main_content .= '<font color="red"> [banished FOREVER]</font>';

$main_content .= '</TD></TR></TABLE>';

$main_content .= '<br><TABLE BORDER=1><TR><TD></TD></TR></TABLE><TABLE BORDER=1 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site'][''].'><TD COLSPAN=5 CLASS=white><B>Characters</B></TD></TR>

<TR BGCOLOR='.$config['site'][''].'><TD><B>Name</B></TD><TD><B>World</B></TD><TD><B>Level</B></TD><TD><b>Status</b></TD><TD><B>*</B></TD></TR>';

$account_players = $account->getPlayersList();

$account_players->orderBy('name');

$player_number = 0;

foreach($account_players as $player_list)

{

if(!$player_list->getHideChar())

{

$player_number++;

if(is_int($player_number / 2))

$bgcolor = $config['site'][''];

else

$bgcolor = $config['site'][''];

if(!$player_list->isOnline())

$player_list_status = '<font color="red">Offline</font>';

else

$player_list_status = '<font color="green">Online</font>';

$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD WIDTH=52%><NOBR>'.$player_number.'.*<a href="?subtopic=characters&name='.urlencode($player_list->getName()).'">'.$player_list->getName();

$main_content .= ($player_list->isDeleted()) ? '<font color="red"> [DELETED]</font>' : '';

$main_content .= '</NOBR></TD><TD WIDTH=15%>'.$config['site']['worlds'][$player_list->getWorld()].'</TD><TD WIDTH=25%>'.$player_list->getLevel().' '.$vocation_name[$player_list->getWorld()][$player_list->getPromotion()][$player_list->getVocation()].'</TD><TD WIDTH="8%"><b>'.$player_list_status.'</b></TD><TD><TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=characters" METHOD=post><TR><TD><INPUT TYPE=hidden NAME=name VALUE="'.$player_list->getName().'"><INPUT TYPE=image NAME="View '.$player_list->getName().'" ALT="View '.$player_list->getName().'" SRC="'.$layout_name.'/images/buttons/sbutton_view.gif" BORDER=1 WIDTH=120 HEIGHT=18></TD></TR></FORM></TABLE></TD></TR>';

}

}

$main_content .= '</TABLE></TD><TD><IMG SRC="'.$layout_name.'/images/general/blank.gif" WIDTH=10 HEIGHT=1 BORDER=1></TD></TR></TABLE>';

}

$main_content .= '<BR><BR><FORM ACTION="?subtopic=characters" METHOD=post><TABLE WIDTH=100% BORDER=1 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site'][''].'" CLASS=white><B>Procurar Jogardor</B></TD></TR><TR><TD BGCOLOR="'.$config['site'][''].'"><TABLE BORDER=1 CELLPADDING=1><TR><TD>Name:</TD><TD><INPUT NAME="name" VALUE=""SIZE=29 MAXLENGTH=29></TD><TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=1 WIDTH=120 HEIGHT=18></TD></TR></TABLE></TD></TR></TABLE></FORM>';

$main_content .= '</TABLE>';

}

else

$search_errors[] = 'Character <b>'.$name.'</b> does not exist.';

}

else

$search_errors[] = 'This name contains invalid letters. Please use only A-Z, a-z and space.';

if(!empty($search_errors))

{

$main_content .= '<div class="SmallBox" > <div class="MessageContainer" > <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="ErrorMessage" > <div class="BoxFrameVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div> <div class="BoxFrameVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div> <div class="AttentionSign" style="background-image:url('.$layout_name.'/images/content/attentionsign.gif);" /></div><b>The Following Errors Have Occurred:</b><br/>';

foreach($search_errors as $search_error)

$main_content .= '<li>'.$search_error;

$main_content .= '</div> <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> </div></div><br/>';

$main_content .= '<BR><FORM ACTION="?subtopic=characters" METHOD=post><TABLE WIDTH=100% BORDER=1 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site'][''].'" CLASS=white><B>Procurar Jogador</B></TD></TR><TR><TD BGCOLOR="'.$config['site'][''].'"><TABLE BORDER=1 CELLPADDING=1><TR><TD>Name:</TD><TD><INPUT NAME="name" VALUE=""SIZE=29 MAXLENGTH=29></TD><TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=1 WIDTH=120 HEIGHT=18></TD></TR></TABLE></TD></TR></TABLE></FORM>';

}

}

?>

 

Link para o comentário
Compartilhar em outros sites

O Primeiro Não èh Do Jeito Da Foto wacko.png E O Segundo Deu Esse Erro Ae Fatal error: Call to undefined method OTS_Account::getPlayerVip_Time() in C:\xampp\htdocs\characters.php on line 357

 

para arrumar isso roda isso na sua db no phpmyadmin na aba SQL

 

ALTER TABLE `accounts` ADD `vip_time` int(11) NOT NULL DEFAULT 0;

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...