Вход Регистрация
Файл: l2ps_v5/vesh.php
Строк: 182
<?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{
include_once
"files/up.php";
if(
$udata37!=""){echo"Вы не в городе."; include_once"files/down.php";exit;}
switch(@
$go) {
default:
if(
$udata20=="Town of Gludio"){
echo
'<img src="l2pic/vopros.gif" alt="pic"/><a href="questi.php?&go=quest2"><font color=gold> Задание</a></font><br/>';}
echo
"
<img src='l2pic/point/point.gif' alt='pic'/><a href="
vesh.php?&go=pokypka&vid=elic">Элексиры</a></br>

<img src='l2pic/ss/9-1.gif' alt='pic'/><a href="
vesh.php?&go=pokypka&vid=soski">Soulshot|Spiritshots</a></br>";

echo
"<hr><li><a href="shop.php?">К Магазинам</a><br>";
echo
"<hr><li><a href="gorod.php?">В центр города</a><br>";

break;

case 
'pokypka':
if(
$vid=="riba"){
$vesh mysql_query("SELECT * from `drop_vesh` where `vesh4`='Наживка'  ");
if (
mysql_affected_rows()==0)
{
echo 
"Вешей нет";
}
else
{
while(
$row=mysql_fetch_array($vesh))
{

$startan $_GET['startan'];

$row[vesh1]=number_format($row[vesh1]);


if(
$rows[vesh4]=="Удочка"){echo"<img src='pic/uda.jpg' alt='pic'/> ";}
if(
$row[vesh4]=="Lesser Healing Potion"){echo"<img src='pic/beginnerpotion.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Healing Potion"){echo"<img src='l2pic/beginnerpotion.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Red Potion"){echo"<img src='l2pic/Red Potion.jpg' alt='pic'/>";}
if(
$row[vesh4]=="MP Potion"){echo"<img src='pic/manapotion.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Greater MP Potion"){echo"<img src='pic/manadrug.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Soulshot"){echo"<img src='pic/soulshotng-grade.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Spiritshots"){echo"<img src='pic/spiritshotng-grade.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Scroll: Armor"){echo"<img src='pic/scrollenchantarmor.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Scroll: Weapon"){echo"<img src='pic/scrollenchantweapon.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Blessed Scroll: Armor"){echo"<img src='pic/blessedarmor.png' alt='pic'/>";}
if(
$row[vesh4]=="Blessed Scroll: Weapon"){echo"<img src='pic/blessed.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Наживка"){echo"<img src='pic/lure.jpg' alt='pic'/>";}
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="byvesh.php?id=$row[id]">$row[vesh4] $crystal_type</a>[$row[vesh1] <img src='l2pic/money/aden.gif' alt='pic'/> аден ]<br/>";
}
}
}else
if(
$vid=="soski"){
$vesh mysql_query("SELECT * from `drop_vesh` where `vesh4`='Soulshot' or `vesh4`='Spiritshots' ");
if (
mysql_affected_rows()==0)
{
echo 
"Вешей нет";
}
else
{
while(
$row=mysql_fetch_array($vesh))
{

$startan $_GET['startan'];

$row[vesh1]=number_format($row[vesh1]);



if(
$rows[vesh4]=="Удочка"){echo"<img src='pic/uda.jpg' alt='pic'/> ";}
if(
$row[vesh4]=="Lesser Healing Potion"){echo"<img src='pic/beginnerpotion.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Healing Potion"){echo"<img src='l2pic/beginnerpotion.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Red Potion"){echo"<img src='l2pic/Red Potion.jpg' alt='pic'/>";}
if(
$row[vesh4]=="MP Potion"){echo"<img src='pic/manapotion.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Greater MP Potion"){echo"<img src='pic/manadrug.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Soulshot"){echo"<img src='pic/soulshotng-grade.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Spiritshots"){echo"<img src='pic/spiritshotng-grade.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Scroll: Armor"){echo"<img src='pic/scrollenchantarmor.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Scroll: Weapon"){echo"<img src='pic/scrollenchantweapon.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Blessed Scroll: Armor"){echo"<img src='pic/blessedarmor.png' alt='pic'/>";}
if(
$row[vesh4]=="Blessed Scroll: Weapon"){echo"<img src='pic/blessed.jpg' alt='pic'/>";}
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="byvesh.php?id=$row[id]">$row[vesh4] $crystal_type</a>[$row[vesh1] <img src='l2pic/money/aden.gif' alt='pic'/> аден ]<br/>";
}
}
}elseif(
$vid=="scr121ol"){
$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[vesh4]=="Healing Potion"){echo"<img src='pic/beginnerpotion.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Greater Healing Potion"){echo"<img src='pic/beginnerpotion.jpg' alt='pic'/>";}
if(
$row[vesh4]=="MP Potion"){echo"<img src='pic/manapotion.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Greater MP Potion"){echo"<img src='pic/manadrug.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Soulshot"){echo"<img src='pic/soulshotng-grade.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Spiritshots"){echo"<img src='pic/spiritshotng-grade.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Scroll: Armor"){echo"<img src='pic/scrollenchantarmor.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Scroll: Weapon"){echo"<img src='pic/scrollenchantweapon.jpg' alt='pic'/>";}
if(
$row[vesh4]=="Blessed Scroll: Armor"){echo"<img src='pic/blessedarmor.png' alt='pic'/>";}
if(
$row[vesh4]=="Blessed Scroll: Weapon"){echo"<img src='pic/blessed.jpg' alt='pic'/>";}
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="byvesh.php?id=$row[id]">$row[vesh4] $crystal_type</a>[$row[vesh1] <img src='l2pic/money/aden.gif' alt='pic'/> аден ]<br/>";
}
}}elseif(
$vid=="arrow"){
$vesh mysql_query("SELECT * from `drop_vesh` where `vesh4`='Wooden Arrow' or `vesh4`='Bone Arrow' or `vesh4`='Fine Steel Arrow' or `vesh4`='Silver Arrow' or `vesh4`='Mithril Arrow' or `vesh4`='Shining Arrow' 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[vesh4]=="Wooden Arrow"){echo"<img src='l2pic/arrow/Wooden Arrow.png' alt='pic'/>";}
if(
$row[vesh4]=="Bone Arrow"){echo"<img src='l2pic/arrow/Bone Arrow.png' alt='pic'/>";}
if(
$row[vesh4]=="Fine Steel Arrow"){echo"<img src='l2pic/arrow/Fine Steel Arrow.png' alt='pic'/>";}
if(
$row[vesh4]=="Silver Arrow"){echo"<img src='l2pic/arrow/Silver Arrow.png' alt='pic'/>";}
if(
$row[vesh4]=="Mithril Arrow"){echo"<img src='l2pic/arrow/Mithril Arrow.png' alt='pic'/>";}
if(
$row[vesh4]=="Shining Arrow"){echo"<img src='l2pic/arrow/Shining Arrow.png' alt='pic'/>";}
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="byvesh.php?id=$row[id]">$row[vesh4] $crystal_type</a>[$row[vesh1] <img src='l2pic/money/aden.gif' alt='pic'/> аден ]<br/>";
}
}

}elseif(
$vid=="elic"){
$vesh mysql_query("SELECT * from `drop_vesh` where `vesh4`='Healing Potion' or `vesh4`='Lesser Healing Potion' or `vesh4`='Red Potion' or `vesh4`='Mana Drug' ");
if (
mysql_affected_rows()==0)
{
echo 
"Вешей нет";
}
else
{
while(
$row=mysql_fetch_array($vesh))
{

$startan $_GET['startan'];

$row[vesh1]=number_format($row[vesh1]);

if(
$row[vesh4]=="Lesser Healing Potion"){echo"<img src='l2pic/point/LesserHealingPotion.png' alt='pic'/>";}
if(
$row[vesh4]=="Healing Potion"){echo"<img src='l2pic/point/HealingPotion.png' alt='pic'/>";}
if(
$row[vesh4]=="Red Potion"){echo"<img src='l2pic/point/RedPotion.png' alt='pic'/>";}
if(
$row[vesh4]=="Mana Drug"){echo"<img src='l2pic/point/manadrug.jpg' alt='pic'/>";}
echo
" <a href="byvesh.php?id=$row[id]">$row[vesh4] </a>($row[vesh6]) [$row[vesh1] <img src='l2pic/money/aden.gif' alt='pic'/> аден ]<br/>";
}
}
}
break;
}
}

include_once
"files/down.php";
?>
Онлайн: 1
Реклама