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

Lottery status on webside.

Backy

Vivere militare est
Joined
Feb 25, 2009
Messages
157
Reaction score
2
Location
P(r)oland/Sanok
Hello

I will share with our forum members.
This is a little better, than new window lottery on web.
You can put it to layout.php on righ or left side of webside.

This is screen how it's look.
thourialottery.jpg



Here is code

Code:
<?PHP
$lottery = $SQL->query('SELECT id, name, item, world_id FROM lottery WHERE world_id = 0 ORDER BY id DESC LIMIT 1;');
foreach($lottery as $lotter) {
$lotteryy .= '<div class="men_bel">Loteria!</div><div class="men_bor">
[COLOR="Green"]Co kazde 3 godziny serwer wybiera z graczy online zwyciezce ktory otrzyma 100k[/COLOR]<br/><br />
[COLOR="Red"]Ostatni zwycięzca[/COLOR]: <a href="?subtopic=characters&name='.urlencode($lotter['name']).'">'.$lotter['name'].'</a><br />[COLOR="Red"]Gratulujemy![/COLOR]<br /><br /></div>';
}

echo "$lotteryy"; 
?>

Here is something like this :
Always per 3 hours, server will choose winner from online players who will recive 100k

Last winner
Congratulations!

I know its not very hard to make it, but someone who dont know how to make it just coppy it :)

How its look in real look on page :

Thouria.pl


Thanks.
 
Awesome dude, thought you should translate it to Enlgish since this isn't the polish part of the forum, but anyways we could just translate it ourselves =)
 
Code:
<?PHP
$lottery = $SQL->query('SELECT id, name, item, world_id FROM lottery WHERE world_id = 0 ORDER BY id DESC LIMIT 1;');
foreach($lottery as $lotter) {
$lotteryy .= '<div class="men_bel">Lottery!</div><div class="men_bor">
[COLOR="Green"]Every X hours server will choose player who will win a prize.[/COLOR]<br/><br />
[COLOR="Red"]Last Winner is :[/COLOR]: <a href="?subtopic=characters&name='.urlencode($lotter['name']).'">'.$lotter['name'].'</a><br />[COLOR="Red"]Congratulations![/COLOR]<br /><br /></div>';
}

echo "$lotteryy"; 
?>

Here we go :)
Translated
 
PHP:
<?PHP
$hours = X hours
$lottery = $SQL->query('SELECT id, name, item, world_id FROM lottery WHERE world_id = 0 ORDER BY id DESC LIMIT 1;');
foreach($lottery as $lotter) {
$lotteryy .= '<div class="men_bel">Lottery!</div><div class="men_bor">
Every $hours server will choose player who will win a prize.<br/><br />
Last Winner is :: <a href="?subtopic=characters&name='.urlencode($lotter['name']).'">'.$lotter['name'].'</a><br />Congratulations!<br /><br /></div>';
}

echo "$lotteryy"; 
?>
 
Back
Top