From 031879acad028c830d715e347f886ded3059009d Mon Sep 17 00:00:00 2001 From: lopar Date: Fri, 2 Mar 2018 16:33:58 +0200 Subject: [PATCH] Remove starter quest --- 11city.php | 11 +- city.php | 20 +- functions.php | 4 - krshop.php | 5 - main.php | 5087 +++++++++++++++++++++++++++---------------------- shop.php | 3 - zayavka.php | 5 - znahar.php | 4 - 8 files changed, 2831 insertions(+), 2308 deletions(-) diff --git a/11city.php b/11city.php index 3e67d29..036dc57 100644 --- a/11city.php +++ b/11city.php @@ -392,9 +392,6 @@ if($d['mass'] > get_meshok() && $_GET['cp']) { // shop if ($_GET['got'] && $_GET['level2']) { mysql_query("UPDATE `users`,`online` SET `users`.`room` = '22',`online`.`room` = '22' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;"); - if($user['first'] == 6){ - mysql_query("update `users` set `kwest_shop_see`=`kwest_shop_see`+'1' where `id`='".$user['id']."'"); - } header('location: shop.php'); } // repait @@ -493,9 +490,6 @@ if($d['mass'] > get_meshok() && $_GET['cp']) { } else { mysql_query("UPDATE `users`,`online` SET `users`.`room` = '29',`online`.`room` = '29' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;"); - if($user['first'] == 5){ - mysql_query("update `users` set `kwest_bank_see`=`kwest_bank_see`+'1' where `id`='".$user['id']."'"); - } header('location: bank.php'); } } @@ -687,10 +681,7 @@ elseif($user['room']==2655) { header('location: city.php?cp=1'); } if ($_GET['got'] && $_GET['level5']) { - if($user['first'] == 11){ - mysql_query("update `users` set `kwest_see_znahar`=`kwest_see_znahar`+'1' where `id`='".$user['id']."'"); - } - // print ""; + // print ""; mysql_query("UPDATE `users`,`online` SET `users`.`room` = '43',`online`.`room` = '43' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;"); header('location: znahar.php'); diff --git a/city.php b/city.php index a22c5c3..d0325f7 100644 --- a/city.php +++ b/city.php @@ -424,9 +424,6 @@ if ($user['room'] == 20) { // shop if ($_GET['got'] && $_GET['level2']) { mysql_query("UPDATE `users`,`online` SET `users`.`room` = '22',`online`.`room` = '22' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;"); - if ($user['first'] == 6) { - mysql_query("UPDATE `users` SET `kwest_shop_see`=`kwest_shop_see`+'1' WHERE `id`='" . $user['id'] . "'"); - } header('location: shop.php'); } // repait @@ -497,18 +494,10 @@ if ($user['room'] == 20) { if ($_GET['got'] && $_GET['level5']) { - if ($user['align'] == 4) { - print ""; - } else { - mysql_query("UPDATE `users`,`online` SET `users`.`room` = '29',`online`.`room` = '29' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;"); - if ($user['first'] == 5) { - mysql_query("UPDATE `users` SET `kwest_bank_see`=`kwest_bank_see`+'1' WHERE `id`='" . $user['id'] . "'"); - } - header('location: bank.php'); - } + mysql_query("UPDATE `users`,`online` SET `users`.`room` = '29',`online`.`room` = '29' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;"); + header('location: bank.php'); } if ($_GET['got'] && $_GET['level16']) { - //if($user['login'] == 'SaulDin' || $user['login'] == 'Дед мазай'){ $effs = mysql_fetch_array(mysql_query("SELECT `id` FROM `effects` WHERE `owner` = '{$user['id']}' AND `type` = '21' LIMIT 1")); if (isset($effs['id'])) print ""; @@ -516,9 +505,7 @@ if ($user['room'] == 20) { mysql_query("UPDATE `users`,`online` SET `users`.`room` = '31',`online`.`room` = '31' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;"); header('location: tower.php'); } - //}else{ print ""; - // } } @@ -680,9 +667,6 @@ elseif ($user['room'] == 2655) { header('location: city.php?cp=1'); } if ($_GET['got'] && $_GET['level5']) { - if ($user['first'] == 11) { - mysql_query("UPDATE `users` SET `kwest_see_znahar`=`kwest_see_znahar`+'1' WHERE `id`='" . $user['id'] . "'"); - } // print ""; mysql_query("UPDATE `users`,`online` SET `users`.`room` = '43',`online`.`room` = '43' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;"); header('location: znahar.php'); diff --git a/functions.php b/functions.php index 61659fc..1597f04 100644 --- a/functions.php +++ b/functions.php @@ -4780,10 +4780,6 @@ function dressitem($id) } if (!($item['type'] == 12 && $user['level'] < 4)) { - if ($user['first'] == 3 && ($item['name'] == 'Шлем новобранца' || $item['name'] == 'Рубаха новобранца')) { - mysql_query("UPDATE `users` SET `kwest_items_odet` = (`kwest_items_odet`+1) WHERE `id` = '" . $user['id'] . "' LIMIT 1"); - } - if (mysql_query("UPDATE `users` AS `u`, `inventory` AS `i` SET `u`.`{$slot1}` = {$id}, `i`.`dressed` = 1, `u`.`sila` = `u`.`sila` + `i`.`gsila`, `u`.`lovk` = `u`.`lovk` + `i`.`glovk`, `u`.`inta` = `u`.`inta` + `i`.`ginta`, `u`.`intel` = `u`.`intel` + `i`.`gintel`, `u`.`maxhp` = `u`.`maxhp` + `i`.`ghp`, `u`.`noj` = `u`.`noj` + `i`.`gnoj`, `u`.`topor` = `u`.`topor` + `i`.`gtopor`, `u`.`dubina` = `u`.`dubina` + `i`.`gdubina`, `u`.`mec` = `u`.`mec` + `i`.`gmech`, `u`.`mfire` = `u`.`mfire` + `i`.`gfire`, `u`.`mwater` = `u`.`mwater` + `i`.`gwater`, `u`.`mair` = `u`.`mair` + `i`.`gair`, `u`.`mearth` = `u`.`mearth` + `i`.`gearth`, `u`.`mlight` = `u`.`mlight` + `i`.`glight`, `u`.`mgray` = `u`.`mgray` + `i`.`ggray`, `u`.`mdark` = `u`.`mdark` + `i`.`gdark`, `u`.`ubron1` = `u`.`ubron1` + `i`.`bron1`, `u`.`ubron2` = `u`.`ubron2` + `i`.`bron2`, `u`.`ubron3` = `u`.`ubron3` + `i`.`bron3`, `u`.`ubron4` = `u`.`ubron4` + `i`.`bron4`, `u`.`fkrit` = `u`.`fkrit` + `i`.`mfkrit`, `u`.`fakrit` = `u`.`fakrit` + `i`.`mfakrit`, `u`.`fuvorot` = `u`.`fuvorot` + `i`.`mfuvorot`, `u`.`fauvorot` = `u`.`fauvorot` + `i`.`mfauvorot`, `u`.`uminu` = `u`.`uminu` + `i`.`minu`, `u`.`umaxu` = `u`.`umaxu` + `i`.`maxu` WHERE `i`.`needident` = 0 AND `i`.`id` = {$id} AND `i`.`dressed` = 0 AND `i`.owner = {$user['id']} AND (20 + `u`.`sila`) >= `i`.`nsila` AND (20 + `u`.`lovk`) >= `i`.`nlovk` AND (20 + `u`.`inta`) >= `i`.`ninta` AND `u`.`vinos` >= `i`.`nvinos` AND (20 + `u`.`intel`) >= `i`.`nintel` AND `u`.`mudra` >= `i`.`nmudra` AND `u`.`level` >= `i`.`nlevel` AND (($al OR (" . (int)$user['align'] . " = `i`.`nalign`)) OR (`i`.`nalign` = 0)) AND `u`.`noj` >= `i`.`nnoj` AND `u`.`topor` >= `i`.`ntopor` AND `u`.`dubina` >= `i`.`ndubina` AND `u`.`mec` >= `i`.`nmech` AND `u`.`mfire` >= `i`.`nfire` AND `u`.`mwater` >= `i`.`nwater` AND `u`.`mair` >= `i`.`nair` AND `u`.`mearth` >= `i`.`nearth` AND `u`.`mlight` >= `i`.`nlight` AND `u`.`mgray` >= `i`.`ngray` AND `u`.`mdark` >= `i`.`ndark` AND `i`.`setsale` = 0 AND `u`.`id` = {$user['id']}")) $user[$slot1] = $item['id']; return true; diff --git a/krshop.php b/krshop.php index 9c45c9e..9d6f847 100644 --- a/krshop.php +++ b/krshop.php @@ -176,11 +176,6 @@ if($_REQUEST['present']) { // если в офе mysql_query("INSERT INTO `telegraph` (`owner`,`date`,`text`) values ('".$to['id']."','','".'Внимание! '.$from.' '.$action.' вам '.$buket_name.'. '."');"); } - - if($user['first'] == 12 && ($to['id'] == 10023 || $to['id'] == 10024)) { - mysql_query("update `users` set `kwest_see_syvenir`=`kwest_see_syvenir`+'1' where `id`='".$user['id']."'"); - } - echo "Подарок удачно доставлен к \"",$_POST['to_login'],"\""; } echo mysql_error(); diff --git a/main.php b/main.php index 5288c8e..06a036c 100644 --- a/main.php +++ b/main.php @@ -2,50 +2,56 @@ ob_start("ob_gzhandler"); session_start(); $errkom = ''; -if(!isset($_SESSION['uid'])) { header("Location: index.php"); } +if (!isset($_SESSION['uid'])) { + header("Location: index.php"); +} include("config.php"); include("functions.php"); $tmaz = time(); db::c()->query('UPDATE `online` SET `real_time` = ?i WHERE `id` = ?i', time(), $u->i()['id']); -if($u->i()['battle'] != 0) { header('location: fbattle.php'); die(); } +if ($u->i()['battle'] != 0) { + header('location: fbattle.php'); + die(); +} //if($user['klan']) { // $shadow = mysql_fetch_array(mysql_query("SELECT `id`, `mshadow`, `wshadow` FROM `clans` WHERE `id` = '{$user['klan']}' LIMIT 1")); //} -if($_POST['bankpsw']) { - echo "".auth_bank((int)$_POST['bank'], $_POST['bankpsw'], $u->i()['id']).""; +if ($_POST['bankpsw']) { + echo "" . auth_bank((int)$_POST['bank'], $_POST['bankpsw'], $u->i()['id']) . ""; } -if($_GET['unset_bank'] == 1) { - exit_bank('?error=bank'); +if ($_GET['unset_bank'] == 1) { + exit_bank('?error=bank'); } -if($_GET['error'] == 'bank') { +if ($_GET['error'] == 'bank') { err('Работа со счётом завершена.'); } -function updstats() { - global $user; - $u1 = mysql_fetch_array(mysql_query(" +function updstats() +{ + global $user; + $u1 = mysql_fetch_array(mysql_query(" SELECT `sila`, `lovk`, `inta`, `intel`, `noj`, `mec`, `topor`, `dubina`, `mfire`, `mwater`, `mair`, `mearth`, `mlight`, `mgray`, `mdark`, `hp`, `maxhp` FROM `users` WHERE `id` = '$user[id]' LIMIT 1")); - foreach($u1 as $k => $v) { - $user[$k] = $v; - } + foreach ($u1 as $k => $v) { + $user[$k] = $v; + } } -if(!isset($_SESSION['stackall'])){ - $_SESSION['stackall'] = true; +if (!isset($_SESSION['stackall'])) { + $_SESSION['stackall'] = true; } -if(@$_GET['stackall']) { - $_SESSION['stackall'] = ($_SESSION['stackall'] ? false : true); - /* +if (@$_GET['stackall']) { + $_SESSION['stackall'] = ($_SESSION['stackall'] ? false : true); + /* $rec = mysql_query("SELECT `id` FROM `inventory` WHERE `owner` = '$user[id]' AND `setsale` = 0 AND `koll` >= 1 ORDER BY `id` DESC"); while($pl = mysql_fetch_array($rec)) { if(isset($pl['id'])) { @@ -57,2320 +63,2862 @@ if(@$_GET['stackall']) { */ } -if($_GET["stack"]) { - $_GET["stack"] = (int)$_GET["stack"]; - $rec = mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `id` = '".mysql_real_escape_string($_GET['stack'])."' AND `owner` = '$user[id]' AND `setsale` = 0 LIMIT 1")); - if(isset($rec['id'])) { - stack($rec['id']); - unset($rec); - } -} - -if($_GET['unstack']) { - unstack((int)$_GET['unstack'], (int)$_POST["qty"]); -} - -if(isset($_GET['obraz']) && $_GET['obraz'] !== null && ($user['shadow'] == 'g0.gif' || $user['shadow'] == 'man0.gif' || $shadow['mshadow'] || $shadow['wshadow'])) { - if($user['sex']) { - switch(@$_GET['obraz']) { - case 0: mysql_query("UPDATE `users` SET `shadow` = 'man0.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 1: mysql_query("UPDATE `users` SET `shadow` = 'man1.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 2: mysql_query("UPDATE `users` SET `shadow` = 'man2.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 3: mysql_query("UPDATE `users` SET `shadow` = 'man3.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 4: mysql_query("UPDATE `users` SET `shadow` = 'man4.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 5: mysql_query("UPDATE `users` SET `shadow` = 'man5.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 6: mysql_query("UPDATE `users` SET `shadow` = 'man6.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 7: mysql_query("UPDATE `users` SET `shadow` = 'man7.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 8: mysql_query("UPDATE `users` SET `shadow` = 'man8.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 9: mysql_query("UPDATE `users` SET `shadow` = 'man9.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 10: mysql_query("UPDATE `users` SET `shadow` = 'man10.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 11: mysql_query("UPDATE `users` SET `shadow` = 'man11.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 12: mysql_query("UPDATE `users` SET `shadow` = 'man12.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 13: mysql_query("UPDATE `users` SET `shadow` = 'man13.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 14: mysql_query("UPDATE `users` SET `shadow` = 'man14.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 40: mysql_query("UPDATE `users` SET `shadow` = '{$shadow['mshadow']}' WHERE `id` = '{$user['id']}' LIMIT 1"); break; +if ($_GET["stack"]) { + $_GET["stack"] = (int)$_GET["stack"]; + $rec = mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `id` = '" . mysql_real_escape_string($_GET['stack']) . "' AND `owner` = '$user[id]' AND `setsale` = 0 LIMIT 1")); + if (isset($rec['id'])) { + stack($rec['id']); + unset($rec); } - } else { - switch(@$_GET['obraz']) { - case 0: mysql_query("UPDATE `users` SET `shadow` = 'g0.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 1: mysql_query("UPDATE `users` SET `shadow` = 'g1.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 2: mysql_query("UPDATE `users` SET `shadow` = 'g2.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 3: mysql_query("UPDATE `users` SET `shadow` = 'g3.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 4: mysql_query("UPDATE `users` SET `shadow` = 'g4.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 5: mysql_query("UPDATE `users` SET `shadow` = 'g5.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 6: mysql_query("UPDATE `users` SET `shadow` = 'g6.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 7: mysql_query("UPDATE `users` SET `shadow` = 'g7.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 8: mysql_query("UPDATE `users` SET `shadow` = 'g8.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 9: mysql_query("UPDATE `users` SET `shadow` = 'g9.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 10: mysql_query("UPDATE `users` SET `shadow` = 'g10.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 11: mysql_query("UPDATE `users` SET `shadow` = 'g11.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 12: mysql_query("UPDATE `users` SET `shadow` = 'g12.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 13: mysql_query("UPDATE `users` SET `shadow` = 'g13.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 14: mysql_query("UPDATE `users` SET `shadow` = 'g14.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 15: mysql_query("UPDATE `users` SET `shadow` = 'g15.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 16: mysql_query("UPDATE `users` SET `shadow` = 'g16.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 17: mysql_query("UPDATE `users` SET `shadow` = 'g17.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - case 41: mysql_query("UPDATE `users` SET `shadow` = '{$shadow['wshadow']}' WHERE `id` = '{$user['id']}' LIMIT 1"); break; - } - } } +if ($_GET['unstack']) { + unstack((int)$_GET['unstack'], (int)$_POST["qty"]); +} -if($_GET['del'] == 1) { - if($_GET['efid'] > 0) { - $pl = mysql_fetch_array(mysql_query('SELECT `id`, `type` FROM `effects` WHERE `owner` = "'.$user['id'].'" AND `id` = "'.(int)$_GET['efid'].'" LIMIT 1')); - if(isset($pl['id'])) { - del_efs($user['id'], $pl['id'], $pl['type']); +if (isset($_GET['obraz']) && $_GET['obraz'] !== null && ($user['shadow'] == 'g0.gif' || $user['shadow'] == 'man0.gif' || $shadow['mshadow'] || $shadow['wshadow'])) { + if ($user['sex']) { + switch (@$_GET['obraz']) { + case 0: + mysql_query("UPDATE `users` SET `shadow` = 'man0.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 1: + mysql_query("UPDATE `users` SET `shadow` = 'man1.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 2: + mysql_query("UPDATE `users` SET `shadow` = 'man2.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 3: + mysql_query("UPDATE `users` SET `shadow` = 'man3.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 4: + mysql_query("UPDATE `users` SET `shadow` = 'man4.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 5: + mysql_query("UPDATE `users` SET `shadow` = 'man5.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 6: + mysql_query("UPDATE `users` SET `shadow` = 'man6.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 7: + mysql_query("UPDATE `users` SET `shadow` = 'man7.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 8: + mysql_query("UPDATE `users` SET `shadow` = 'man8.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 9: + mysql_query("UPDATE `users` SET `shadow` = 'man9.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 10: + mysql_query("UPDATE `users` SET `shadow` = 'man10.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 11: + mysql_query("UPDATE `users` SET `shadow` = 'man11.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 12: + mysql_query("UPDATE `users` SET `shadow` = 'man12.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 13: + mysql_query("UPDATE `users` SET `shadow` = 'man13.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 14: + mysql_query("UPDATE `users` SET `shadow` = 'man14.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 40: + mysql_query("UPDATE `users` SET `shadow` = '{$shadow['mshadow']}' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + } } else { - echo 'Эффект не найден ...'; + switch (@$_GET['obraz']) { + case 0: + mysql_query("UPDATE `users` SET `shadow` = 'g0.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 1: + mysql_query("UPDATE `users` SET `shadow` = 'g1.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 2: + mysql_query("UPDATE `users` SET `shadow` = 'g2.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 3: + mysql_query("UPDATE `users` SET `shadow` = 'g3.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 4: + mysql_query("UPDATE `users` SET `shadow` = 'g4.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 5: + mysql_query("UPDATE `users` SET `shadow` = 'g5.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 6: + mysql_query("UPDATE `users` SET `shadow` = 'g6.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 7: + mysql_query("UPDATE `users` SET `shadow` = 'g7.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 8: + mysql_query("UPDATE `users` SET `shadow` = 'g8.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 9: + mysql_query("UPDATE `users` SET `shadow` = 'g9.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 10: + mysql_query("UPDATE `users` SET `shadow` = 'g10.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 11: + mysql_query("UPDATE `users` SET `shadow` = 'g11.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 12: + mysql_query("UPDATE `users` SET `shadow` = 'g12.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 13: + mysql_query("UPDATE `users` SET `shadow` = 'g13.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 14: + mysql_query("UPDATE `users` SET `shadow` = 'g14.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 15: + mysql_query("UPDATE `users` SET `shadow` = 'g15.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 16: + mysql_query("UPDATE `users` SET `shadow` = 'g16.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 17: + mysql_query("UPDATE `users` SET `shadow` = 'g17.gif' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + case 41: + mysql_query("UPDATE `users` SET `shadow` = '{$shadow['wshadow']}' WHERE `id` = '{$user['id']}' LIMIT 1"); + break; + } } - } } -if(isset($_GET['modif_bron'])) { - $brons = $_GET['modif_bron']; - $ids = $_GET['ids']; - $cur = mysql_fetch_assoc(mysql_query("SELECT `id`, `free_bron`, `bron1`, `bron2`, `bron3`, `bron4` FROM `inventory` WHERE `owner` = '".$user['id']."' AND `id` = '".mysql_real_escape_string($ids)."' LIMIT 1")); - if(isset($cur['id'])) { - if($cur['free_bron'] > 0 && $cur[$brons] > 0) { - mysql_query("UPDATE `inventory` SET `free_bron` = (`free_bron`-1), `".$brons."` = (`".$brons."`+1) WHERE `owner` = '".$user['id']."' AND `id` = '".mysql_real_escape_string($ids)."' LIMIT 1"); - echo "Параметр брони увеличен!"; - } - } +if ($_GET['del'] == 1) { + if ($_GET['efid'] > 0) { + $pl = mysql_fetch_array(mysql_query('SELECT `id`, `type` FROM `effects` WHERE `owner` = "' . $user['id'] . '" AND `id` = "' . (int)$_GET['efid'] . '" LIMIT 1')); + if (isset($pl['id'])) { + del_efs($user['id'], $pl['id'], $pl['type']); + } else { + echo 'Эффект не найден ...'; + } + } } -if(isset($_GET['modif_stat'])){ - $stats = $_GET['modif_stat']; - $ids = $_GET['ids']; - $cur = mysql_fetch_assoc(mysql_query("SELECT `id`, `free_stat`, `gsila`, `glovk`, `ginta`, `gintel` FROM `inventory` WHERE `owner` = '".$user['id']."' AND `id` = '".mysql_real_escape_string($ids)."' LIMIT 1")); - if(isset($cur['id'])) { - if($cur['free_stat'] > 0 && $cur[$stats] > 0) { - mysql_query("UPDATE `inventory` SET `free_stat` = (`free_stat`-1), `".$stats."` = (`".$stats."`+1) WHERE `owner` = '".$user['id']."' AND `id` = '".mysql_real_escape_string($ids)."' LIMIT 1"); - echo "Параметр увеличен!"; + +if (isset($_GET['modif_bron'])) { + $brons = $_GET['modif_bron']; + $ids = $_GET['ids']; + $cur = mysql_fetch_assoc(mysql_query("SELECT `id`, `free_bron`, `bron1`, `bron2`, `bron3`, `bron4` FROM `inventory` WHERE `owner` = '" . $user['id'] . "' AND `id` = '" . mysql_real_escape_string($ids) . "' LIMIT 1")); + if (isset($cur['id'])) { + if ($cur['free_bron'] > 0 && $cur[$brons] > 0) { + mysql_query("UPDATE `inventory` SET `free_bron` = (`free_bron`-1), `" . $brons . "` = (`" . $brons . "`+1) WHERE `owner` = '" . $user['id'] . "' AND `id` = '" . mysql_real_escape_string($ids) . "' LIMIT 1"); + echo "Параметр брони увеличен!"; + } } - } } -if(isset($_GET['modif_mf'])) { - $mfs = $_GET['modif_mf']; - $ids = $_GET['ids']; - $cur = mysql_fetch_assoc(mysql_query("SELECT `id`, `free_mf`, `mfkrit`, `mfakrit`, `mfuvorot`, `mfauvorot` FROM `inventory` WHERE `owner` = '".$user['id']."' AND `id` = '".mysql_real_escape_string($ids)."' LIMIT 1")); - if(isset($cur['id'])) { - if($cur['free_mf'] > 0 && $cur[$mfs] > 0){ - mysql_query("UPDATE `inventory` SET `free_mf` = (`free_mf`-1), `".$mfs."` = (`".$mfs."`+1) WHERE `owner` = '".$user['id']."' AND `id` = '".mysql_real_escape_string($ids)."' LIMIT 1"); - echo "Параметр увеличен!"; +if (isset($_GET['modif_stat'])) { + $stats = $_GET['modif_stat']; + $ids = $_GET['ids']; + $cur = mysql_fetch_assoc(mysql_query("SELECT `id`, `free_stat`, `gsila`, `glovk`, `ginta`, `gintel` FROM `inventory` WHERE `owner` = '" . $user['id'] . "' AND `id` = '" . mysql_real_escape_string($ids) . "' LIMIT 1")); + if (isset($cur['id'])) { + if ($cur['free_stat'] > 0 && $cur[$stats] > 0) { + mysql_query("UPDATE `inventory` SET `free_stat` = (`free_stat`-1), `" . $stats . "` = (`" . $stats . "`+1) WHERE `owner` = '" . $user['id'] . "' AND `id` = '" . mysql_real_escape_string($ids) . "' LIMIT 1"); + echo "Параметр увеличен!"; + } + } +} + +if (isset($_GET['modif_mf'])) { + $mfs = $_GET['modif_mf']; + $ids = $_GET['ids']; + $cur = mysql_fetch_assoc(mysql_query("SELECT `id`, `free_mf`, `mfkrit`, `mfakrit`, `mfuvorot`, `mfauvorot` FROM `inventory` WHERE `owner` = '" . $user['id'] . "' AND `id` = '" . mysql_real_escape_string($ids) . "' LIMIT 1")); + if (isset($cur['id'])) { + if ($cur['free_mf'] > 0 && $cur[$mfs] > 0) { + mysql_query("UPDATE `inventory` SET `free_mf` = (`free_mf`-1), `" . $mfs . "` = (`" . $mfs . "`+1) WHERE `owner` = '" . $user['id'] . "' AND `id` = '" . mysql_real_escape_string($ids) . "' LIMIT 1"); + echo "Параметр увеличен!"; + } } - } } $d = mysql_fetch_array(mysql_query("SELECT SUM(`massa`) AS `summ` FROM `inventory` WHERE `owner` = '{$user['id']}' AND `dressed` = 0 AND `setsale` = 0")); -if($d['summ'] > get_meshok() && $_GET['got']) { - echo "У вас переполнен рюкзак, вы не можете передвигаться..."; - $_GET['got'] = 0; +if ($d['summ'] > get_meshok() && $_GET['got']) { + echo "У вас переполнен рюкзак, вы не можете передвигаться..."; + $_GET['got'] = 0; } -$eff = mysql_fetch_array(mysql_query("SELECT `id` FROM `effects` WHERE `owner` = '".$user['id']."' AND (`type` = 14 OR `type` = 13) LIMIT 1")); -if(isset($eff['id']) && $_GET['got']) { - echo "У вас тяжелая травма, вы не можете передвигатся..."; - $_GET['got'] = 0; +$eff = mysql_fetch_array(mysql_query("SELECT `id` FROM `effects` WHERE `owner` = '" . $user['id'] . "' AND (`type` = 14 OR `type` = 13) LIMIT 1")); +if (isset($eff['id']) && $_GET['got']) { + echo "У вас тяжелая травма, вы не можете передвигатся..."; + $_GET['got'] = 0; } $array = array( - 1 => array(), 2 => array(), 3 => array(), 4 => array(), - 5 => array('min_level' => 1, 'max_level' => 3), 6 => array('min_level' => 1, 'max_level' => 3), 7 => array('min_level' => 1, 'max_level' => 3), 8 => array('min_level' => 4, 'max_level' => 21), - 9 => array('min_level' => 4, 'max_level' => 6), 10 => array('min_level' => 7, 'max_level' => 9), 11 => array('min_level' => 10, 'max_level' => 12), 12 => array('min_level' => 13, 'max_level' => 15), - 13 => array('min_level' => 16, 'max_level' => 19), 14 => array('min_level' => 19, 'max_level' => 21), 15 => array('paladin' => 1), 16 => array('paladin' => 1), - 17 => array('align' => 3), 36 => array('align' => 2), 54 => array('align' => 6), 19 => array('sex' => 2), - 18 => array('align' => 3), 56 => array('align' => 2), 55 => array('align' => 6) + 1 => array(), 2 => array(), 3 => array(), 4 => array(), + 5 => array('min_level' => 1, 'max_level' => 3), 6 => array('min_level' => 1, 'max_level' => 3), 7 => array('min_level' => 1, 'max_level' => 3), 8 => array('min_level' => 4, 'max_level' => 21), + 9 => array('min_level' => 4, 'max_level' => 6), 10 => array('min_level' => 7, 'max_level' => 9), 11 => array('min_level' => 10, 'max_level' => 12), 12 => array('min_level' => 13, 'max_level' => 15), + 13 => array('min_level' => 16, 'max_level' => 19), 14 => array('min_level' => 19, 'max_level' => 21), 15 => array('paladin' => 1), 16 => array('paladin' => 1), + 17 => array('align' => 3), 36 => array('align' => 2), 54 => array('align' => 6), 19 => array('sex' => 2), + 18 => array('align' => 3), 56 => array('align' => 2), 55 => array('align' => 6) ); -function gone_rooms($room) { - global $array, $user; - $error = 0; - $param = $array[$room]; - if($room == 57) { - err("Комнаты не существует..."); - $error = 1; - } - if(isset($param['min_level'])) { - if($user['level'] < $param['min_level']) { - err("Вы не можете попасть в эту комнату. Уровень маловат..."); - $error = 1; +function gone_rooms($room) +{ + global $array, $user; + $error = 0; + $param = $array[$room]; + if ($room == 57) { + err("Комнаты не существует..."); + $error = 1; } - } - if(isset($param['max_level'])) { - if($user['level'] > $param['max_level']) { - err("Вы не можете попасть в эту комнату. Уровень высоковат..."); - $error = 1; + if (isset($param['min_level'])) { + if ($user['level'] < $param['min_level']) { + err("Вы не можете попасть в эту комнату. Уровень маловат..."); + $error = 1; + } } - } - if(isset($param['align_int'])) { - if((int)$user['align'] != $param['align_int']) { - err("Вы не можете попасть в эту комнату. Склонность не та..."); - $error = 1; + if (isset($param['max_level'])) { + if ($user['level'] > $param['max_level']) { + err("Вы не можете попасть в эту комнату. Уровень высоковат..."); + $error = 1; + } } - } - if(isset($param['align'])) { - if($user['align'] != $param['align']) { - err("Вы не можете попасть в эту комнату. Склонность не та..."); - $error = 1; + if (isset($param['align_int'])) { + if ((int)$user['align'] != $param['align_int']) { + err("Вы не можете попасть в эту комнату. Склонность не та..."); + $error = 1; + } } - } - if(isset($param['paladin'])) { - if($user['align'] <= 1 || $user['align'] >= 2) { - err("Вы не можете попасть в эту комнату. Склонность не та..."); - $error = 1; + if (isset($param['align'])) { + if ($user['align'] != $param['align']) { + err("Вы не можете попасть в эту комнату. Склонность не та..."); + $error = 1; + } } - } - if(isset($param['sex'])) { - if(($param['sex'] == 2 && $user['sex'] == 1) || ($param['sex'] == 1 && $user['sex'] == 0)) { - err("Вы не можете попасть в эту комнату. Пол не подходит..."); - $error = 1; + if (isset($param['paladin'])) { + if ($user['align'] <= 1 || $user['align'] >= 2) { + err("Вы не можете попасть в эту комнату. Склонность не та..."); + $error = 1; + } + } + if (isset($param['sex'])) { + if (($param['sex'] == 2 && $user['sex'] == 1) || ($param['sex'] == 1 && $user['sex'] == 0)) { + err("Вы не можете попасть в эту комнату. Пол не подходит..."); + $error = 1; + } + } + if ($error == 0 OR $user['admin'] == 1) { + mysql_query("UPDATE `users`, `online` SET `users`.`room` = '$room', `online`.`room` = '$room' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$user['id']}'"); + header('Location: main.php'); } - } - if($error == 0 OR $user['admin'] == 1) { - mysql_query("UPDATE `users`, `online` SET `users`.`room` = '$room', `online`.`room` = '$room' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$user['id']}'"); - header('Location: main.php'); - } } -if(isset($_GET['got']) && $_GET['got']) { - gone_rooms($_GET['room']); +if (isset($_GET['got']) && $_GET['got']) { + gone_rooms($_GET['room']); } -if(@$_REQUEST['changepsw']) {?> - +if (@$_REQUEST['changepsw']) { ?> + + - + + + + + + + + + + +
+ + + + + +

Безопасность

+
+ Сменить пароль + Пароль удачно сменен."; + } + } else { + echo "Не совпадают новые пароли."; + } + } else { + echo "Неверный старый пароль."; + } + } + ?> + + + + + + + + + + + + + + + + + +
Старый пароль:
Новый пароль:
Новый пароль (еще раз):
+
+
+ + + - - - - - - - - - -
- -

Безопасность

-
-Сменить пароль -Пароль удачно сменен."; - } - } else - { echo "Не совпадают новые пароли."; } - } else - { echo "Неверный старый пароль."; } - } -?> - - - - - - - - - - - - - -
Старый пароль:
Новый пароль:
Новый пароль (еще раз):
-
-
- - - + + + + + + + + + + +
+

+

+

Отчет о переводах

+ + Вы можете получить отчет о переводах кредитов/вещей от вас/к вам за указанный день. Услуга платная, стоит 0.5 + кр.
+ У вас на счету: кр.
+ Укажите дату, на которую хотите получить отчет: "> +
+

+ = 0.5)) { + $user['money'] -= 0.5; + mysql_query("UPDATE `users` SET `money` = '" . $user['money'] . "' WHERE `id` = {$user['id']} LIMIT 1"); + echo "Выписка о переводах на персонажа \"{$user['login']}\" за " . $_POST['date'] . ":
"; + $data = mysql_query("SELECT * FROM `delo` WHERE `pers` = '{$user['id']}' AND `type` = 1 AND `date` > '" . mktime(0, 0, 0, substr($_POST['date'], 3, 2), substr($_POST['date'], 0, 2), substr($_POST['date'], 6, 2)) . "' AND `date` < '" . mktime(23, 59, 59, substr($_POST['date'], 3, 2), substr($_POST['date'], 0, 2), substr($_POST['date'], 6, 2)) . "' ;"); + + while ($row = mysql_fetch_array($data)) { + $row['text'] = preg_replace("/id:\((.*)\)/U", "", $row['text']); + $rr .= date("H:i:s", $row['date']) . ": {$row['text']}\n"; + echo date("H:i:s", $row['date']) . ": {$row['text']}
"; + } + mysql_query("INSERT INTO `inventory` (`owner`,`name`,`type`,`massa`,`cost`,`img`,`letter`,`maxdur`,`isrep`)VALUES('{$user['id']}','Бумага','200',1,0,'paper100.gif','Выписка о переводах на персонажа \"{$user['login']}\" за " . $_POST['date'] . ":\n{$rr}',1,0) ;"); + } + ?> + + + - - - - - - - -
-

-

-

Отчет о переводах

- -Вы можете получить отчет о переводах кредитов/вещей от вас/к вам за указанный день. Услуга платная, стоит 0.5 кр.
-У вас на счету: кр.
-Укажите дату, на которую хотите получить отчет: "> -
-

-= 0.5)) { - $user['money'] -= 0.5; - mysql_query("UPDATE `users` SET `money` = '".$user['money']."' WHERE `id` = {$user['id']} LIMIT 1"); - echo "Выписка о переводах на персонажа \"{$user['login']}\" за ".$_POST['date'].":
"; - $data = mysql_query("SELECT * FROM `delo` WHERE `pers` = '{$user['id']}' AND `type` = 1 AND `date` > '".mktime(0,0,0,substr($_POST['date'],3,2),substr($_POST['date'],0,2),substr($_POST['date'],6,2))."' AND `date` < '".mktime(23,59,59,substr($_POST['date'],3,2),substr($_POST['date'],0,2),substr($_POST['date'],6,2))."' ;"); - - while ($row = mysql_fetch_array($data)) { - $row['text'] = preg_replace("/id:\((.*)\)/U", "",$row['text']); - $rr .= date("H:i:s",$row['date']).": {$row['text']}\n"; - echo date("H:i:s",$row['date']).": {$row['text']}
"; - } - mysql_query("INSERT INTO `inventory` (`owner`,`name`,`type`,`massa`,`cost`,`img`,`letter`,`maxdur`,`isrep`)VALUES('{$user['id']}','Бумага','200',1,0,'paper100.gif','Выписка о переводах на персонажа \"{$user['login']}\" за ".$_POST['date'].":\n{$rr}',1,0) ;"); - } -?> - - - - - - - - - - + ?> + + + + + + +

Выбрать образ персонажа ""

Внимание! Образ персонажа выбирается только один раз.
+ + + + + + + -

Выбрать образ персонажа ""

Внимание! Образ персонажа выбирается только один раз.
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Общие образы
Клановые образы
Общие образы
Клановые образы
-
- - - - - - - - - - - +// +if (@$_POST['setshadowclan']) { + ?> + + + + + + + +

Выбрать образ персонажа ""

+ + + + + + + - // - - - - if (@$_GET['setch']) - { - - $online = mysql_query("SELECT * FROM `online` WHERE `real_time` >= '".(time()-60)."'"); - - while($v = mysql_fetch_array($online)) - { - $or[$v['room']]++; - } - - #$user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '{$user['id']}' LIMIT 1")); - //echo $user['room'] ; - ?> - - - - - - - - - - - - - - -
-
-
-
-
Карта миров
-
(Сейчас в игре: чел.)
-
+// -
Обновить
-
Поединки
-
Инвентарь
-
Состояние
-
Подсказка
-
Вернуться
+if (@$_GET['setch']) { + $online = mysql_query("SELECT * FROM `online` WHERE `real_time` >= '" . (time() - 60) . "'"); -
-
- -
Выйти на Центральную площадь
- - -
-

Выбрать образ персонажа ""

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
Комната для новичков 1
(Уровень 0)
-
-
Войти
-
 ()
-
- - -
-
-
-
-
-
-
- -
-
Комната для новичков 2
(Уровень 0)
-
-
Войти
-
 ()
-
- - -
-
-
-
-
-
-
- -
-
Комната для новичков 3
(Уровень 0)
-
-
Войти
-
 ()
-
- - -
-
-
-
-
-
-
- -
-
-Комната для новичков 4
(Уровень 0)
-
-
-
Войти
 ()
-
- - -
-
-
-
-
-
-
- -
-
-Зал воинов 1
(Уровень 1-3)
-
-
-
Войти
 ()
-
- - -
-
-
-
-
-
-
- -
-
-Зал воинов 2
(Уровень 1-3)
-
-
-
Войти
 ()
-
- - -
-
-
-
-
-
-
- -
-
-Зал воинов 3
(Уровень 1-3)
-
-
-
Войти
 ()
-
- - -
-
-
-
-
-
-
- -
-
-Торговый зал
(Уровень 4-21)
-
-
-
Войти
 ()
-
- - -
-
-
-
-
-
-
- -
-
-Рыцарский зал
(Уровень 4-6)
-
-
-
Войти
 ()
-
- - -
-
-
-
-
-
-
- -
-
-Башня рыцарей-магов
(Уровень 7-9)
-
-
-
Войти
 ()
-
- - -
-
-
-
-
-
-
- -
-
-Колдовской мир
(Уровень 10-12)
-
-
-
Войти
 ()
-
- - -
-
-
-
-
-
-
- -
-
-Этаж духов
(Уровень 13-15)
-
-
-
Войти
 ()
-
- - -
-
-
-
-
-
-
- -
-
-Астральные этажи
(Уровень 16-19)
-
-
-
Войти
 ()
-
- - -
-
-
-
-
-
-
- -
-
-Огненный мир
(Уровень 19-21)
-
-
-
Войти
 ()
-
- - -
-
-
-
-
-
-
- -
-
-Зал Паладинов -
-
-
Войти
 ()
-
- - -
-
-
-
-
-
-
- -
-
-Совет Белого Братства -
-
-
Войти
 ()
-
- - -
-
-
-
-
-
-
- -
-
-Зал Тьмы -
-
-
Войти
 ()
-
- - -
-
-
-
-
-
-
- -
-
-Зал Стихий -
-
-
Войти
 ()
-
- - -
-
-
-
-
-
-
- -
-
-Зал Света -
-
-
Войти
 ()
-
- - -
-
-
-
-
-
-
- -
-
-Будуар
(Уровень 1-21)
-
-
-
Войти
 ()
-
- - -
-
-
-
-
-
-
- -
-
-Царство Тьмы -
-
-
Войти
 ()
-
- - -
-
-
-
-
-
-
- -
-
-Царство Стихий -
-
-
Войти
 ()
-
- - -
-
-
-
-
-
-
- -
-
-Царство Света -
-
-
Войти
 ()
-
- - -
-
-
-
-
-
-
- -
-
-Зал Клановых Войн
(Уровень 4-21)
-
-
-
Войти
 (0)
-
- -
-
-
-
-
-
-
- - - 0 && $user['sid'] == $_GET['s4i']) { - if($user['stats'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { - $user['sila'] += (int)$_POST['stat']; $user['stats'] -= (int)$_POST['stat']; - mysql_query("UPDATE `users` SET `sila` = '".$user['sila']."', `stats` = '".$user['stats']."' WHERE `id` = '{$user['id']}' LIMIT 1"); - echo "Параметр Сила увеличен на ".(int)$_POST['stat']." ед."; - if($user['first'] == 2) { - $user['kwest_train_param'] += 1; - mysql_query("UPDATE `users` SET `kwest_train_param` = '".$user['kwest_train_param']."' WHERE `id` = '".$user['id']."' LIMIT 1"); - } - } elseif((int)$_POST['stat'] <= 0) { - echo "Не верное количество"; - } else { - echo "Недостаточно статов"; - } - } - break; - - case 12 : - if($user['stats'] > 0 && $user['sid'] == $_GET['s4i']) { - if($user['stats'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { - $user['lovk'] += (int)$_POST['stat']; $user['stats'] -= (int)$_POST['stat']; - mysql_query("UPDATE `users` SET `lovk` = '".$user['lovk']."', `stats` = '".$user['stats']."' WHERE `id` = '{$user['id']}' LIMIT 1"); - echo "Параметр Ловкость увеличен на ".(int)$_POST['stat']." ед."; - if($user['first'] == 2) { - $user['kwest_train_param'] += 1; - mysql_query("UPDATE `users` SET `kwest_train_param` = '".$user['kwest_train_param']."' WHERE `id` = '".$user['id']."' LIMIT 1"); - } - } elseif((int)$_POST['stat'] <= 0) { - echo "Не верное количество"; - } else { - echo "Недостаточно статов"; - } - } - break; - - case 13 : - if($user['stats'] > 0 && $user['sid'] == $_GET['s4i']) { - if($user['stats'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { - $user['inta'] += (int)$_POST['stat']; $user['stats'] -= (int)$_POST['stat']; - mysql_query("UPDATE `users` SET `inta` = '".$user['inta']."', `stats` = '".$user['stats']."' WHERE `id` = '{$user['id']}' LIMIT 1"); - echo "Параметр Интуиция увеличен на ".(int)$_POST['stat']." ед."; - if($user['first'] == 2) { - $user['kwest_train_param'] += 1; - mysql_query("UPDATE `users` SET `kwest_train_param` = '".$user['kwest_train_param']."' WHERE `id` = '".$user['id']."' LIMIT 1"); - } - } elseif((int)$_POST['stat'] <= 0) { - echo "Не верное количество"; - } else { - echo "Недостаточно статов"; - } - } - break; - - case 14 : - if($user['stats'] > 0 && $user['sid'] == $_GET['s4i']) { - if($user['stats'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { - $user['vinos'] += (int)$_POST['stat']; $user['stats'] -= (int)$_POST['stat']; $user['maxhp'] += (int)($_POST['stat']*6); - mysql_query("UPDATE `users` SET `vinos` = '".$user['vinos']."', `stats` = '".$user['stats']."', `maxhp` = '".$user['maxhp']."' WHERE `id` = '{$user['id']}' LIMIT 1"); - echo "Параметр Выносливость увеличен на ".(int)$_POST['stat']." ед."; - if($user['first'] == 2) { - $user['kwest_train_param'] += 1; - mysql_query("UPDATE `users` SET `kwest_train_param` = '".$user['kwest_train_param']."' WHERE `id` = '".$user['id']."' LIMIT 1"); - } - } elseif((int)$_POST['stat'] <= 0) { - echo "Не верное количество"; - } else { - echo "Недостаточно статов"; - } - } - break; - - case 15 : - if($user['stats'] > 0 && $user['sid'] == $_GET['s4i']) { - if($user['stats'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { - $user['intel'] += (int)$_POST['stat']; $user['stats'] -= (int)$_POST['stat']; - mysql_query("UPDATE `users` SET `intel` = '".$user['intel']."', `stats` = '".$user['stats']."' WHERE `id` = '{$user['id']}' LIMIT 1"); - echo "Параметр Интеллект увеличен на ".(int)$_POST['stat']." ед."; - if($user['first'] == 2) { - $user['kwest_train_param'] += 1; - mysql_query("UPDATE `users` SET `kwest_train_param` = '".$user['kwest_train_param']."' WHERE `id` = '".$user['id']."' LIMIT 1"); - } - } elseif((int)$_POST['stat'] <= 0) { - echo "Не верное количество"; - } else { - echo "Недостаточно статов"; - } - } - break; - - case 21 : - if($user['master'] > 0 && $user['sid'] == $_GET['s4i']) { - if($user['master'] >= (int)$_POST['stat'] && $user['noj'] < 10 && ((int)$_POST['stat'] > 0)) { - $user['noj'] += (int)$_POST['stat']; $user['master'] -= (int)$_POST['stat']; - mysql_query("UPDATE `users` SET `noj` = '".$user['noj']."', `master` = '".$user['master']."' WHERE `id` = '{$user['id']}' LIMIT 1"); - echo "Параметр Владение Кастетами увеличен на ".(int)$_POST['stat']." ед."; - if($user['first'] == 8) { - $user['kwest_train_umen'] += 1; - mysql_query("UPDATE `users` SET `kwest_train_umen` = '".$user['kwest_train_umen']."' WHERE `id` = '".$user['id']."' LIMIT 1"); - } - } elseif($user['noj'] > 9) { - echo "Достигнут лимит владения"; - } elseif((int)$_POST['stat'] <= 0) { - echo "Не верное количество"; - } else { - echo "Недостаточно мастерства"; - } - } - break; - - case 22 : - if($user['master'] > 0 && $user['sid'] == $_GET['s4i']) { - if($user['master'] >= (int)$_POST['stat'] && $user['mec'] < 10 && ((int)$_POST['stat'] > 0)) { - $user['mec'] += (int)$_POST['stat']; $user['master'] -= (int)$_POST['stat']; - mysql_query("UPDATE `users` SET `mec` = '".$user['mec']."', `master` = '".$user['master']."' WHERE `id` = '{$user['id']}' LIMIT 1"); - echo "Параметр Владение Мечами увеличен на ".(int)$_POST['stat']." ед."; - if($user['first'] == 8) { - $user['kwest_train_umen'] += 1; - mysql_query("UPDATE `users` SET `kwest_train_umen` = '".$user['kwest_train_umen']."' WHERE `id` = '".$user['id']."' LIMIT 1"); - } - } elseif($user['mec'] > 9) { - echo "Достигнут лимит владения"; - } elseif((int)$_POST['stat'] <= 0) { - echo "Не верное количество"; - } else { - echo "Недостаточно мастерства"; - } - } - break; - - - case 23 : - if($user['master'] > 0 && $user['sid'] == $_GET['s4i']) { - if($user['master'] >= (int)$_POST['stat'] && $user['dubina'] < 10 && ((int)$_POST['stat'] > 0)) { - $user['dubina'] += (int)$_POST['stat']; $user['master'] -= (int)$_POST['stat']; - mysql_query("UPDATE `users` SET `dubina` = '".$user['dubina']."', `master` = '".$user['master']."' WHERE `id` = '{$user['id']}' LIMIT 1"); - echo "Параметр Владение Дубинами увеличен на ".(int)$_POST['stat']." ед."; - if($user['first'] == 8) { - $user['kwest_train_umen'] += 1; - mysql_query("UPDATE `users` SET `kwest_train_umen` = '".$user['kwest_train_umen']."' WHERE `id` = '".$user['id']."' LIMIT 1"); - } - } elseif($user['dubina'] > 9) { - echo "Достигнут лимит владения"; - } elseif((int)$_POST['stat'] <= 0) { - echo "Не верное количество"; - } else { - echo "Недостаточно мастерства"; - } - } - break; - - - case 24 : - if($user['master'] > 0 && $user['sid'] == $_GET['s4i']) { - if($user['master'] >= (int)$_POST['stat'] && $user['topor'] < 10 && ((int)$_POST['stat'] > 0)) { - $user['topor'] += (int)$_POST['stat']; $user['master'] -= (int)$_POST['stat']; - mysql_query("UPDATE `users` SET `topor` = '".$user['topor']."', `master` = '".$user['master']."' WHERE `id` = '{$user['id']}' LIMIT 1"); - echo "Параметр Владение топорами увеличен на ".(int)$_POST['stat']." ед."; - if($user['first'] == 8) { - $user['kwest_train_umen'] += 1; - mysql_query("UPDATE `users` SET `kwest_train_umen` = '".$user['kwest_train_umen']."' WHERE `id` = '".$user['id']."' LIMIT 1"); - } - } elseif($user['topor'] > 9) { - echo "Достигнут лимит владения"; - } elseif((int)$_POST['stat'] <= 0) { - echo "Не верное количество"; - } else { - echo "Недостаточно мастерства"; - } - } - break; - - - case 25 : - if($user['master'] > 0 && $user['sid'] == $_GET['s4i']) { - if($user['master'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { - $user['mfire'] += (int)$_POST['stat']; $user['master'] -= (int)$_POST['stat']; - mysql_query("UPDATE `users` SET `mfire` = '".$user['mfire']."', `master` = '".$user['master']."' WHERE `id` = '{$user['id']}' LIMIT 1"); - echo "Параметр Владение Магией Огня увеличен на ".(int)$_POST['stat']." ед."; - } elseif((int)$_POST['stat'] <= 0) { - echo "Не верное количество"; - } else { - echo "Недостаточно мастерства"; - } - } - break; - - - case 26 : - if($user['master'] > 0 && $user['sid'] == $_GET['s4i']) { - if($user['master'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { - $user['mwater'] += (int)$_POST['stat']; $user['master'] -= (int)$_POST['stat']; - mysql_query("UPDATE `users` SET `mwater` = '".$user['mwater']."', `master` = '".$user['master']."' WHERE `id` = '{$user['id']}' LIMIT 1"); - echo "Параметр Владение Магией Воды увеличен на ".(int)$_POST['stat']." ед."; - } elseif((int)$_POST['stat'] <= 0) { - echo "Не верное количество"; - } else { - echo "Недостаточно мастерства"; - } - } - break; - - - case 27 : - if($user['master'] > 0 && $user['sid'] == $_GET['s4i']) { - if($user['master'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { - $user['mair'] += (int)$_POST['stat']; $user['master'] -= (int)$_POST['stat']; - mysql_query("UPDATE `users` SET `mair` = '".$user['mair']."', `master` = '".$user['master']."' WHERE `id` = '{$user['id']}' LIMIT 1"); - echo "Параметр Владение Магией Воздуха увеличен на ".(int)$_POST['stat']." ед."; - } elseif((int)$_POST['stat'] <= 0) { - echo "Не верное количество"; - } else { - echo "Недостаточно мастерства"; - } - } - break; - - case 28 : - if($user['master'] > 0 && $user['sid'] == $_GET['s4i']) { - if($user['master'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { - $user['mearth'] += (int)$_POST['stat']; $user['master'] -= (int)$_POST['stat']; - mysql_query("UPDATE `users` SET `mearth` = '".$user['mearth']."', `master` = '".$user['master']."' WHERE `id` = '{$user['id']}' LIMIT 1"); - echo "Параметр Владение Магией Земли увеличен на ".(int)$_POST['stat']." ед."; - } elseif((int)$_POST['stat'] <= 0) { - echo "Не верное количество"; - } else { - echo "Недостаточно мастерства"; - } - } - break; - - case 29 : - if($user['master'] > 0 && $user['sid'] == $_GET['s4i']) { - if($user['master'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { - $user['mlight'] += (int)$_POST['stat']; $user['master'] -= (int)$_POST['stat']; - mysql_query("UPDATE `users` SET `mlight` = '".$user['mlight']."', `master` = '".$user['master']."' WHERE `id` = '{$user['id']}' LIMIT 1"); - echo "Параметр Владение Магией Света увеличен на ".(int)$_POST['stat']." ед."; - } elseif((int)$_POST['stat'] <= 0) { - echo "Не верное количество"; - } else { - echo "Недостаточно мастерства"; - } - } - break; - - case 210 : - if($user['master'] > 0 && $user['sid'] == $_GET['s4i']) { - if($user['master'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { - $user['mgray'] += (int)$_POST['stat']; $user['master'] -= (int)$_POST['stat']; - mysql_query("UPDATE `users` SET `mgray` = '".$user['mgray']."', `master` = '".$user['master']."' WHERE `id` = '{$user['id']}' LIMIT 1"); - echo "Параметр Владение Серой Магией увеличен на ".(int)$_POST['stat']." ед."; - } elseif((int)$_POST['stat'] <= 0) { - echo "Не верное количество"; - } else { - echo "Недостаточно мастерства"; - } - } - break; - - case 211 : - if($user['master'] > 0 && $user['sid'] == $_GET['s4i']) { - if($user['master'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { - $user['mdark'] += (int)$_POST['stat']; $user['master'] -= (int)$_POST['stat']; - mysql_query("UPDATE `users` SET `mdark` = '".$user['mdark']."', `master` = '".$user['master']."' WHERE `id` = '{$user['id']}' LIMIT 1"); - echo "Параметр Владение Магией Тьмы увеличен на ".(int)$_POST['stat']." ед."; - } elseif((int)$_POST['stat'] <= 0) { - echo "Не верное количество"; - } else { - echo "Недостаточно мастерства"; - } - } - break; - } -} - -if(@$_GET['drop']) { - dropitem($_GET['drop']); - updstats(); -} - -if(@$_GET['dress']) { - $rec = mysql_fetch_array(mysql_query('SELECT `id`, `koll` FROM `inventory` WHERE `id` = "'.(int)$_GET['dress'].'" AND `owner` = "'.$user['id'].'" LIMIT 1')); - if(isset($rec['id'])) { - if($rec['koll'] > 1) { - $id = unstack($rec['id'], 1); - dressitem($id); - } else { - dressitem($_GET['dress']); + while ($v = mysql_fetch_array($online)) { + $or[$v['room']]++; } - updstats(); - } else { - echo 'Предмет не найден ...'; - } + + #$user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '{$user['id']}' LIMIT 1")); + //echo $user['room'] ; + ?> + + + + + + + + + + + + + + +
+
+
+
+
Карта миров
+
(Сейчас в игре: чел.)
+
+ + +
Обновить +
+
Поединки +
+
Инвентарь +
+
Состояние +
+
Подсказка +
+
+ Вернуться +
+ + +
+
+ + +
Выйти на Центральную площадь +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
Комната для новичков 1 +
(Уровень 0)
+
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
Комната для новичков 2 +
(Уровень 0)
+
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
Комната для новичков 3 +
(Уровень 0)
+
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
+ Комната для новичков 4 +
(Уровень 0)
+
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
+ Зал воинов 1 +
(Уровень 1-3)
+
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
+ Зал воинов 2 +
(Уровень 1-3)
+
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
+ Зал воинов 3 +
(Уровень 1-3)
+
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
+ Торговый зал +
(Уровень 4-21)
+
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
+ Рыцарский зал +
(Уровень 4-6)
+
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
+ Башня рыцарей-магов +
(Уровень 7-9)
+
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
+ Колдовской мир +
(Уровень 10-12)
+
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
+ Этаж духов +
(Уровень 13-15)
+
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
+ Астральные этажи +
(Уровень 16-19)
+
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
+ Огненный мир +
(Уровень 19-21)
+
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
+ Зал Паладинов +
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
+ Совет Белого Братства +
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
+ Зал Тьмы +
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
+ Зал Стихий +
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
+ Зал Света +
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
+ Будуар +
(Уровень 1-21)
+
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
+ Царство Тьмы +
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
+ Царство Стихий +
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
+ Царство Света +
+
+
Войти +
+
 ()
+
+ + +
+
+
+
+
+
+
+ +
+
+ Зал Клановых Войн +
(Уровень 4-21)
+
+
+
Войти +
+
 (0)
+
+ +
+
+
+
+
+
+
+ + + Предмет \"".$dress['name']."\" выброшен.
"; - } else { - echo "
Сначала снимите предмет...
"; - } - } else { - echo "
Предмет не найден...
"; +header("Cache-Control: no-cache"); +if (@$_GET['edit']) { + + if ($_GET['ups']) { + switch ($_GET['ups']) { + case 11 : + if ($user['stats'] > 0 && $user['sid'] == $_GET['s4i']) { + if ($user['stats'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { + $user['sila'] += (int)$_POST['stat']; + $user['stats'] -= (int)$_POST['stat']; + mysql_query("UPDATE `users` SET `sila` = '" . $user['sila'] . "', `stats` = '" . $user['stats'] . "' WHERE `id` = '{$user['id']}' LIMIT 1"); + echo "Параметр Сила увеличен на " . (int)$_POST['stat'] . " ед."; + } elseif ((int)$_POST['stat'] <= 0) { + echo "Не верное количество"; + } else { + echo "Недостаточно статов"; + } + } + break; + + case 12 : + if ($user['stats'] > 0 && $user['sid'] == $_GET['s4i']) { + if ($user['stats'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { + $user['lovk'] += (int)$_POST['stat']; + $user['stats'] -= (int)$_POST['stat']; + mysql_query("UPDATE `users` SET `lovk` = '" . $user['lovk'] . "', `stats` = '" . $user['stats'] . "' WHERE `id` = '{$user['id']}' LIMIT 1"); + echo "Параметр Ловкость увеличен на " . (int)$_POST['stat'] . " ед."; + } elseif ((int)$_POST['stat'] <= 0) { + echo "Не верное количество"; + } else { + echo "Недостаточно статов"; + } + } + break; + + case 13 : + if ($user['stats'] > 0 && $user['sid'] == $_GET['s4i']) { + if ($user['stats'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { + $user['inta'] += (int)$_POST['stat']; + $user['stats'] -= (int)$_POST['stat']; + mysql_query("UPDATE `users` SET `inta` = '" . $user['inta'] . "', `stats` = '" . $user['stats'] . "' WHERE `id` = '{$user['id']}' LIMIT 1"); + echo "Параметр Интуиция увеличен на " . (int)$_POST['stat'] . " ед."; + } elseif ((int)$_POST['stat'] <= 0) { + echo "Не верное количество"; + } else { + echo "Недостаточно статов"; + } + } + break; + + case 14 : + if ($user['stats'] > 0 && $user['sid'] == $_GET['s4i']) { + if ($user['stats'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { + $user['vinos'] += (int)$_POST['stat']; + $user['stats'] -= (int)$_POST['stat']; + $user['maxhp'] += (int)($_POST['stat'] * 6); + mysql_query("UPDATE `users` SET `vinos` = '" . $user['vinos'] . "', `stats` = '" . $user['stats'] . "', `maxhp` = '" . $user['maxhp'] . "' WHERE `id` = '{$user['id']}' LIMIT 1"); + echo "Параметр Выносливость увеличен на " . (int)$_POST['stat'] . " ед."; + } elseif ((int)$_POST['stat'] <= 0) { + echo "Не верное количество"; + } else { + echo "Недостаточно статов"; + } + } + break; + + case 15 : + if ($user['stats'] > 0 && $user['sid'] == $_GET['s4i']) { + if ($user['stats'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { + $user['intel'] += (int)$_POST['stat']; + $user['stats'] -= (int)$_POST['stat']; + mysql_query("UPDATE `users` SET `intel` = '" . $user['intel'] . "', `stats` = '" . $user['stats'] . "' WHERE `id` = '{$user['id']}' LIMIT 1"); + echo "Параметр Интеллект увеличен на " . (int)$_POST['stat'] . " ед."; + } elseif ((int)$_POST['stat'] <= 0) { + echo "Не верное количество"; + } else { + echo "Недостаточно статов"; + } + } + break; + + case 21 : + if ($user['master'] > 0 && $user['sid'] == $_GET['s4i']) { + if ($user['master'] >= (int)$_POST['stat'] && $user['noj'] < 10 && ((int)$_POST['stat'] > 0)) { + $user['noj'] += (int)$_POST['stat']; + $user['master'] -= (int)$_POST['stat']; + mysql_query("UPDATE `users` SET `noj` = '" . $user['noj'] . "', `master` = '" . $user['master'] . "' WHERE `id` = '{$user['id']}' LIMIT 1"); + echo "Параметр Владение Кастетами увеличен на " . (int)$_POST['stat'] . " ед."; + } elseif ($user['noj'] > 9) { + echo "Достигнут лимит владения"; + } elseif ((int)$_POST['stat'] <= 0) { + echo "Не верное количество"; + } else { + echo "Недостаточно мастерства"; + } + } + break; + + case 22 : + if ($user['master'] > 0 && $user['sid'] == $_GET['s4i']) { + if ($user['master'] >= (int)$_POST['stat'] && $user['mec'] < 10 && ((int)$_POST['stat'] > 0)) { + $user['mec'] += (int)$_POST['stat']; + $user['master'] -= (int)$_POST['stat']; + mysql_query("UPDATE `users` SET `mec` = '" . $user['mec'] . "', `master` = '" . $user['master'] . "' WHERE `id` = '{$user['id']}' LIMIT 1"); + echo "Параметр Владение Мечами увеличен на " . (int)$_POST['stat'] . " ед."; + } elseif ($user['mec'] > 9) { + echo "Достигнут лимит владения"; + } elseif ((int)$_POST['stat'] <= 0) { + echo "Не верное количество"; + } else { + echo "Недостаточно мастерства"; + } + } + break; + + + case 23 : + if ($user['master'] > 0 && $user['sid'] == $_GET['s4i']) { + if ($user['master'] >= (int)$_POST['stat'] && $user['dubina'] < 10 && ((int)$_POST['stat'] > 0)) { + $user['dubina'] += (int)$_POST['stat']; + $user['master'] -= (int)$_POST['stat']; + mysql_query("UPDATE `users` SET `dubina` = '" . $user['dubina'] . "', `master` = '" . $user['master'] . "' WHERE `id` = '{$user['id']}' LIMIT 1"); + echo "Параметр Владение Дубинами увеличен на " . (int)$_POST['stat'] . " ед."; + } elseif ($user['dubina'] > 9) { + echo "Достигнут лимит владения"; + } elseif ((int)$_POST['stat'] <= 0) { + echo "Не верное количество"; + } else { + echo "Недостаточно мастерства"; + } + } + break; + + + case 24 : + if ($user['master'] > 0 && $user['sid'] == $_GET['s4i']) { + if ($user['master'] >= (int)$_POST['stat'] && $user['topor'] < 10 && ((int)$_POST['stat'] > 0)) { + $user['topor'] += (int)$_POST['stat']; + $user['master'] -= (int)$_POST['stat']; + mysql_query("UPDATE `users` SET `topor` = '" . $user['topor'] . "', `master` = '" . $user['master'] . "' WHERE `id` = '{$user['id']}' LIMIT 1"); + echo "Параметр Владение топорами увеличен на " . (int)$_POST['stat'] . " ед."; + } elseif ($user['topor'] > 9) { + echo "Достигнут лимит владения"; + } elseif ((int)$_POST['stat'] <= 0) { + echo "Не верное количество"; + } else { + echo "Недостаточно мастерства"; + } + } + break; + + + case 25 : + if ($user['master'] > 0 && $user['sid'] == $_GET['s4i']) { + if ($user['master'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { + $user['mfire'] += (int)$_POST['stat']; + $user['master'] -= (int)$_POST['stat']; + mysql_query("UPDATE `users` SET `mfire` = '" . $user['mfire'] . "', `master` = '" . $user['master'] . "' WHERE `id` = '{$user['id']}' LIMIT 1"); + echo "Параметр Владение Магией Огня увеличен на " . (int)$_POST['stat'] . " ед."; + } elseif ((int)$_POST['stat'] <= 0) { + echo "Не верное количество"; + } else { + echo "Недостаточно мастерства"; + } + } + break; + + + case 26 : + if ($user['master'] > 0 && $user['sid'] == $_GET['s4i']) { + if ($user['master'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { + $user['mwater'] += (int)$_POST['stat']; + $user['master'] -= (int)$_POST['stat']; + mysql_query("UPDATE `users` SET `mwater` = '" . $user['mwater'] . "', `master` = '" . $user['master'] . "' WHERE `id` = '{$user['id']}' LIMIT 1"); + echo "Параметр Владение Магией Воды увеличен на " . (int)$_POST['stat'] . " ед."; + } elseif ((int)$_POST['stat'] <= 0) { + echo "Не верное количество"; + } else { + echo "Недостаточно мастерства"; + } + } + break; + + + case 27 : + if ($user['master'] > 0 && $user['sid'] == $_GET['s4i']) { + if ($user['master'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { + $user['mair'] += (int)$_POST['stat']; + $user['master'] -= (int)$_POST['stat']; + mysql_query("UPDATE `users` SET `mair` = '" . $user['mair'] . "', `master` = '" . $user['master'] . "' WHERE `id` = '{$user['id']}' LIMIT 1"); + echo "Параметр Владение Магией Воздуха увеличен на " . (int)$_POST['stat'] . " ед."; + } elseif ((int)$_POST['stat'] <= 0) { + echo "Не верное количество"; + } else { + echo "Недостаточно мастерства"; + } + } + break; + + case 28 : + if ($user['master'] > 0 && $user['sid'] == $_GET['s4i']) { + if ($user['master'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { + $user['mearth'] += (int)$_POST['stat']; + $user['master'] -= (int)$_POST['stat']; + mysql_query("UPDATE `users` SET `mearth` = '" . $user['mearth'] . "', `master` = '" . $user['master'] . "' WHERE `id` = '{$user['id']}' LIMIT 1"); + echo "Параметр Владение Магией Земли увеличен на " . (int)$_POST['stat'] . " ед."; + } elseif ((int)$_POST['stat'] <= 0) { + echo "Не верное количество"; + } else { + echo "Недостаточно мастерства"; + } + } + break; + + case 29 : + if ($user['master'] > 0 && $user['sid'] == $_GET['s4i']) { + if ($user['master'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { + $user['mlight'] += (int)$_POST['stat']; + $user['master'] -= (int)$_POST['stat']; + mysql_query("UPDATE `users` SET `mlight` = '" . $user['mlight'] . "', `master` = '" . $user['master'] . "' WHERE `id` = '{$user['id']}' LIMIT 1"); + echo "Параметр Владение Магией Света увеличен на " . (int)$_POST['stat'] . " ед."; + } elseif ((int)$_POST['stat'] <= 0) { + echo "Не верное количество"; + } else { + echo "Недостаточно мастерства"; + } + } + break; + + case 210 : + if ($user['master'] > 0 && $user['sid'] == $_GET['s4i']) { + if ($user['master'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { + $user['mgray'] += (int)$_POST['stat']; + $user['master'] -= (int)$_POST['stat']; + mysql_query("UPDATE `users` SET `mgray` = '" . $user['mgray'] . "', `master` = '" . $user['master'] . "' WHERE `id` = '{$user['id']}' LIMIT 1"); + echo "Параметр Владение Серой Магией увеличен на " . (int)$_POST['stat'] . " ед."; + } elseif ((int)$_POST['stat'] <= 0) { + echo "Не верное количество"; + } else { + echo "Недостаточно мастерства"; + } + } + break; + + case 211 : + if ($user['master'] > 0 && $user['sid'] == $_GET['s4i']) { + if ($user['master'] >= (int)$_POST['stat'] && ((int)$_POST['stat'] > 0)) { + $user['mdark'] += (int)$_POST['stat']; + $user['master'] -= (int)$_POST['stat']; + mysql_query("UPDATE `users` SET `mdark` = '" . $user['mdark'] . "', `master` = '" . $user['master'] . "' WHERE `id` = '{$user['id']}' LIMIT 1"); + echo "Параметр Владение Магией Тьмы увеличен на " . (int)$_POST['stat'] . " ед."; + } elseif ((int)$_POST['stat'] <= 0) { + echo "Не верное количество"; + } else { + echo "Недостаточно мастерства"; + } + } + break; } -} - - if(@$_GET['use']) { - $rec = mysql_fetch_array(mysql_query('SELECT `id`, `koll` FROM `inventory` WHERE `id` = "'.(int)$_GET['use'].'" AND `owner` = "'.$user['id'].'" LIMIT 1')); - if(isset($rec['id'])) { - if($rec['koll'] > 1) { - $id = unstack($rec['id'], 1); - usemagic($id, $_POST['target']); + } + + if (@$_GET['drop']) { + dropitem($_GET['drop']); + updstats(); + } + + if (@$_GET['dress']) { + $rec = mysql_fetch_array(mysql_query('SELECT `id`, `koll` FROM `inventory` WHERE `id` = "' . (int)$_GET['dress'] . '" AND `owner` = "' . $user['id'] . '" LIMIT 1')); + if (isset($rec['id'])) { + if ($rec['koll'] > 1) { + $id = unstack($rec['id'], 1); + dressitem($id); + } else { + dressitem($_GET['dress']); + } + updstats(); } else { - usemagic($_GET['use'], $_POST['target']); + echo 'Предмет не найден ...'; } - } else { - echo 'Предмет не найден ...'; - } - } - + } + + if (@$_GET['destruct']) { + $dress = mysql_fetch_array(mysql_query("SELECT `id`, `dressed`, `name`, `duration`, `maxdur` FROM `inventory` WHERE `owner` = '{$user['id']}' AND `id` = '{$_GET['destruct']}' LIMIT 1")); + if (isset($dress['id'])) { + if ($dress['dressed'] == 0) { + destructitem($dress['id']); + mysql_query("INSERT INTO `delo` (`id` , `author` ,`pers`, `text`, `type`, `date`) VALUES ('','0','{$_SESSION['uid']}','\"" . $user['login'] . "\" выбросил предмет \"" . $dress['name'] . "\" id:(cap" . $dress['id'] . ") [" . $dress['duration'] . "/" . $dress['maxdur'] . "] ',1,'" . time() . "');"); + echo "
Предмет \"" . $dress['name'] . "\" выброшен.
"; + } else { + echo "
Сначала снимите предмет...
"; + } + } else { + echo "
Предмет не найден...
"; + } + } + + if (@$_GET['use']) { + $rec = mysql_fetch_array(mysql_query('SELECT `id`, `koll` FROM `inventory` WHERE `id` = "' . (int)$_GET['use'] . '" AND `owner` = "' . $user['id'] . '" LIMIT 1')); + if (isset($rec['id'])) { + if ($rec['koll'] > 1) { + $id = unstack($rec['id'], 1); + usemagic($id, $_POST['target']); + } else { + usemagic($_GET['use'], $_POST['target']); + } + } else { + echo 'Предмет не найден ...'; + } + } + if (@$_GET['undress']) { - undressall($user['id']); - updstats(); - } - if (@$_GET['delcomplect']) { - mysql_query("DELETE FROM `komplekt` WHERE `name` = '".$_GET['delcomplect']."' AND `owner` = '".$user['id']."';"); - } - if (@$_GET['complect']) { - $hp = $user['hp']; - undressall($user['id']); + undressall($user['id']); + updstats(); + } + if (@$_GET['delcomplect']) { + mysql_query("DELETE FROM `komplekt` WHERE `name` = '" . $_GET['delcomplect'] . "' AND `owner` = '" . $user['id'] . "';"); + } + if (@$_GET['complect']) { + $hp = $user['hp']; + undressall($user['id']); $_GET['complect'] = mysql_real_escape_string($_GET['complect']); - $u_kompl=mysql_fetch_array(mysql_query("SELECT * FROM komplekt where `name` = '{$_GET['complect']}' AND `owner` = {$user['id']} LIMIT 1")); - $k_items=array(); - $k_items=explode(';',$u_kompl['items']); - foreach ($k_items as $k_i) + $u_kompl = mysql_fetch_array(mysql_query("SELECT * FROM komplekt where `name` = '{$_GET['complect']}' AND `owner` = {$user['id']} LIMIT 1")); + $k_items = array(); + $k_items = explode(';', $u_kompl['items']); + foreach ($k_items as $k_i) dressitem($k_i); - mysql_query("UPDATE `users` SET `hp` = '".$hp."' WHERE `id` = '".$user['id']."' LIMIT 1"); - mysql_query("UPDATE `users` SET `hp` = `maxhp` WHERE `hp` > `maxhp` AND `id` = '".$user['id']."' LIMIT 1"); - $user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '{$user['id']}' LIMIT 1")); - } - ref_drop ($user['id']); - -if(@$_GET['savecomplect']) { - $_GET['savecomplect'] = trim($_GET['savecomplect']); - if(preg_match('/[\/\:*?"<>|+%]/', $_GET['savecomplect'])) { - echo "Вы используете запрещенные символы ..."; - } else { - $name = mysql_real_escape_string($_GET['savecomplect']); - $u_all_kompl = mysql_fetch_array(mysql_query("SELECT `id` FROM `komplekt` WHERE `name` = '{$name}' AND `owner` = '{$user['id']}' LIMIT 1")); - if(isset($u_all_kompl['id'])) { - echo "Такое название комплекта уже используется .."; - } else { - $items = array(); - $odetShmot = mysql_query("SELECT `id` FROM `inventory` WHERE `id` = '".$user['sergi']."' OR `id` = '".$user['kulon']."' OR `id` = '".$user['perchi']."' OR `id` = '".$user['weap']."' OR `id` = '".$user['bron']."' OR `id` = '".$user['rybax']."' OR `id` = '".$user['r1']."' OR `id` = '".$user['r2']."' OR `id` = '".$user['r3']."' OR `id` = '".$user['helm']."' OR `id` = '".$user['shit']."' OR `id` = '".$user['m1']."' OR `id` = '".$user['m2']."' OR `id` = '".$user['m3']."' OR `id` = '".$user['m4']."' OR `id` = '".$user['m5']."' OR `id` = '".$user['m6']."' OR `id` = '".$user['m7']."' OR `id` = '".$user['m8']."' OR `id` = '".$user['m9']."' OR `id` = '".$user['m10']."' OR `id` = '".$user['boots']."' OR `id` = '".$user['plaw']."' OR `id` = '".$user['rune_1']."' OR `id` = '".$user['rune_2']."' OR `id` = '".$user['rune_3']."'"); - while($res = mysql_fetch_array($odetShmot)) { - $items[] = $res['id']; - } - $t_items = implode(";", $items); - mysql_query("INSERT INTO `komplekt` (`name`, `owner`, `items`) VALUES ('{$name}', '{$user['id']}', '{$t_items}')"); - echo "Комплект {$name} сохранён ..."; + mysql_query("UPDATE `users` SET `hp` = '" . $hp . "' WHERE `id` = '" . $user['id'] . "' LIMIT 1"); + mysql_query("UPDATE `users` SET `hp` = `maxhp` WHERE `hp` > `maxhp` AND `id` = '" . $user['id'] . "' LIMIT 1"); + $user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '{$user['id']}' LIMIT 1")); } - } -} + ref_drop($user['id']); -if(!in_array($_GET['mZeAjax'], array('mZeInventory', 'mZeFilter'))): -?> - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + +
+
+ +
+ + + + +
+
+ Снять все
+ Запомнить комплект
+ + Разгруппировать предметы

+ + Группировать предметы

+ +
+
+ + + + - - '; + } + } else { + showitem($row, null, "edit=1&razdel=$_SESSION[razdel]"); + } + } + if ($viewInventory and $getItems) { + foreach ($viewInventory as $viewCategiryes) { + echo $viewCategiryes['header']; + foreach ($viewCategiryes['ids'] as $viewItem) { + echo $getItems[$viewItem]; + } + echo $viewCategiryes['fooder']; + } + } + + if (mysql_num_rows($data) == 0) { + echo ""; + } + ?> +
  + [ Закрыть ]'; - $.jGrowl.defaults.closeTemplate = 'x'; - - $('body').delegate('div#jGrowl .jgrowl-moover', 'click', function() { - var j = $(this).closest('div#jGrowl'); - var c = j.hasClass('top-right') ? 'top-left' : 'top-right'; - j.removeClass('top-left top-right').addClass(c); - }); - -}); - - -function growl(title, color, message) { - if(!color) { color = 'Red'; } - $.jGrowl(message, { header: ' '+title+'', sticky: true, glue: 'before' }); -} - - - - - - -
-
- - - - - - + + +
- Снять все
- Запомнить комплект
- - Разгруппировать предметы

- - Группировать предметы

- - -
- Текст автоответчика (Цена 25кр.): -
- - - - - - - Внимание! При включённом автответчике, Вы не будете видеть приватных сообщений которые Вам напишут. -
- - -
-
- - -
  - + //Выгребаем все комплекты перса + $u_all_kompl = mysql_query("SELECT * FROM komplekt where `owner` = '{$user['id']}'"); + while ($u_k = mysql_fetch_array($u_all_kompl)) { + $k_name = $u_k['name']; + echo " - Надеть \"".$k_name."\"
"; - }; + Надеть \"" . $k_name . "\"
"; + }; -?> -
- - - - - -
  -
- -
-
-
- + +
-
-Уровень:
-Опыт: ()
-Побед:
-Поражений:
-Ничьих:
- + ?> +
+ + + + + +
  +
+ +
+
+
+ + +
+
+ Уровень:
+ Опыт: ()
+ Побед:
+ Поражений:
+ Ничьих:
+ - -Деньги: кр.
-Репутация: реп.
- -Банк #: ( .кр, .екр) X
- -Авторизация в банке - - - - + Деньги: кр.
+ Репутация: реп.
+ + Банк + #: ( .кр, + .екр) X +
+ + Авторизация в банке + + - ?> - -
- - +
+ DrawBar('Параметры', 'param', , '', ''); + if (@$_GET['is_open'] && !is_numeric(@$_GET['is_open'])) { + unset($_GET['is_open']); + } + if (@$_GET['bar'] == 'param') { + $_SESSION['param'] = $_GET['is_open']; + } + if (@$_GET['bar'] == 'oryj') { + $_SESSION['oryj'] = $_GET['is_open']; + } + if (@$_GET['bar'] == 'modif') { + $_SESSION['modif'] = $_GET['is_open']; + } + if (@$_GET['bar'] == 'bron') { + $_SESSION['bron'] = $_GET['is_open']; + } + if (@$_GET['bar'] == 'bonus') { + $_SESSION['bonus'] = $_GET['is_open']; + } - - -Сила: ":""?>
-Ловкость: ":""?>
-Интуиция: ":""?>
-Выносливость: ":""?>
-3)?"Интеллект: {$user['intel']}":""; echo ($user['stats'] && ($user['level']>3))?" ":""; if($user['level']>3) echo"
"?> - -Возможных увеличений: + ?> - - +
+ + + + + +
-$mf = countmf(); -?> + - + + + Сила: " : "" ?> +
+ Ловкость: " : "" ?> +
+ Интуиция: " : "" ?> +
+ Выносливость: " : "" ?> +
+ 3) ? "Интеллект: {$user['intel']}" : ""; + echo ($user['stats'] && ($user['level'] > 3)) ? " " : ""; + if ($user['level'] > 3) echo "
" ?> + + Возможных увеличений: - 0')); - $item_damage = mysql_fetch_array(mysql_query('SELECT `id` FROM `inventory` WHERE `owner` = "'.$user['id'].'" AND `dressed` = "1" AND `add_proc_uron` > 0')); - $item_bron = mysql_fetch_array(mysql_query('SELECT `id` FROM `inventory` WHERE `owner` = "'.$user['id'].'" AND `dressed` = "1" AND `add_proc_bron` > 0')); + + + + + + 0')); + $item_damage = mysql_fetch_array(mysql_query('SELECT `id` FROM `inventory` WHERE `owner` = "' . $user['id'] . '" AND `dressed` = "1" AND `add_proc_uron` > 0')); + $item_bron = mysql_fetch_array(mysql_query('SELECT `id` FROM `inventory` WHERE `owner` = "' . $user['id'] . '" AND `dressed` = "1" AND `add_proc_bron` > 0')); + + if (isset($item_mf['id'])) { + $max_mf = max_mf(); + $add_mf = sum_mf($user['id']); + if ($max_mf == 'fkrit') { + $var_mf = round(($mf['fkrit'] / 100) * $add_mf); + $mf['fkrit'] += $var_mf; + } elseif ($max_mf == 'fakrit') { + $var_mf = round(($mf['fakrit'] / 100) * $add_mf); + $mf['fakrit'] += $var_mf; + } elseif ($max_mf == 'fuvorot') { + $var_mf = round(($mf['fuvorot'] / 100) * $add_mf); + $mf['fuvorot'] += $var_mf; + } elseif ($max_mf == 'fauvorot') { + $var_mf = round(($mf['fauvorot'] / 100) * $add_mf); + $mf['fauvorot'] += $var_mf; + } + } + if (isset($item_damage['id'])) { + $add_dmg = sum_dmg($user['id']); + $min_dmg = round(($mf['minu'] / 100) * $add_dmg); + $max_dmg = round(($mf['maxu'] / 100) * $add_dmg); + } + + if (isset($item_bron['id'])) { + $add_bron = sum_bron($user['id']); + $var_brons = bron_ads($mf['bron1'], $mf['bron2'], $mf['bron3'], $mf['bron4'], $add_bron); + } else { + $var_brons = array('a1' => 0, 'a2' => 0, 'a3' => 0, 'a4' => 0); + } + ?> + + Урон: + - (' . $add_dmg . '%)'; + } ?>
+ Мф. крит. удара: (' . $add_mf . '%)'; + } ?>
+ Мф. против крит. удара: (' . $add_mf . '%)'; + } ?>
+ Мф. увертывания: (' . $add_mf . '%)'; + } ?>
+ Мф. против увертывания: (' . $add_mf . '%)'; + } ?>
+ + + + + + +
+ Владение оружием:
+ ножами и + кастетами: " : "" ?> +
+ мечами: " : "" ?> +
+ дубинами, + булавами: " : "" ?> +
+ топорами и + секирами: " : "" ?> +
+ + + 3) { ?> + + Владение магией:
+ + + Серая магия: " : "" ?> +
+ Магия Тьмы: " : "" ?> +
+ Возможных увеличений: +
+ + + + + + + Броня головы: (' . $add_bron . '%)'; + } ?>
+ Броня корпуса: (' . $add_bron . '%)'; + } ?>
+ Броня пояса: (' . $add_bron . '%)'; + } ?>
+ Броня ног: (' . $add_bron . '%)'; + } ?>
+ + + = 25 || $user['lovk'] >= 25 || $user['inta'] >= 25 || $user['vinos'] >= 25 || $user['intel'] >= 25) && $user['level'] == 25) { + ?> + + + + = 25) { + $sila['fauvorot'] = 10; + $sila['fakrit'] = 10; + } + if ($user['sila'] >= 50) { + $sila['fauvorot'] = 20; + $sila['fakrit'] = 25; + } + if ($user['sila'] >= 75) { + $sila['fauvorot'] = 30; + $sila['fakrit'] = 40; + } + if ($user['sila'] >= 100) { + $sila['fauvorot'] = 40; + $sila['fakrit'] = 50; + $sila['uminu'] = 2; + $sila['umaxu'] = 2; + } + if ($user['sila'] >= 125) { + $sila['fauvorot'] = 60; + $sila['fakrit'] = 75; + $sila['uminu'] = 5; + $sila['umaxu'] = 5; + } + if ($user['sila'] >= 150) { + $sila['fauvorot'] = 90; + $sila['fakrit'] = 110; + $sila['uminu'] = 8; + $sila['umaxu'] = 8; + } + if ($user['sila'] >= 175) { + $sila['fauvorot'] = 120; + $sila['fakrit'] = 150; + $sila['uminu'] = 12; + $sila['umaxu'] = 12; + } + if ($user['sila'] >= 200) { + $sila['fauvorot'] = 150; + $sila['fakrit'] = 200; + $sila['uminu'] = 15; + $sila['umaxu'] = 15; + } + + + if ($user['lovk'] >= 25) { + $lovk['fuvorot'] = 10; + $lovk['fauvorot'] = 10; + $lovk['fakrit'] = 20; + } + if ($user['lovk'] >= 50) { + $lovk['fuvorot'] = 20; + $lovk['fauvorot'] = 25; + $lovk['fakrit'] = 40; + } + if ($user['lovk'] >= 75) { + $lovk['fuvorot'] = 30; + $lovk['fauvorot'] = 30; + $lovk['fakrit'] = 60; + } + if ($user['lovk'] >= 100) { + $lovk['fuvorot'] = 40; + $lovk['fauvorot'] = 40; + $lovk['fakrit'] = 75; + $lovk['uminu'] = 5; + $lovk['umaxu'] = 5; + } + if ($user['lovk'] >= 125) { + $lovk['fuvorot'] = 40; + $lovk['fauvorot'] = 70; + $lovk['fakrit'] = 90; + $lovk['uminu'] = 6; + $lovk['umaxu'] = 6; + } + if ($user['lovk'] >= 150) { + $lovk['fuvorot'] = 40; + $lovk['fauvorot'] = 150; + $lovk['fakrit'] = 120; + $lovk['uminu'] = 8; + $lovk['umaxu'] = 8; + } + if ($user['lovk'] >= 175) { + $lovk['fuvorot'] = 40; + $lovk['fauvorot'] = 200; + $lovk['fakrit'] = 140; + $lovk['uminu'] = 10; + $lovk['umaxu'] = 10; + } + if ($user['lovk'] >= 200) { + $lovk['fuvorot'] = 40; + $lovk['fauvorot'] = 250; + $lovk['fakrit'] = 160; + $lovk['uminu'] = 15; + $lovk['umaxu'] = 15; + } + + + if ($user['inta'] >= 25) { + $inta['fkrit'] = 10; + $inta['fauvorot'] = 10; + $inta['fakrit'] = 15; + } + if ($user['inta'] >= 50) { + $inta['fkrit'] = 25; + $inta['fauvorot'] = 25; + $inta['fakrit'] = 25; + } + if ($user['inta'] >= 75) { + $inta['fkrit'] = 60; + $inta['fauvorot'] = 30; + $inta['fakrit'] = 30; + } + if ($user['inta'] >= 100) { + $inta['fkrit'] = 40; + $inta['fauvorot'] = 40; + $inta['fakrit'] = 75; + } + if ($user['inta'] >= 125) { + $inta['fkrit'] = 40; + $inta['fauvorot'] = 50; + $inta['fakrit'] = 100; + $inta['uminu'] = 1; + $inta['umaxu'] = 1; + } + if ($user['inta'] >= 150) { + $inta['fkrit'] = 60; + $inta['fauvorot'] = 40; + $inta['fakrit'] = 130; + $inta['uminu'] = 5; + $inta['umaxu'] = 5; + } + if ($user['inta'] >= 175) { + $inta['fkrit'] = 40; + $inta['fauvorot'] = 80; + $inta['fakrit'] = 170; + $inta['uminu'] = 10; + $inta['umaxu'] = 10; + } + if ($user['inta'] >= 200) { + $inta['fkrit'] = 40; + $inta['fauvorot'] = 120; + $inta['fakrit'] = 200; + $inta['uminu'] = 15; + $inta['umaxu'] = 15; + } + + + if ($user['vinos'] >= 25) { + $vinos['fkrit'] = 10; + $vinos['fauvorot'] = 10; + $vinos['fakrit'] = 15; + } + if ($user['vinos'] >= 50) { + $vinos['fkrit'] = 25; + $vinos['fauvorot'] = 25; + $vinos['fakrit'] = 25; + } + if ($user['vinos'] >= 75) { + $vinos['fkrit'] = 60; + $vinos['fauvorot'] = 30; + $vinos['fakrit'] = 30; + } + if ($user['vinos'] >= 100) { + $vinos['fkrit'] = 40; + $vinos['fauvorot'] = 40; + $vinos['fakrit'] = 75; + } + if ($user['vinos'] >= 125) { + $vinos['fkrit'] = 40; + $vinos['fauvorot'] = 50; + $vinos['fakrit'] = 100; + $vinos['uminu'] = 1; + $vinos['umaxu'] = 1; + } + if ($user['vinos'] >= 150) { + $vinos['fkrit'] = 60; + $vinos['fauvorot'] = 40; + $vinos['fakrit'] = 130; + $vinos['uminu'] = 5; + $vinos['umaxu'] = 5; + } + if ($user['vinos'] >= 175) { + $vinos['fkrit'] = 40; + $vinos['fauvorot'] = 80; + $vinos['fakrit'] = 170; + $vinos['uminu'] = 10; + $vinos['umaxu'] = 10; + } + if ($user['vinos'] >= 200) { + $vinos['fkrit'] = 40; + $vinos['fauvorot'] = 120; + $vinos['fakrit'] = 200; + $vinos['uminu'] = 15; + $vinos['umaxu'] = 15; + } + + if ($user['vinos'] >= $user['sila'] && $user['vinos'] >= $user['lovk'] && $user['vinos'] >= $user['inta']) { + $i_uminu = $vinos['uminu']; + $i_fkrit = $vinos['fkrit']; + $i_fauvorot = $vinos['fauvorot']; + $i_fakrit = $vinos['fakrit']; + } + + + if ($user['inta'] >= $user['sila'] && $user['inta'] >= $user['lovk'] && $user['inta'] >= $user['vinos']) { + $i_uminu = $inta['uminu']; + $i_fkrit = $inta['fkrit']; + $i_fauvorot = $inta['fauvorot']; + $i_fakrit = $inta['fakrit']; + } + + if ($user['lovk'] >= $user['sila'] && $user['lovk'] >= $user['inta'] && $user['lovk'] >= $user['vinos']) { + $i_uminu = $lovk['uminu']; + $i_fkrit = $lovk['fkrit']; + $i_fauvorot = $lovk['fauvorot']; + $i_fakrit = $lovk['fakrit']; + } + + + if ($user['sila'] >= $user['lovk'] && $user['sila'] >= $user['inta'] && $user['sila'] >= $user['vinos']) { + $i_uminu = $sila['uminu']; + $i_fkrit = $sila['fkrit']; + $i_fauvorot = $sila['fauvorot']; + $i_fakrit = $sila['fakrit']; + } + + if ($i_fkrit > 0) { + echo "Мф. крит: +" . $i_fkrit . "
"; + } + if ($i_fakrit > 0) { + echo "Мф. анти крит: +" . $i_fakrit . "
"; + } + if ($i_fauvorot > 0) { + echo "Мф. анти уворот: +" . $i_fauvorot . "
"; + } + if ($i_uminu > 0) { + echo "Урон: +" . $i_uminu; + } + + + } + } + ?> + +
+
+ + +
+
+ +
+ +
+ + +
+ + + + + + + + + + + + + + + + + +
+ + + +
+
+
+
+ + 0, 'a2' => 0, 'a3' => 0, 'a4' => 0); - } -?> - -Урон: - ('.$add_dmg.'%)'; } ?>
-Мф. крит. удара: ('.$add_mf.'%)'; } ?>
-Мф. против крит. удара: ('.$add_mf.'%)'; } ?>
-Мф. увертывания: ('.$add_mf.'%)'; } ?>
-Мф. против увертывания: ('.$add_mf.'%)'; } ?>
- - - - - - -
-Владение оружием:
-ножами и кастетами: ":""?>
-мечами: ":""?>
-дубинами, булавами: ":""?>
-топорами и секирами: ":""?>
- - - 3) {?> - -Владение магией:
- - -Серая магия: ":""?>
-Магия Тьмы: ":""?>
-Возможных увеличений: -
- - - - - - -Броня головы: ('.$add_bron.'%)'; } ?>
-Броня корпуса: ('.$add_bron.'%)'; } ?>
-Броня пояса: ('.$add_bron.'%)'; } ?>
-Броня ног: ('.$add_bron.'%)'; } ?>
- - -= 25 || $user['lovk'] >= 25 || $user['inta'] >= 25 || $user['vinos'] >= 25 || $user['intel'] >= 25) && $user['level'] == 25) { -?> - - - -= 25) { $sila['fauvorot'] = 10; $sila['fakrit'] = 10; } -if($user['sila'] >= 50){ $sila['fauvorot'] = 20; $sila['fakrit'] = 25; } -if($user['sila'] >= 75){ $sila['fauvorot'] = 30; $sila['fakrit'] = 40; } -if($user['sila'] >= 100){ $sila['fauvorot'] = 40; $sila['fakrit'] = 50; $sila['uminu'] = 2; $sila['umaxu'] = 2; } -if($user['sila'] >= 125){ $sila['fauvorot'] = 60; $sila['fakrit'] = 75; $sila['uminu'] = 5; $sila['umaxu'] = 5; } -if($user['sila'] >= 150){ $sila['fauvorot'] = 90; $sila['fakrit'] = 110; $sila['uminu'] = 8; $sila['umaxu'] = 8; } -if($user['sila'] >= 175){ $sila['fauvorot'] = 120; $sila['fakrit'] = 150; $sila['uminu'] = 12; $sila['umaxu'] = 12; } -if($user['sila'] >= 200){ $sila['fauvorot'] = 150; $sila['fakrit'] = 200; $sila['uminu'] = 15; $sila['umaxu'] = 15; } - - -if($user['lovk'] >= 25) { $lovk['fuvorot'] = 10; $lovk['fauvorot'] = 10; $lovk['fakrit'] = 20; } -if($user['lovk'] >= 50) { $lovk['fuvorot'] = 20; $lovk['fauvorot'] = 25; $lovk['fakrit'] = 40; } -if($user['lovk'] >= 75) { $lovk['fuvorot'] = 30; $lovk['fauvorot'] = 30; $lovk['fakrit'] = 60; } -if($user['lovk'] >= 100) { $lovk['fuvorot'] = 40; $lovk['fauvorot'] = 40; $lovk['fakrit'] = 75; $lovk['uminu'] = 5; $lovk['umaxu'] = 5; } -if($user['lovk'] >= 125) { $lovk['fuvorot'] = 40; $lovk['fauvorot'] = 70; $lovk['fakrit'] = 90; $lovk['uminu'] = 6; $lovk['umaxu'] = 6; } -if($user['lovk'] >= 150) { $lovk['fuvorot'] = 40; $lovk['fauvorot'] = 150; $lovk['fakrit'] = 120; $lovk['uminu'] = 8; $lovk['umaxu'] = 8; } -if($user['lovk'] >= 175) { $lovk['fuvorot'] = 40; $lovk['fauvorot'] = 200; $lovk['fakrit'] = 140; $lovk['uminu'] = 10; $lovk['umaxu'] = 10; } -if($user['lovk'] >= 200) { $lovk['fuvorot'] = 40; $lovk['fauvorot'] = 250; $lovk['fakrit'] = 160; $lovk['uminu'] = 15; $lovk['umaxu'] = 15; } - - -if($user['inta'] >= 25) { $inta['fkrit'] = 10; $inta['fauvorot'] = 10; $inta['fakrit'] = 15; } -if($user['inta'] >= 50) { $inta['fkrit'] = 25; $inta['fauvorot'] = 25; $inta['fakrit'] = 25; } -if($user['inta'] >= 75) { $inta['fkrit'] = 60; $inta['fauvorot'] = 30; $inta['fakrit'] = 30; } -if($user['inta'] >= 100) { $inta['fkrit'] = 40; $inta['fauvorot'] = 40; $inta['fakrit'] = 75; } -if($user['inta'] >= 125) { $inta['fkrit'] = 40; $inta['fauvorot'] = 50; $inta['fakrit'] = 100; $inta['uminu'] = 1; $inta['umaxu'] = 1; } -if($user['inta'] >= 150) { $inta['fkrit'] = 60; $inta['fauvorot'] = 40; $inta['fakrit'] = 130; $inta['uminu'] = 5; $inta['umaxu'] = 5; } -if($user['inta'] >= 175) { $inta['fkrit'] = 40; $inta['fauvorot'] = 80; $inta['fakrit'] = 170; $inta['uminu'] = 10; $inta['umaxu'] = 10; } -if($user['inta'] >= 200) { $inta['fkrit'] = 40; $inta['fauvorot'] = 120; $inta['fakrit'] = 200; $inta['uminu'] = 15; $inta['umaxu'] = 15; } - - -if($user['vinos'] >= 25) { $vinos['fkrit'] = 10; $vinos['fauvorot'] = 10; $vinos['fakrit'] = 15; } -if($user['vinos'] >= 50) { $vinos['fkrit'] = 25; $vinos['fauvorot'] = 25; $vinos['fakrit'] = 25; } -if($user['vinos'] >= 75) { $vinos['fkrit'] = 60; $vinos['fauvorot'] = 30; $vinos['fakrit'] = 30; } -if($user['vinos'] >= 100) { $vinos['fkrit'] = 40; $vinos['fauvorot'] = 40; $vinos['fakrit'] = 75; } -if($user['vinos'] >= 125) { $vinos['fkrit'] = 40; $vinos['fauvorot'] = 50; $vinos['fakrit'] = 100; $vinos['uminu'] = 1; $vinos['umaxu'] = 1; } -if($user['vinos'] >= 150) { $vinos['fkrit'] = 60; $vinos['fauvorot'] = 40; $vinos['fakrit'] = 130; $vinos['uminu'] = 5; $vinos['umaxu'] = 5; } -if($user['vinos'] >= 175) { $vinos['fkrit'] = 40; $vinos['fauvorot'] = 80; $vinos['fakrit'] = 170; $vinos['uminu'] = 10; $vinos['umaxu'] = 10; } -if($user['vinos'] >= 200) { $vinos['fkrit'] = 40; $vinos['fauvorot'] = 120; $vinos['fakrit'] = 200; $vinos['uminu'] = 15; $vinos['umaxu'] = 15; } - -if($user['vinos'] >= $user['sila'] && $user['vinos'] >= $user['lovk'] && $user['vinos'] >= $user['inta']) { - $i_uminu = $vinos['uminu']; - $i_fkrit = $vinos['fkrit']; - $i_fauvorot = $vinos['fauvorot']; - $i_fakrit = $vinos['fakrit']; -} - - -if($user['inta'] >= $user['sila'] && $user['inta'] >= $user['lovk'] && $user['inta'] >= $user['vinos']) { - $i_uminu = $inta['uminu']; - $i_fkrit = $inta['fkrit']; - $i_fauvorot = $inta['fauvorot']; - $i_fakrit = $inta['fakrit']; -} - -if($user['lovk'] >= $user['sila'] && $user['lovk'] >= $user['inta']&& $user['lovk'] >= $user['vinos']) { - $i_uminu = $lovk['uminu']; - $i_fkrit = $lovk['fkrit']; - $i_fauvorot = $lovk['fauvorot']; - $i_fakrit = $lovk['fakrit']; -} - - -if($user['sila'] >= $user['lovk'] && $user['sila'] >= $user['inta'] && $user['sila'] >= $user['vinos']) { - $i_uminu = $sila['uminu']; - $i_fkrit = $sila['fkrit']; - $i_fauvorot = $sila['fauvorot']; - $i_fakrit = $sila['fakrit']; -} - -if($i_fkrit > 0) { - echo "Мф. крит: +".$i_fkrit."
"; -} -if($i_fakrit > 0) { - echo "Мф. анти крит: +".$i_fakrit."
"; -} -if($i_fauvorot > 0) { - echo "Мф. анти уворот: +".$i_fauvorot."
"; -} -if($i_uminu > 0) { - echo "Урон: +".$i_uminu; -} - - -} -} -?> - -
-
- -
- - -
- -
- -
- - - - - - - - - - - - - - - - - -
- - - - - -
-
- - - - - - - - - - - - - -
- + if ($_GET['razdel'] == 1) { + $_SESSION['razdel'] = 1; + } + if ($_GET['razdel'] == 2) { + $_SESSION['razdel'] = 2; + } + if ($_GET['razdel'] == 3) { + $_SESSION['razdel'] = 3; + } + if ($_GET['razdel'] == 4) { + $_SESSION['razdel'] = 4; + } + if ($_GET['razdel'] == 5) { + $_SESSION['razdel'] = 5; + } + ?> +
- - - - - - - + -
">Амуниция">Заклинания">Ресурсы">Подарки">Квестовые вещи">Прочее + + + + + + + + + + +
">Амуниция">Заклинания">Ресурсы">Подарки">Квестовые вещи">Прочее
+
-
Рюкзак (масса : /) -
- - 12 AND `type` != 22 AND `type` != 23 AND `type` != 24) AND `setsale`=0 ORDER by `update` DESC"); - } - if ($_SESSION['razdel']==3) { - $data = mysql_query("SELECT * FROM `inventory` WHERE `owner` = '{$user['id']}' AND `dressed` = 0 AND (`type` >= 80 AND `type` <= 89) AND `setsale`=0 ORDER by `update` ASC; "); - } - if ($_SESSION['razdel']==4) { - $data = mysql_query("SELECT * FROM `inventory` WHERE `owner` = '{$user['id']}' AND `dressed` = 0 AND `type` = 200 and `setsale`=0 ORDER by `update` ASC; "); - } - if ($_SESSION['razdel']==5) { - $data = mysql_query("SELECT * FROM `inventory` WHERE `owner` = '{$user['id']}' AND `dressed` = 0 AND `type` = 199 and `setsale`=0 ORDER by `update` ASC; "); - } - $groupNum = array(); - $viewInventory = array(); - $getItems = array(); - while($row = mysql_fetch_assoc($data)) { - if($_SESSION['stackall']){ - $itemsCount = ($row['prototype'] ? mysql_num_rows(mysql_query("SELECT * FROM `inventory` WHERE `owner` = '{$user['id']}' AND `prototype` = '{$row['prototype']}' AND `dressed` = '0' AND `setsale`='0'")) : 1 ); + + + + + - -
Рюкзак (масса : /) +
+ + 12 AND `type` != 22 AND `type` != 23 AND `type` != 24) AND `setsale`=0 ORDER by `update` DESC"); + } + if ($_SESSION['razdel'] == 3) { + $data = mysql_query("SELECT * FROM `inventory` WHERE `owner` = '{$user['id']}' AND `dressed` = 0 AND (`type` >= 80 AND `type` <= 89) AND `setsale`=0 ORDER by `update` ASC; "); + } + if ($_SESSION['razdel'] == 4) { + $data = mysql_query("SELECT * FROM `inventory` WHERE `owner` = '{$user['id']}' AND `dressed` = 0 AND `type` = 200 and `setsale`=0 ORDER by `update` ASC; "); + } + if ($_SESSION['razdel'] == 5) { + $data = mysql_query("SELECT * FROM `inventory` WHERE `owner` = '{$user['id']}' AND `dressed` = 0 AND `type` = 199 and `setsale`=0 ORDER by `update` ASC; "); + } + $groupNum = array(); + $viewInventory = array(); + $getItems = array(); + while ($row = mysql_fetch_assoc($data)) { + if ($_SESSION['stackall']) { + $itemsCount = ($row['prototype'] ? mysql_num_rows(mysql_query("SELECT * FROM `inventory` WHERE `owner` = '{$user['id']}' AND `prototype` = '{$row['prototype']}' AND `dressed` = '0' AND `setsale`='0'")) : 1); - if(!isset($groupNum[$row['prototype']])) { - $viewInventory[($row['prototype'] ? $row['prototype'] : $row['id'])]['header'] = ''; - } - } else { - showitem($row, null, "edit=1&razdel=$_SESSION[razdel]"); - } - } - if($viewInventory and $getItems){ - foreach($viewInventory as $viewCategiryes){ - echo $viewCategiryes['header']; - foreach($viewCategiryes['ids'] as $viewItem){ - echo $getItems[$viewItem]; - } - echo $viewCategiryes['fooder']; - } - } - - if (mysql_num_rows($data) == 0) { - echo ""; - } - ?> -
'; - $viewInventory[($row['prototype'] ? $row['prototype'] : $row['id'])]['header'] .= ' ' . $row['name'] . ($row['upgrade'] > 0 ? " [".$row['upgrade']."]" : "" ) . ' [' . $itemsCount . ']'; - $viewInventory[($row['prototype'] ? $row['prototype'] : $row['id'])]['header'] .= '
'; - $viewInventory[($row['prototype'] ? $row['prototype'] : $row['id'])]['header'] .= '
Пусто
-
- - -
- ##### - - - ##### - - - - -
'; + $viewInventory[($row['prototype'] ? $row['prototype'] : $row['id'])]['header'] .= ' ' . $row['name'] . ($row['upgrade'] > 0 ? " [" . $row['upgrade'] . "]" : "") . ' [' . $itemsCount . ']'; + $viewInventory[($row['prototype'] ? $row['prototype'] : $row['id'])]['header'] .= '
'; + $viewInventory[($row['prototype'] ? $row['prototype'] : $row['id'])]['header'] .= '
Пусто
+
+ +
+ + + + + ##### + + + ##### + + + + + = 2001 && $user['room'] <= 2100) { header('Location: boloto.php'); die(); } - if ($user['room'] == 22) { header('Location: shop.php'); die(); } - if ($user['room'] == 23) { header('Location: repair.php'); die(); } - if ($user['room'] == 26) { header('Location: city.php'); die(); } - if ($user['room'] == 25) { header('Location: comission.php'); die(); } - if ($user['room'] == 29) { header('Location: bank.php'); die(); } - if ($user['room'] == 34) { header('Location: fshop.php'); die(); } - if ($user['room'] == 30) { header('Location: klanedit.php'); die(); } - if ($user['room'] == 27) { header('Location: post.php'); die(); } - if ($user['room'] == 31) { header('Location: tower.php'); die(); } - if ($user['room'] == 35) { header('Location: krshop.php'); die(); } - if ($user['room'] == 42) { header('Location: lotery.php'); die(); } - if ($user['room'] == 43) { header('Location: znahar.php'); die(); } - if ($user['room'] == 44) { header('Location: new_year.php'); die(); } - if ($user['room'] == 45) { header('Location: clan_castle.php'); die(); } - if ($user['room'] == 47) { header('Location: wall_build.php'); die(); } - if ($user['room'] == 48) { header('Location: city.php'); die(); } - if ($user['room'] == 49) { header('Location: dig.php'); die(); } - if ($user['room'] == 50) { header('Location: ashop.php'); die(); } - if ($user['room'] == 51) { header('Location: city.php'); die(); } - if ($user['room'] == 52) { header('Location: city.php'); die(); } - if ($user['room'] == 53) { header('Location: library.php'); die(); } - if ($user['room'] == 61) { header('Location: akadem.php'); die(); } - if ($user['room'] == 650) { header('Location: ul_clans.php'); die(); } - if ($user['room'] == 651) { header('Location: city.php'); die(); } - if ($user['room'] == 652) { header('Location: zamok.php'); die(); } - if ($user['room'] == 223) { header('Location: bench.php'); die(); } - if ($user['room'] == 222) { header('Location: bench_s.php'); die(); } - if ($user['room'] == 224) { header('Location: bench_m.php'); die(); } - //БС - if ($user['in_tower'] == 1) { header('Location: towerin.php'); die(); } - //ЦХ - if ($user['room'] == 600) { header('Location: c_haos.php'); die(); } - //Храм древнх - if ($user['room'] == 203) { header('Location: church.php'); die(); } - if ($user['room'] == 601) { header('Location: c_haos_in.php'); die(); } - if ($user['room'] == 602) { header('Location: c_park.php'); die(); } - if ($user['room'] == 603) { header('Location: aren_of_angels.php'); die(); } - - if ($user['room'] == 620) { header('Location: enter_cave.php'); die(); } - if ($user['room'] == 621) { header('Location: cave.php'); die(); } +//========================================================================================================== +//проверяем соответствие комнаты и скрипта +if ($user['room'] == 20) { + header('Location: city.php'); + die(); +} +if ($user['room'] == 21) { + header('Location: city.php'); + die(); +} +if ($user['room'] == 26) { + header('Location: city.php'); + die(); +} +if ($user['room'] == 48) { + header('Location: city.php'); + die(); +} +if ($user['room'] == 51) { + header('Location: city.php'); + die(); +} +if ($user['room'] == 52) { + header('Location: city.php'); + die(); +} +if ($user['room'] == 651) { + header('Location: city.php'); + die(); +} +if ($user['room'] == 2655) { + header('Location: city.php'); + die(); +} +if ($user['room'] == 2601) { + header('Location: city.php'); + die(); +} +if ($user['room'] == 2701) { + header('Location: city.php'); + die(); +} +if ($user['room'] == 2702) { + header('Location: city.php'); + die(); +} +if ($user['room'] == 2111) { + header('Location: city.php'); + die(); +} - - if ($user['room'] == 660) { header('Location: hostel.php'); die(); } - if ($user['room'] == 661) { header('Location: hostel_room.php'); die(); } - if ($user['room'] == 662) { header('Location: quest_room.php'); die(); } - if ($user['room'] == 760) { header('Location: c_forest.php'); die(); } - - if ($user['room'] == 1000) { header('Location: solib/enterbezdna.php'); die(); } - if ($user['room'] == 1001) { header('Location: solib/dungeon.php'); die(); } - if ($user['room'] == 1051) { header('Location: lab_enter.php'); die(); } - if ($user['room'] == 1052) { header('Location: labirint.php'); die(); } - if ($user['room'] == 402) { header('Location: vxod.php'); die(); } - if ($user['room'] == 403) { header('Location: canalizaciya.php'); die(); } - if ($user['room'] == 1053) { header('Location: rep_shop.php'); die(); } - if ($user['room'] == 1054) { header('Location: fontan_luck.php'); die(); } - if ($user['room'] == 1055) { header('Location: group_arena.php'); die(); } - if ($user['room'] == 666) { header('Location: jail.php'); die(); } +if ($user['room'] >= 2001 && $user['room'] <= 2100) { + header('Location: boloto.php'); + die(); +} +if ($user['room'] == 22) { + header('Location: shop.php'); + die(); +} +if ($user['room'] == 23) { + header('Location: repair.php'); + die(); +} +if ($user['room'] == 25) { + header('Location: comission.php'); + die(); +} +if ($user['room'] == 27) { + header('Location: post.php'); + die(); +} +if ($user['room'] == 29) { + header('Location: bank.php'); + die(); +} +if ($user['room'] == 31) { + header('Location: tower.php'); + die(); +} +if ($user['room'] == 30) { + header('Location: klanedit.php'); + die(); +} +if ($user['room'] == 34) { + header('Location: fshop.php'); + die(); +} +if ($user['room'] == 35) { + header('Location: krshop.php'); + die(); +} +if ($user['room'] == 42) { + header('Location: lotery.php'); + die(); +} +if ($user['room'] == 43) { + header('Location: znahar.php'); + die(); +} +if ($user['room'] == 44) { + header('Location: new_year.php'); + die(); +} +if ($user['room'] == 45) { + header('Location: clan_castle.php'); + die(); +} +if ($user['room'] == 47) { + header('Location: wall_build.php'); + die(); +} +if ($user['room'] == 49) { + header('Location: dig.php'); + die(); +} +if ($user['room'] == 50) { + header('Location: ashop.php'); + die(); +} +if ($user['room'] == 53) { + header('Location: library.php'); + die(); +} +if ($user['room'] == 61) { + header('Location: akadem.php'); + die(); +} +if ($user['room'] == 650) { + header('Location: ul_clans.php'); + die(); +} +if ($user['room'] == 652) { + header('Location: zamok.php'); + die(); +} +if ($user['room'] == 223) { + header('Location: bench.php'); + die(); +} +if ($user['room'] == 222) { + header('Location: bench_s.php'); + die(); +} +if ($user['room'] == 224) { + header('Location: bench_m.php'); + die(); +} +//БС +if ($user['in_tower'] == 1) { + header('Location: towerin.php'); + die(); +} +//Храм древнх +if ($user['room'] == 203) { + header('Location: church.php'); + die(); +} +//ЦХ +if ($user['room'] == 600) { + header('Location: c_haos.php'); + die(); +} +if ($user['room'] == 601) { + header('Location: c_haos_in.php'); + die(); +} +if ($user['room'] == 602) { + header('Location: c_park.php'); + die(); +} +if ($user['room'] == 603) { + header('Location: aren_of_angels.php'); + die(); +} +if ($user['room'] == 620) { + header('Location: enter_cave.php'); + die(); +} +if ($user['room'] == 621) { + header('Location: cave.php'); + die(); +} +if ($user['room'] == 660) { + header('Location: hostel.php'); + die(); +} +if ($user['room'] == 661) { + header('Location: hostel_room.php'); + die(); +} +if ($user['room'] == 662) { + header('Location: quest_room.php'); + die(); +} +if ($user['room'] == 760) { + header('Location: c_forest.php'); + die(); +} +if ($user['room'] == 1000) { + header('Location: solib/enterbezdna.php'); + die(); +} +if ($user['room'] == 1001) { + header('Location: solib/dungeon.php'); + die(); +} +if ($user['room'] == 1051) { + header('Location: lab_enter.php'); + die(); +} +if ($user['room'] == 1052) { + header('Location: labirint.php'); + die(); +} +if ($user['room'] == 402) { + header('Location: vxod.php'); + die(); +} +if ($user['room'] == 403) { + header('Location: canalizaciya.php'); + die(); +} +if ($user['room'] == 1053) { + header('Location: rep_shop.php'); + die(); +} +if ($user['room'] == 1054) { + header('Location: fontan_luck.php'); + die(); +} +if ($user['room'] == 1055) { + header('Location: group_arena.php'); + die(); +} +if ($user['room'] == 666) { + header('Location: jail.php'); + die(); +} ?> - + + - - - - - - - - - - - - - + + + < link + rel = "stylesheet" + href = "/i/btn.css" + type = "text/css" > + < meta + content = "text/html; charset=utf-8" + http - equiv = Content - type > + < META + Http - Equiv = Cache - Control + Content = "no-cache, max-age=0, must-revalidate, no-store" > + < meta + http - equiv = PRAGMA + content = NO - CACHE > + < META + Http - Equiv = Expires + Content = 0 > + < link + rel = "stylesheet" + type = "text/css" + href = "css/tooltip.css" / > + < script + src = "js/jquery-1.7.2.min.js" > + + + + function closehint3() { + document.all("hint3").style.visibility = "hidden"; + Hint3Name = ''; + } + + var delay = 30, TimerOn = -1, tkHP, maxHP, speed = 750, stLen = 185, redHP = 0.33, yellowHP = 0.66; + + function setHP(a, b, c) { + tkHP = a; + maxHP = b; + TimerOn >= 0 && (clearTimeout(TimerOn), TimerOn = -1); + speed = c; + setHPlocal() + } + + function setHPlocal() { + tkHP > maxHP && (tkHP = maxHP); + var a = Math.round(tkHP) + "/" + maxHP, a = stLen - (a.length + 2) * 7, + b = Math.round((a - 1) / maxHP * tkHP); + a -= b; + HP = document.getElementById("hp_value"); + HP1 = document.getElementById("HP1"); + HP2 = document.getElementById("HP2"); + if (HP) { + HP1.width = b, HP2.width = a, HP1.src = tkHP / maxHP < redHP ? "i/1red.gif" : tkHP / maxHP < yellowHP ? "i/1yellow.gif" : "i/1green.gif", HP.innerHTML = Math.round(tkHP) + "/" + maxHP; + } + tkHP += maxHP / 53 / 230 * (speed / 100); + TimerOn = tkHP < maxHP ? setTimeout("setHPlocal()", delay * 100) : -1 + } + - + get_meshok() && $_GET['goto']) { - echo "У вас переполнен рюкзак, вы не можете передвигаться..."; - $_GET['goto']=0; - } - $eff = mysql_fetch_array(mysql_query("SELECT * FROM `effects` WHERE `owner` = '".$u['id']."' AND (`type` = 14 OR `type` = 13);")); - if($eff && $_GET['goto']) { - echo "У вас тяжелая травма, вы не можете передвигаться..."; - $_GET['goto']=0; - } +$d = mysql_fetch_array(mysql_query("SELECT sum(`massa`) FROM `inventory` WHERE `owner` = '{$user['id']}' AND `dressed` = 0 AND `setsale` = 0 ; ")); +if ($d[0] > get_meshok() && $_GET['goto']) { + echo "У вас переполнен рюкзак, вы не можете передвигаться..."; + $_GET['goto'] = 0; +} +$eff = mysql_fetch_array(mysql_query("SELECT * FROM `effects` WHERE `owner` = '" . $u['id'] . "' AND (`type` = 14 OR `type` = 13);")); +if ($eff && $_GET['goto']) { + echo "У вас тяжелая травма, вы не можете передвигаться..."; + $_GET['goto'] = 0; +} - if(@$_GET['goto'] == 'plo') { - if($user['zayavka']== 0) { - mysql_query("UPDATE `users`,`online` SET `users`.`room` = '20',`online`.`room` = '20' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;"); - if($user['first'] == 4){ - mysql_query("update `users` set `kwest_main_pl`=`kwest_main_pl`+'1' where `id`='".$user['id']."'"); - } - die(" +if ($_GET['goto'] == 'plo') { + if ($user['zayavka'] == 0) { + mysql_query("UPDATE `users`,`online` SET `users`.`room` = '20',`online`.`room` = '20' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;"); + die("