• 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!

[Gesior ACC] Server Info

Kask

Banned User
Joined
Jan 3, 2008
Messages
376
Reaction score
1
Welcome today i make a simple script with idea of [Gesior AAC] Commands from Archez and update by Me(Kargen).

Preview Photo:
serverinfo.jpg


Go to htdocs/gesiorAcc/serverinfo.php, open and replace all with next code:
PHP:
<?php
$main_content .= '<table border="0" cellspacing="1" cellpadding="4" width="100%">
<tr bgcolor='.$config['site']['vdarkborder'].'>
<td colspan="2"><b><center>Server Information</center></b></td>
</td align="right"></td></tr>';
        $number_of_stages = 0;
        $stagesLevel = $config['site']['stageLevel'];
        foreach ($stagesLevel as $stagelevel => $desc) {
                        if(is_int($number_of_stages / 2))
                    $bgcolor = $config['site']['darkborder'];
                else
                    $bgcolor = $config['site']['lightborder'];
        $number_of_stages++;
		$magic = $config['site']['sInfoMagic'];
		$skills = $config['site']['sInfoSkill'];
		$loot = $config['site']['sInfoLoot'];
		$about = $config['site']['aboutServer'];
        $main_content .= '<tr bgcolor="'.$bgcolor.'">
		<td width="'.$config['site']['serverInfo_width'].'%"><center><b>From Level To Level</b>&nbsp;=&nbsp;'.$stagelevel.'</center></td>
		</tr><tr><td><center>'.$desc.'</center></td></tr>';
        }
		$main_content .= '<tr bgcolor="'.$config['site']['lightborder'].'">
		<td width="100%"><center><b>Magic Rate</b>&nbsp;=&nbsp;'.$magic.'</td></tr>
		<tr bgcolor="'.$config['site']['darkborder'].'">
		<td width="100%"><center><b>Skills Rate</b>&nbsp;=&nbsp;'.$skills.'</td></tr>
		<tr bgcolor="'.$config['site']['lightborder'].'">
		<td width="100%"><center><b>Loot Rate</b>&nbsp;=&nbsp;'.$loot.'</td></tr></table><br>
		<table border="0" cellspacing="1" cellpadding="4" width="100%">
<tr bgcolor='.$config['site']['vdarkborder'].'>
<td colspan="2"><b><center>About Server</center></b></td>
</td align="right"></td></tr><tr bgcolor="'.$config['site']['darkborder'].'">
<td width="100%"><center>'.$about.'</center></td>';
				 $main_content .= '</table><br>';

$main_content .= '<table border="0" cellspacing="1" cellpadding="4" width="100%">
<tr bgcolor='.$config['site']['vdarkborder'].'>
<td colspan="2"><b><center>Player Commands</center></b></td>
</td align="right"></td></tr>';
        $number_of_commands = 0;
        $commands = $config['site']['commands'];
        foreach ($commands as $command => $use) {
                        if(is_int($number_of_commands / 2))
                    $bgcolor = $config['site']['darkborder'];
                else
                    $bgcolor = $config['site']['lightborder'];
        $number_of_commands++;
        $main_content .= '<tr bgcolor="'.$bgcolor.'"><td width="'.$config['site']['serverInfo_width'].'%">'.$command.'</td><td>'.$use.'</td></tr>';
        }
        $main_content .= '</table>';
		
?>
after your replace it, go to htdocs/config/config.php and paste this:
PHP:
// Created by Kargen(ServerInfo/StagesLevel) & Archez (Player Commands and Idea)
$config['site']['serverInfo_width'] = '15'; // from 0% to 100% (recommended: 15)
$config['site']['aboutServer'] = '
- 24 Hours Fast Dedicated Server<br>
- 35+ Quests!<br>
- 500+ Houses<br>
'; // - New Line<br> (Use if your want make a new line "<br>")
$config['site']['commands'] = array(
  '!save' => 'Save your character so you avoid items or level loss.',
  '!buypremium' => 'Buy 30 days of premium time.',
  '!hunt' => 'Spend some cash with a nice amount for a frag.'
); // 'command' => 'description',
  /* Stage Level */
$config['site']['stageLevel'] = array(
  /* From Level To Level */
  '1-50' => 
  '50x',
  '50-100' => 
  '35x',
  '100~' => 
  '15x'
);/* 'stages Level' => 'ExpRate', */
$config['site']['sInfoMagic'] = '9x';
$config['site']['sInfoSkill'] = '17x';
$config['site']['sInfoLoot'] ='2.5x';

Sorry for my bad english, REP+http://otland.net/reputation.php?p=744974/ if you like this SCRIPT :D
FOR WHOS PUBLIC IN ANOTHERS PAGES, dont forgot credits from Creators :)

Bye :D
 
Last edited by a moderator:
Updated htdocs/serverinfo.php. Kargen's request.
 
sorry for double post...
my noob code D:
PHP:
<?PHP
$file = $config['site']['server_path'].'/data/XML/stages.xml'; // stage.xml location
$worlds = array ( "Server1", "Server2" ); // If server dont have multiworld system - add only 1 server name ; )

$load_file = @simplexml_load_file($file);
    if($load_file){
        if ($load_file->world){
            for($w=0; $w<=count($load_file->world)-1; $w++){
            $stages = $load_file->world[$w]->stage;
			$main_content .= '<table border="0" cellspacing="1" cellpadding="4" width="100%"><tr bgcolor='.$config['site']['vdarkborder'].'><td colspan="2"><b>
			<center>Stages on '.($worlds[$w]?$worlds[$w]:'Unnamed Server').'</center></b></td></td></td></tr>';
                for($i=0; $i<=count($stages)-1; $i++){
                    $main_content .= "<tr bgcolor='".$config['site']['lightborder']."'><td width='15'><center>From Level ".$stages[$i]["minlevel"]."".($stages[$i]["maxlevel"]?" to ".$stages[$i]["maxlevel"]:"+")." = <b>".$stages[$i]["multiplier"]."x</b><br>";
					$main_content .= '</td></tr>';
				}
            $main_content .= "<br></table>";
            }
        }else{
        $stages = $load_file->stage;
		$main_content .= '<table border="0" cellspacing="1" cellpadding="4" width="100%"><tr bgcolor='.$config['site']['vdarkborder'].'><td colspan="2"><b>
		<center>Stages on '.($worlds[0]?$worlds[0]:'Unnamed Server').'</b></td></td align="right"></td></tr>';
            for($i=0; $i<=count($stages)-1; $i++){
                $main_content .= "<tr bgcolor='".$config['site']['lightborder']."'>From Level ".$stages[$i]["minlevel"]."".($stages[$i]["maxlevel"]?" to ".$stages[$i]["maxlevel"]:"+")." = <b>".$stages[$i]["multiplier"]."x</b><br></table>";
				$main_content .= '</td></tr>';
			}
        }
    }else{
        $main_content .= "Cannot load stages.XML";
    }
	$main_content .= '<table border="0" cellspacing="1" cellpadding="4" width="100%"><tr bgcolor='.$config['site']['vdarkborder'].'><td colspan="2"><b>
			<center>Information</center></b></td></td></td></tr>';
	
	$main_content .= "<tr bgcolor='".$config['site']['lightborder']."'><td width='15'><center>
	Magic Rate = <b>".round($config['server']['rateMagic'])."x</b></td></tr>";
	$main_content .= "<tr bgcolor='".$config['site']['lightborder']."'><td width='15'><center>
	Experience Rate = <b>".round($config['server']['rateExperience'])."x</b></td></tr>";
	$main_content .= "<tr bgcolor='".$config['site']['lightborder']."'><td width='15'><center>
	Loot Rate = <b>".round($config['server']['rateLoot'])."x</b></td></tr>";
	$main_content .= '</td></tr><br>';
	$main_content .= '</table>';
	$main_content .= '<br><table border="0" cellspacing="1" cellpadding="4" width="100%">
	<tr bgcolor='.$config['site']['vdarkborder'].'>
	<td colspan="2"><b><center>Player Commands</center></b></td>
	</td align="right"></td></tr>';
        $number_of_commands = 0;
        $commands = $config['site']['commands'];
        foreach ($commands as $command => $use) {
                        if(is_int($number_of_commands / 2))
                    $bgcolor = $config['site']['darkborder'];
                else
                    $bgcolor = $config['site']['lightborder'];
        $number_of_commands++;
        $main_content .= '<tr bgcolor="'.$bgcolor.'"><td width="'.$config['site']['serverInfo_width'].'%">'.$command.'</td><td>'.$use.'</td></tr>';
        }
        $main_content .= '</table>';
?>

and in config.php
PHP:
// PLAYER COMMANDS by  ARCHEZ
$config['site']['commands_width'] = '15'; // from 0% to 100% (recommended: 15)
$config['site']['commands'] = array(
  '!save' => 'Save your character so you avoid items or level loss.',
  '!buypremium' => 'Buy 30 days of premium time.',
  '!hunt' => 'Spend some cash with a nice amount for a frag.'
  ); // 'command' => 'description',
// PLAYER COMMANDS by ARCHEZ
 
:S... jealous why? i got a nice idea and you only want f... me? bah
on code:

nice code :)
 
i dont f*ck you :) i only show you how to make things easier.. and also you can learn some php..
 
more views and not more comments and rep+! :( anyone dont like my working?
 
i use this:
PHP:
<?PHP
if($action == "") {
$main_content .= '

<TABLE BGCOLOR='.$config['site']['darkborder'].' BORDER=0 CELLPADDING=2 CELLSPACING=1 WIDTH=100%>
<TR BGCOLOR='.$config['site']['vdarkborder'].'><TD CLASS=white COLSPAN=5><B>Server Information</B></TD></TR>
<TR><TD><TABLE BORDER=0 CELLPADDING=2 CELLSPACING=1 WIDTH=100%>
<TR BGCOLOR='.$config['site']['vdarkborder'].'><TD CLASS=white COLSPAN=5><B>Stage Information</B></TD></TR>
<TR><TD><TABLE BORDER=0 CELLPADDING=2 CELLSPACING=1 WIDTH=100%>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD><B>Level</B></TD><TD><B>Experience</B></TD></TR>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD>1 - 50</TD><TD>150x</TD></TR>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD>51 - 100</TD><TD>100x</TD></TR>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD>101 - 150</TD><TD>50x</TD></TR>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD>151 - 200</TD><TD>30x</TD></TR>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD>201 - 250</TD><TD>15x</TD></TR>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD>251 - 300</TD><TD>8x</TD></TR>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD>301+</TD><TD>5x</TD></TR>
</TR>
</TABLE></TD></TR>
</TABLE>

<TABLE BGCOLOR='.$config['site']['darkborder'].' BORDER=0 CELLPADDING=2 CELLSPACING=1 WIDTH=100%>
<TR BGCOLOR='.$config['site']['vdarkborder'].'><TD CLASS=white COLSPAN=5><B>Rate Information</B></TD></TR>
<TR><TD><TABLE BORDER=0 CELLPADDING=2 CELLSPACING=1 WIDTH=100%>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD><B>Rate</B></TD><TD><B>Information</B></TD></TR>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD>Protecion Level</TD><TD>50</TD></TR>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD>Skill</TD><TD>35x</TD></TR>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD>Magic</TD><TD>25x</TD></TR>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD>Loot</TD><TD>3x</TD></TR>
</TABLE></TD></TR>
</TABLE>

<TABLE BGCOLOR='.$config['site']['darkborder'].' BORDER=0 CELLPADDING=2 CELLSPACING=1 WIDTH=100%>
<TR BGCOLOR='.$config['site']['vdarkborder'].'><TD CLASS=white COLSPAN=5><B>Frags System</B></TD></TR>
<TR><TD><TABLE BORDER=0 CELLPADDING=2 CELLSPACING=1 WIDTH=100%>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD><B>Type</B></TD><TD><B>Time</B></TD><TD><B>Frags</B></TD></TR>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD>RedSkull</TD><TD>1 Day</TD><TD>4</TD></TR>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD>RedSkull</TD><TD>1 Week</TD><TD>10</TD></TR>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD>RedSkull</TD><TD>1 Month</TD><TD>15</TD></TR>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD>BlackSkull</TD><TD>1 Day</TD><TD>6</TD></TR>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD>BlackSkull</TD><TD>1 Week</TD><TD>12</TD></TR>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD>BlackSkull</TD><TD>1 Month</TD><TD>18</TD></TR>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD>Banishment</TD><TD>1 Day</TD><TD>15</TD></TR>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD>Banishment</TD><TD>1 Week</TD><TD>20</TD></TR>
<TR BGCOLOR='.$config['site']['lightborder'].'><TD>Banishment</TD><TD>1 Month</TD><TD>25</TD></TR>
</TABLE></TD></TR>
</TABLE>

</TD>
<TD></TD>
</TR></TABLE>
</TD>
<TD></TD>
</TR></TABLE><br>
<br>

';
}
?>
serverinfo.jpg

and it looks nice :D
 
Back
Top