Коллекции

"; $all_1 = $collections['butterfly1'] + $collections['butterfly2'] + $collections['butterfly3'] + $collections['butterfly4'] + $collections['butterfly5'] + $collections['butterfly6'] + $collections['butterfly7'] + $collections['butterfly8'] + $collections['butterfly9'] + $collections['butterfly10']; echo '
  • Бабочки '.$all_1.'/10
    '; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo '
  • '; $all_2 = $collections['coin1'] + $collections['coin2'] + $collections['coin3'] + $collections['coin4'] + $collections['coin5'] + $collections['coin6'] + $collections['coin7'] + $collections['coin8'] + $collections['coin9'] + $collections['coin10']; echo '
  • Монетки '.$all_2.'/10
    '; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo '
  • '; $all_3 = $collections['herbal1'] + $collections['herbal2'] + $collections['herbal3'] + $collections['herbal4'] + $collections['herbal5'] + $collections['herbal6'] + $collections['herbal7'] + $collections['herbal8'] + $collections['herbal9'] + $collections['herbal10']; echo '
  • Гербарий '.$all_3.'/10
    '; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo '
  • '; $all_4 = $collections['wrapper1'] + $collections['wrapper2'] + $collections['wrapper3'] + $collections['wrapper4'] + $collections['wrapper5'] + $collections['wrapper6'] + $collections['wrapper7'] + $collections['wrapper8'] + $collections['wrapper9'] + $collections['wrapper10']; echo '
  • Фантики '.$all_4.'/10
    '; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo '
  • '; $all_5 = $collections['car1'] + $collections['car2'] + $collections['car3'] + $collections['car4'] + $collections['car5'] + $collections['car6'] + $collections['car7'] + $collections['car8'] + $collections['car9'] + $collections['car10']; echo '
  • Машинки '.$all_5.'/10
    '; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo '
  • '; $all_6 = $collections['necke1'] + $collections['necke2'] + $collections['necke3'] + $collections['necke4'] + $collections['necke5'] + $collections['necke6'] + $collections['necke7'] + $collections['necke8'] + $collections['necke9'] + $collections['necke10']; echo '
  • Нэцкэ '.$all_6.'/10
    '; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo '
  • '; $all_7 = $collections['fan1'] + $collections['fan2'] + $collections['fan3'] + $collections['fan4'] + $collections['fan5'] + $collections['fan6'] + $collections['fan7'] + $collections['fan8'] + $collections['fan9'] + $collections['fan10']; echo '
  • Веера '.$all_7.'/10
    '; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo '
  • '; $all = $all_1 + $all_2 + $all_3 + $all_4 + $all_5 + $all_6 +$all_7; $bon = $all * 1; if($collections['chanse']<=5)$plus=5; elseif($collections['chanse']>=6 and $collections['chanse']<=10)$plus=5; elseif($collections['chanse']>=11 and $collections['chanse']<=15)$plus=10; elseif($collections['chanse']>=16 and $collections['chanse']<=20)$plus=15; elseif($collections['chanse']>=21 and $collections['chanse']<=25)$plus=20; elseif($collections['chanse']>=26 and $collections['chanse']<=30)$plus=25; elseif($collections['chanse']>=31 and $collections['chanse']<=35)$plus=30; elseif($collections['chanse']>=36 and $collections['chanse']<=40)$plus=35; else $plus=50; if(isset($_GET['chanse'])) { if($collections['chanse']<=60){ $cena = $collections['chanse']*10 + 10 * $plus; if($ank['rubies'] < $cena and $ank['id'] == $ank['id']){ no_rubies(($cena * $plus) - $ank['rubies']); }else{ $cena = $collections['chanse']*10 + 10 * $plus; mysql_query("UPDATE `kolhoz_collections` SET `chanse` = '".($collections['chanse']+1)."' WHERE `id_user` = '$ku[id]'"); mysql_query("UPDATE `kolhoz_user` SET `rubies` = '".($ku['rubies']-$cena)."' WHERE `id` = '$ku[id]'"); header("Location:?collections=".$ank['id'].""); } } } echo '
    '; echo '
    Личные коллекции дают +'.$bon,'% опыта.
    '; echo '
    Шанс найти коллекционную вещь '.($collections['chanse']*0.5-0.5).'%
    '; if($ku['id'] == $ank['id']){ if($collections['chanse']<=60)echo 'Увеличить шанс до '.($collections['chanse']*0.5).'% за o '.($collections['chanse']*10 + 10 * $plus).'
    '; } include_once 'inc/foot.php'; } ?>