Вернуться
'; ?>
Мастерская Оружейка Абилки Колодец Дипломатия Дипломатия Права О клане Управление
 

Дипломатия

Дипломатия в разработке...

Хранилище

setTZ('TZ17', 1)Вы забрали вещь из хранилища."); mysql_query("UPDATE `inventory` SET `owner` = '" . mysql_real_escape_string($user['id']) . "' WHERE `id` = '" . mysql_real_escape_string($it['id_it']) . "';"); mysql_query("DELETE FROM `clanstorage` WHERE `id` = '" . mysql_real_escape_string($_GET['back']) . "';"); echo ""; } // положить шмотку if ($_GET['add']) { $it = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `dressed`=0 AND `setsale` = 0 AND `owner` ='" . mysql_real_escape_string($user['id']) . "' AND `id` = '" . mysql_real_escape_string($_GET['add']) . "';")); if ($it['owner'] == $user['id']) { $skoka = mysql_num_rows(mysql_query("SELECT id FROM `clanstorage` WHERE `klan` = '" . mysql_real_escape_string($user['klan']) . "' ;")); if ($klan['clanlevel'] < 1 && $skoka >= 1) { err("Количество вещей превышает лимит Вашего клана."); } elseif ($klan['clanlevel'] = 1 && $skoka >= 10) { err("Количество вещей превышает лимит Вашего клана."); } elseif ($klan['clanlevel'] = 2 && $skoka >= 30) { err("Количество вещей превышает лимит Вашего клана."); } else { err("Вы положили вещь в хранилище."); mysql_query("UPDATE `inventory` SET `owner` = '' WHERE `id` = '" . mysql_real_escape_string($it['id']) . "';"); mysql_query("insert `clanstorage` (`id_it`,`owner`,`klan`) values (" . mysql_real_escape_string($it['id']) . "," . mysql_real_escape_string($user['id']) . ",'" . mysql_real_escape_string($user['klan']) . "');"); } echo ""; } } ?>
В хранилище / Уровень Оружейки
В рюкзаке
'; while ($it = mysql_fetch_array($data)) { $row = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `id` = '" . mysql_real_escape_string($it['id_it']) . "' LIMIT 1;")); $row['count'] = 1; if ($i == 0) { $i = 1; $color = '#C7C7C7'; } else { $i = 0; $color = '#D5D5D5'; } echo ""; showitem($row); echo ""; } echo "

Положил:
" . nick3($it['owner']) . "
"; ?> забрать
"; } $data = mysql_query("SELECT * FROM `inventory` WHERE `owner` = '" . mysql_real_escape_string($_SESSION['uid']) . "' AND `dressed` = 0 AND `setsale`=0 AND `bs`=0 AND `podzem`=0 AND `type`<50 ORDER BY `update` DESC; "); while ($row = mysql_fetch_array($data)) { $row['count'] = 1; if ($i == 0) { $i = 1; $color = '#C7C7C7'; } else { $i = 0; $color = '#D5D5D5'; } echo ""; showitem($row); echo ""; } echo "
"; ?>
положить
"; ?>

Клановые войны

Клановые войны в разработке...

Реликты клана

Реликты клана в процессе разработки...

Колодец

Колодец в процессе разработки...

Ваши права в клане

Права в процессе разработки...

Мастерская

У вас не хватает денег на модификацию."; } else { srand(make_seed()); $type = rand(1, 4); $mfintel = round($user['intel'] / 5 - 10); if ($mfintel > -1) { $mfintel = -1; } $statintel = round($user['intel'] / 25 - 2); if ($statintel > -1) { $statintel = -1; } $nstatintel = round(2 - $user['intel'] / 25); if ($nstatintel < 1) { $statintel = 1; } srand(make_seed()); $mf1 = rand($mfintel, 10); srand(make_seed()); $mf2 = rand($mfintel, 10); srand(make_seed()); $st1 = rand($statintel, 2); srand(make_seed()); $st2 = rand(-2, $nstatintel); srand(make_seed()); $min = rand($statintel, 2); srand(make_seed()); $max = rand($statintel, 4); switch ($type) { case 1: // крит $mfkrit = $mf1; $mfantiuvorot = $mf2; $inta = $st1; $hp = rand(0, 15); $ninta = $st2; break; case 2: // ловкость $mfuvorot = $mf1; $mfantikrit = $mf2; $lovk = $st1; $hp = rand(1, 15); $nlovk = $st2; break; case 3: // сила $mfminu = $min; $mfmaxu = $max; $sila = $st1; $hp = rand(6, 20); $nsila = $st2; break; case 4: // вынос $nvinos = $st2; $mfantikrit = $mf1; $bron1 = rand(0, 3); $bron2 = rand(0, 3); $bron3 = rand(0, 3); $bron4 = rand(0, 3); $hp = rand(0, 15); break; } if ($row["ghp"] !== 0) { $hp = true; $shans = rand(7, 9); if ($shans == 7) { print"shans0"; ////ебаний фифти-фифти $ssh = rand(77, 78); $hp = $row["ghp"] / 2; if ($ssh == 77) { $hp = $row["ghp"] / 2; } if ($ssh == 78) { if (mysql_query("UPDATE `inventory` SET `ghp` = `ghp`-'" . (int)$hp . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } }///shans 77 if ($shans == 8) { $shans = rand(1, 50); $hp = $shans; } if ($shans == 9) { $hp = rand(1, 25); if (($row["ghp"] - $hp) < 0) { $hp = $row["ghp"]; } if (mysql_query("UPDATE `inventory` SET `ghp` = `ghp`-'" . (int)$hp . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } } else $hp == 0; //////начала БРОНИ//// if ($row["bron1"] != 0) { $bron1 = true; $shans = rand(7, 9); if ($shans == 7) { print"shans0"; ////ебаний фифти-фифти $ssh = rand(77, 78); $bron1 = $row["bron1"] / 2; if ($ssh == 77) { $bron1 = $row["bron1"] / 2; } if ($ssh == 78) { if (mysql_query("UPDATE `inventory` SET `bron1` = `bron1`-'" . (int)$bron1 . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } }///shans 77 if ($shans == 8) { $shans = rand(1, 15); $born1 = $shans; } if ($shans == 9) $bron1 = rand(1, 5); if (($row["bron1"] - $bron1) < 0) { $bron1 = $row["bron1"]; } if (mysql_query("UPDATE `inventory` SET `bron1` = `bron1`-'" . (int)$bron1 . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } //made 100%(c)Thunder else $bron1 = 0; /////брон2////// if ($row["bron2"] != 0) { $bron2 = true; $shans = rand(7, 9); if ($shans == 7) { print"shans0"; ////ебаний фифти-фифти $ssh = rand(77, 78); $bron2 = $row["bron2"] / 2; if ($ssh == 77) { $bron = $row["bron2"] / 2; } if ($ssh == 78) { if (mysql_query("UPDATE `inventory` SET `bron2` = `bron2`-'" . (int)$bron1 . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } }///shans 77 if ($shans == 8) { $shans = rand(1, 50); $bron2 = $shans; } if ($shans == 9) { $bron2 = rand(1, 25); if (($row["bron2"] - $bron2) < 0) { $bron2 = $row["bron2"]; } if (mysql_query("UPDATE `inventory` SET `bron1` = `bron2`-'" . (int)$bron2 . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; }///////бронь2 конец made (c)Thunder ; } else $bron2 = 0; if ($row["bron3"] != 0) { $bron3 = true; $shans = rand(7, 9); if ($shans == 7) { ////ебаний фифти-фифти $ssh = rand(77, 78); $bron = $row["bron3"] / 2; if ($ssh == 77) { $bron = $row["bron3"] / 2; } if ($ssh == 78) { if (mysql_query("UPDATE `inventory` SET `bron3` = `bron3`-'" . (int)$bron3 . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } }///shans 77 if ($shans == 8) { $shans = rand(1, 15); $bron3 = $shans; } if ($shans == 9) { $bron3 = rand(1, 15); if (($row["bron3"] - $bron3) < 0) { $bron3 = $row["bron3"]; } if (mysql_query("UPDATE `inventory` SET `bron1` = `bron1`-'" . (int)$bron3 . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } ////made (c)Thunder } else $bron3 = 0; if ($row["bron4"] != 0) { $bron4 = true; $shans = rand(7, 9); if ($shans == 7) { ////ебаний фифти-фифти $ssh = rand(77, 78); $bron4 = $row["bron4"] / 2; if ($ssh == 77) { $bron4 = $row["bron4"] / 2; } if ($ssh == 78) { if (mysql_query("UPDATE `inventory` SET `bron4` = `bron4`-'" . (int)$bron4 . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } }///shans 77 if ($shans == 8) { $shans = rand(1, 15); $bron4 = $shans; } if ($shans == 9) { $bron4 = rand(1, 15); if (($row["bron4"] - $bron4) < 0) { $bron4 = $row["bron4"]; } if (mysql_query("UPDATE `inventory` SET `bron4` = `bron4`-'" . (int)$bron4 . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } } else $bron4 = 0; ///made(c)Thunder if ($row["mfkrit"] != 0) { $mfkrit = true; $shans = rand(7, 9); if ($shans == 7) { ////ебаний фифти-фифти $ssh = rand(77, 78); $mfkrit = $row["mfkrit"] / 2; if ($ssh == 77) { $mfkrit = $row["mfkrit"] / 2; } if ($ssh == 78) { if (mysql_query("UPDATE `inventory` SET `mfkrit` = `mfkrit`-'" . (int)$mfkrit . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } }///shans 77 if ($shans == 8) { $shans = rand(1, 15); $mfkrit = $shans; } if ($shans == 9) { $mfkrit = rand(1, 15); if (($row["mfkrit"] - $mfkrit) < 0) { $mfkrit = $row["mfkrit"]; } if (mysql_query("UPDATE `inventory` SET `mfkrit` = `mfkrit`-'" . (int)$mfkrit . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } } else $mfkrit = 0; ///(c) made, test (c)Thunder if ($row["mfakrit"] != 0) { $mfakrit = true; $shans = rand(7, 9); if ($shans == 7) { ////ебаний фифти-фифти $ssh = rand(77, 78); $mfakrit = $row["mfakrit"] / 2; if ($ssh == 77) { $mfakrit = $row["mfakrit"] / 2; } if ($ssh == 78) { if (mysql_query("UPDATE `inventory` SET `mfakrit` = `mfakrit`-'" . (int)$mfakrit . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } }///shans 77 if ($shans == 8) { $shans = rand(1, 18); $mfakrit = $shans; } if ($shans == 9) { $mfakrit = rand(1, 10); if (($row["mfakrit"] - $mfakrit) < 0) { $mfakrit = $row["mfakrit"]; } if (mysql_query("UPDATE `inventory` SET `mfakrit` = `mfakrit`-'" . (int)$mfakrit . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } } else $mfakrit = 0; if ($row["mfuvorot"] != 0) { $mfuvorot = true; $shans = rand(7, 9); if ($shans == 7) { ////ебаний фифти-фифти $ssh = rand(77, 78); $mfuvorot = $row["mfuvorot"] / 2; if ($ssh == 77) { $mfuvorot = $row["mfuvorot"] / 2; } if ($ssh == 78) { if (mysql_query("UPDATE `inventory` SET `mfuvorot` = `mfuvorot`-'" . (int)$mfuvorot . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } }///shans 77 if ($shans == 8) { $shans = rand(1, 18); $mfuvorot = $shans; } if ($shans == 9) { $hp = rand(1, 5); if (($row["mfuvorot"] - $mfuvorot) < 0) { $mfuvorot = $row["mfuvorot"]; } if (mysql_query("UPDATE `inventory` SET `mfuvorot` = `mfuvorot`-'" . (int)$mfuvorot . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } } else $mfuvorot = 0; if ($row["mfauvorot"] != 0) { $mfauvorot = true; $shans = rand(7, 9); if ($shans == 7) { ////ебаний фифти-фифти $ssh = rand(77, 78); $mfauvorot = $row["mfauvorot"] / 2; if ($ssh == 77) { $mfauvorot = $row["mfauvorot"] / 2; } if ($ssh == 78) { if (mysql_query("UPDATE `inventory` SET `mfauvorot` = `mfauvorot`-'" . (int)$mfauvorot . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } }///shans 77 if ($shans == 8) { $shans = rand(1, 18); $mfauvorot = $shans; } if ($shans == 9) { $mfauvorot = rand(1, 5); if (($row["mfauvorot"] - $mfauvorot) < 0) { $$mfauvorot = $row["mfauvorot"]; } if (mysql_query("UPDATE `inventory` SET `mfauvorot` = `mfauvorot`-'" . (int)$mfauvorot . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } } else $mfauvorot = 0; if ($row["mfantiuvorot"] != 0) { $mfantiuvorot = true; $shans = rand(7, 9); if ($shans == 7) { ////ебаний фифти-фифти $ssh = rand(77, 78); $mfantiuvorot = $row["mfantiuvorot"] / 2; if ($ssh == 77) { $mfantiuvorot = $row["mfantiuvorot"] / 2; } if ($ssh == 78) { if (mysql_query("UPDATE `inventory` SET `mfantiuvorot` = `mfantiuvorot`-'" . (int)$mfantiuvorot . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } }///shans 77 if ($shans == 8) { $shans = rand(1, 18); $mfantiuvorot = $shans; } if ($shans == 9) { $mfantiuvorot = rand(1, 5); if (($row["mfantiuvorot"] - $mfantiuvorot) < 0) { $mfantiuvorot = $row["mfantiuvorot"]; } if (mysql_query("UPDATE `inventory` SET `mfantiuvorot` = `mfantiuvorot`-'" . (int)$mfantiuvorot . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } } else $mfantiuvorot = 0; if ($row["gsila"] != 0) { $sila = true; $shans = rand(7, 9); if ($shans == 7) { ////ебаний фифти-фифти $ssh = rand(77, 78); $sila = $row["gsila"] / 2; if ($ssh == 77) { $sila = $row["gsila"] / 2; } if ($ssh == 78) { if (mysql_query("UPDATE `inventory` SET `gsila` = `gsila`-'" . (int)$sila . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } }///shans 77 if ($shans == 8) { $shans = rand(1, 8); $sila = $shans; } if ($shans == 9) { $sila = rand(1, 5); if (($row["gsila"] - $sila) < 0) { $sila = $row["gsilat"]; } if (mysql_query("UPDATE `inventory` SET `gsila` = `gsila`-'" . (int)$sila . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } } else $sila = 0; if ($row["glovk"] != 0) { $lovk = true; $shans = rand(7, 9); if ($shans == 7) { ////ебаний фифти-фифти $ssh = rand(77, 78); $lovk = $row["glovk"] / 2; if ($ssh == 77) { $lovk = $row["glovk"] / 2; } if ($ssh == 78) { if (mysql_query("UPDATE `inventory` SET `glovk` = `glovk`-'" . (int)$lovk . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } }///shans 77 if ($shans == 8) { $shans = rand(1, 8); $lovk = $shans; } if ($shans == 9) { $lovk = rand(1, 5); if (($row["glovk"] - $lovk) < 0) { $lovk = $row["gslovk"]; } if (mysql_query("UPDATE `inventory` SET `glovk` = `glovk`-'" . (int)$lovk . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } } else $lovk = 0; if ($row["gunta"] != 0) { $inta = true; $shans = rand(7, 9); if ($shans == 7) { ////ебаний фифти-фифти $ssh = rand(77, 78); $inta = $row["gunta"] / 2; if ($ssh == 77) { $inta = $row["gunta"] / 2; } if ($ssh == 78) { if (mysql_query("UPDATE `inventory` SET `gunta` = `gunta`-'" . (int)$inta . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } }///shans 77 if ($shans == 8) { $shans = rand(1, 8); $inta = $shans; } if ($shans == 9) { $inta = rand(1, 5); if (($row["gunta"] - $inta) < 0) { $inta = $row["gunta"]; } if (mysql_query("UPDATE `inventory` SET `gunta` = `gunta`-'" . (int)$inta . "' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) ; } } else $inta = 0; /*if($row["nvinos"]!=0){ $nvinos=true; $shans=rand(7,9); if ($shans==7) { ////ебаний фифти-фифти $ssh=rand(77,78); $nvinos=$row["nvinos"]/2; if ($ssh==77) { $nvinos=$row["nvinos"]/2; } if ($ssh==78) { if(mysql_query("UPDATE `inventory` SET `nvinos` = `nvinos`-'".(int)$nvinos."' WHERE `id` = '{$_GET['mf']}' LIMIT 1;"));} }///shans 77 if ($shans==8) { $shans=rand(1,50); $nvinos=$shans; } if ($shans==9) { $nvinos=rand(1,25); if (($row["nvinos"]-$nvinos)<0) {$nvinos=$row["nvinos"];} ////made by Thunder(c) if(mysql_query("UPDATE `inventory` SET `nvinos` = `nvinos`-'".(int)$nvinos."' WHERE `id` = '{$_GET['mf']}' LIMIT 1;")); } }else $nvinos=0; */ if (mysql_query("UPDATE `inventory` SET `ghp` = `ghp`+'" . (int)$hp . "', `bron1` = `bron1`+'" . (int)$bron1 . "', `bron2` = `bron2`+'" . (int)$bron2 . "', `bron3` = `bron3`+'" . (int)$bron3 . "', `bron4` = `bron4`+'" . (int)$bron4 . "', `mfkrit` = `mfkrit`+'" . (int)$mfkrit . "', `mfakrit` = `mfakrit`+'" . (int)$mfantikrit . "', `mfuvorot` = `mfuvorot`+'" . (int)$mfuvorot . "', `mfauvorot` = `mfauvorot`+'" . (int)$mfantiuvorot . "', `gsila` = `gsila`+'" . (int)$sila . "', `glovk` = `glovk`+'" . (int)$lovk . "', `ginta` = `ginta`+'" . (int)$inta . "', `nsila` = `nsila`+'" . (int)$nsila . "', `nlovk` = `nlovk`+'" . (int)$nlovk . "', `ninta` = `ninta`+'" . (int)$ninta . "', `nvinos` = `nvinos`+'" . (int)$nvinos . "', `cost` = `cost` + '" . round($row['cost'] / 2) . "', `name` = CONCAT(`name`, ' (мф)') WHERE `id` = '{$_GET['mf']}' LIMIT 1;")) { //echo $row['cost']; mysql_query("UPDATE `users` set `money` = `money`- '" . ($row['cost']) . "' WHERE id = {$_SESSION['uid']}"); mysql_query("INSERT INTO `delo` (`id` , `author` ,`pers`, `text`, `type`, `date`) VALUES ('','0','{$_SESSION['uid']}','Моцифицирована вещь \"" . $row['name'] . "\" id:(cap" . $row['id'] . ") [" . $newduration . "/" . $row['maxdur'] . "] у \"" . $user['login'] . "\" за " . round($onecost, 2) . " кр. ',1,'" . time() . "');"); $err = "Вещь модифицирована."; } } } ?> "; showitem($row); echo ""; } //////////end of REPAIR ?>
"; ?>
Модифицировать за кр.

О клане

О клане в процессе разработки...

Управление

Управление в процессе разработки...