Вход Регистрация
Файл: core/duels.php
Строк: 561
<?
require_once 'core/system.php';
echo 
only_reg();
$count mysql_result(mysql_query('SELECT COUNT(*) FROM `clan_memb` WHERE `clan` = "'.$i['id'].'"'),0);
$nagradatrav rand(1,3);
$nagradaoves rand(1,3);
$header 'Дуэли';
$st_dyel 1;
$opponent mysql_fetch_array(mysql_query("select * from `user` where (`id` = '".abs(intval($_GET['attack']))."')"));
$opreyt = ($opponent[duel_rating]);
$user_param $user[sila] + $user[max_health] + $user[lovk] + $user[zashit];
$opponent_param $opponent[sila] + $opponent[max_health] + $opponent[lovk] + $opponent[zashit];
require_once 
'core/head.php';
echo 
" <center><img src='/images/icon/duel.png' alt=''/></center><br>";
echo 
"<div class='player center blue'>Побеждай в дуэлях и становись выше своих противников!<br><a href='topduel.php'><img src='/images/icon/sumstat.png'> Дуэлянты</a></div>";
echo 
"<center><div class='player'>Мой рейтинг: <font color=#87CEFA> $user[duel_rating]</font></center></div>";


$kount mysql_result(mysql_query("SELECT COUNT(*)  FROM `user`"),0);


if(
$_GET['attack'])
{
if(
$user['health'] < 20){
$_SESSION['light'] = "<span class='dred'>Ваще тело кровоточит.. <img src='/images/icon/health.png' alt=''/> чтобы продолжить бой необходимо 40 ед. Здоровья</span><br/>Здоровье восстанавливается со временем или у лекаря<br><div class='separ'></div><a class='btn' href='/moduls/ckoldun.php'><span class='end'><span class='label'>Восстановить <img src='/images/icon/health.png' alt=''/> Здоровье</span></span></a>";
header('Location: ?');
exit();
}
if(
$user['mana'] < 60)
{
$_SESSION['light'] = "<span class='dred'>Вы слишком устали от этого боя <img src='/images/icon/mana.png' alt=''/>  чтоб биться дальше вам необходимо 60 ед. выносливости</span><br/>Выносливость восстанавливается со временем или у лекаря<br><div class='separ'></div><a class='btn' href='/moduls/ckoldun.php'><span class='end'><span class='label'>Восстановить <img src='/images/icon/mana.png' alt=''/> Выносливость</span></span></a>";
header('Location: ?');
exit();
}else{
if (
$opreyt>=&& $opreyt <=30){
if(
$opponent_param $user[param]){
$healthpor rand(3,55);
$silverpor rand(3,12);
$exppor rand(1,3);
$c_exp rand($exppor/($count+1),$exppor);
$reytm rand(1,3);
mysql_query("update `user` set `health` = '".($user['health']-$healthpor)."',`exp` = '".($user['exp']+$exppor)."',`silver`='".($user['silver']+$silverpor)."',`mana`='".($user['mana']-60)."',`duel_rating`='".($user['duel_rating']-$reytm)."',`st_dyelp` = '".($user['st_duelp']+$st_dyel)."' where (`id` = '".$user['id']."')");
 if(
$clan) {
        
       
mysql_query('UPDATE `clans`     SET `exp` = `exp` + '.$c_exp.' WHERE `id` = "'.$clan['id'].'"');
       
mysql_query('UPDATE `clan_memb` SET `exp` = `exp` + '.$c_exp.' WHERE `clan` = "'.$clan['id'].'" AND `user` = "'.$user['id'].'"');

  }
header('Location: ?');
$_SESSION['light'] = "<h2 class='dred' style='font-weight:bold;'><img src='/images/icon/2hit.png' alt=''/> Поражение <img src='/images/icon/2hit.png' alt=''/></h2><div class='separ'></div></a><div class='separ'></div><img src='/images/icon/exp.png' alt='exp'/> ".$exppor." опыта<br><font color=darkred> - ".$reytm." рейтинга<br></font>";
exit();
}else{

$health rand(2,44);
$silver rand(10,20);
$exp rand(1,5);
$cl_exp rand($exp/($count+1),$exp);
$reyt rand(2,7);
mysql_query("update `user` set `health` = '".($user['health']-$health)."',`exp` = '".($user['exp']+$exp)."',`silver`='".($user['silver']+$silver)."',`mana`='".($user['mana']-60)."',`duel_rating`='".($user['duel_rating']+$reyt)."',`trava`='".($user['trava']+$nagradatrav)."',`oves`='".($user['oves']+$nagradaoves)."',`st_dyel` = '".($user['st_dyel']+$st_dyel)."' where (`id` = '".$user['id']."')");
if(
$clan) {
        
       
mysql_query('UPDATE `clans`     SET `exp` = `exp` + '.$cl_exp.' WHERE `id` = "'.$clan['id'].'"');
       
mysql_query('UPDATE `clan_memb` SET `exp` = `exp` + '.$cl_exp.' WHERE `clan` = "'.$clan['id'].'" AND `user` = "'.$user['id'].'"');

  }
header('Location: ?');
$_SESSION['light'] = "
<h2 class='dgreen'> <style='font-weight:bold;'><img src='/images/icon/2hit.png' alt=''/> Победа <img src='/images/icon/2hit.png' alt=''/></h2><div class='separ'></div></a><div class='separ'></div><img src='/images/icon/silver.png' alt=''/> "
.$silver." серебра <img src='/images/icon/exp.png' alt='exp'/> ".$exp." опыта<br> <font color=#40E0D0> + $reyt рейтинга</font><br></div>";
}
exit();
}else{

if (
$opreyt>=31 && $opreyt <=199){
if(
$opponent_param $user[param]){
$healthpor rand(55,65);
$silverpor rand(1,22);
$exppor rand(1,9);
$c_exp rand($exppor/($count+1),$exppor);
$reytm rand(1,9);
mysql_query("update `user` set `health` = '".($user['health']-$healthpor)."',`exp` = '".($user['exp']+$exppor)."',`silver`='".($user['silver']+$silverpor)."',`mana`='".($user['mana']-60)."',`duel_rating`='".($user['duel_rating']-$reytm)."',`st_dyelp` = '".($user['st_dyelp']+$st_dyel)."' where (`id` = '".$user['id']."')");
 if(
$clan) {
        
       
mysql_query('UPDATE `clans`     SET `exp` = `exp` + '.$c_exp.' WHERE `id` = "'.$clan['id'].'"');
       
mysql_query('UPDATE `clan_memb` SET `exp` = `exp` + '.$c_exp.' WHERE `clan` = "'.$clan['id'].'" AND `user` = "'.$user['id'].'"');

  }
header('Location: ?');
$_SESSION['light'] = "<h2 class='dred' style='font-weight:bold;'><img src='/images/icon/2hit.png' alt=''/> Поражение <img src='/images/icon/2hit.png' alt=''/></h2><div class='separ'></div></a><div class='separ'></div><img src='/images/icon/exp.png' alt='exp'/> ".$exppor." опыта<br><font color=darkred> - ".$reytm." рейтинга<br></font>";
exit();
}else{

$health 50;
$silver rand(10,30);
$exp rand(1,7);
$cl_exp rand($exp/($count+1),$exp);
$reyt rand(2,13);
mysql_query("update `user` set `health` = '".($user['health']-$health)."',`exp` = '".($user['exp']+$exp)."',`silver`='".($user['silver']+$silver)."',`mana`='".($user['mana']-60)."',`duel_rating`='".($user['duel_rating']+$reyt)."',`trava`='".($user['trava']+$nagradatrav)."',`oves`='".($user['oves']+$nagradaoves)."',`st_dyel` = '".($user['st_dyel']+$st_dyel)."' where (`id` = '".$user['id']."')");
if(
$clan) {
        
       
mysql_query('UPDATE `clans`     SET `exp` = `exp` + '.$cl_exp.' WHERE `id` = "'.$clan['id'].'"');
       
mysql_query('UPDATE `clan_memb` SET `exp` = `exp` + '.$cl_exp.' WHERE `clan` = "'.$clan['id'].'" AND `user` = "'.$user['id'].'"');

  }
header('Location: ?');
$_SESSION['light'] = "
<h2 class='dgreen'> <style='font-weight:bold;'><img src='/images/icon/2hit.png' alt=''/> Победа <img src='/images/icon/2hit.png' alt=''/></h2><div class='separ'></div></a><div class='separ'></div><img src='/images/icon/silver.png' alt=''/> "
.$silver." серебра <img src='/images/icon/exp.png' alt='exp'/> ".$exp." опыта<br> <font color=#40E0D0> + $reyt рейтинга</font><br></div>";
}
exit();

}else{

if (
$opreyt>=200 && $opreyt <=499){
if(
$opponent_param $user[param]){
$healthpor rand(55,75);
$silverpor rand(1,32);
$exppor rand(1,10);
$c_exp rand($exppor/($count+1),$exppor);
$reytm rand(1,15);
mysql_query("update `user` set `health` = '".($user['health']-$healthpor)."',`exp` = '".($user['exp']+$exppor)."',`silver`='".($user['silver']+$silverpor)."',`mana`='".($user['mana']-60)."',`duel_rating`='".($user['duel_rating']-$reytm)."',`st_dyelp` = '".($user['st_dyelp']+$st_dyel)."' where (`id` = '".$user['id']."')");
 if(
$clan) {
        
       
mysql_query('UPDATE `clans`     SET `exp` = `exp` + '.$c_exp.' WHERE `id` = "'.$clan['id'].'"');
       
mysql_query('UPDATE `clan_memb` SET `exp` = `exp` + '.$c_exp.' WHERE `clan` = "'.$clan['id'].'" AND `user` = "'.$user['id'].'"');

  }
header('Location: ?');

$_SESSION['light'] = "<h2 class='dred' style='font-weight:bold;'><img src='/images/icon/2hit.png' alt=''/> Поражение <img src='/images/icon/2hit.png' alt=''/></h2><div class='separ'></div></a><div class='separ'></div><img src='/images/icon/exp.png' alt='exp'/> ".$exppor." опыта<br><font color=darkred> - ".$reytm." рейтинга<br></font>";
exit();
}else{

$health 50;
$silver rand(10,120);
$exp rand(1,15);
$cl_exp rand($exp/($count+1),$exp);
$reyt rand(5,40);
mysql_query("update `user` set `health` = '".($user['health']-$health)."',`exp` = '".($user['exp']+$exp)."',`silver`='".($user['silver']+$silver)."',`mana`='".($user['mana']-60)."',`duel_rating`='".($user['duel_rating']+$reyt)."',`trava`='".($user['trava']+$nagradatrav)."',`oves`='".($user['oves']+$nagradaoves)."',`st_dyel` = '".($user['st_dyel']+$st_dyel)."' where (`id` = '".$user['id']."')");
if(
$clan) {
        
       
mysql_query('UPDATE `clans`     SET `exp` = `exp` + '.$cl_exp.' WHERE `id` = "'.$clan['id'].'"');
       
mysql_query('UPDATE `clan_memb` SET `exp` = `exp` + '.$cl_exp.' WHERE `clan` = "'.$clan['id'].'" AND `user` = "'.$user['id'].'"');

  }
header('Location: ?');
$_SESSION['light'] = "
<h2 class='dgreen'> <style='font-weight:bold;'><img src='/images/icon/2hit.png' alt=''/> Победа <img src='/images/icon/2hit.png' alt=''/></h2><div class='separ'></div></a><div class='separ'></div><img src='/images/icon/silver.png' alt=''/> "
.$silver." серебра <img src='/images/icon/exp.png' alt='exp'/> ".$exp." опыта<br> <font color=#40E0D0> + $reyt рейтинга</font><br></div>";
}
exit();
}else{

if (
$opreyt>=500 && $opreyt <=1999){
if(
$opponent_param $user[param]){
$healthpor rand(45,85);
$silverpor rand(1,42);
$exppor rand(1,11);
$c_exp rand($exppor/($count+1),$exppor);
$reytm rand(1,50);
mysql_query("update `user` set `health` = '".($user['health']-$healthpor)."',`exp` = '".($user['exp']+$exppor)."',`silver`='".($user['silver']+$silverpor)."',`mana`='".($user['mana']-60)."',`duel_rating`='".($user['duel_rating']-$reytm)."',`st_dyelp` = '".($user['st_dyelp']+$st_dyel)."' where (`id` = '".$user['id']."')");
 if(
$clan) {
        
       
mysql_query('UPDATE `clans`     SET `exp` = `exp` + '.$c_exp.' WHERE `id` = "'.$clan['id'].'"');
       
mysql_query('UPDATE `clan_memb` SET `exp` = `exp` + '.$c_exp.' WHERE `clan` = "'.$clan['id'].'" AND `user` = "'.$user['id'].'"');

  }
header('Location: ?');
$_SESSION['light'] = "<h2 class='dred' style='font-weight:bold;'><img src='/images/icon/2hit.png' alt=''/> Поражение <img src='/images/icon/2hit.png' alt=''/></h2><div class='separ'></div></a><div class='separ'></div><img src='/images/icon/exp.png' alt='exp'/> ".$exppor." опыта<br><font color=darkred> - ".$reytm." рейтинга<br></font>";
exit();
}else{

$health 50;
$silver rand(10,50);
$exp rand(1,20);
$cl_exp rand($exp/($count+1),$exp);
$reyt rand(9,50);
mysql_query("update `user` set `health` = '".($user['health']-$health)."',`exp` = '".($user['exp']+$exp)."',`silver`='".($user['silver']+$silver)."',`mana`='".($user['mana']-60)."',`duel_rating`='".($user['duel_rating']+$reyt)."',`trava`='".($user['trava']+$nagradatrav)."',`oves`='".($user['oves']+$nagradaoves)."',`st_dyel` = '".($user['st_dyel']+$st_dyel)."' where (`id` = '".$user['id']."')");
if(
$clan) {
        
       
mysql_query('UPDATE `clans`     SET `exp` = `exp` + '.$cl_exp.' WHERE `id` = "'.$clan['id'].'"');
       
mysql_query('UPDATE `clan_memb` SET `exp` = `exp` + '.$cl_exp.' WHERE `clan` = "'.$clan['id'].'" AND `user` = "'.$user['id'].'"');

  }
header('Location: ?');
$_SESSION['light'] = "
<h2 class='dgreen'> <style='font-weight:bold;'><img src='/images/icon/2hit.png' alt=''/> Победа <img src='/images/icon/2hit.png' alt=''/></h2><div class='separ'></div></a><div class='separ'></div><img src='/images/icon/silver.png' alt=''/> "
.$silver." серебра <img src='/images/icon/exp.png' alt='exp'/> ".$exp." опыта<br> <font color=#40E0D0> + $reyt рейтинга</font><br></div>";
}
exit();
}else{

if (
$opreyt>=2000 && $opreyt <=9999){
if(
$opponent_param $user[param]){
$healthpor rand(45,95);
$silverpor rand(1,52);
$exppor rand(1,11);
$c_exp rand($exppor/($count+1),$exppor);
$reytm rand(5,25);
mysql_query("update `user` set `health` = '".($user['health']-$healthpor)."',`exp` = '".($user['exp']+$exppor)."',`silver`='".($user['silver']+$silverpor)."',`mana`='".($user['mana']-60)."',`duel_rating`='".($user['duel_rating']-$reytm)."',`st_dyelp` = '".($user['st_dyelp']+$st_dyel)."' where (`id` = '".$user['id']."')");
 if(
$clan) {
        
       
mysql_query('UPDATE `clans`     SET `exp` = `exp` + '.$c_exp.' WHERE `id` = "'.$clan['id'].'"');
       
mysql_query('UPDATE `clan_memb` SET `exp` = `exp` + '.$c_exp.' WHERE `clan` = "'.$clan['id'].'" AND `user` = "'.$user['id'].'"');

  }
header('Location: ?');
$_SESSION['light'] = "<h2 class='dred' style='font-weight:bold;'><img src='/images/icon/2hit.png' alt=''/> Поражение <img src='/images/icon/2hit.png' alt=''/></h2><div class='separ'></div></a><div class='separ'></div><img src='/images/icon/exp.png' alt='exp'/> ".$exppor." опыта<br><font color=darkred> - ".$reytm." рейтинга<br></font>";
exit();
}else{

$health 50;
$silver rand(10,60);
$exp rand(5,25);
$cl_exp rand($exp/($count+1),$exp);
$reyt rand(13,40);
mysql_query("update `user` set `health` = '".($user['health']-$health)."',`exp` = '".($user['exp']+$exp)."',`silver`='".($user['silver']+$silver)."',`mana`='".($user['mana']-60)."',`duel_rating`='".($user['duel_rating']+$reyt)."',`trava`='".($user['trava']+$nagradatrav)."',`oves`='".($user['oves']+$nagradaoves)."',`st_dyel` = '".($user['st_dyel']+$st_dyel)."' where (`id` = '".$user['id']."')");
if(
$clan) {
        
       
mysql_query('UPDATE `clans`     SET `exp` = `exp` + '.$cl_exp.' WHERE `id` = "'.$clan['id'].'"');
       
mysql_query('UPDATE `clan_memb` SET `exp` = `exp` + '.$cl_exp.' WHERE `clan` = "'.$clan['id'].'" AND `user` = "'.$user['id'].'"');

  }
header('Location: ?');
$_SESSION['light'] = "
<h2 class='dgreen'> <style='font-weight:bold;'><img src='/images/icon/2hit.png' alt=''/> Победа <img src='/images/icon/2hit.png' alt=''/></h2><div class='separ'></div></a><div class='separ'></div><img src='/images/icon/silver.png' alt=''/> "
.$silver." серебра <img src='/images/icon/exp.png' alt='exp'/> ".$exp." опыта<br> <font color=#40E0D0> + $reyt рейтинга</font><br></div>";
}
exit();

}else{

if (
$opreyt>=10000 && $opreyt <=49999){
if(
$opponent_param $user[param]){
$healthpor rand(45,105);
$silverpor rand(10,52);
$exppor rand(1,11);
$c_exp rand($exppor/($count+1),$exppor);
$reytm rand(5,30);
mysql_query("update `user` set `health` = '".($user['health']-$healthpor)."',`exp` = '".($user['exp']+$exppor)."',`silver`='".($user['silver']+$silverpor)."',`mana`='".($user['mana']-60)."',`duel_rating`='".($user['duel_rating']-$reytm)."',`st_dyelp` = '".($user['st_dyelp']+$st_dyel)."' where (`id` = '".$user['id']."')");
 if(
$clan) {
        
       
mysql_query('UPDATE `clans`     SET `exp` = `exp` + '.$c_exp.' WHERE `id` = "'.$clan['id'].'"');
       
mysql_query('UPDATE `clan_memb` SET `exp` = `exp` + '.$c_exp.' WHERE `clan` = "'.$clan['id'].'" AND `user` = "'.$user['id'].'"');

  }
header('Location: ?');
$_SESSION['light'] = "<h2 class='dred' style='font-weight:bold;'><img src='/images/icon/2hit.png' alt=''/> Поражение <img src='/images/icon/2hit.png' alt=''/></h2><div class='separ'></div></a><div class='separ'></div><img src='/images/icon/exp.png' alt='exp'/> ".$exppor." опыта<br><font color=darkred> - ".$reytm." рейтинга<br></font>";

exit();
}else{

$health 50;
$silver rand(20,70);
$exp rand(5,35);
$cl_exp rand($exp/($count+1),$exp);
$reyt rand(17,45);
mysql_query("update `user` set `health` = '".($user['health']-$health)."',`exp` = '".($user['exp']+$exp)."',`silver`='".($user['silver']+$silver)."',`mana`='".($user['mana']-60)."',`duel_rating`='".($user['duel_rating']+$reyt)."',`trava`='".($user['trava']+$nagradatrav)."',`oves`='".($user['oves']+$nagradaoves)."',`st_dyel` = '".($user['st_dyel']+$st_dyel)."' where (`id` = '".$user['id']."')");
if(
$clan) {
        
       
mysql_query('UPDATE `clans`     SET `exp` = `exp` + '.$cl_exp.' WHERE `id` = "'.$clan['id'].'"');
       
mysql_query('UPDATE `clan_memb` SET `exp` = `exp` + '.$cl_exp.' WHERE `clan` = "'.$clan['id'].'" AND `user` = "'.$user['id'].'"');

  }
header('Location: ?');
$_SESSION['light'] = "
<h2 class='dgreen'> <style='font-weight:bold;'><img src='/images/icon/2hit.png' alt=''/> Победа <img src='/images/icon/2hit.png' alt=''/></h2><div class='separ'></div></a><div class='separ'></div><img src='/images/icon/silver.png' alt=''/> "
.$silver." серебра <img src='/images/icon/exp.png' alt='exp'/> ".$exp." опыта<br> <font color=#40E0D0> + $reyt рейтинга</font><br></div>";
}
exit();
}else{

if (
$opreyt>=50000 && $opreyt <=9999999999999999){
if(
$opponent_param $user[param]){
$healthpor rand(75,125);
$silverpor rand(10,62);
$exppor rand(1,11);
$c_exp rand($exppor/($count+1),$exppor);
$reytm rand(5,50);
mysql_query("update `user` set `health` = '".($user['health']-$healthpor)."',`exp` = '".($user['exp']+$exppor)."',`silver`='".($user['silver']+$silverpor)."',`mana`='".($user['mana']-60)."',`duel_rating`='".($user['duel_rating']-$reytm)."',`st_dyelp` = '".($user['st_dyelp']+$st_dyel)."' where (`id` = '".$user['id']."')");
 if(
$clan) {
        
       
mysql_query('UPDATE `clans`     SET `exp` = `exp` + '.$c_exp.' WHERE `id` = "'.$clan['id'].'"');
       
mysql_query('UPDATE `clan_memb` SET `exp` = `exp` + '.$c_exp.' WHERE `clan` = "'.$clan['id'].'" AND `user` = "'.$user['id'].'"');

  }
header('Location: ?');
$_SESSION['light'] = "<h2 class='dred' style='font-weight:bold;'><img src='/images/icon/2hit.png' alt=''/> Поражение <img src='/images/icon/2hit.png' alt=''/></h2><div class='separ'></div></a><div class='separ'></div><img src='/images/icon/exp.png' alt='exp'/> ".$exppor." опыта<br><font color=darkred> - ".$reytm." рейтинга<br></font>";
 if(
$clan) {
        
       
mysql_query('UPDATE `clans`     SET `exp` = `exp` + '.$c_exp.' WHERE `id` = "'.$clan['id'].'"');
       
mysql_query('UPDATE `clan_memb` SET `exp` = `exp` + '.$c_exp.' WHERE `clan` = "'.$clan['id'].'" AND `user` = "'.$user['id'].'"');

  }
exit();
}else{

$health 50;
$silver rand(20,100);
$exp rand(5,45);
$cl_exp rand($exp/($count+1),$exp);
$reyt rand(20,55);
mysql_query("update `user` set `health` = '".($user['health']-$health)."',`exp` = '".($user['exp']+$exp)."',`silver`='".($user['silver']+$silver)."',`mana`='".($user['mana']-60)."',`duel_rating`='".($user['duel_rating']+$reyt)."',`trava`='".($user['trava']+$nagradatrav)."',`oves`='".($user['oves']+$nagradaoves)."',`st_dyel` = '".($user['st_dyel']+$st_dyel)."' where (`id` = '".$user['id']."')");
if(
$clan) {
        
       
mysql_query('UPDATE `clans`     SET `exp` = `exp` + '.$cl_exp.' WHERE `id` = "'.$clan['id'].'"');
       
mysql_query('UPDATE `clan_memb` SET `exp` = `exp` + '.$cl_exp.' WHERE `clan` = "'.$clan['id'].'" AND `user` = "'.$user['id'].'"');

  }
header('Location: ?');
$_SESSION['light'] = "
<h2 class='dgreen'> <style='font-weight:bold;'><img src='/images/icon/2hit.png' alt=''/> Победа <img src='/images/icon/2hit.png' alt=''/></h2><div class='separ'></div></a><div class='separ'></div><img src='/images/icon/silver.png' alt=''/> "
.$silver." серебра <img src='/images/icon/exp.png' alt='exp'/> ".$exp." опыта<br> <font color=#40E0D0> + $reyt рейтинга</font><br></div>";
}
exit();

}
}
}
}
}
}
}
}
}
echo 
"<div class='mini-line'></div>";


if(
$kount 2)echo "<div class='dot-line'></div><div class='player grey'>Нет противников!</div>";

$opponents mysql_query("SELECT * FROM `user` WHERE `id` != '".$user['id']."' AND `level` <= '".$user['level']."' ORDER BY RAND() DESC LIMIT 1");
while(
$opponent mysql_fetch_array($opponents))
{
$opreyt = ($opponent[duel_rating]);
$usreyt = ($user[duel_rating]);
echo 
"<div class='player center'>
<img src='/images/icon/user.png' alt=''/> 
$opponent[nick]<font color=white> ($opreyt)</font>
<br>
<a href='/duels.php?attack=
$opponent[id]'><img src='/style/avatar/".($opponent['pol'] == "zj" "m")."/$opponent[avatar].gif' width='100' height='140' style='margin-right:10px;float:center;' alt=''/></a></div>

<div class='player center'>
<br><img src='/style/avatar/sila/
$opponent[avas].png' width='25' height='25' alt=''/> <img src='/style/avatar/health/$opponent[avah].png' width='25' height='25' alt=''/> <img src='/style/avatar/lovk/$opponent[aval].png' width='25' height='25' alt=''/> <img src='/style/avatar/zashit/$opponent[avaz].png' width='25' height='25' alt=''/> </font><br>
 <img src='/images/icon/str.png' alt='str'/>
$opponent[sila]


 <img src='/images/icon/vit.png' alt='vit'/>
$opponent[max_health]


 <img src='/images/icon/agi.png' alt='agi'/>
$opponent[lovk]


 <img src='/images/icon/def.png' alt='def'/>
$opponent[zashit]
<br>

<a href='/duels.php?attack=
$opponent[id]''><img src='/images/icon/atk.png'></div></a>";
}

echo 
"<div class='mini-line'></div>
<div class='player'>Ваши параметры:
<br>
<img src='/images/icon/str.png' alt='str'/> 
$user[sila] <img src='/images/icon/vit.png' alt='vit'/> $user[max_health] <img src='/images/icon/agi.png' alt='agi'/> $user[lovk] <img src='/images/icon/def.png' alt='def'/> $user[zashit]
<br>
</div>
<div class='line'></div>

<ul class='hint'>
<li>Чем выше рейтинг противника, тем  большую награду ты получишь за победу!</li>
</ul></div>"
;
require_once 
'core/foot.php';
?>
Онлайн: 0
Реклама