Файл: orden.php
Строк: 502
<?
define('PROTECTOR', 1);
include('files/db.php');
include($path.'files/auth.php');
if ($user_id==0){
header('location: index.php');exit;
}
$textl='знамя';
include($path.'files/core.php');
$mobs1=mysql_query("SELECT * FROM `arena_usr` WHERE `usr`='".$udata['id']."'");
$rows1=mysql_num_rows($mobs1);
if($rows1!=0)
{
header('location: arena.php');exit;
}
$mobs2=mysql_query("SELECT * FROM `avan_usr` WHERE `usr`='".$udata['id']."'");
$rows2=mysql_num_rows($mobs2);
if($rows2!=0)
{
header('location: avan.php');exit;
}
$mobs3=mysql_query("SELECT * FROM `battle` WHERE `usr`='".$udata['id']."'");
$rows3=mysql_num_rows($mobs3);
if($rows3!=0)
{
header('location: battle.php');exit;
}
$mobs4=mysql_query("SELECT * FROM `ohota` WHERE `usr`='".$udata['id']."'");
$rows4=mysql_num_rows($mobs4);
if($rows4!=0)
{
header('location: b_oh.php');exit;
}
$mobs5=mysql_query("SELECT * FROM `okr_usr` WHERE `usr`='".$udata['id']."'");
$rows5=mysql_num_rows($mobs5);
if($rows5!=0)
{
header('location: b_okr.php');exit;
}
$mobs6=mysql_query("SELECT * FROM `str_usr` WHERE `usr`='".$udata['id']."'");
$rows6=mysql_num_rows($mobs6);
if($rows6!=0)
{
header('location: b_str.php');exit;
}
$mobs7=mysql_query("SELECT * FROM `terr_usr` WHERE `usr`='".$udata['id']."'");
$rows7=mysql_num_rows($mobs7);
if($rows7!=0)
{
header('location: terr_b.php');exit;
}
if(isset($_GET['stats']))
{
if($udata['skill']==0)
{
header('location: ?');exit;
}
else
{
if($_POST['stat']=='')
{
header('location: ?');exit;
}
else
{
$mobs=mysql_query("SELECT * FROM `item` WHERE `usr`='".$udata['id']."' and `tip`='orden'");
$avto=mysql_fetch_array($mobs);
if($avto['lvl']==0)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==1)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==2)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==3)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
$arm=$avto['arm']+15;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
$arm=$avto['arm']+15;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."', `arm`='".$arm."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==4)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==5)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==6)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==7)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
$arm=$avto['arm']+15;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
$arm=$avto['arm']+15;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."', `arm`='".$arm."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==8)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==9)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==10)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==11)
{
if($_POST['stat']=='1')
{
$hp=$avto['krit']+1;
$sila=$avto['blok']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['krit']+0;
$sila=$avto['blok']+1;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `krit`='".$hp."', `blok`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==12)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==13)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==14)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==15)
{
if($_POST['stat']=='1')
{
$hp=$avto['krit']+1;
$sila=$avto['blok']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['krit']+0;
$sila=$avto['blok']+1;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `krit`='".$hp."', `blok`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==16)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==17)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==18)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==19)
{
if($_POST['stat']=='1')
{
$hp=$avto['krit']+1;
$sila=$avto['blok']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['krit']+0;
$sila=$avto['blok']+1;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `krit`='".$hp."', `blok`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==20)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==21)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==22)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==23)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==24)
{
if($_POST['stat']=='1')
{
$hp=$avto['krit']+2;
$sila=$avto['blok']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['krit']+0;
$sila=$avto['blok']+2;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `krit`='".$hp."', `blok`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==25)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==26)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==27)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==28)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+5;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==29)
{
if($_POST['stat']=='1')
{
$hp=$avto['krit']+3;
$sila=$avto['blok']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['krit']+0;
$sila=$avto['blok']+3;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `krit`='".$hp."', `blok`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==30)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+10;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+10;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==31)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+10;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+10;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==32)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+10;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+10;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==33)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+10;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+10;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==34)
{
if($_POST['stat']=='1')
{
$hp=$avto['krit']+3;
$sila=$avto['blok']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['krit']+0;
$sila=$avto['blok']+3;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `krit`='".$hp."', `blok`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==35)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+10;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+10;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==36)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+10;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+10;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==37)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+20;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+20;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==38)
{
if($_POST['stat']=='1')
{
$hp=$avto['hp']+25;
$sila=$avto['sila']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['hp']+0;
$sila=$avto['sila']+25;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `hp`='".$hp."', `sila`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
if($avto['lvl']==39)
{
if($_POST['stat']=='1')
{
$hp=$avto['krit']+5;
$sila=$avto['blok']+0;
}
if($_POST['stat']=='2')
{
$hp=$avto['krit']+0;
$sila=$avto['blok']+5;
}
$lvl=$avto['lvl']+1;
mysql_query("UPDATE `item` SET `lvl`='".$lvl."', `krit`='".$hp."', `blok`='".$sila."' WHERE `id`='".$avto['id']."'");
$skill=$udata['skill']-1;
mysql_query("UPDATE `users` SET `skill`='".$skill."' WHERE `id`='".$udata['id']."'");
}
header('location: ?');exit;
}
}
}
include($path.'files/head.php');
include($path.'files/zag.php');
echo '<table width=100%>
<tr>
<td width=35%>
<a href=game.php><div style="background: #882222; border-radius: 7px 0 0 7px" class="m p bts bbs brs bls" align=center>Главная</div></a>
</td><td>';
echo '<a href=?><div class="line bts brs bls bbs p m" style="border-radius: 0 7px 7px 0">
<font color=#ffffff>Знамя
</font>
</div></a></td></tr></table>';
echo '<div class="bat bts brs bls bbs p">';
if($udata['kv']==26)
{
mysql_query("UPDATE `users` SET `kv`='27' WHERE `id`='".$udata['id']."'");
}
$mobs=mysql_query("SELECT * FROM `item` WHERE `usr`='".$udata['id']."' and `tip`='orden'");
$avto=mysql_fetch_array($mobs);
echo '<img src=img/arm/orden/1.jpg><br>
<img src=img/main/p21.png> Уровень знамя: '.$avto['lvl'].'<br>
<img src=img/main/p21.png> Свободных свойств: '.$udata['skill'].'<br>
<img src=img/main/p21.png> Описание: <font color=#00ff00>знамя - ваша наградная лента, которая отображает ваш статус и
позволяет получать бонусы за каждый уровень ранга.</font>
';
echo '</div></div><div class="v8"><div class="line bbs m bts brs bls b p v12">свойства знамя</div><div class="bat bts brs bls bbs p t1">';
if($udata['skill']==0)
{
echo '<font color=#ff0000>нет свободных свойств</font>';
}
else
{
if($avto['lvl']==0)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==1)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==2)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==3)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5 <img src=img/main/p2.png>+15<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5 <img src=img/main/p2.png>+15<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==4)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==5)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==6)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==7)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5 <img src=img/main/p2.png>+15<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5 <img src=img/main/p2.png>+15<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==8)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==9)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==10)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==11)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/b2.png>+1%<br>
<input type=radio name=stat value=2> <img src=img/main/b23.png>+1%<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==12)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==13)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==14)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==15)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/b2.png>+1%<br>
<input type=radio name=stat value=2> <img src=img/main/b23.png>+1%<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==16)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==17)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==18)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==19)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/b2.png>+1%<br>
<input type=radio name=stat value=2> <img src=img/main/b23.png>+1%<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==20)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==21)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==22)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==23)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==24)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/b2.png>+2%<br>
<input type=radio name=stat value=2> <img src=img/main/b23.png>+2%<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==25)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==26)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==27)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==28)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+5<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+5<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==29)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/b2.png>+3%<br>
<input type=radio name=stat value=2> <img src=img/main/b23.png>+3%<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==30)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+10<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+10<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==31)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+10<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+10<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==32)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+10<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+10<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==33)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+10<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+10<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==34)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/b2.png>+3%<br>
<input type=radio name=stat value=2> <img src=img/main/b23.png>+3%<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==35)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+10<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+10<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==36)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+10<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+10<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==37)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+20<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+20<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==38)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/p3.png>+25<br>
<input type=radio name=stat value=2> <img src=img/main/p1.png>+25<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
if($avto['lvl']==39)
{
echo '<form action=?stats method=POST>
<input type=radio name=stat value=1> <img src=img/main/b2.png>+5%<br>
<input type=radio name=stat value=2> <img src=img/main/b23.png>+5%<br>
<input class="line" type="submit" value="Продолжить" /></form>
';
}
}
echo '</div></div>';
include('files/down.php');
?>