Вход Регистрация
Файл: l2ps_v5/mamon.php
Строк: 40
<?php
include_once("files/zag.php");
include_once(
"files/ini.php");
$polz=mysql_query("SELECT * FROM `users` WHERE `udata0`='$log' AND `udata1`='$pas' LIMIT 1");
if(
mysql_num_rows($polz)==0){

header ("Location: index.php?error");
echo
'<div class="p">Ошибка! Пользователь с таким логином и паролем не зарегистрирован, или пароль/логин неверен! <a href="index.php">На главную</a><br>';exit;

}else{

if(
$udata37!=""){echo"Вы не в городе."; include_once"files/down.php";exit;}
switch(
$go) {

default:
$time=date("H:i");
if(
$time>="00:00" && $time<="00:30" or $time>="01:00" && $time<="01:30" or $time>="02:00" && $time<="02:30" or $time>="03:00" && $time<="03:30" or $time>="04:00" && $time<="04:30" or $time>="05:00" && $time<="05:30" or $time>="06:00" && $time<="06:30" or $time>="07:00" && $time<="07:30" or $time>="08:00" && $time<="08:30" or $time>="09:00" && $time<="09:30" or $time>="10:00" && $time<="10:30" or $time>="11:00" && $time<="11:30" or $time>="12:00" && $time<="12:30" or $time>="13:00" && $time<="13:30" or $time>="14:00" && $time<="14:30" or $time>="15:00" && $time<="15:30" or $time>="16:00" && $time<="16:30" or $time>="17:00" && $time<="17:30" or $time>="18:00" && $time<="18:30" or $time>="19:00" && $time<="19:30" or $time>="20:00" && $time<="20:30" or $time>="21:00" && $time<="21:30" or $time>="22:00" && $time<="22:30" or $time>="23:00" && $time<="23:30"){
echo
"<b>Мамон печати</b><br/>
Здраствуй 
$log!<br/>
В период действия печати, в некрополях случайным образом появляюсь Я, у меня за Ancient Adena можно купить редкие вещи!<br><br/>"
;

echo
"<img src='l2pic/point/point.gif' alt='pic'/><a href="mamon.php?&go=to4ki"> Свитки</a><br/>";
}else{
echo
"Мамон исчез...";}
break;
case 
'to4ki':
$time=date("H:i");
if(
$time>="00:00" && $time<="00:30" or $time>="01:00" && $time<="01:30" or $time>="02:00" && $time<="02:30" or $time>="03:00" && $time<="03:30" or $time>="04:00" && $time<="04:30" or $time>="05:00" && $time<="05:30" or $time>="06:00" && $time<="06:30" or $time>="07:00" && $time<="07:30" or $time>="08:00" && $time<="08:30" or $time>="09:00" && $time<="09:30" or $time>="10:00" && $time<="10:30" or $time>="11:00" && $time<="11:30" or $time>="12:00" && $time<="12:30" or $time>="13:00" && $time<="13:30" or $time>="14:00" && $time<="14:30" or $time>="15:00" && $time<="15:30" or $time>="16:00" && $time<="16:30" or $time>="17:00" && $time<="17:30" or $time>="18:00" && $time<="18:30" or $time>="19:00" && $time<="19:30" or $time>="20:00" && $time<="20:30" or $time>="21:00" && $time<="21:30" or $time>="22:00" && $time<="22:30" or $time>="23:00" && $time<="23:30"){
echo
"<b>Scrolls</b> | <a href="mamon.php?go=bless">Blessed Scrolls</a><br/>";
$vesh mysql_query("SELECT * from `drop_vesh` where `vesh4`='Scroll: Weapon' or `vesh4`='Scroll: Armor' ORDER BY `id` ASC ");
if (
mysql_affected_rows()==0)
{
echo 
"Вешей нет";
}
else
{
while(
$row=mysql_fetch_array($vesh))
{

$startan $_GET['startan'];

$row[vesh1]=number_format($row[vesh1]);
if(
$row[vesh6]=="d"){$pic="<img src='l2pic/to4ka/D.gif' alt='pic'/>";}
if(
$row[vesh6]=="c"){$pic="<img src='l2pic/to4ka/C.jpg' alt='pic'/>";}
if(
$row[vesh6]=="b"){$pic="<img src='l2pic/to4ka/B.jpg' alt='pic'/>";}
if(
$row[vesh6]=="a"){$pic="<img src='l2pic/to4ka/A.jpg' alt='pic'/>";}
if(
$row[vesh6]=="s"){$pic="<img src='l2pic/to4ka/S.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Scroll: Armor"){echo"$pic";}
if(
$row[vesh6]=="d"){$pic2="<img src='l2pic/to4ka/WD.gif' alt='pic'/>";}
if(
$row[vesh6]=="c"){$pic2="<img src='l2pic/to4ka/WC.jpg' alt='pic'/>";}
if(
$row[vesh6]=="b"){$pic2="<img src='l2pic/to4ka/WB.jpg' alt='pic'/>";}
if(
$row[vesh6]=="a"){$pic2="<img src='l2pic/to4ka/WA.jpg' alt='pic'/>";}
if(
$row[vesh6]=="s"){$pic2="<img src='l2pic/to4ka/WS.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Scroll: Weapon"){echo"$pic2";}
if(
$row[vesh6]=="none"){$crystal_type="NG";}
if(
$row[vesh6]=="d"){$crystal_type="D";}
if(
$row[vesh6]=="c"){$crystal_type="C";}
if(
$row[vesh6]=="b"){$crystal_type="B";}
if(
$row[vesh6]=="a"){$crystal_type="A";}
if(
$row[vesh6]=="s"){$crystal_type="S";}
echo
" <a href="bym.php?id=$row[id]">$row[vesh4] </a>Грейд: $crystal_type</a> [$row[vesh1] <img src='l2pic/money/aa.png' alt='pic'/> Античных Аден ]<br/>";
}
}
}else{
echo
"Мамон исчез...";}
break;
case 
'bless':
$time=date("H:i");
if(
$time>="00:00" && $time<="00:30" or $time>="01:00" && $time<="01:30" or $time>="02:00" && $time<="02:30" or $time>="03:00" && $time<="03:30" or $time>="04:00" && $time<="04:30" or $time>="05:00" && $time<="05:30" or $time>="06:00" && $time<="06:30" or $time>="07:00" && $time<="07:30" or $time>="08:00" && $time<="08:30" or $time>="09:00" && $time<="09:30" or $time>="10:00" && $time<="10:30" or $time>="11:00" && $time<="11:30" or $time>="12:00" && $time<="12:30" or $time>="13:00" && $time<="13:30" or $time>="14:00" && $time<="14:30" or $time>="15:00" && $time<="15:30" or $time>="16:00" && $time<="16:30" or $time>="17:00" && $time<="17:30" or $time>="18:00" && $time<="18:30" or $time>="19:00" && $time<="19:30" or $time>="20:00" && $time<="20:30" or $time>="21:00" && $time<="21:30" or $time>="22:00" && $time<="22:30" or $time>="23:00" && $time<="23:30"){
echo
"<a href="mamon.php?go=to4ki">Scrolls</a> | <b>Blessed Scrolls</b><br/>";
$vesh mysql_query("SELECT * from `drop_vesh` where `vesh4`='Blessed Scroll: Weapon' or `vesh4`='Blessed Scroll: Armor' ORDER BY `id` ASC ");
if (
mysql_affected_rows()==0)
{
echo 
"Вешей нет";
}
else
{
while(
$row=mysql_fetch_array($vesh))
{

$startan $_GET['startan'];

$row[vesh1]=number_format($row[vesh1]);
if(
$row[vesh6]=="d"){$pic="<img src='l2pic/to4ka/BlesD.gif' alt='pic'/>";}
if(
$row[vesh6]=="c"){$pic="<img src='l2pic/to4ka/BlesC.jpg' alt='pic'/>";}
if(
$row[vesh6]=="b"){$pic="<img src='l2pic/to4ka/BlesB.jpg' alt='pic'/>";}
if(
$row[vesh6]=="a"){$pic="<img src='l2pic/to4ka/BlesA.jpg' alt='pic'/>";}
if(
$row[vesh6]=="s"){$pic="<img src='l2pic/to4ka/BlesS.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Blessed Scroll: Armor"){echo"$pic";}
if(
$row[vesh6]=="d"){$pic2="<img src='l2pic/to4ka/WBlesD.gif' alt='pic'/>";}
if(
$row[vesh6]=="c"){$pic2="<img src='l2pic/to4ka/WBlesC.jpg' alt='pic'/>";}
if(
$row[vesh6]=="b"){$pic2="<img src='l2pic/to4ka/WBlesB.jpg' alt='pic'/>";}
if(
$row[vesh6]=="a"){$pic2="<img src='l2pic/to4ka/WBlesA.jpg' alt='pic'/>";}
if(
$row[vesh6]=="s"){$pic2="<img src='l2pic/to4ka/WBlesS.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Blessed Scroll: Weapon"){echo"$pic2";}
if(
$row[vesh6]=="d"){$crystal_type="D";}
if(
$row[vesh6]=="c"){$crystal_type="C";}
if(
$row[vesh6]=="b"){$crystal_type="B";}
if(
$row[vesh6]=="a"){$crystal_type="A";}
if(
$row[vesh6]=="s"){$crystal_type="S";}
echo
" <a href="bym.php?id=$row[id]">$row[vesh4]</a> Грейд: $crystal_type</a> [$row[vesh1] <img src='l2pic/money/aa.png' alt='pic'/> Античных Аден ]<br/>";
}
}
}else{
echo
"Мамон исчез...";}
break;

}
}
echo
"<hr><li><a href="gorod.php?">В центр города</a><br>";
include_once
"files/down.php";
?>
Онлайн: 1
Реклама