Размер файла: 17.01Kb
<? if(isset($_POST['nick2'])) $nick2=htmlspecialchars(stripslashes($_POST['nick2'])); if(isset($_GET['nick2'])) $nick2=htmlspecialchars(stripslashes($_GET['nick2'])); if(!isset($nick2) || $nick2=='') { header("Location:index.php?ses=$ses&mt=$mt"); exit;}
$col2=mysql_query("SELECT * FROM users WHERE nick=\"$nick2\"") or die('error');
$hark=mysql_fetch_array($col2);
if(isset($hark['nick'])){
$tmp2=0; $ses2=$hark['ses'];
$pass2=$hark['pass'];
$class2=(int)$hark['class'];
$post2=(int)$hark['post'];
$thp2=(int)$hark['thp'];
$time2=(int)$hark['time'];
$lok2=(int)$hark['lok'];
$name2=$hark['name'];
$sex2=$hark['sex'];
$town2=$hark['town'];
$email2=$hark['email'];
$infa2=$hark['infa'];
$online2=(int)$hark['online'];
$avatar2=$hark['avatar'];
$nastr2=(int)$hark['nastr'];
$art21=$hark['art1'];
$art22=$hark['art2'];
$art23=$hark['art3'];
$art24=$hark['art4'];
$rep2=(int)$hark['rep'];
$age2=(int)$hark['age'];
$nastrs2=(int)$hark['nastrs'];
$nastrt2=(int)$hark['nastrt'];
$access2=(int)$hark['access'];
$def3=(int)$hark['def'];
$mifr2=(int)$hark['mifr'];
$clan2=(int)$hark['clan'];
$crafta2=(int)$hark['crafta'];
$craftm2=(int)$hark['craftm'];
$crafth2=(int)$hark['crafth'];
$craftg2=(int)$hark['craftg'];
$money2=(int)$hark['money'];
$tmp2=(int)$hark['tmp'];
$craftr2=(int)$hark['craftr'];
$craftrun2=(int)$hark['craftrun'];
$craftc2=(int)$hark['craftc'];
$craftkr2=(int)$hark['craftkr'];
$craftu2=(int)$hark['craftu'];}
else {header("Location:index.php?ses=$ses&mt=$mt"); exit;}
$lvl2=1; $ia2=0; $aa2=0; if(!isset($mdef2)) $mdef2=0; while($ia2==0){ $aa2=$aa2+40*$lvl2; if($post2>=$aa2) $lvl2=$lvl2+1; else $ia2=1;} $npost2=$aa2-$post2;
$sq2=mysql_query("SELECT * FROM equip WHERE nick=\"$nick2\"") or die('er'); $qs2=mysql_fetch_array($sq2); $fx21=$qs2['eq1']; $fx22=$qs2['eq2']; $fx23=$qs2['eq3']; $fx24=$qs2['eq4']; $fx25=$qs2['eq5']; $fx26=$qs2['eq6']; $th21=@explode(".",$fx21); $th22=@explode(".",$fx22); $th23=@explode(".",$fx23); $th24=@explode(".",$fx24); $th25=@explode(".",$fx25); $th26=@explode(".",$fx26);
$atk_kr2=0;
$def_kr2=0;
$mdef_kr2=0;
$hp_kr2=0;
$int_kr2=0;
$m_kr2=0;
if(isset($th21[2])){ $head2=$th21[1]; $d21=(int)$th21[2]; if(isset($th21[6])){
if((int)$th21[6]==1){ $atk_kr2=(int)($d21*10/100)+$atk_kr2;}
if((int)$th21[6]==2){ $atk_kr2=(int)($d21*20/100)+$atk_kr2;}
if((int)$th21[6]==3){ $atk_kr2=(int)($d21*30/100)+$atk_kr2;}
if((int)$th21[6]==19){ $atk_kr2=(int)($d21*40/100)+$atk_kr2;}
if((int)$th21[6]==4){ $def_kr2=(int)($d21*7/100)+$def_kr2;}
if((int)$th21[6]==5){ $def_kr2=(int)($d21*14/100)+$def_kr2;}
if((int)$th21[6]==6){ $def_kr2=(int)($d21*21/100)+$def_kr2;}
if((int)$th21[6]==20){ $def_kr2=(int)($d21*28/100)+$def_kr2;}
if((int)$th21[6]==7){ $mdef_kr2=(int)(sqrt($d21*10*1.7/100))+$mdef_kr2;}
if((int)$th21[6]==8){ $mdef_kr2=(int)(sqrt($d21*15*1.7/100))+$mdef_kr2;}
if((int)$th21[6]==9){ $mdef_kr2=(int)(sqrt($d21*20*1.7/100))+$mdef_kr2;}
if((int)$th21[6]==21){ $mdef_kr2=(int)(sqrt($d21*25*1.7/100))+$mdef_kr2;}
if((int)$th21[6]==10){ $hp_kr2=(int)($d21*10/100)+$hp_kr2;}
if((int)$th21[6]==11){ $hp_kr2=(int)($d21*20/100)+$hp_kr2;}
if((int)$th21[6]==12){ $hp_kr2=(int)($d21*30/100)+$hp_kr2;}
if((int)$th21[6]==22){ $hp_kr2=(int)($d21*40/100)+$hp_kr2;}
if((int)$th21[6]==13){ $int_kr2=(int)($d21*3/100)+$int_kr2;}
if((int)$th21[6]==14){ $int_kr2=(int)($d21*4/100)+$int_kr2;}
if((int)$th21[6]==15){ $int_kr2=(int)($d21*5/100)+$int_kr2;}
if((int)$th21[6]==23){ $int_kr2=(int)($d21*6/100)+$int_kr2;}
if((int)$th21[6]==16){ $m_kr2=(int)($d21*4/100)+$m_kr2;}
if((int)$th21[6]==17){ $m_kr2=(int)($d21*8/100)+$m_kr2;}
if((int)$th21[6]==18){ $m_kr2=(int)($d21*12/100)+$m_kr2;}
if((int)$th21[6]==24){ $m_kr2=(int)($d21*16/100)+$m_kr2;}
}} else { $d21=0; $head2='не одето';}
if(isset($th22[2])){ $body2=$th22[1]; $d22=(int)$th22[2]; if(isset($th22[6])){
if((int)$th22[6]==1){ $atk_kr2=(int)($d22*10/100)+$atk_kr2;}
if((int)$th22[6]==2){ $atk_kr2=(int)($d22*20/100)+$atk_kr2;}
if((int)$th22[6]==3){ $atk_kr2=(int)($d22*30/100)+$atk_kr2;}
if((int)$th22[6]==19){ $atk_kr2=(int)($d22*40/100)+$atk_kr2;}
if((int)$th22[6]==4){ $def_kr2=(int)($d22*7/100)+$def_kr2;}
if((int)$th22[6]==5){ $def_kr2=(int)($d22*14/100)+$def_kr2;}
if((int)$th22[6]==6){ $def_kr2=(int)($d22*21/100)+$def_kr2;}
if((int)$th22[6]==20){ $def_kr2=(int)($d22*28/100)+$def_kr2;}
if((int)$th22[6]==7){ $mdef_kr2=(int)(sqrt($d22*10*1.7/100))+$mdef_kr2;}
if((int)$th22[6]==8){ $mdef_kr2=(int)(sqrt($d22*15*1.7/100))+$mdef_kr2;}
if((int)$th22[6]==9){ $mdef_kr2=(int)(sqrt($d22*20*1.7/100))+$mdef_kr2;}
if((int)$th22[6]==21){ $mdef_kr2=(int)(sqrt($d22*25*1.7/100))+$mdef_kr2;}
if((int)$th22[6]==10){ $hp_kr2=(int)($d22*10/100)+$hp_kr2;}
if((int)$th22[6]==11){ $hp_kr2=(int)($d22*20/100)+$hp_kr2;}
if((int)$th22[6]==12){ $hp_kr2=(int)($d22*30/100)+$hp_kr2;}
if((int)$th22[6]==22){ $hp_kr2=(int)($d22*40/100)+$hp_kr2;}
if((int)$th22[6]==13){ $int_kr2=(int)($d22*3/100)+$int_kr2;}
if((int)$th22[6]==14){ $int_kr2=(int)($d22*4/100)+$int_kr2;}
if((int)$th22[6]==15){ $int_kr2=(int)($d22*5/100)+$int_kr2;}
if((int)$th22[6]==23){ $int_kr2=(int)($d22*6/100)+$int_kr2;}
if((int)$th22[6]==16){ $m_kr2=(int)($d22*4/100)+$m_kr2;}
if((int)$th22[6]==17){ $m_kr2=(int)($d22*8/100)+$m_kr2;}
if((int)$th22[6]==18){ $m_kr2=(int)($d22*12/100)+$m_kr2;}
if((int)$th22[6]==24){ $m_kr2=(int)($d22*16/100)+$m_kr2;}
}} else {$d22=0; $body2='не одето';}
if(isset($th23[2])){ $rhand2=$th23[1]; $d23=(int)$th23[2]; if(isset($th23[6])){
if((int)$th23[6]==1){ $atk_kr2=(int)($d23*10/100)+$atk_kr2;}
if((int)$th23[6]==2){ $atk_kr2=(int)($d23*20/100)+$atk_kr2;}
if((int)$th23[6]==3){ $atk_kr2=(int)($d23*30/100)+$atk_kr2;}
if((int)$th23[6]==19){ $atk_kr2=(int)($d23*40/100)+$atk_kr2;}
if((int)$th23[6]==4){ $def_kr2=(int)($d23*7/100)+$def_kr2;}
if((int)$th23[6]==5){ $def_kr2=(int)($d23*14/100)+$def_kr2;}
if((int)$th23[6]==6){ $def_kr2=(int)($d23*21/100)+$def_kr2;}
if((int)$th23[6]==20){ $def_kr2=(int)($d23*28/100)+$def_kr2;}
if((int)$th23[6]==7){ $mdef_kr2=(int)(sqrt($d23*10*1.7/100))+$mdef_kr2;}
if((int)$th23[6]==8){ $mdef_kr2=(int)(sqrt($d23*15*1.7/100))+$mdef_kr2;}
if((int)$th23[6]==9){ $mdef_kr2=(int)(sqrt($d23*20*1.7/100))+$mdef_kr2;}
if((int)$th23[6]==21){ $mdef_kr2=(int)(sqrt($d23*25*1.7/100))+$mdef_kr2;}
if((int)$th23[6]==10){ $hp_kr2=(int)($d23*10/100)+$hp_kr2;}
if((int)$th23[6]==11){ $hp_kr2=(int)($d23*20/100)+$hp_kr2;}
if((int)$th23[6]==12){ $hp_kr2=(int)($d23*30/100)+$hp_kr2;}
if((int)$th23[6]==22){ $hp_kr2=(int)($d23*40/100)+$hp_kr2;}
if((int)$th23[6]==13){ $int_kr2=(int)($d23*3/100)+$int_kr2;}
if((int)$th23[6]==14){ $int_kr2=(int)($d23*4/100)+$int_kr2;}
if((int)$th23[6]==15){ $int_kr2=(int)($d23*5/100)+$int_kr2;}
if((int)$th23[6]==23){ $int_kr2=(int)($d23*6/100)+$int_kr2;}
if((int)$th23[6]==16){ $m_kr2=(int)($d23*4/100)+$m_kr2;}
if((int)$th23[6]==17){ $m_kr2=(int)($d23*8/100)+$m_kr2;}
if((int)$th23[6]==18){ $m_kr2=(int)($d23*12/100)+$m_kr2;}
if((int)$th23[6]==24){ $m_kr2=(int)($d23*16/100)+$m_kr2;}
}} else {$rhand2='не одето'; $d23=0;}
if(isset($th24[2])){$lhand2=$th24[1]; $d24=(int)$th24[2]; if(isset($th24[6])){
if((int)$th24[6]==1){ $atk_kr2=(int)($d24*10/100)+$atk_kr2;}
if((int)$th24[6]==2){ $atk_kr2=(int)($d24*20/100)+$atk_kr2;}
if((int)$th24[6]==3){ $atk_kr2=(int)($d24*30/100)+$atk_kr2;}
if((int)$th24[6]==19){ $atk_kr2=(int)($d24*40/100)+$atk_kr2;}
if((int)$th24[6]==4){ $def_kr2=(int)($d24*7/100)+$def_kr2;}
if((int)$th24[6]==5){ $def_kr2=(int)($d24*14/100)+$def_kr2;}
if((int)$th24[6]==6){ $def_kr2=(int)($d24*21/100)+$def_kr2;}
if((int)$th24[6]==20){ $def_kr2=(int)($d24*28/100)+$def_kr2;}
if((int)$th24[6]==7){ $mdef_kr2=(int)(sqrt($d24*10*1.7/100))+$mdef_kr2;}
if((int)$th24[6]==8){ $mdef_kr2=(int)(sqrt($d24*15*1.7/100))+$mdef_kr2;}
if((int)$th24[6]==9){ $mdef_kr2=(int)(sqrt($d24*20*1.7/100))+$mdef_kr2;}
if((int)$th24[6]==21){ $mdef_kr2=(int)(sqrt($d24*25*1.7/100))+$mdef_kr2;}
if((int)$th24[6]==10){ $hp_kr2=(int)($d24*10/100)+$hp_kr2;}
if((int)$th24[6]==11){ $hp_kr2=(int)($d24*20/100)+$hp_kr2;}
if((int)$th24[6]==12){ $hp_kr2=(int)($d24*30/100)+$hp_kr2;}
if((int)$th24[6]==22){ $hp_kr2=(int)($d24*40/100)+$hp_kr2;}
if((int)$th24[6]==13){ $int_kr2=(int)($d24*3/100)+$int_kr2;}
if((int)$th24[6]==14){ $int_kr2=(int)($d24*4/100)+$int_kr2;}
if((int)$th24[6]==15){ $int_kr2=(int)($d24*5/100)+$int_kr2;}
if((int)$th24[6]==23){ $int_kr2=(int)($d24*6/100)+$int_kr2;}
if((int)$th24[6]==16){ $m_kr2=(int)($d24*4/100)+$m_kr2;}
if((int)$th24[6]==17){ $m_kr2=(int)($d24*8/100)+$m_kr2;}
if((int)$th24[6]==18){ $m_kr2=(int)($d24*12/100)+$m_kr2;}
if((int)$th24[6]==24){ $m_kr2=(int)($d24*16/100)+$m_kr2;}
}} else {$lhand2='не одето'; $d24=0;}
if(isset($th25[2])){$glove2=$th25[1]; $d25=(int)$th25[2]; if(isset($th25[6])){
if((int)$th25[6]==1){ $atk_kr2=(int)($d25*10/100)+$atk_kr2;}
if((int)$th25[6]==2){ $atk_kr2=(int)($d25*20/100)+$atk_kr2;}
if((int)$th25[6]==3){ $atk_kr2=(int)($d25*30/100)+$atk_kr2;}
if((int)$th25[6]==19){ $atk_kr2=(int)($d25*40/100)+$atk_kr2;}
if((int)$th25[6]==4){ $def_kr2=(int)($d25*7/100)+$def_kr2;}
if((int)$th25[6]==5){ $def_kr2=(int)($d25*14/100)+$def_kr2;}
if((int)$th25[6]==6){ $def_kr2=(int)($d25*21/100)+$def_kr2;}
if((int)$th25[6]==20){ $def_kr2=(int)($d25*28/100)+$def_kr2;}
if((int)$th25[6]==7){ $mdef_kr2=(int)(sqrt($d25*10*1.7/100))+$mdef_kr2;}
if((int)$th25[6]==8){ $mdef_kr2=(int)(sqrt($d25*15*1.7/100))+$mdef_kr2;}
if((int)$th25[6]==9){ $mdef_kr2=(int)(sqrt($d25*20*1.7/100))+$mdef_kr2;}
if((int)$th25[6]==21){ $mdef_kr2=(int)(sqrt($d25*25*1.7/100))+$mdef_kr2;}
if((int)$th25[6]==10){ $hp_kr2=(int)($d25*10/100)+$hp_kr2;}
if((int)$th25[6]==11){ $hp_kr2=(int)($d25*20/100)+$hp_kr2;}
if((int)$th25[6]==12){ $hp_kr2=(int)($d25*30/100)+$hp_kr2;}
if((int)$th25[6]==22){ $hp_kr2=(int)($d25*40/100)+$hp_kr2;}
if((int)$th25[6]==13){ $int_kr2=(int)($d25*3/100)+$int_kr2;}
if((int)$th25[6]==14){ $int_kr2=(int)($d25*4/100)+$int_kr2;}
if((int)$th25[6]==15){ $int_kr2=(int)($d25*5/100)+$int_kr2;}
if((int)$th25[6]==23){ $int_kr2=(int)($d25*6/100)+$int_kr2;}
if((int)$th25[6]==16){ $m_kr2=(int)($d25*4/100)+$m_kr2;}
if((int)$th25[6]==17){ $m_kr2=(int)($d25*8/100)+$m_kr2;}
if((int)$th25[6]==18){ $m_kr2=(int)($d25*12/100)+$m_kr2;}
if((int)$th25[6]==24){ $m_kr2=(int)($d25*16/100)+$m_kr2;}
}} else {$d25=0; $glove2='не одето';}
if(isset($th26[2])){$foot2=$th26[1]; $d26=(int)$th26[2]; if(isset($th26[6])){
if((int)$th26[6]==1){ $atk_kr2=(int)($d26*10/100)+$atk_kr2;}
if((int)$th26[6]==2){ $atk_kr2=(int)($d26*20/100)+$atk_kr2;}
if((int)$th26[6]==3){ $atk_kr2=(int)($d26*30/100)+$atk_kr2;}
if((int)$th26[6]==19){ $atk_kr2=(int)($d26*40/100)+$atk_kr2;}
if((int)$th26[6]==4){ $def_kr2=(int)($d26*7/100)+$def_kr2;}
if((int)$th26[6]==5){ $def_kr2=(int)($d26*14/100)+$def_kr2;}
if((int)$th26[6]==6){ $def_kr2=(int)($d26*21/100)+$def_kr2;}
if((int)$th26[6]==20){ $def_kr2=(int)($d26*28/100)+$def_kr2;}
if((int)$th26[6]==7){ $mdef_kr2=(int)(sqrt($d26*10*1.7/100))+$mdef_kr2;}
if((int)$th26[6]==8){ $mdef_kr2=(int)(sqrt($d26*15*1.7/100))+$mdef_kr2;}
if((int)$th26[6]==9){ $mdef_kr2=(int)(sqrt($d26*20*1.7/100))+$mdef_kr2;}
if((int)$th26[6]==21){ $mdef_kr2=(int)(sqrt($d26*25*1.7/100))+$mdef_kr2;}
if((int)$th26[6]==10){ $hp_kr2=(int)($d26*10/100)+$hp_kr2;}
if((int)$th26[6]==11){ $hp_kr2=(int)($d26*20/100)+$hp_kr2;}
if((int)$th26[6]==12){ $hp_kr2=(int)($d26*30/100)+$hp_kr2;}
if((int)$th26[6]==22){ $hp_kr2=(int)($d26*40/100)+$hp_kr2;}
if((int)$th26[6]==13){ $int_kr2=(int)($d26*3/100)+$int_kr2;}
if((int)$th26[6]==14){ $int_kr2=(int)($d26*4/100)+$int_kr2;}
if((int)$th26[6]==15){ $int_kr2=(int)($d26*5/100)+$int_kr2;}
if((int)$th26[6]==23){ $int_kr2=(int)($d26*6/100)+$int_kr2;}
if((int)$th26[6]==16){ $m_kr2=(int)($d26*4/100)+$m_kr2;}
if((int)$th26[6]==17){ $m_kr2=(int)($d26*8/100)+$m_kr2;}
if((int)$th26[6]==18){ $m_kr2=(int)($d26*12/100)+$m_kr2;}
if((int)$th26[6]==24){ $m_kr2=(int)($d26*16/100)+$m_kr2;}
}} else {$foot2='не одето'; $d26=0;}
$def2=$def3+(int)$d21+(int)$d22+(int)$d24+(int)$d25+(int)$d26+$def_kr2;
if($class2!=1) $hp2=16+9*$lvl2; else $hp2=16+14*$lvl2;
$hp2=$hp2+$hp_kr2;
$str2=3+$lvl2*3+$atk_kr2;
$mdef2=$mdef2+$mdef_kr2;
$ind2=0;
$aad21=@explode(".",$art21); if(!isset($aad21[1])){ $art21=0; $aad21[0]=0; $aad21[1]=0; $aad21[2]=0; $aad21[3]=0; $aad21[4]=0; $aad21[5]=0;} $kuku=(int)$aad21[3]; $obsh=((int)$aad21[2]+$kuku/4+(int)$aad21[4])/5.5; $obsh21=(int)$obsh; if($obsh21==0) $obsh21=1;
$aad22=@explode(".",$art22); if(!isset($aad22[1])){ $art22=0; $aad22[0]=0; $aad22[1]=0; $aad22[2]=0; $aad22[3]=0; $aad22[4]=0; $aad22[5]=0;} $kuku=(int)$aad22[3]; $obsh=((int)$aad22[2]+$kuku/4+(int)$aad22[4])/5.5; $obsh22=(int)$obsh; if($obsh22==0) $obsh22=1;
$aad23=@explode(".",$art23); if(!isset($aad23[1])){ $art23=0; $aad23[0]=0; $aad23[1]=0; $aad23[2]=0; $aad23[3]=0; $aad23[4]=0; $aad23[5]=0;} $kuku=(int)$aad23[3]; $obsh=((int)$aad23[2]+$kuku/4+(int)$aad23[4])/5.5; $obsh23=(int)$obsh; if($obsh23==0) $obsh23=1;
$aad24=@explode(".",$art24); if(!isset($aad24[1])){ $art24=0; $aad24[0]=0; $aad24[1]=0; $aad24[2]=0; $aad24[3]=0; $aad24[4]=0; $aad24[5]=0;} $kuku=(int)$aad24[3]; $obsh=((int)$aad24[2]+$kuku/4+(int)$aad24[4])/5.5; $obsh24=(int)$obsh; if($obsh24==0) $obsh24=1;
$artnaz21=$aad21[0];
$artimg21=$aad21[1];
$artnaz22=$aad22[0];
$artimg22=$aad22[1];
$artnaz23=$aad23[0];
$artimg23=$aad23[1];
$artnaz24=$aad24[0];
$artimg24=$aad24[1];
$str2=$str2+(int)$d23;
if($obsh21<=$lvl2){ $str2=$str2+(int)$aad21[2]; $hp2=$hp2+(int)$aad21[3]; $ind2=$ind2+(int)$aad21[4];}
if($obsh22<=$lvl2){ $str2=$str2+(int)$aad22[2]; $hp2=$hp2+(int)$aad22[3]; $ind2=$ind2+(int)$aad22[4];}
if($obsh23<=$lvl2){ $str2=$str2+(int)$aad23[2]; $hp2=$hp2+(int)$aad23[3]; $ind2=$ind2+(int)$aad23[4];}
if($obsh24<=$lvl2){ $str2=$str2+(int)$aad24[2]; $hp2=$hp2+(int)$aad24[3]; $ind2=$ind2+(int)$aad24[4];}
$sql=mysql_query("SELECT * FROM skills WHERE nick=\"$nick2\"") or die('error');
$row=mysql_fetch_array($sql);
$int2=$int_kr2+$lvl2; $i=1;
$k=$row['skill_i']/3;
if($k>0){while($i<=$k){$int2=$int2+4+$i; $i++;}} $ind2=$ind2+$int2+$m_kr2;
if($tmp2>$ind2) $tmp2=$ind2; $i=1; $k=$row['skill_h']/3;
if($k>0){while($i<=$k){$hp2=$hp2+8+$i*4; $i++;}} $i=1; $k=$row['skill_s']/3;
if($k>0){while($i<=$k){$str2=$str2+4+$i; $i++;}}
$pas_aur2=0;
if($class2==1){ if($row['skill2']==10) $hp2=(int)($hp2*106/100); if($row['skill2']==21) $hp2=(int)($hp2*112/100); if($row['skill2']==33) $hp2=(int)($hp2*118/100); if($row['skill2']==46) $hp2=(int)($hp2*124/100);
if($row['skill2']==60) $hp2=(int)($hp2*130/100); if($row['skill4']==20) $str2=(int)($str2*108/100); if($row['skill4']==41) $str2=(int)($str2*116/100); if($row['skill4']==63) $str2=(int)($str2*124/100); if($row['skill4']==86) $str2=(int)($str2*132/100); if($row['skill4']==110) $str2=(int)($str2*140/100); if($row['skill1']>0) $aur21=1; if($row['skill2']>0) $aur22=1; if($row['skill4']>0) $aur24=1;}
if($class2==2){ if($row['skill1']==5) $str2=(int)($str2*106/100); if($row['skill1']==11) $str2=(int)($str2*112/100); if($row['skill1']==18) $str2=(int)($str2*118/100); if($row['skill1']==26) $str2=(int)($str2*124/100); if($row['skill1']==35) $str2=(int)($str2*130/100); if($row['skill1']>0) $aur21=1; if($row['skill2']>0) $aur22=1; if($row['skill4']>20 && $row['time4']>date("U")) {$aur24=1; $mdef2=$mdef2+10; $def2=(int)($def2*11/10); $str2=(int)($str2*12/10);}}
if($class2==3){ if($row['skill2']>0) $aur22=1; if($row['skill2']==10) $pas_aur2=12; if($row['skill2']==21) $pas_aur2=24; if($row['skill2']==33) $pas_aur2=36; if($row['skill2']==46) $pas_aur2=48; if($row['skill2']==60) $pas_aur2=60; if($row['skill3']>0 && $row['time3']>date("U")) $aur23=1;}
if($class2==4){ if($row['skill1']>0) $aur21=1; if($row['skill4']>0) $aur24=1;}
if($class2==5){ if($row['skill1']==5 && $row['time1']>date("U")){ $aur21=1; $def2=(int)($def2*105/100);} if($row['skill1']==11 && $row['time1']>date("U")){ $aur21=1; $def2=(int)($def2*110/100);} if($row['skill1']==18 && $row['time1']>date("U")){ $aur21=1; $def2=(int)($def2*115/100);} if($row['skill1']==26 && $row['time1']>date("U")){ $aur21=1; $def2=(int)($def2*120/100);} if($row['skill1']==35 && $row['time1']>date("U")){ $aur21=1; $def2=(int)($def2*125/100);} if($row['skill2']>0) $aur22=1; if($row['skill2']==10) $pas_aur2=12; if($row['skill2']==21) $pas_aur2=24; if($row['skill2']==33) $pas_aur2=36; if($row['skill2']==46) $pas_aur2=48; if($row['skill2']==60) $pas_aur2=60; if($row['skill4']==20 && $row['time4']>date("U")){ $aur24=1; $mdef2=$mdef2+10;} if($row['skill4']==41 && $row['time4']>date("U")){ $aur24=1; $mdef2=$mdef2+20;} if($row['skill4']==63 && $row['time4']>date("U")){ $aur24=1; $mdef2=$mdef2+30;} if($row['skill4']==86 && $row['time4']>date("U")){ $aur24=1; $mdef2=$mdef2+40;} if($row['skill4']==110 && $row['time4']>date("U")){ $aur24=1; $mdef2=$mdef2+50;}}
if($class2==6){ if($row['skill5']>0 && $row['time5']>0) $aur25=1;}
$sson2=0; $rrr=date("U");
if($mdef2>85) $mdef2=85;
if($row['bad1']>$rrr) $sson2=1;
if($chas=="дeнь" && $rep2>5){ if($str2>=5){$t=$str2%5; $mmt=$str2-$t; $w=$mmt/5; $str2=$str2+$w;}}
if($chas=="нoчь" && $rep2<-5){ if($str2>=5){$t=$str2%5; $mmt=$str2-$t; $w=$mmt/5; $str2=$str2+$w;}}
$gg=mysql_query("SELECT * FROM dop WHERE nick=\"$nick2\" LIMIT 1"); $ggg=mysql_fetch_array($gg); $n_zags2=$ggg['zags'];
?>