• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Highscores + Choose Vocation

AnimeX

New Member
Joined
Feb 23, 2016
Messages
8
Reaction score
0
I have this highscores php and I would like to add Choose Vocation like this site:
http://site.drugovich-global.com.br/?subtopic=highscores&list=experience&vocation=1

On my server 10 vocations for each character, wanted to know if you have as places to verify the name of the vocation. thus appears to prevent various vocation of the same name.

I am Brazilian to using google translator.

Here's my highscores :
<?PHP

$list = $_REQUEST['list'];$page = $_REQUEST['page'];
switch($list)
{
case "fist":$id = 0;$list_name = 'Fist Fighting';
break;
case "club":$id = 1;$list_name = 'Club Fighting';
break;
case "sword":$id = 2;$list_name = 'Sword Fighting';
break;
case "axe":$id = 3;$list_name = 'Axe Fighting';
break;
case "distance":$id = 4;$list_name = 'Distance Fighting';
break;
case "shield":$id = 5;$list_name = 'Shielding';
break;
case "fishing":$id = 6;$list_name = 'Fishing';
break;
}
if(!isset($id))
if($list == "magic")$list_name = "Magic Level";
else
{$list_name = 'Experience';$list = 'experience';
}
if(count($config['site']['worlds']) > 1)
{$worlds .= '<i>Select world:</i> ';
foreach($config['site']['worlds'] as $idd => $world_n)
{
if($idd == (int) $_GET['world'])
{$world_id = $idd;$world_name = $world_n;
}
}
}
if($idd == (int) $_GET['world'])
{$world_id = $idd;$world_name = $world_n;
}
if(!isset($world_id))
{$world_id = 0;$world_name = $config['server']['serverName'];
}$offset = $page * 100;
if(isset($id))$skills = $SQL->query('SELECT name,online,value,level,vocation,promotion FROM players,player_skills WHERE players.world_id = '.$world_id.' AND players.deleted = 0 AND players.group_id < '.$config['site']['players_group_id_block'].' AND players.id = player_skills.player_id AND player_skills.skillid = '.$id.' ORDER BY value DESC, count DESC LIMIT 101 OFFSET '.$offset);
elseif($list == "magic")$skills = $SQL->query('SELECT name,online,maglevel,level,vocation,promotion FROM players WHERE players.world_id = '.$world_id.' AND players.deleted = 0 AND players.group_id < '.$config['site']['players_group_id_block'].' AND name != "Account Manager" ORDER BY maglevel DESC, manaspent DESC LIMIT 101 OFFSET '.$offset);
elseif($list == "experience")$skills = $SQL->query('SELECT name,online,level,experience,vocation,promotion FROM players WHERE players.world_id = '.$world_id.' AND players.deleted = 0 AND players.group_id < '.$config['site']['players_group_id_block'].' AND name != "Account Manager" ORDER BY level DESC, experience DESC LIMIT 101 OFFSET '.$offset);//wyswietlanie wszystkiego$main_content .= '<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR><TD><IMG SRC="'.$layout_name.'/images/general/blank.gif" WIDTH=10 HEIGHT=1 BORDER=0></TD><TD><H2>Ranking for '.$list_name.' on '.$world_name.'</H2><BR>';$main_content .= '<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR><TD></TD><TD>
<FORM ACTION="?subtopic=highscores" METHOD=get><INPUT TYPE=hidden NAME=subtopic VALUE=highscores><INPUT TYPE=hidden NAME=list VALUE=experience>
<TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['vdarkborder'].'" CLASS=white><B>World Selection</B></TD></TR><TR><TD BGCOLOR="'.$config['site']['lightborder'].'">
<TABLE BORDER=0 CELLPADDING=1><TR><TD>World: </TD><TD><SELECT SIZE="1" NAME="world"><OPTION VALUE="" SELECTED>(choose world)</OPTION>';
foreach($config['site']['worlds'] as $id => $world_n)
{$main_content .= '<OPTION VALUE="'.$id.'">'.$world_n.'</OPTION>';
}$main_content .= '</SELECT> </TD><TD><INPUT TYPE=image NAME="Submit" ALT="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18>
</TD></TR></TABLE></TABLE></FORM></TABLE><br><br><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%></TABLE><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD WIDTH=10% CLASS=whites><B>Rank</B></TD><TD WIDTH=75% CLASS=whites><B>Name</B></TD><TD WIDTH=15% CLASS=whites><b><center>Level</center></B></TD>';
if($list == "experience")$main_content .= '<TD CLASS=whites><b><center>Points</center></B></TD>';$main_content .= '</TR><TR>';
foreach($skills as $skill)
{$player = $ots->createObject('Player');$player->find($skill['name']);$account = $player->getAccount();$ban = '';
if($account->isBanned())$ban = '<font color="red"> [Banished]</font>';
if($number_of_rows < 100)
{
if($list == "magic")$skill['value'] = $skill['maglevel'];
if($list == "experience")$skill['value'] = $skill['level'];
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>'.($offset + $number_of_rows).'.</td><td><a href="?subtopic=characters&name='.urlencode($skill['name']).'">'.($skill['online']>0 ? "<font color=\"green\">".$skill['name']."</font>" : "<font color=\"red\">".$skill['name']."</font>").'</a> '.$ban.'<br><small>'.$skill['level'].' '.$vocation_name[$world_id][$skill['promotion']][$skill['vocation']].'</small></td><td><center>'.$skill['value'].'</center></td>';
if($list == "experience")$main_content .= '<td><center>'.$skill['experience'].'</center></td>';$main_content .= '</tr>';
}
else$show_link_to_next_page = TRUE;
}$main_content .= '</TABLE><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%>';
if($page > 0)$main_content .= '<TR><TD WIDTH=100% ALIGN=right VALIGN=bottom><A HREF="?subtopic=highscores&list='.$list.'&page='.($page - 1).'" CLASS="size_xxs">Previous Page</A></TD></TR>';
if($show_link_to_next_page)$main_content .= '<TR><TD WIDTH=100% ALIGN=right VALIGN=bottom><A HREF="?subtopic=highscores&list='.$list.'&page='.($page + 1).'" CLASS="size_xxs">Next Page</A></TD></TR>';$main_content .= '</TABLE></TD><TD WIDTH=5%><IMG SRC="'.$layout_name.'/images/general/blank.gif" WIDTH=1 HEIGHT=1 BORDER=0></TD><TD WIDTH=15% VALIGN=top ALIGN=right><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD CLASS=whites><B>Choose a skill</B></TD></TR><TR BGCOLOR="'.$config['site']['lightborder'].'"><TD><A HREF="?subtopic=highscores&list=experience&world='.$world_id.'" CLASS="size_xs">Experience</A><BR><A HREF="?subtopic=highscores&list=magic&world='.$world_id.'" CLASS="size_xs">Magic</A><BR><A HREF="?subtopic=highscores&list=shield&world='.$world_id.'" CLASS="size_xs">Shielding</A><BR><A HREF="?subtopic=highscores&list=distance&world='.$world_id.'" CLASS="size_xs">Distance</A><BR><A HREF="?subtopic=highscores&list=club&world='.$world_id.'" CLASS="size_xs">Club</A><BR><A HREF="?subtopic=highscores&list=sword&world='.$world_id.'" CLASS="size_xs">Sword</A><BR><A HREF="?subtopic=highscores&list=axe&world='.$world_id.'" CLASS="size_xs">Axe</A><BR><A HREF="?subtopic=highscores&list=fist&world='.$world_id.'" CLASS="size_xs">Fist</A><BR><A HREF="?subtopic=highscores&list=fishing&world='.$world_id.'" CLASS="size_xs">Fishing</A><BR></TD></TR></TABLE></TD><TD><IMG SRC="'.$layout_name.'/images/general/blank.gif" WIDTH=10 HEIGHT=1 BORDER=0></TD></TR></TABLE>';?>
 
I don't know why they block the right click thing you can always just put this in front of the url to view the source of the page :p
Code:
view-source:

Ok so its a gesior template...
Code:
view-source:http://site.drugovich-global.com.br/?subtopic=highscores&list=experience&vocation=1
Here is your starting point.. work from there :)
HTML:
<table>
<tr>
<td valign="top"><h2>Choose Vocation:</h2></td>
<td valign="top">
<SCRIPT LANGUAGE="JavaScript">
function selecturl(s) {
    var gourl = s.options[s.selectedIndex].value;    window.top.location.href = gourl;
}
</SCRIPT>


<FORM>

<SELECT class="textbox" name="urljump" OnChange="selecturl(this)">
<OPTION VALUE="">->Sorcerer</OPTION>
<option value="?subtopic=highscores&list=experience&vocation=1">Sorcerer</option>
<option value="?subtopic=highscores&list=experience&vocation=2">Druid</option>
<option value="?subtopic=highscores&list=experience&vocation=3">Paladin</option>
<option value="?subtopic=highscores&list=experience&vocation=4">Knight</option>
<option value="?subtopic=highscores&list=experience&vocation=5">Master Sorcerer</option>
<option value="?subtopic=highscores&list=experience&vocation=6">Elder Druid</option>
<option value="?subtopic=highscores&list=experience&vocation=7">Royal Paladin</option>
<option value="?subtopic=highscores&list=experience&vocation=8">Elite Knight</option>
</SELECT>
</FORM>

</td>
</tr>
</table>
 
Last edited by a moderator:
Well this friend just missing that to complete my site. It is to add in my PHP.
If you are looking for someone to make this for you please post this on the request boards.
Asking to have something made is not what support is for.
 
up to trying to look like I left, but I do not know where to go

<?PHP

$page = $_REQUEST['page'];

$add = array("query" => "", "vocation" => "", "promotion" => "");

$type = (int) $_GET['type'];

if(in_array($_GET['vocation'], array(1, 2, 3, 4)))
$add['vocation'] = (int) $_GET['vocation'];

if(in_array($_GET['promotion'], array(0, 1)))
$add['promotion'] = (int) $_GET['promotion'];

if(!empty($add['vocation']))
{
$add['query'] = " AND `vocation` = ".$add['vocation'];
if(!empty($add['promotion']))
$add['query'] .= " AND `promotion` = ".$add['promotion'];
}
function getTimeInSmartFormat($param)
{
$string;
$param = (int) $param;
if ($param >= 60*60)
$string .= (int) ($param / (60*60)) .' h ';
$string .= (int) ($param % (60*60) / 60) .' m';
return $string;
}

function coloured_value($valuein)
{
$value2 = $valuein;
while(strlen($value2) > 3)
{
$value .= '.'.substr($value2, -3, 3);
$value2 = substr($value2, 0, strlen($value2)-3);
}
$value = $value2.$value;
if($valuein > 0)
return '+'.$value.'';
elseif($valuein < 0)
return ''.$value.'';
else
return ''.$value.'';
}
///Ilosc profesji
$all = $SQL->query('SELECT COUNT(*) FROM `players` WHERE `vocation`>0;')->fetch();
$vocs = array();
foreach($SQL->query('SELECT `vocation`, COUNT(`id`) AS `count` FROM `players` GROUP BY `vocation`') as $entry)
$vocs[$entry['vocation']] = $entry['count'];
///Ilosc profesji

if((int) $_GET['vocation'] == 1)
$voc1 = $config['site']['lightborder'];
else
$voc1 = $config['site']['darkborder'];


$main_content .= '
<center>
<table>
<tr>
<td valign="top"><h2>Choose Vocation:</h2></td>
<td valign="top">
<SCRIPT LANGUAGE="JavaScript">
function selecturl(s) {
var gourl = s.options[s.selectedIndex].value; window.top.location.href = gourl;
}
</SCRIPT>


<FORM>

<SELECT class="textbox" name="urljump" OnChange="selecturl(this)">
<OPTION VALUE="">->'.$vocs[$_GET['vocation']].'</OPTION>
<option value="?subtopic=highscores&list=magic&vocation=1">Sorcerer</option>
<option value="?subtopic=highscores&list=magic&vocation=2">Druid</option>
<option value="?subtopic=highscores&list=magic&vocation=3">Paladin</option>
<option value="?subtopic=highscores&list=magic&vocation=4">Knight</option>
<option value="?subtopic=highscores&list=magic&vocation=5">Master Sorcerer</option>
<option value="?subtopic=highscores&list=magic&vocation=6">Elder Druid</option>
<option value="?subtopic=highscores&list=magic&vocation=7">Royal Paladin</option>
<option value="?subtopic=highscores&list=magic&vocation=8">Elite Knight</option>
</SELECT>
</FORM>

</td>
</tr>
</table>

<center><h2>Best '.$vocs[$_GET['vocation']].' Players:</h2></center>
';

$main_content .= "<table style=\"width: 100%;\" cellpadding=\"4\" cellspacing=\"1\">";
$offset = $page * 100;
if($type == 8 || !$type)
$highscore = $SQL->query("SELECT `name`, `level`, `vocation`, `promotion`, `experience`, `online` FROM `players` WHERE `group_id` <= 3 AND `name` NOT LIKE '%Sample'".($add['query'] ? $add['query'] : "")." ORDER BY `level` DESC LIMIT 101 OFFSET ".$offset);
elseif($type == 9)
$highscore = $SQL->query("SELECT `name`, `level`, `maglevel`, `vocation`, `promotion`, `manaspent`, `online` FROM `players` WHERE `group_id` <= 3 AND `name` NOT LIKE '%Sample'".($add['query'] ? $add['query'] : "")." ORDER BY `maglevel` DESC, `manaspent` DESC LIMIT 101 OFFSET ".$offset);
elseif($type == 10)
$highscore = $SQL->query("SELECT `name`, `level`, `vocation`, `promotion`, `experience`, `online` FROM `players` WHERE `group_id` <= 3 AND `name` NOT LIKE '%Sample'".($add['query'] ? $add['query'] : "")." ORDER BY `experience` DESC LIMIT 101 OFFSET ".$offset);

else
$highscore = $SQL->query("SELECT `player_id`, `skillid`, `value`, `count` FROM `player_skills` WHERE `player_id` IN (SELECT `id` FROM `players` WHERE `group_id` <= 3 AND `name` NOT LIKE '%Sample'".($add['query'] ? $add['query'] : "").") AND `skillid` = ".(int) ($type - 1)." ORDER BY `value` DESC LIMIT 101 OFFSET ".$offset);

switch($type)
{
case 1:
$name = "Fist Fighting";
break;
case 2:
$name = "Club Fighting";
break;
case 3:
$name = "Sword Fighting";
break;
case 4:
$name = "Axe Fighting";
break;
case 5:
$name = "Distance Fighting";
break;
case 6:
$name = "Shielding";
break;
case 7:
$name = "Fishing";
break;
case 8:
$name = "Experience";
break;
case 9:
$name = "Magic Level";
break;

default:
$name = "Experience";

}

$count = 0;
if($highscore->rowCount() > 0)
{
$main_content .= '<TR background="images/tablebg1.png">
<td class=\"white\"><b>Rank</b></td>
<td class=\"white\"><b>Name</b></td>
';

if(in_array($type, array(1, 2, 3, 4, 5, 6, 7)))
$main_content .= "<td class=\"white\" align=\"center\"><b>Skill</b></td>";
elseif(in_array($type, array(8)) || !$type)
$main_content .= "
<td class='white'><b>Level</b></td>
<td class='white'><b>Experience</b></td>
<td class='white'><b>Status</b></td>
";


$main_content .= "</tr>";

foreach($highscore as $player)
{
if($count < 100)
{
if($player['online'] == 1)
$color = "green";
else
$color = "red";

if($type >= 1 && $type <= 7)
{
$tmp = new OTS_Player();
$tmp->load((int)$player['player_id']);
if($tmp->isLoaded())
{
$player['name'] = $tmp->getName();
$player['level'] = $tmp->getLevel();
$player['vocation'] = $tmp->getVocation();
$player['promotion'] = $tmp->getPromotion();
if($tmp->isOnline())
$player['status'] = "<font style=\"color: lime;\">Online</font>";
else
$player['status'] = "<font style=\"color: red;\">Offline</font>";
}
else
$player['name'] = "Fail'd @ loading.";

unset($tmp);
}


++$count;
$main_content .= '<TR background="' . (is_int($offset + $count / 2) ? $background="images/tablebg3.png" : $background="images/tablebg2.png"). '">';
$main_content .= "
<td width=\"5%\">".($offset + $count)."</td>
<td width=\"35%\"><a style=\"color: white; font-size: 11px; text-shadow: black 0.2em 0.2em 0.4em; text-decoration:none;\" href=\"?subtopic=characters&name=".$player['name']."\">".$player['name']."</a><br/></td>
";

if($type == 8 || empty($type))
$main_content .= "
<td width=\"10%\"><b>".$player['level']."</b></td>
<td width=\"35%\"><b>".$player['experience']."</b></td>
<td width=\"20%\"><b>".($entry['online']>0 ? "<font color=\"green\">Online</font>" : "<font color=\"red\">Offline</font>")."</b></td>
";
elseif($type == 9)
$main_content .= "<td><b>".$player['maglevel']."</b></td>";
elseif($type == 10)
{
$minus = $player['experience']-$player['exphist_lastexp'];
$main_content .= "<td style=\"text-align: center;\"><font color=\"".$color."\">".coloured_value($minus)."</font></td>";
}

else
$main_content .= "<td style=\"text-align: center;\"><b>".$player['value']."</b></td>";

$main_content .= "</tr>";
}
else
$show_link_to_next_page = TRUE;
}
}
else
$main_content .= "<tr style=\"background: ".$config['site']['darkborder'].";\"><td class=\"whites\" align=\"center\">No highscore at the moment.</td></tr>";

$main_content .= "</table>";

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


//link to previous page if actual page isn't first
if($page > 0) {
$main_content .= "<TR><TD WIDTH=100% ALIGN=right VALIGN=bottom><A HREF=\"?subtopic=highscores".($type >= 0 ? "&type=".$type : "").((int) $_GET['vocation'] ? "&vocation=".(int) $_GET['vocation'] : "").((int) $_GET['promotion'] ? "&promotion=".(int) $_GET['promotion'] : "")."&page=".($page - 1)."\" CLASS=\"size_xxs\">Previous Page</A></TD></TR>";
}
//link to next page if any result will be on next page
if($show_link_to_next_page) {
$main_content .= "<TR><TD WIDTH=100% ALIGN=right VALIGN=bottom><A HREF=\"?subtopic=highscores".($type >= 0 ? "&type=".$type : "").((int) $_GET['vocation'] ? "&vocation=".(int) $_GET['vocation'] : "").((int) $_GET['promotion'] ? "&promotion=".(int) $_GET['promotion'] : "")."&page=".($page + 1)."\" CLASS=\"size_xxs\">Next Page</A></TD></TR>";
}
//end of page
$main_content .= '</TABLE></TD>';
?>

it searches for the id of the vocation, I wanted to know if you have to search by name. because I use server dragon ball has many vocation only to a character
 
I have this highscores php and I would like to add Choose Vocation like this site:
http://site.drugovich-global.com.br/?subtopic=highscores&list=experience&vocation=1

On my server 10 vocations for each character, wanted to know if you have as places to verify the name of the vocation. thus appears to prevent various vocation of the same name.

I am Brazilian to using google translator.

Here's my highscores :
<?PHP

$list = $_REQUEST['list'];$page = $_REQUEST['page'];
switch($list)
{
case "fist":$id = 0;$list_name = 'Fist Fighting';
break;
case "club":$id = 1;$list_name = 'Club Fighting';
break;
case "sword":$id = 2;$list_name = 'Sword Fighting';
break;
case "axe":$id = 3;$list_name = 'Axe Fighting';
break;
case "distance":$id = 4;$list_name = 'Distance Fighting';
break;
case "shield":$id = 5;$list_name = 'Shielding';
break;
case "fishing":$id = 6;$list_name = 'Fishing';
break;
}
if(!isset($id))
if($list == "magic")$list_name = "Magic Level";
else
{$list_name = 'Experience';$list = 'experience';
}
if(count($config['site']['worlds']) > 1)
{$worlds .= '<i>Select world:</i> ';
foreach($config['site']['worlds'] as $idd => $world_n)
{
if($idd == (int) $_GET['world'])
{$world_id = $idd;$world_name = $world_n;
}
}
}
if($idd == (int) $_GET['world'])
{$world_id = $idd;$world_name = $world_n;
}
if(!isset($world_id))
{$world_id = 0;$world_name = $config['server']['serverName'];
}$offset = $page * 100;
if(isset($id))$skills = $SQL->query('SELECT name,online,value,level,vocation,promotion FROM players,player_skills WHERE players.world_id = '.$world_id.' AND players.deleted = 0 AND players.group_id < '.$config['site']['players_group_id_block'].' AND players.id = player_skills.player_id AND player_skills.skillid = '.$id.' ORDER BY value DESC, count DESC LIMIT 101 OFFSET '.$offset);
elseif($list == "magic")$skills = $SQL->query('SELECT name,online,maglevel,level,vocation,promotion FROM players WHERE players.world_id = '.$world_id.' AND players.deleted = 0 AND players.group_id < '.$config['site']['players_group_id_block'].' AND name != "Account Manager" ORDER BY maglevel DESC, manaspent DESC LIMIT 101 OFFSET '.$offset);
elseif($list == "experience")$skills = $SQL->query('SELECT name,online,level,experience,vocation,promotion FROM players WHERE players.world_id = '.$world_id.' AND players.deleted = 0 AND players.group_id < '.$config['site']['players_group_id_block'].' AND name != "Account Manager" ORDER BY level DESC, experience DESC LIMIT 101 OFFSET '.$offset);//wyswietlanie wszystkiego$main_content .= '<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR><TD><IMG SRC="'.$layout_name.'/images/general/blank.gif" WIDTH=10 HEIGHT=1 BORDER=0></TD><TD><H2>Ranking for '.$list_name.' on '.$world_name.'</H2><BR>';$main_content .= '<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR><TD></TD><TD>
<FORM ACTION="?subtopic=highscores" METHOD=get><INPUT TYPE=hidden NAME=subtopic VALUE=highscores><INPUT TYPE=hidden NAME=list VALUE=experience>
<TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['vdarkborder'].'" CLASS=white><B>World Selection</B></TD></TR><TR><TD BGCOLOR="'.$config['site']['lightborder'].'">
<TABLE BORDER=0 CELLPADDING=1><TR><TD>World: </TD><TD><SELECT SIZE="1" NAME="world"><OPTION VALUE="" SELECTED>(choose world)</OPTION>';
foreach($config['site']['worlds'] as $id => $world_n)
{$main_content .= '<OPTION VALUE="'.$id.'">'.$world_n.'</OPTION>';
}$main_content .= '</SELECT> </TD><TD><INPUT TYPE=image NAME="Submit" ALT="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18>
</TD></TR></TABLE></TABLE></FORM></TABLE><br><br><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%></TABLE><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD WIDTH=10% CLASS=whites><B>Rank</B></TD><TD WIDTH=75% CLASS=whites><B>Name</B></TD><TD WIDTH=15% CLASS=whites><b><center>Level</center></B></TD>';
if($list == "experience")$main_content .= '<TD CLASS=whites><b><center>Points</center></B></TD>';$main_content .= '</TR><TR>';
foreach($skills as $skill)
{$player = $ots->createObject('Player');$player->find($skill['name']);$account = $player->getAccount();$ban = '';
if($account->isBanned())$ban = '<font color="red"> [Banished]</font>';
if($number_of_rows < 100)
{
if($list == "magic")$skill['value'] = $skill['maglevel'];
if($list == "experience")$skill['value'] = $skill['level'];
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>'.($offset + $number_of_rows).'.</td><td><a href="?subtopic=characters&name='.urlencode($skill['name']).'">'.($skill['online']>0 ? "<font color=\"green\">".$skill['name']."</font>" : "<font color=\"red\">".$skill['name']."</font>").'</a> '.$ban.'<br><small>'.$skill['level'].' '.$vocation_name[$world_id][$skill['promotion']][$skill['vocation']].'</small></td><td><center>'.$skill['value'].'</center></td>';
if($list == "experience")$main_content .= '<td><center>'.$skill['experience'].'</center></td>';$main_content .= '</tr>';
}
else$show_link_to_next_page = TRUE;
}$main_content .= '</TABLE><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%>';
if($page > 0)$main_content .= '<TR><TD WIDTH=100% ALIGN=right VALIGN=bottom><A HREF="?subtopic=highscores&list='.$list.'&page='.($page - 1).'" CLASS="size_xxs">Previous Page</A></TD></TR>';
if($show_link_to_next_page)$main_content .= '<TR><TD WIDTH=100% ALIGN=right VALIGN=bottom><A HREF="?subtopic=highscores&list='.$list.'&page='.($page + 1).'" CLASS="size_xxs">Next Page</A></TD></TR>';$main_content .= '</TABLE></TD><TD WIDTH=5%><IMG SRC="'.$layout_name.'/images/general/blank.gif" WIDTH=1 HEIGHT=1 BORDER=0></TD><TD WIDTH=15% VALIGN=top ALIGN=right><TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD CLASS=whites><B>Choose a skill</B></TD></TR><TR BGCOLOR="'.$config['site']['lightborder'].'"><TD><A HREF="?subtopic=highscores&list=experience&world='.$world_id.'" CLASS="size_xs">Experience</A><BR><A HREF="?subtopic=highscores&list=magic&world='.$world_id.'" CLASS="size_xs">Magic</A><BR><A HREF="?subtopic=highscores&list=shield&world='.$world_id.'" CLASS="size_xs">Shielding</A><BR><A HREF="?subtopic=highscores&list=distance&world='.$world_id.'" CLASS="size_xs">Distance</A><BR><A HREF="?subtopic=highscores&list=club&world='.$world_id.'" CLASS="size_xs">Club</A><BR><A HREF="?subtopic=highscores&list=sword&world='.$world_id.'" CLASS="size_xs">Sword</A><BR><A HREF="?subtopic=highscores&list=axe&world='.$world_id.'" CLASS="size_xs">Axe</A><BR><A HREF="?subtopic=highscores&list=fist&world='.$world_id.'" CLASS="size_xs">Fist</A><BR><A HREF="?subtopic=highscores&list=fishing&world='.$world_id.'" CLASS="size_xs">Fishing</A><BR></TD></TR></TABLE></TD><TD><IMG SRC="'.$layout_name.'/images/general/blank.gif" WIDTH=10 HEIGHT=1 BORDER=0></TD></TR></TABLE>';?>


Each caracter have 10 vocations? Wow... O_O he is a elder druid vip plus mega hard? hahaha omg.
Well, I can help u...

The last Gesior have this option kid! Vocation=NUM in GET /REQUEST php.
Download here.

And if you want start learn english in Brazil: click here.
 
Last edited:
Each caracter have 10 vocations? Wow... O_O he is a elder druid vip plus mega hard? hahaha omg.
Well, I can help u...

The last Gesior have this option kid! Vocation=NUM in GET /REQUEST php.
Download here.

And if you want start learn english in Brazil: click here.


Yes, each character of my server 10 vocation to make your transformation.
 
Back
Top