Files
game/modules_data/titul.php
T
2022-06-07 00:30:34 +03:00

1040 lines
47 KiB
PHP

<?
echo "
<script language='JavaScript'>
var elem = document.getElementById('se-pre-con');
elem.parentNode.removeChild(elem);
</script>
";
if(!defined('GAME'))
{
die();
}
$sunduk1="i/titul/nagr1.gif";
$sunduk2="i/titul/nagr2.gif";
$sunduk3="i/titul/nagr3.gif";
$sunduk4="i/titul/nagr4.gif";
$sunduk5="i/titul/nagr5.gif";
$ai=$u->achivInf($u->info['id'],1);
if (isset($_GET['nagr']))
{
//бабка задание zb
if ($_GET['nagr']==11 && $ai['klaszb']>$ai['zb_n'] && $ai['zb_n']==0){
$u->rangup($u->info['id'],1,'zb');
$ai['zb_n']=1;
$i=0;
$colvo=5;
while($i<$colvo)
{
$u->addItem(10020,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Жетон успеха X'.$colvo;
}elseif($_GET['nagr']==12 && $ai['klaszb']>$ai['zb_n'] && $ai['zb_n']==1){
$u->rangup($u->info['id'],2,'zb');
$ai['zb_n']=2;
$i=0;
$colvo=20;
while($i<$colvo)
{
$u->addItem(10020,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Жетон успеха X'.$colvo;
}elseif($_GET['nagr']==13 && $ai['klaszb']>$ai['zb_n'] && $ai['zb_n']==2){
$u->rangup($u->info['id'],3,'zb');
$ai['zb_n']=3;
$i=0;
$colvo=40;
while($i<$colvo)
{
$u->addItem(10020,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Жетон успеха X'.$colvo;
}elseif($_GET['nagr']==14 && $ai['klaszb']>$ai['zb_n'] && $ai['zb_n']==3){
$u->rangup($u->info['id'],4,'zb');
$ai['zb_n']=4;
$i=0;
$colvo=60;
while($i<$colvo)
{
$u->addItem(10020,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Жетон успеха X'.$colvo;
}elseif($_GET['nagr']==15 && $ai['klaszb']>$ai['zb_n'] && $ai['zb_n']==4){
$u->rangup($u->info['id'],5,'zb');
$ai['zb_n']=5;
$i=0;
$colvo=100;
while($i<$colvo)
{
$u->addItem(10020,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Жетон успеха X'.$colvo;
}
//Хаот задание vx
elseif ($_GET['nagr']==21 && $ai['klasvx']>$ai['vx_n'] && $ai['vx_n']==0){
$u->rangup($u->info['id'],1,'vx');
$ai['vx_n']=1;
mysql_query('UPDATE `users` SET `money2` = (`money2` + 25) WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$nagrtxt='За выполненное достижение, Вы получили 25 екр.';
}elseif($_GET['nagr']==22 && $ai['klasvx']>$ai['vx_n'] && $ai['vx_n']==1){
$u->rangup($u->info['id'],2,'vx');
$ai['vx_n']=2;
mysql_query('UPDATE `users` SET `money2` = (`money2` + 50) WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$nagrtxt='За выполненное достижение, Вы получили 50 екр.';
}elseif($_GET['nagr']==23 && $ai['klasvx']>$ai['vx_n'] && $ai['vx_n']==2){
$u->rangup($u->info['id'],3,'vx');
$ai['vx_n']=3;
mysql_query('UPDATE `users` SET `money2` = (`money2` + 75) WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$nagrtxt='За выполненное достижение, Вы получили 75 екр.';
}elseif($_GET['nagr']==24 && $ai['klasvx']>$ai['vx_n'] && $ai['vx_n']==3){
$u->rangup($u->info['id'],4,'vx');
$ai['vx_n']=4;
mysql_query('UPDATE `users` SET `money2` = (`money2` + 100) WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$nagrtxt='За выполненное достижение, Вы получили 100 екр.';
}elseif($_GET['nagr']==25 && $ai['klasvx']>$ai['vx_n'] && $ai['vx_n']==4){
$u->rangup($u->info['id'],5,'vx');
$ai['vx_n']=5;
mysql_query('UPDATE `users` SET `money2` = (`money2` + 200) WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$nagrtxt='За выполненное достижение, Вы получили 200 екр.';
}
//Сундуки трупожора snt 10/15/20/25/50
elseif ($_GET['nagr']==31 && $ai['klassnt']>$ai['snt_n'] && $ai['snt_n']==0){
$u->rangup($u->info['id'],1,'snt');
$ai['snt_n']=1;
mysql_query('UPDATE `users` SET `money2` = (`money2` + 10) WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$nagrtxt='За выполненное достижение, Вы получили 10 екр.';
}elseif($_GET['nagr']==32 && $ai['klassnt']>$ai['snt_n'] && $ai['snt_n']==1){
$u->rangup($u->info['id'],2,'snt');
$ai['snt_n']=2;
mysql_query('UPDATE `users` SET `money2` = (`money2` + 25) WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$nagrtxt='За выполненное достижение, Вы получили 25 екр.';
}elseif($_GET['nagr']==33 && $ai['klassnt']>$ai['snt_n'] && $ai['snt_n']==2){
$u->rangup($u->info['id'],3,'snt');
$ai['snt_n']=3;
mysql_query('UPDATE `users` SET `money2` = (`money2` + 50) WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$nagrtxt='За выполненное достижение, Вы получили 50 екр.';
}elseif($_GET['nagr']==34 && $ai['klassnt']>$ai['snt_n'] && $ai['snt_n']==3){
$u->rangup($u->info['id'],4,'snt');
$ai['snt_n']=4;
mysql_query('UPDATE `users` SET `money2` = (`money2` + 75) WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$nagrtxt='За выполненное достижение, Вы получили 75 екр.';
}elseif($_GET['nagr']==35 && $ai['klassnt']>$ai['snt_n'] && $ai['snt_n']==4){
$u->rangup($u->info['id'],5,'snt');
$ai['snt_n']=5;
mysql_query('UPDATE `users` SET `money2` = (`money2` + 200) WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$nagrtxt='За выполненное достижение, Вы получили 200екр.';
}
//Руны 8 лвл. rp 5/10/15/20/25
elseif ($_GET['nagr']==41 && $ai['klasrp']>$ai['rp_n'] && $ai['rp_n']==0){
$u->rangup($u->info['id'],1,'rp');
$ai['rp_n']=1;
$i=0;
$colvo=5;
while($i<$colvo)
{
$u->addItem(10038,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Плохие Заготовки X'.$colvo;
}elseif($_GET['nagr']==42 && $ai['klasrp']>$ai['rp_n'] && $ai['rp_n']==1){
$u->rangup($u->info['id'],2,'rp');
$ai['rp_n']=2;
$i=0;
$colvo=7;
while($i<$colvo)
{
$u->addItem(10038,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Плохие Заготовки X'.$colvo;
}elseif($_GET['nagr']==43 && $ai['klasrp']>$ai['rp_n'] && $ai['rp_n']==2){
$u->rangup($u->info['id'],3,'rp');
$ai['rp_n']=3;
$i=0;
$colvo=10;
while($i<$colvo)
{
$u->addItem(10038,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Плохие Заготовки X'.$colvo;
}elseif($_GET['nagr']==44 && $ai['klasrp']>$ai['rp_n'] && $ai['rp_n']==3){
$u->rangup($u->info['id'],4,'rp');
$ai['rp_n']=4;
$i=0;
$colvo=12;
while($i<$colvo)
{
$u->addItem(10038,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Плохие Заготовки X'.$colvo;
}elseif($_GET['nagr']==45 && $ai['klasrp']>$ai['rp_n'] && $ai['rp_n']==4){
$u->rangup($u->info['id'],5,'rp');
$ai['rp_n']=5;
$i=0;
$colvo=15;
while($i<$colvo)
{
$u->addItem(10038,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Плохие Заготовки X'.$colvo;
}
//Руны 9 лвл. rn 5/10/20/40/60
elseif ($_GET['nagr']==51 && $ai['klasrn']>$ai['rn_n'] && $ai['rn_n']==0){
$u->rangup($u->info['id'],1,'rn');
$ai['rn_n']=1;
$i=0;
$colvo=5;
while($i<$colvo)
{
$u->addItem(10039,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Нормальные заготовки X'.$colvo;
}elseif($_GET['nagr']==52 && $ai['klasrn']>$ai['rn_n'] && $ai['rn_n']==1){
$u->rangup($u->info['id'],2,'rn');
$ai['rn_n']=2;
$i=0;
$colvo=7;
while($i<$colvo)
{
$u->addItem(10039,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Нормальные заготовки X'.$colvo;
}elseif($_GET['nagr']==53 && $ai['klasrn']>$ai['rn_n'] && $ai['rn_n']==2){
$u->rangup($u->info['id'],3,'rn');
$ai['rn_n']=3;
$i=0;
$colvo=9;
while($i<$colvo)
{
$u->addItem(10039,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Нормальные заготовки X'.$colvo;
}elseif($_GET['nagr']==54 && $ai['klasrn']>$ai['rn_n'] && $ai['rn_n']==3){
$u->rangup($u->info['id'],4,'rn');
$ai['rn_n']=4;
$i=0;
$colvo=12;
while($i<$colvo)
{
$u->addItem(10039,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Нормальные заготовки X'.$colvo;
}elseif($_GET['nagr']==55 && $ai['klasrn']>$ai['rn_n'] && $ai['rn_n']==4){
$u->rangup($u->info['id'],5,'rn');
$ai['rn_n']=5;
$i=0;
$colvo=15;
while($i<$colvo)
{
$u->addItem(10039,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Нормальные заготовки X'.$colvo;
}
//Руны 10 лвл. rb 2/4/6/10/15
elseif ($_GET['nagr']==61 && $ai['klasrb']>$ai['rb_n'] && $ai['rb_n']==0){
$u->rangup($u->info['id'],1,'rb');
$ai['rb_n']=1;
$i=0;
$colvo=2;
while($i<$colvo)
{
$u->addItem(10040,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Идеальные заготовки X'.$colvo;
}elseif($_GET['nagr']==62 && $ai['klasrb']>$ai['rb_n'] && $ai['rb_n']==1){
$u->rangup($u->info['id'],2,'rb');
$ai['rb_n']=2;
$i=0;
$colvo=4;
while($i<$colvo)
{
$u->addItem(10040,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Идеальные заготовки X'.$colvo;
}elseif($_GET['nagr']==63 && $ai['klasrb']>$ai['rb_n'] && $ai['rb_n']==2){
$u->rangup($u->info['id'],3,'rb');
$ai['rb_n']=3;
$i=0;
$colvo=6;
while($i<$colvo)
{
$u->addItem(10040,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Идеальные заготовки X'.$colvo;
}elseif($_GET['nagr']==64 && $ai['klasrb']>$ai['rb_n'] && $ai['rb_n']==3){
$u->rangup($u->info['id'],4,'rb');
$ai['rb_n']=4;
$i=0;
$colvo=10;
while($i<$colvo)
{
$u->addItem(10040,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Идеальные заготовки X'.$colvo;
}elseif($_GET['nagr']==65 && $ai['klasrb']>$ai['rb_n'] && $ai['rb_n']==4){
$u->rangup($u->info['id'],5,'rb');
$ai['rb_n']=5;
$i=0;
$colvo=15;
while($i<$colvo)
{
$u->addItem(10040,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Идеальные заготовки X'.$colvo;
}
//Героик pg 10/20/40/60/80
elseif ($_GET['nagr']==71 && $ai['klaspg']>$ai['pg_n'] && $ai['pg_n']==0){
$u->rangup($u->info['id'],1,'pg');
$ai['pg_n']=1;
$i=0;
$colvo=10;
while($i<$colvo)
{
$u->addItem(10020,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Жетон Успеха X'.$colvo;
}elseif($_GET['nagr']==72 && $ai['klaspg']>$ai['pg_n'] && $ai['pg_n']==1){
$u->rangup($u->info['id'],2,'pg');
$ai['pg_n']=2;
$i=0;
$colvo=20;
while($i<$colvo)
{
$u->addItem(10020,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Жетон Успеха X'.$colvo;
}elseif($_GET['nagr']==73 && $ai['klaspg']>$ai['pg_n'] && $ai['pg_n']==2){
$u->rangup($u->info['id'],3,'pg');
$ai['pg_n']=3;
$i=0;
$colvo=40;
while($i<$colvo)
{
$u->addItem(10020,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Жетон Успеха X'.$colvo;
}elseif($_GET['nagr']==74 && $ai['klaspg']>$ai['pg_n'] && $ai['pg_n']==3){
$u->rangup($u->info['id'],4,'pg');
$ai['pg_n']=4;
$i=0;
$colvo=60;
while($i<$colvo)
{
$u->addItem(10020,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Жетон Успеха X'.$colvo;
}elseif($_GET['nagr']==75 && $ai['klaspg']>$ai['pg_n'] && $ai['pg_n']==4){
$u->rangup($u->info['id'],5,'pg');
$ai['pg_n']=5;
$i=0;
$colvo=80;
while($i<$colvo)
{
$u->addItem(10020,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Жетон Успеха X'.$colvo;
}
//Продать бабушке найденные вещи в пещере bv 500/1000/2000/4000/5000
elseif ($_GET['nagr']==81 && $ai['klasbv']>$ai['bv_n'] && $ai['bv_n']==0){
$u->rangup($u->info['id'],1,'bv');
$ai['bv_n']=1;
mysql_query('UPDATE `users` SET `money` = (`money` + 500) WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$nagrtxt='За выполненное достижение, Вы получили 500 кр.';
}elseif($_GET['nagr']==82 && $ai['klasbv']>$ai['bv_n'] && $ai['bv_n']==1){
$u->rangup($u->info['id'],2,'bv');
$ai['bv_n']=2;
mysql_query('UPDATE `users` SET `money` = (`money` + 1000) WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$nagrtxt='За выполненное достижение, Вы получили 1000 кр.';
}elseif($_GET['nagr']==83 && $ai['klasbv']>$ai['bv_n'] && $ai['bv_n']==2){
$u->rangup($u->info['id'],3,'bv');
$ai['bv_n']=3;
mysql_query('UPDATE `users` SET `money` = (`money` + 2000) WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$nagrtxt='За выполненное достижение, Вы получили 2000 кр.';
}elseif($_GET['nagr']==84 && $ai['klasbv']>$ai['bv_n'] && $ai['bv_n']==3){
$u->rangup($u->info['id'],4,'bv');
$ai['bv_n']=4;
mysql_query('UPDATE `users` SET `money` = (`money` + 4000) WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$nagrtxt='За выполненное достижение, Вы получили 4000 кр.';
}elseif($_GET['nagr']==85 && $ai['klasbv']>$ai['bv_n'] && $ai['bv_n']==4){
$u->rangup($u->info['id'],5,'bv');
$ai['bv_n']=5;
mysql_query('UPDATE `users` SET `money` = (`money` + 5000) WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$nagrtxt='За выполненное достижение, Вы получили 5000 кр.';
}
//Клан вар kw 4917
elseif ($_GET['nagr']==91 && $ai['klaskw']>$ai['kw_n'] && $ai['kw_n']==0){
$u->rangup($u->info['id'],1,'kw');
$ai['kw_n']=1;
$i=0;
$colvo=1;
while($i<$colvo)
{
$u->addItem(4917,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Клановый опыт +50000 X'.$colvo;
}elseif($_GET['nagr']==92 && $ai['klaskw']>$ai['kw_n'] && $ai['kw_n']==1){
$u->rangup($u->info['id'],2,'kw');
$ai['kw_n']=2;
$i=0;
$colvo=2;
while($i<$colvo)
{
$u->addItem(4917,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Клановый опыт +50000 X'.$colvo;
}elseif($_GET['nagr']==93 && $ai['klaskw']>$ai['kw_n'] && $ai['kw_n']==2){
$u->rangup($u->info['id'],3,'kw');
$ai['kw_n']=3;
$i=0;
$colvo=5;
while($i<$colvo)
{
$u->addItem(4917,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Клановый опыт +50000 X'.$colvo;
}elseif($_GET['nagr']==94 && $ai['klaskw']>$ai['kw_n'] && $ai['kw_n']==3){
$u->rangup($u->info['id'],4,'kw');
$ai['kw_n']=4;
$i=0;
$colvo=10;
while($i<$colvo)
{
$u->addItem(4917,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Клановый опыт +50000 X'.$colvo;
}elseif($_GET['nagr']==95 && $ai['klaskw']>$ai['kw_n'] && $ai['kw_n']==4){
$u->rangup($u->info['id'],5,'kw');
$ai['kw_n']=5;
$i=0;
$colvo=15;
while($i<$colvo)
{
$u->addItem(4917,$u->info['id'],'');
$i++;
}
$nagrtxt='За выполненное достижение, Вы получили Клановый опыт +50000 X'.$colvo;
}
//Башня смерти задание bs
elseif ($_GET['nagr']==101 && $ai['klasbs']>$ai['bs_n'] && $ai['bs_n']==0){
$u->rangup($u->info['id'],1,'bs');
$ai['bs_n']=1;
mysql_query('UPDATE `users` SET `money2` = (`money2` + 1) WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$nagrtxt='За выполненное достижение, Вы получили 1 екр.';
}elseif($_GET['nagr']==102 && $ai['klasbs']>$ai['bs_n'] && $ai['bs_n']==1){
$u->rangup($u->info['id'],2,'bs');
$ai['bs_n']=2;
mysql_query('UPDATE `users` SET `money2` = (`money2` + 5) WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$nagrtxt='За выполненное достижение, Вы получили 5 екр.';
}elseif($_GET['nagr']==103 && $ai['klasbs']>$ai['bs_n'] && $ai['bs_n']==2){
$u->rangup($u->info['id'],3,'bs');
$ai['bs_n']=3;
mysql_query('UPDATE `users` SET `money2` = (`money2` + 10) WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$nagrtxt='За выполненное достижение, Вы получили 10 екр.';
}elseif($_GET['nagr']==104 && $ai['klasbs']>$ai['bs_n'] && $ai['bs_n']==3){
$u->rangup($u->info['id'],4,'bs');
$ai['bs_n']=4;
mysql_query('UPDATE `users` SET `money2` = (`money2` + 50) WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$nagrtxt='За выполненное достижение, Вы получили 50 екр.';
}elseif($_GET['nagr']==105 && $ai['klasbs']>$ai['bs_n'] && $ai['bs_n']==4){
$u->rangup($u->info['id'],5,'bs');
$ai['bs_n']=5;
mysql_query('UPDATE `users` SET `money2` = (`money2` + 200) WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$nagrtxt='За выполненное достижение, Вы получили 200 екр.';
}
//-------------
mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`) VALUES ('1','".$u->info['city']."','".$u->info['room']."','','".$u->info['login']."','".$nagrtxt."','-1','6','0')");
}
?>
<P align=right><INPUT class="btn" TYPE=button value="Подсказка" onclick="window.open('/encicl/help/titul.html', 'help', 'height=300,width=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')">
<INPUT TYPE="button" class="btn" onClick="top.frames['main'].location = 'main.php';" value="Вернуться" name=edit></P>
<H3>Достижения</H3>
<? $zd='zb';?>
<H4><? echo $ai['name'.$zd];?></H4>
<b>Выполнить задания бабки.</b><br>
Сейчас у Вас Ранг: <b><? echo $ai['klas'.$zd]; ?></b>. Количество выполнений: <b><? echo $ai[$zd]; ?>=<? echo $ai['klasP'.$zd]; ?>%</b><br>
<title>Выполнить задания бабки.</title>
</head>
<body>
<table border="0" cellpadding="3" cellspacing="1">
<tr bgcolor="#A5A5A5">
<td style="text-align: center;">Ранги</td>
<td style="text-align: center;">1</td>
<td style="text-align: center;">2</td>
<td style="text-align: center;">3</td>
<td style="text-align: center;">4</td>
<td style="text-align: center;">5</td>
</tr>
<tr bgcolor="#C7C7C7">
<td bgcolor="#A5A5A5" style="text-align: center;">Заданий</td>
<td style="text-align: center;">5</td>
<td style="text-align: center;">25</td>
<td style="text-align: center;">50 </td>
<td style="text-align: center;">100</td>
<td style="text-align: center;">250</td>
</tr>
<tr bgcolor="#C7C7C7">
<td bgcolor="#A5A5A5" style="text-align: center;">Награда</td>
<td style="text-align: center;">Жетон <br>успеха <br>5</td>
<td style="text-align: center;">Жетон <br>успеха <br>20</td>
<td style="text-align: center;">Жетон <br>успеха <br>40</td>
<td style="text-align: center;">Жетон <br>успеха <br>60</td>
<td style="text-align: center;">Жетон <br>успеха <br>100</td>
</tr>
</table>
</body>
<?
if ($ai['klas'.$zd]>$ai[$zd.'_n']) //Бабка задание
{
echo '<br>Награда:<br>';
if ($ai[$zd.'_n'] ==0){
echo '<img onclick="location.href=\'/main.php?titul&nagr=11\';" onMouseOver="top.hi(this,\'<b>Сундук 1 Ранга<hr>Содержит:<hr>жетоны успеха: 1</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk1.'">';
}elseif ($ai[$zd.'_n'] ==1){
echo '<img onclick="location.href=\'/main.php?titul&nagr=12\';" onMouseOver="top.hi(this,\'<b>Сундук 2 Ранга<hr>Содержит:<hr>жетоны успеха: 2</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk2.'">';
}elseif ($ai[$zd.'_n'] ==2){
echo '<img onclick="location.href=\'/main.php?titul&nagr=13\';" onMouseOver="top.hi(this,\'<b>Сундук 3 Ранга<hr>Содержит:<hr>жетоны успеха: 5</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk3.'">';
}elseif ($ai[$zd.'_n'] ==3){
echo '<img onclick="location.href=\'/main.php?titul&nagr=14\';" onMouseOver="top.hi(this,\'<b>Сундук 4 Ранга<hr>Содержит:<hr>жетоны успеха: 10</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk4.'">';
}elseif ($ai[$zd.'_n'] ==4){
echo '<img onclick="location.href=\'/main.php?titul&nagr=15\';" onMouseOver="top.hi(this,\'<b>Сундук 5 Ранга<hr>Содержит:<hr>жетоны успеха: 20</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk5.'">';
}
}
?>
<hr>
<? $zd='vx';?>
<H4><? echo $ai['name'.$zd];?></H4>
<b>Победить в хаотических боях.</b><br>
Сейчас у Вас Ранг: <b><? echo $ai['klas'.$zd]; ?></b>. Количество выполнений: <b><? echo $ai[$zd]; ?>=<? echo $ai['klasP'.$zd]; ?>%</b><br>
<title>Победить в хаотических боях.</title>
</head>
<body>
<table border="0" cellpadding="3" cellspacing="1">
<tr bgcolor="#A5A5A5">
<td style="text-align: center;">Ранги</td>
<td style="text-align: center;">1</td>
<td style="text-align: center;">2</td>
<td style="text-align: center;">3</td>
<td style="text-align: center;">4</td>
<td style="text-align: center;">5</td>
</tr>
<tr bgcolor="#C7C7C7">
<td bgcolor="#A5A5A5" style="text-align: center;">Побед</td>
<td style="text-align: center;">50</td>
<td style="text-align: center;">300</td>
<td style="text-align: center;">400</td>
<td style="text-align: center;">500</td>
<td style="text-align: center;">1000</td>
</tr>
<tr bgcolor="#C7C7C7">
<td bgcolor="#A5A5A5" style="text-align: center;">Награда</td>
<td style="text-align: center;">25 екр.</td>
<td style="text-align: center;">50 екр.</td>
<td style="text-align: center;">75 екр.</td>
<td style="text-align: center;">100 екр.</td>
<td style="text-align: center;">200 екр.</td>
</tr>
</table>
</body>
<?
if ($ai['klas'.$zd]>$ai[$zd.'_n']) //Хаот задание
{
echo '<br>Награда:<br>';
if ($ai[$zd.'_n'] ==0){
echo '<img onclick="location.href=\'/main.php?titul&nagr=21\';" onMouseOver="top.hi(this,\'<b>Сундук 1 Ранга<hr>Содержит:<hr>25 екр.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk1.'">';
}elseif ($ai[$zd.'_n'] ==1){
echo '<img onclick="location.href=\'/main.php?titul&nagr=22\';" onMouseOver="top.hi(this,\'<b>Сундук 2 Ранга<hr>Содержит:<hr>50 екр.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk2.'">';
}elseif ($ai[$zd.'_n'] ==2){
echo '<img onclick="location.href=\'/main.php?titul&nagr=23\';" onMouseOver="top.hi(this,\'<b>Сундук 3 Ранга<hr>Содержит:<hr>75 екр.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk3.'">';
}elseif ($ai[$zd.'_n'] ==3){
echo '<img onclick="location.href=\'/main.php?titul&nagr=24\';" onMouseOver="top.hi(this,\'<b>Сундук 4 Ранга<hr>Содержит:<hr>100 екр.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk4.'">';
}elseif ($ai[$zd.'_n'] ==4){
echo '<img onclick="location.href=\'/main.php?titul&nagr=25\';" onMouseOver="top.hi(this,\'<b>Сундук 5 Ранга<hr>Содержит:<hr>200 екр.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk5.'">';
}
}
?>
<hr>
<? $zd='snt';?>
<H4><? echo $ai['name'.$zd];?></H4>
<b>Открыть сундук трупожора.</b><br>
Сейчас у Вас Ранг: <b><? echo $ai['klas'.$zd]; ?></b>. Количество выполнений: <b><? echo $ai[$zd]; ?>=<? echo $ai['klasP'.$zd]; ?>%</b><br>
<title>Открыть сундук трупожора.</title>
</head>
<body>
<table border="0" cellpadding="3" cellspacing="1">
<tr bgcolor="#A5A5A5">
<td style="text-align: center;">Ранги</td>
<td style="text-align: center;">1</td>
<td style="text-align: center;">2</td>
<td style="text-align: center;">3</td>
<td style="text-align: center;">4</td>
<td style="text-align: center;">5</td>
</tr>
<tr bgcolor="#C7C7C7">
<td bgcolor="#A5A5A5" style="text-align: center;">Открытий</td>
<td style="text-align: center;">5</td>
<td style="text-align: center;">25</td>
<td style="text-align: center;">50</td>
<td style="text-align: center;">100</td>
<td style="text-align: center;">250</td>
</tr>
<tr bgcolor="#C7C7C7">
<td bgcolor="#A5A5A5" style="text-align: center;">Награда</td>
<td style="text-align: center;">10 екр.</td>
<td style="text-align: center;">25 екр.</td>
<td style="text-align: center;">50 екр.</td>
<td style="text-align: center;">75 екр.</td>
<td style="text-align: center;">200 екр.</td>
</tr>
</table>
</body>
<?
if ($ai['klas'.$zd]>$ai[$zd.'_n']) //Сундук задание
{
echo '<br>Награда:<br>';
if ($ai[$zd.'_n'] ==0){
echo '<img onclick="location.href=\'/main.php?titul&nagr=31\';" onMouseOver="top.hi(this,\'<b>Сундук 1 Ранга<hr>Содержит:<hr>10 екр.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk1.'">';
}elseif ($ai[$zd.'_n'] ==1){
echo '<img onclick="location.href=\'/main.php?titul&nagr=32\';" onMouseOver="top.hi(this,\'<b>Сундук 2 Ранга<hr>Содержит:<hr>25 екр.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk2.'">';
}elseif ($ai[$zd.'_n'] ==2){
echo '<img onclick="location.href=\'/main.php?titul&nagr=33\';" onMouseOver="top.hi(this,\'<b>Сундук 3 Ранга<hr>Содержит:<hr>50 екр.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk3.'">';
}elseif ($ai[$zd.'_n'] ==3){
echo '<img onclick="location.href=\'/main.php?titul&nagr=34\';" onMouseOver="top.hi(this,\'<b>Сундук 4 Ранга<hr>Содержит:<hr>75 екр.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk4.'">';
}elseif ($ai[$zd.'_n'] ==4){
echo '<img onclick="location.href=\'/main.php?titul&nagr=35\';" onMouseOver="top.hi(this,\'<b>Сундук 5 Ранга<hr>Содержит:<hr>200 екр.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk5.'">';
}
}
?>
<hr>
<? $zd='rp';?>
<H4><? echo $ai['name'.$zd];?></H4>
<b>Получить руну при плавке плохих заготовок. ( S руну )</b><br>
Сейчас у Вас Ранг: <b><? echo $ai['klas'.$zd]; ?></b>. Количество выполнений: <b><? echo $ai[$zd]; ?>=<? echo $ai['klasP'.$zd]; ?>%</b><br>
<title>Получить руну при плавке плохих заготовок. ( S руну )</title>
</head>
<body>
<table border="0" cellpadding="3" cellspacing="1">
<tr bgcolor="#A5A5A5">
<td style="text-align: center;">Ранги</td>
<td style="text-align: center;">1</td>
<td style="text-align: center;">2</td>
<td style="text-align: center;">3</td>
<td style="text-align: center;">4</td>
<td style="text-align: center;">5</td>
</tr>
<tr bgcolor="#C7C7C7">
<td bgcolor="#A5A5A5" style="text-align: center;">Рун</td>
<td style="text-align: center;">5</td>
<td style="text-align: center;">10</td>
<td style="text-align: center;">25</td>
<td style="text-align: center;">50</td>
<td style="text-align: center;">100</td>
</tr>
<tr bgcolor="#C7C7C7">
<td bgcolor="#A5A5A5" style="text-align: center;">Награда</td>
<td style="text-align: center;">Плохие <br> заготовки <br> 5</td>
<td style="text-align: center;">Плохие <br> заготовки <br> 7</td>
<td style="text-align: center;">Плохие <br> заготовки <br> 10</td>
<td style="text-align: center;">Плохие <br> заготовки <br> 12</td>
<td style="text-align: center;">Плохие <br> заготовки <br> 15</td>
</tr>
</table>
</body>
<?
if ($ai['klas'.$zd]>$ai[$zd.'_n']) //S задание
{
echo '<br>Награда:<br>';
if ($ai[$zd.'_n'] ==0){
echo '<img onclick="location.href=\'/main.php?titul&nagr=41\';" onMouseOver="top.hi(this,\'<b>Сундук 1 Ранга<hr>Содержит:<hr>Плохие заготовки 5</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk1.'">';
}elseif ($ai[$zd.'_n'] ==1){
echo '<img onclick="location.href=\'/main.php?titul&nagr=42\';" onMouseOver="top.hi(this,\'<b>Сундук 2 Ранга<hr>Содержит:<hr>Плохие заготовки 10</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk2.'">';
}elseif ($ai[$zd.'_n'] ==2){
echo '<img onclick="location.href=\'/main.php?titul&nagr=43\';" onMouseOver="top.hi(this,\'<b>Сундук 3 Ранга<hr>Содержит:<hr>Плохие заготовки 15</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk3.'">';
}elseif ($ai[$zd.'_n'] ==3){
echo '<img onclick="location.href=\'/main.php?titul&nagr=44\';" onMouseOver="top.hi(this,\'<b>Сундук 4 Ранга<hr>Содержит:<hr>Плохие заготовки 20</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk4.'">';
}elseif ($ai[$zd.'_n'] ==4){
echo '<img onclick="location.href=\'/main.php?titul&nagr=45\';" onMouseOver="top.hi(this,\'<b>Сундук 5 Ранга<hr>Содержит:<hr>Плохие заготовки 25</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk5.'">';
}
}
?>
<hr>
<? $zd='rn';?>
<H4><? echo $ai['name'.$zd];?></H4>
<b>Получить руну при плавке нормальных заготовок. ( M руну )</b><br>
Сейчас у Вас Ранг: <b><? echo $ai['klas'.$zd]; ?></b>. Количество выполнений: <b><? echo $ai[$zd]; ?>=<? echo $ai['klasP'.$zd]; ?>%</b><br>
<title>Получить руну при плавке нормальных заготовок. ( M руну )</title>
</head>
<body>
<table border="0" cellpadding="3" cellspacing="1">
<tr bgcolor="#A5A5A5">
<td style="text-align: center;">Ранги</td>
<td style="text-align: center;">1</td>
<td style="text-align: center;">2</td>
<td style="text-align: center;">3</td>
<td style="text-align: center;">4</td>
<td style="text-align: center;">5</td>
</tr>
<tr bgcolor="#C7C7C7">
<td bgcolor="#A5A5A5" style="text-align: center;">Рун</td>
<td style="text-align: center;">5</td>
<td style="text-align: center;">10</td>
<td style="text-align: center;">15</td>
<td style="text-align: center;">25</td>
<td style="text-align: center;">50</td>
</tr>
<tr bgcolor="#C7C7C7">
<td bgcolor="#A5A5A5" style="text-align: center;">Награда</td>
<td style="text-align: center;">Нормальные <br> заготовки <br> 5</td>
<td style="text-align: center;">Нормальные <br> заготовки <br> 7</td>
<td style="text-align: center;">Нормальные <br> заготовки <br> 9</td>
<td style="text-align: center;">Нормальные <br> заготовки <br> 12</td>
<td style="text-align: center;">Нормальные <br> заготовки <br> 15</td>
</tr>
</table>
</body>
<?
if ($ai['klas'.$zd]>$ai[$zd.'_n']) //M задание
{
echo '<br>Награда:<br>';
if ($ai[$zd.'_n'] ==0){
echo '<img onclick="location.href=\'/main.php?titul&nagr=51\';" onMouseOver="top.hi(this,\'<b>Сундук 1 Ранга<hr>Содержит:<hr>Нормальные заготовки 5</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk1.'">';
}elseif ($ai[$zd.'_n'] ==1){
echo '<img onclick="location.href=\'/main.php?titul&nagr=52\';" onMouseOver="top.hi(this,\'<b>Сундук 2 Ранга<hr>Содержит:<hr>Нормальные заготовки 10</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk2.'">';
}elseif ($ai[$zd.'_n'] ==2){
echo '<img onclick="location.href=\'/main.php?titul&nagr=53\';" onMouseOver="top.hi(this,\'<b>Сундук 3 Ранга<hr>Содержит:<hr>Нормальные заготовки 20</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk3.'">';
}elseif ($ai[$zd.'_n'] ==3){
echo '<img onclick="location.href=\'/main.php?titul&nagr=54\';" onMouseOver="top.hi(this,\'<b>Сундук 4 Ранга<hr>Содержит:<hr>Нормальные заготовки 40</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk4.'">';
}elseif ($ai[$zd.'_n'] ==4){
echo '<img onclick="location.href=\'/main.php?titul&nagr=55\';" onMouseOver="top.hi(this,\'<b>Сундук 5 Ранга<hr>Содержит:<hr>Нормальные заготовки 60</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk5.'">';
}
}
?>
<hr>
<? $zd='rb';?>
<H4><? echo $ai['name'.$zd];?></H4>
<b>Получить руну при плавке идеальных заготовок. ( L руну )</b><br>
Сейчас у Вас Ранг: <b><? echo $ai['klas'.$zd]; ?></b>. Количество выполнений: <b><? echo $ai[$zd]; ?>=<? echo $ai['klasP'.$zd]; ?>%</b><br>
<title>Получить руну при плавке идеальных заготовок. ( L руну )</title>
</head>
<body>
<table border="0" cellpadding="3" cellspacing="1">
<tr bgcolor="#A5A5A5">
<td style="text-align: center;">Ранги</td>
<td style="text-align: center;">1</td>
<td style="text-align: center;">2</td>
<td style="text-align: center;">3</td>
<td style="text-align: center;">4</td>
<td style="text-align: center;">5</td>
</tr>
<tr bgcolor="#C7C7C7">
<td bgcolor="#A5A5A5" style="text-align: center;">Рун</td>
<td style="text-align: center;">2</td>
<td style="text-align: center;">5</td>
<td style="text-align: center;">8</td>
<td style="text-align: center;">11</td>
<td style="text-align: center;">15</td>
</tr>
<tr bgcolor="#C7C7C7">
<td bgcolor="#A5A5A5" style="text-align: center;">Награда</td>
<td style="text-align: center;">Идеальные <br> заготовки <br> 2</td>
<td style="text-align: center;">Идеальные <br> заготовки <br> 4</td>
<td style="text-align: center;">Идеальные <br> заготовки <br> 6</td>
<td style="text-align: center;">Идеальные <br> заготовки <br> 10</td>
<td style="text-align: center;">Идеальные <br> заготовки <br> 15</td>
</tr>
</table>
</body>
<?
if ($ai['klas'.$zd]>$ai[$zd.'_n']) //L задание
{
echo '<br>Награда:<br>';
if ($ai[$zd.'_n'] ==0){
echo '<img onclick="location.href=\'/main.php?titul&nagr=61\';" onMouseOver="top.hi(this,\'<b>Сундук 1 Ранга<hr>Содержит:<hr>Идеальные заготовки 5</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk1.'">';
}elseif ($ai[$zd.'_n'] ==1){
echo '<img onclick="location.href=\'/main.php?titul&nagr=62\';" onMouseOver="top.hi(this,\'<b>Сундук 2 Ранга<hr>Содержит:<hr>Идеальные заготовки 10</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk2.'">';
}elseif ($ai[$zd.'_n'] ==2){
echo '<img onclick="location.href=\'/main.php?titul&nagr=63\';" onMouseOver="top.hi(this,\'<b>Сундук 3 Ранга<hr>Содержит:<hr>Идеальные заготовки 20</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk3.'">';
}elseif ($ai[$zd.'_n'] ==3){
echo '<img onclick="location.href=\'/main.php?titul&nagr=64\';" onMouseOver="top.hi(this,\'<b>Сундук 4 Ранга<hr>Содержит:<hr>Идеальные заготовки 40</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk4.'">';
}elseif ($ai[$zd.'_n'] ==4){
echo '<img onclick="location.href=\'/main.php?titul&nagr=65\';" onMouseOver="top.hi(this,\'<b>Сундук 5 Ранга<hr>Содержит:<hr>Идеальные заготовки 60</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk5.'">';
}
}
?>
<hr>
<? $zd='pg';?>
<H4><? echo $ai['name'.$zd];?></H4>
<b>Поучаствовать в героическом сражении.</b><br>
Сейчас у Вас Ранг: <b><? echo $ai['klas'.$zd]; ?></b>. Количество выполнений: <b><? echo $ai[$zd]; ?>=<? echo $ai['klasP'.$zd]; ?>%</b><br>
<title>Поучаствовать в героическом сражении.</title>
</head>
<body>
<table border="0" cellpadding="3" cellspacing="1">
<tr bgcolor="#A5A5A5">
<td style="text-align: center;">Ранги</td>
<td style="text-align: center;">1</td>
<td style="text-align: center;">2</td>
<td style="text-align: center;">3</td>
<td style="text-align: center;">4</td>
<td style="text-align: center;">5</td>
</tr>
<tr bgcolor="#C7C7C7">
<td bgcolor="#A5A5A5" style="text-align: center;">Участий</td>
<td style="text-align: center;">100</td>
<td style="text-align: center;">200</td>
<td style="text-align: center;">400</td>
<td style="text-align: center;">600</td>
<td style="text-align: center;">1000</td>
</tr>
<tr bgcolor="#C7C7C7">
<td bgcolor="#A5A5A5" style="text-align: center;">Награда</td>
<td style="text-align: center;">Жетон <br> Успеха <br> 10</td>
<td style="text-align: center;">Жетон <br> Успеха <br> 20</td>
<td style="text-align: center;">Жетон <br> Успеха <br> 40</td>
<td style="text-align: center;">Жетон <br> Успеха <br> 60</td>
<td style="text-align: center;">Жетон <br> Успеха <br> 80</td>
</tr>
</table>
</body>
<?
if ($ai['klas'.$zd]>$ai[$zd.'_n']) //Героик задание
{
echo '<br>Награда:<br>';
if ($ai[$zd.'_n'] ==0){
echo '<img onclick="location.href=\'/main.php?titul&nagr=71\';" onMouseOver="top.hi(this,\'<b>Сундук 1 Ранга<hr>Содержит:<hr>Жетон Успеха 10</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk1.'">';
}elseif ($ai[$zd.'_n'] ==1){
echo '<img onclick="location.href=\'/main.php?titul&nagr=72\';" onMouseOver="top.hi(this,\'<b>Сундук 2 Ранга<hr>Содержит:<hr>Жетон Успеха 20</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk2.'">';
}elseif ($ai[$zd.'_n'] ==2){
echo '<img onclick="location.href=\'/main.php?titul&nagr=73\';" onMouseOver="top.hi(this,\'<b>Сундук 3 Ранга<hr>Содержит:<hr>Жетон Успеха 40</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk3.'">';
}elseif ($ai[$zd.'_n'] ==3){
echo '<img onclick="location.href=\'/main.php?titul&nagr=74\';" onMouseOver="top.hi(this,\'<b>Сундук 4 Ранга<hr>Содержит:<hr>Жетон Успеха 60</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk4.'">';
}elseif ($ai[$zd.'_n'] ==4){
echo '<img onclick="location.href=\'/main.php?titul&nagr=75\';" onMouseOver="top.hi(this,\'<b>Сундук 5 Ранга<hr>Содержит:<hr>Жетон Успеха 80</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk5.'">';
}
}
?>
<hr>
<? $zd='bv';?>
<H4><? echo $ai['name'.$zd];?></H4>
<b>Продать бабушке найденные вещи в пещере.</b><br>
Сейчас у Вас Ранг: <b><? echo $ai['klas'.$zd]; ?></b>. Количество выполнений: <b><? echo $ai[$zd]; ?>=<? echo $ai['klasP'.$zd]; ?>%</b><br>
<title>Продать бабушке найденные вещи в пещере.</title>
</head>
<body>
<table border="0" cellpadding="3" cellspacing="1">
<tr bgcolor="#A5A5A5">
<td style="text-align: center;">Ранги</td>
<td style="text-align: center;">1</td>
<td style="text-align: center;">2</td>
<td style="text-align: center;">3</td>
<td style="text-align: center;">4</td>
<td style="text-align: center;">5</td>
</tr>
<tr bgcolor="#C7C7C7">
<td bgcolor="#A5A5A5" style="text-align: center;">Продаж</td>
<td style="text-align: center;">5</td>
<td style="text-align: center;">25</td>
<td style="text-align: center;">50</td>
<td style="text-align: center;">100</td>
<td style="text-align: center;">250</td>
</tr>
<tr bgcolor="#C7C7C7">
<td bgcolor="#A5A5A5" style="text-align: center;">Награда</td>
<td style="text-align: center;">500кр.</td>
<td style="text-align: center;">1000кр.</td>
<td style="text-align: center;">2000кр.</td>
<td style="text-align: center;">4000кр.</td>
<td style="text-align: center;">5000кр.</td>
</tr>
</table>
</body>
<?
if ($ai['klas'.$zd]>$ai[$zd.'_n']) //Героик задание
{
echo '<br>Награда:<br>';
if ($ai[$zd.'_n'] ==0){
echo '<img onclick="location.href=\'/main.php?titul&nagr=81\';" onMouseOver="top.hi(this,\'<b>Сундук 1 Ранга<hr>Содержит:<hr>500кр.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk1.'">';
}elseif ($ai[$zd.'_n'] ==1){
echo '<img onclick="location.href=\'/main.php?titul&nagr=82\';" onMouseOver="top.hi(this,\'<b>Сундук 2 Ранга<hr>Содержит:<hr>1000кр.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk2.'">';
}elseif ($ai[$zd.'_n'] ==2){
echo '<img onclick="location.href=\'/main.php?titul&nagr=83\';" onMouseOver="top.hi(this,\'<b>Сундук 3 Ранга<hr>Содержит:<hr>2000кр.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk3.'">';
}elseif ($ai[$zd.'_n'] ==3){
echo '<img onclick="location.href=\'/main.php?titul&nagr=84\';" onMouseOver="top.hi(this,\'<b>Сундук 4 Ранга<hr>Содержит:<hr>4000кр.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk4.'">';
}elseif ($ai[$zd.'_n'] ==4){
echo '<img onclick="location.href=\'/main.php?titul&nagr=85\';" onMouseOver="top.hi(this,\'<b>Сундук 5 Ранга<hr>Содержит:<hr>5000кр.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk5.'">';
}
}
?>
<hr>
<? $zd='kw';?>
<H4><? echo $ai['name'.$zd];?></H4>
<b>Победить в клановой войне.</b><br>
Сейчас у Вас Ранг: <b><? echo $ai['klas'.$zd]; ?></b>. Количество выполнений: <b><? echo $ai[$zd]; ?>=<? echo $ai['klasP'.$zd]; ?>%</b><br>
<title>Победить в клановой войне.</title>
</head>
<body>
<table border="0" cellpadding="3" cellspacing="1">
<tr bgcolor="#A5A5A5">
<td style="text-align: center;">Ранги</td>
<td style="text-align: center;">1</td>
<td style="text-align: center;">2</td>
<td style="text-align: center;">3</td>
<td style="text-align: center;">4</td>
<td style="text-align: center;">5</td>
</tr>
<tr bgcolor="#C7C7C7">
<td bgcolor="#A5A5A5" style="text-align: center;">Побед</td>
<td style="text-align: center;">5</td>
<td style="text-align: center;">25</td>
<td style="text-align: center;">50</td>
<td style="text-align: center;">100</td>
<td style="text-align: center;">250</td>
</tr>
<tr bgcolor="#C7C7C7">
<td bgcolor="#A5A5A5" style="text-align: center;">Награда</td>
<td style="text-align: center;">Свиток <br> кланового<br> опыта 1</td>
<td style="text-align: center;">Свиток <br> кланового<br> опыта 2</td>
<td style="text-align: center;">Свиток <br> кланового<br> опыта 5</td>
<td style="text-align: center;">Свиток <br> кланового<br> опыта 10</td>
<td style="text-align: center;">Свиток <br> кланового<br> опыта 15</td>
</tr>
</table>
</body>
<?
if ($ai['klas'.$zd]>$ai[$zd.'_n']) //Клан вар задание
{
echo '<br>Награда:<br>';
if ($ai[$zd.'_n'] ==0){
echo '<img onclick="location.href=\'/main.php?titul&nagr=91\';" onMouseOver="top.hi(this,\'<b>Сундук 1 Ранга<hr>Содержит:<hr>Свиток <br> кланового<br> опыта 1.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk1.'">';
}elseif ($ai[$zd.'_n'] ==1){
echo '<img onclick="location.href=\'/main.php?titul&nagr=92\';" onMouseOver="top.hi(this,\'<b>Сундук 2 Ранга<hr>Содержит:<hr>Свиток <br> кланового<br> опыта 2.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk2.'">';
}elseif ($ai[$zd.'_n'] ==2){
echo '<img onclick="location.href=\'/main.php?titul&nagr=93\';" onMouseOver="top.hi(this,\'<b>Сундук 3 Ранга<hr>Содержит:<hr>Свиток <br> кланового<br> опыта 5.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk3.'">';
}elseif ($ai[$zd.'_n'] ==3){
echo '<img onclick="location.href=\'/main.php?titul&nagr=94\';" onMouseOver="top.hi(this,\'<b>Сундук 4 Ранга<hr>Содержит:<hr>Свиток <br> кланового<br> опыта 10.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk4.'">';
}elseif ($ai[$zd.'_n'] ==4){
echo '<img onclick="location.href=\'/main.php?titul&nagr=95\';" onMouseOver="top.hi(this,\'<b>Сундук 5 Ранга<hr>Содержит:<hr>Свиток <br> кланового<br> опыта 15.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk5.'">';
}
}
?>
<hr>
<? $zd='pa';?>
<H4><? echo $ai['name'.$zd];?></H4>
<b>Получить покровительство Ангела.</b><br>
Сейчас у Вас Ранг: <b><? echo $ai['klas'.$zd]; ?></b>. Количество выполнений: <b><? echo $ai[$zd]; ?>=<? echo $ai['klasP'.$zd]; ?>%</b><br>
<title>Получить покровительство Ангела.</title>
</head>
<body>
<table border="0" cellpadding="3" cellspacing="1">
<tr bgcolor="#A5A5A5">
<td style="text-align: center;">Ранги</td>
<td style="text-align: center;">1</td>
<td style="text-align: center;">2</td>
<td style="text-align: center;">3</td>
<td style="text-align: center;">4</td>
<td style="text-align: center;">5</td>
</tr>
<tr bgcolor="#C7C7C7">
<td bgcolor="#A5A5A5" style="text-align: center;">Побед</td>
<td style="text-align: center;">5</td>
<td style="text-align: center;">25</td>
<td style="text-align: center;">50</td>
<td style="text-align: center;">100</td>
<td style="text-align: center;">250</td>
</tr>
<tr bgcolor="#C7C7C7">
<td bgcolor="#A5A5A5" style="text-align: center;">Награда</td>
<td style="text-align: center;"> - </td>
<td style="text-align: center;"> - </td>
<td style="text-align: center;"> - </td>
<td style="text-align: center;"> - </td>
<td style="text-align: center;"> - </td>
</tr>
</table>
</body>
<hr>
<? $zd='bs';?>
<H4><? echo $ai['name'.$zd];?></H4>
<b>Победы в башне смерти.</b><br>
Сейчас у Вас Ранг: <b><? echo $ai['klas'.$zd]; ?></b>. Количество выполнений: <b><? echo $ai[$zd]; ?>=<? echo $ai['klasP'.$zd]; ?>%</b><br>
<title>Получить покровительство Ангела.</title>
</head>
<body>
<table border="0" cellpadding="3" cellspacing="1">
<tr bgcolor="#A5A5A5">
<td style="text-align: center;">Ранги</td>
<td style="text-align: center;">1</td>
<td style="text-align: center;">2</td>
<td style="text-align: center;">3</td>
<td style="text-align: center;">4</td>
<td style="text-align: center;">5</td>
</tr>
<tr bgcolor="#C7C7C7">
<td bgcolor="#A5A5A5" style="text-align: center;">Побед</td>
<td style="text-align: center;">1</td>
<td style="text-align: center;">5</td>
<td style="text-align: center;">10</td>
<td style="text-align: center;">50</td>
<td style="text-align: center;">500</td>
</tr>
<tr bgcolor="#C7C7C7">
<td bgcolor="#A5A5A5" style="text-align: center;">Награда</td>
<td style="text-align: center;"> 1 Екр. </td>
<td style="text-align: center;"> 5 Екр. </td>
<td style="text-align: center;"> 10 Екр. </td>
<td style="text-align: center;"> 50 Екр. </td>
<td style="text-align: center;"> 200 Екр. </td>
</tr>
</table>
<?
if ($ai['klas'.$zd]>$ai[$zd.'_n']) //Хаот задание
{
echo '<br>Награда:<br>';
if ($ai[$zd.'_n'] ==0){
echo '<img onclick="location.href=\'/main.php?titul&nagr=101\';" onMouseOver="top.hi(this,\'<b>Сундук 1 Ранга<hr>Содержит:<hr>1 екр.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk1.'">';
}elseif ($ai[$zd.'_n'] ==1){
echo '<img onclick="location.href=\'/main.php?titul&nagr=102\';" onMouseOver="top.hi(this,\'<b>Сундук 2 Ранга<hr>Содержит:<hr>5 екр.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk2.'">';
}elseif ($ai[$zd.'_n'] ==2){
echo '<img onclick="location.href=\'/main.php?titul&nagr=103\';" onMouseOver="top.hi(this,\'<b>Сундук 3 Ранга<hr>Содержит:<hr>10 екр.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk3.'">';
}elseif ($ai[$zd.'_n'] ==3){
echo '<img onclick="location.href=\'/main.php?titul&nagr=104\';" onMouseOver="top.hi(this,\'<b>Сундук 4 Ранга<hr>Содержит:<hr>50 екр.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk4.'">';
}elseif ($ai[$zd.'_n'] ==4){
echo '<img onclick="location.href=\'/main.php?titul&nagr=105\';" onMouseOver="top.hi(this,\'<b>Сундук 5 Ранга<hr>Содержит:<hr>200 екр.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/'.$sunduk5.'">';
}
}
?>
<hr>
<?='<br>'.$red?>