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

Phps to modern aac!

lizudus

Www.Xivarian.Com Owner
Joined
May 14, 2008
Messages
456
Reaction score
5
Location
Milky Way,Earth,America Central,Costa rica, Heredi
First this one i try to use this but the webpage show absolutely WHITE!http://otland.net/f483/2-phps-gesior-modern-102397/?highlight=war+of+emperium

well this is my script

PHP:
<?PHP
require("config.php");
$ots = POT::getInstance();
$ots->connect(POT::DB_MYSQL, connection());
$SQL = $ots->getDBHandle();

$woe = $SQL->query("
	SELECT w.id AS id, w.time AS time, g.name AS guild, p.name AS name, w.started AS start, w.guild AS guild_id
		FROM woe AS w
	INNER JOIN players AS p
		ON p.id = w.breaker
	INNER JOIN guilds AS g
		ON g.id = w.guild
	ORDER BY id DESC LIMIT 10;	
");

foreach ($woe as $k=>$v) {
	$winners .="
		<TR BGCOLOR=\"".$config['site'][($k % 2 == 1 ? 'light' : 'dark').'border']."\">
			<TD>{$v[id]}</TD>
			<TD><a href='index.php?subtopic=guilds&action=show&guild=" . $v[guild_id] . "'>$v[guild]</a></TD>
			<TD>{$v[name]}</TD>
			<TD>" . date("d/m/y   H:i:s", $v[start]) . "</TD>
			<TD>" . date("d/m/y   H:i:s", $v[time]) . "</TD>
		</TR>
	";
}
echo '
<center><h1>War of Emperium</h1></center>
<br>
INFO HERE
';

if(!$winners) {
	echo '
		<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>
			<TR BGCOLOR="'.$config['site']['vdarkborder'].'">
				<TD CLASS=white>
					<B>Winners of WoE</B>
				</TD>
			</TR>
			<TR BGCOLOR='.$config['site']['darkborder'].'>
				<TD>
					no WoE in '.$config['server']['serverName'].' yet.
				</TD>
			</TR>
		</TABLE>
	';
} else {
	echo "
		<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%>
			<TR BGCOLOR=\"{$config['site']['vdarkborder']}\">
				<TD CLASS=white width=5%>
					<B>No.</B>
				</TD>
				<TD CLASS=white width=30%>
					<B>Winner guild</B>
				</TD>
				<TD CLASS=white width=25%>
					<B>Conquest by</B>
				</TD>
				<TD CLASS=white width=20%>
					<B>Start time</B>
				</TD>
				<TD CLASS=white width=20%>
					<B>Last conquest</B>
				</TD>
			</TR>
			$winners
		</TABLE>
	";
}
?>


and there is a way to get Power gamers and More players online for modern aac i use that i found in otland but it said to me many errors about undefined index or variables so, can someone to share with me exphist.php and onlinetime.php also buying war.php (elf)

and there is a way to get this??




PLEASE DONT POST IF YOU DONT WILL HELP ME! With f*c*ing stu*id replys
 
Last edited:
Lizudus, try this:

PHP:
 <?PHP 
require("config.php");
$ots = POT::getInstance();
$ots->connect(POT::DB_MYSQL, connection());
$SQL = $ots->getDBHandle();

$woe = $SQL->query(" 
    SELECT w.id AS id, w.time AS time, g.name AS guild, p.name AS name, w.started AS start, w.guild AS guild_id 
        FROM woe AS w 
    INNER JOIN players AS p 
        ON p.id = w.breaker 
    INNER JOIN guilds AS g 
        ON g.id = w.guild 
    ORDER BY id DESC LIMIT 10;     
"); 

foreach ($woe as $k=>$v) { 
    $winners .=" 
        <TR BGCOLOR=\"".$config['site'][($k % 2 == 1 ? 'light' : 'dark').'border']."\"> 
            <TD>{$v[id]}</TD> 
            <TD><a href='http://www.mtibia.cl/index.php/guilds/view/" . $v[guild_id] . "'>$v[guild]</a></TD> 
            <TD>{$v[name]}</TD> 
            <TD>" . date("d/m/y   H:i:s", $v[start]) . "</TD> 
            <TD>" . date("d/m/y   H:i:s", $v[time]) . "</TD> 
        </TR> 
    "; 
} 
echo ' 
<center><h1>War of Emperium</h1></center> 
<b><center>Que es WoE?<br/></b> 
<br/> 
WoE es la sigla que se le da al concepto War of Emperium.<br/> 
La idea original fue tomada desde un famoso juego RPG en linea (RO), por lo cual es posible que muchos ya tengan una idea de que es.<br/> 
<br/> 
<br/> 
<b>En que consiste?<br/></b> 
<br/> 
Primero si tienes guild, registrate usando el comando <strong>!guild</strong>.<br> 
Durante determinado tiempo (Actualmente son 40 minutos), las guilds participantes se enfrentan para tomar el control del castillo <b>Ruthenburg</b>.<br/> 
Despues de pasado este tiempo la guild que controle el castillo es la vencedora.<br/> 
<br/> 
<br/> 
<b>Como tomar el control del castillo?<br/></b> 
<br/> 
Dentro del castillo hay un <b>Emperium</b> Principal (Ubicado en el tercer piso), el cual debe ser protegido por la guild que gobierne el castillo, la mision de todas las demas guilds es destruir este <b>Emperium</b> para asi pasar a tomar control del castillo.<br/> 
Cada vez que es destruido uno nuevo aparece en su lugar, y todos los jugadores ajenos a la nueva guild gobernante son expulsados del castillo (si aun queda tiempo obviamente pueden volver).<br/> 
Si algun miembro de la guild gobernante destruye el <b>Emperium</b> la guild sera expulsada del castillo, y este pasara a control de nadie.<br/> 
<br/> 
<b>Que es un Emperium?</b><br/> 
<br/> 
El Emperium, no se mueve por lo cual siempre estara en el mismo lugar, tiene harta HP y se puede curar solo con UHs bajo unas formulas constantes dependiendo de la vocacion.<br/> 
<br/> 
<br/> 
<b>Beneficios?</b><br/> 
<br/> 
Actualmente no estan incorporados todos los beneficios.<br/> 
El beneficio mas importante que puedas obtener actualmente es <strong>+15% de exp rate a los miembros de la guild gobernante y para cada jugador de level 185+ recibira 200k.</strong>.<br/> 
<br/> 
<br/> 
<br/> 
<b>Extra</b> 
<br/> 
Durante WoE la guild gobernante del castillo puede usar los banners (banderas ubicadas en el castillo y templo) para tener acceso mas rapido al castillo.<br/> 
Ademas, al <strong>morir en plena WoE no perderas nada</strong>, ni skills, ni ml, ni items, ni exp, todo esta configurado para que sea un evento lo mas entretenido posible.<br/> 
En el tercer piso, cercano al Emperium principal hay una <b>palanca</b> la cual la puede jalar el guild leader de la guild gobernante del castillo, por un <b>coste de 500,000 gps convocaras 7 guardias para defender el castillo</b>, los cuales solo atacaran a aquellos que esten invadiendo al castillo y no a los miembros de la guild gobernante. Al morir estos guardias, deberas esperar 5 minutos para volver a convocarlos y volver a pagar 100,000 gps, y mientras esten vivos, no podras convocar mas guardias. Por otro lado, si una guild conquista el castillo, entonces los guardias desapareceran.<br/> 

<br/> 
<b>Pre-Empes y como llegar al tercer piso</b><br/> 
<br/> 
Para poder llegar al tercer piso primero necesitaran romper ambos Pre-Empes ubicados en el segundo piso, una ves destruidos los portales para acceso al tercer piso se abriran.<br/> 
<br/> 
<br/> 
<b>Comandos de utilidad durante WoE</b> 
<br/> 
<b>/woe info</b> Indica el tiempo restante de WoE, y quien gobierna actualmente el castillo.<br/> 
<br/> 
<b>!recall</b> Solo puede ser ejecutado por el lider de la guild y con itervalos de 5 minutos, teletransporta a todos los miembros de la guild online junto a el.<br/> 
<br/> 
<br><br/> 
<center><object width="425" height="350"><embed src="http://www.youtube.com/v/dYH0Quwxw-U" type="application/x-shockwave-flash" width="425" height="350"></embed></object></center><br> 

<br/> 
<br/><br> 
'; 

if(!$winners) { 
    echo ' 
        <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%> 
            <TR BGCOLOR="'.$config['site']['vdarkborder'].'"> 
                <TD CLASS=white> 
                    <B>Winners of WoE</B> 
                </TD> 
            </TR> 
            <TR BGCOLOR='.$config['site']['darkborder'].'> 
                <TD> 
                    There are no WoEs in '.$config['server']['serverName'].' yet. 
                </TD> 
            </TR> 
        </TABLE> 
    '; 
} else { 
    echo " 
        <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%> 
            <TR BGCOLOR=\"{$config['site']['vdarkborder']}\"> 
                <TD CLASS=white width=5%> 
                    <B>No.</B> 
                </TD> 
                <TD CLASS=white width=30%> 
                    <B>Winner guild</B> 
                </TD> 
                <TD CLASS=white width=25%> 
                    <B>Conquest by</B> 
                </TD> 
                <TD CLASS=white width=20%> 
                    <B>Start time</B> 
                </TD> 
                <TD CLASS=white width=20%> 
                    <B>Last conquest</B> 
                </TD> 
            </TR> 
            $winners 
        </TABLE> 
    "; 
} 
?>

And how to add a top 5 there, very easy http://otland.net/f118/modern-aac-creating-top-5-table-78754/

PS: That screen is from my website! Dx
www.mtibia.cl
 
I THINK I DONT GOT THE ENOUGHT VARIABLES AT CONFIG.PHP MAYBE?? http://xivarian.com//index.php/p/v/woe << White page using Kito2 Script and top 5 table i follow that guide before but when i do this

Add a line in your template file. Templates/templatename/index.tpl
PHP:
{include_php file='templates\Kavvson\topplayer.php'}
It might be like this

PHP:
<div class="top-box">
{include_php file='templates\Kavvson\css\topplayer.php'}            
</div>

The whole webpage is fucked up

BUT If i dont add this to index.tpl is at top of lates news
And i want like mtibia.cl xD! well kito2 try to answer me in msn xD!​
 
Back
Top