Ещё немного чистки кода
This commit is contained in:
parent
ec5caa4517
commit
cbb968ba8b
@ -1,61 +0,0 @@
|
||||
<?
|
||||
die ('Makred for deletion.');
|
||||
# ini_set("display_errors", 1);
|
||||
# include "config.php";
|
||||
# include "functions.php";
|
||||
|
||||
|
||||
//-------Изменение существующих шмоток-------
|
||||
|
||||
# mysql_query("UPDATE inventory SET gnoj=2, gtopor=2, gdubina=2, gmech=2 where name='Кулон стихий'");
|
||||
# mysql_query("UPDATE shop SET gnoj=2, gtopor=2, gdubina=2, gmech=2 where name='Кулон стихий'");
|
||||
|
||||
#$r=mysql_query("SELECT id,sharped,cost FROM inventory WHERE name='Двойной Топор Света'");
|
||||
|
||||
#while ($row=mysql_fetch_row($r)) {
|
||||
# $newcost=0;
|
||||
# if ($row[2]!=100 && $row[1]==1) $rz=$row[2]-100;
|
||||
# $newcost=135+$rz;
|
||||
# mysql_query("UPDATE inventory SET gtopor=2, cost='".$newcost."' where name='Двойной Топор Света'");
|
||||
#}
|
||||
|
||||
# mysql_query("UPDATE shop SET gtopor=2, cost='135' where name='Двойной Топор Света'");
|
||||
|
||||
#$r=mysql_query("SELECT id,sharped,cost FROM inventory WHERE name='Молот Оправдания'");
|
||||
#while ($row=mysql_fetch_row($r)) {
|
||||
# $newcost=0;
|
||||
# if ($row[2]!=110 && $row[1]==1) $rz=$row[2]-110;
|
||||
# $newcost=120+$rz;
|
||||
# mysql_query("UPDATE inventory SET cost='".$newcost."' where name='Молот Оправдания'");
|
||||
#}
|
||||
# mysql_query("UPDATE inventory SET cost='120' where name='Молот Оправдания'");
|
||||
|
||||
# mysql_query("UPDATE inventory SET mfkrit=0, mfakrit=10 WHERE name='Демонический Топор'");
|
||||
# mysql_query("UPDATE shop SET mfkrit=0, mfakrit=10 WHERE name='Демонический Топор'");
|
||||
|
||||
//-------Введение новых вещей-------
|
||||
# mysql_query("INSERT INTO `shop` (`id`, `name`, `duration`, `maxdur`, `cost`, `nlevel`, `nsila`, `nlovk`, `ninta`, `nvinos`, `nintel`, `nmudra`, `nnoj`, `ntopor`, `ndubina`, `nmech`, `nalign`, `minu`, `maxu`, `gsila`, `glovk`, `ginta`, `gintel`, `ghp`, `mfkrit`, `mfakrit`, `mfuvorot`, `mfauvorot`, `gnoj`, `gtopor`, `gdubina`, `gmech`, `img`, `shshop`, `count`, `bron1`, `bron2`, `bron3`, `bron4`, `dategoden`, `magic`, `type`, `massa`, `goden`, `needident`, `nfire`, `nwater`, `nair`, `nearth`, `nlight`, `ngray`, `ndark`, `gfire`, `gwater`, `gair`, `gearth`, `glight`, `ggray`, `gdark`, `letter`, `isrep`, `razdel`, `gmp`, `gmeshok`) VALUES(NULL, 'Амулет Здоровья', 0, 50, 62, 4, 10, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 99, 0, 0, 0, 0, 0, 0, 0, 0, 'amulet10.gif', 0, 3000, 0, 0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 41, 0, 0);");
|
||||
|
||||
//-------Изменение магических заклинаний-------
|
||||
#mysql_query("UPDATE shop SET nintel=2 WHERE name='Восстановление энергии 30HP'");
|
||||
#mysql_query("UPDATE shop SET nintel=3 WHERE name='Восстановление энергии 45HP'");
|
||||
#mysql_query("UPDATE shop SET nintel=6 WHERE name='Восстановление энергии 60HP'");
|
||||
#mysql_query("UPDATE shop SET nintel=8 WHERE name='Клонирование'");
|
||||
#echo "cure[30-60].php, clone.php\n";
|
||||
|
||||
//-------Вывод из игры свитков-------
|
||||
#mysql_query("UPDATE `shop` SET `count` = '0' WHERE `name` ='Переманить клона'");
|
||||
|
||||
//-------Новые заклинания-----
|
||||
#mysql_query("INSERT INTO `magic` (`id` ,`name` ,`chanse` ,`time` ,`file` ,`targeted` ,`img`) VALUES ( NULL , 'Защита от Оружия', '70', '120', 'defence.php', '2', '');");
|
||||
#mysql_query("INSERT INTO `magic` ( `id` , `name` , `chanse` , `time` , `file` , `targeted` , `img` ) VALUES ( NULL , 'Сокрушение', 70, 120, 'devastate.php', 2, '') ");
|
||||
|
||||
#$def=mysql_fetch_row(mysql_query("SELECT id FROM magic WHERE name='Защита от Оружия' LIMIT 1"));
|
||||
#$dev=mysql_fetch_row(mysql_query("SELECT id FROM magic WHERE name='Сокрушение' LIMIT 1"));
|
||||
|
||||
#mysql_query("INSERT INTO `shop` (`id`, `name`, `duration`, `maxdur`, `cost`, `nlevel`, `nsila`, `nlovk`, `ninta`, `nvinos`, `nintel`, `nmudra`, `nnoj`, `ntopor`, `ndubina`, `nmech`, `nalign`, `minu`, `maxu`, `gsila`, `glovk`, `ginta`, `gintel`, `ghp`, `mfkrit`, `mfakrit`, `mfuvorot`, `mfauvorot`, `gnoj`, `gtopor`, `gdubina`, `gmech`, `img`, `shshop`, `count`, `bron1`, `bron2`, `bron3`, `bron4`, `dategoden`, `magic`, `type`, `massa`, `goden`, `needident`, `nfire`, `nwater`, `nair`, `nearth`, `nlight`, `ngray`, `ndark`, `gfire`, `gwater`, `gair`, `gearth`, `glight`, `ggray`, `gdark`, `letter`, `isrep`, `razdel`, `gmp`, `gmeshok`) VALUES(NULL, 'Защита от Оружия', 0, 5, 10, 7, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 1500, 0, 0, 0, 0, 0, ".(int)$def[0].", 12, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 5, 0, 0);");
|
||||
|
||||
#mysql_query("INSERT INTO `shop` (`id`, `name`, `duration`, `maxdur`, `cost`, `nlevel`, `nsila`, `nlovk`, `ninta`, `nvinos`, `nintel`, `nmudra`, `nnoj`, `ntopor`, `ndubina`, `nmech`, `nalign`, `minu`, `maxu`, `gsila`, `glovk`, `ginta`, `gintel`, `ghp`, `mfkrit`, `mfakrit`, `mfuvorot`, `mfauvorot`, `gnoj`, `gtopor`, `gdubina`, `gmech`, `img`, `shshop`, `count`, `bron1`, `bron2`, `bron3`, `bron4`, `dategoden`, `magic`, `type`, `massa`, `goden`, `needident`, `nfire`, `nwater`, `nair`, `nearth`, `nlight`, `ngray`, `ndark`, `gfire`, `gwater`, `gair`, `gearth`, `glight`, `ggray`, `gdark`, `letter`, `isrep`, `razdel`, `gmp`, `gmeshok`) VALUES(NULL, 'Сокрушение', 0, 5, 10, 7, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 1500, 0, 0, 0, 0, 0, ".(int)$dev[0].", 12, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 5, 0, 0);");
|
||||
|
||||
#mysql_close($mysql);
|
||||
?>
|
@ -20,8 +20,6 @@ function sys_msgs($text) {
|
||||
fclose($fp);
|
||||
}
|
||||
|
||||
|
||||
|
||||
if($_GET['id'] == 1) {
|
||||
//sys_msgs('<font color=red><b>Силы Хаоса</b></font> вызывают бойцов клуба <b>7 уровней</b> на поединок! Начало боя через <b>3</b> минуты, в разделе <b>хаотических</b> поединков.</font>');
|
||||
} elseif($_GET['id'] == 2) {
|
||||
|
256
city.php
256
city.php
@ -1,6 +1,8 @@
|
||||
<?php
|
||||
session_start();
|
||||
if($_SESSION['uid'] == null) { header("Location: index.php"); }
|
||||
if ($_SESSION['uid'] == null) {
|
||||
header("Location: index.php");
|
||||
}
|
||||
include("config.php");
|
||||
$user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '{$_SESSION['uid']}' LIMIT 1"));
|
||||
$klan = mysql_fetch_array(mysql_query("SELECT * FROM `clans` WHERE `id` = '{$user['klan']}' LIMIT 1"));
|
||||
@ -8,15 +10,29 @@ $digger = mysql_fetch_array(mysql_query("SELECT * FROM `digger` WHERE `id` = '{$
|
||||
include("functions.php");
|
||||
$tm = time();
|
||||
|
||||
if($user['battle'] != 0) { header('location: fbattle.php'); die(); }
|
||||
if($user['in_tower'] == 1) { header('Location: towerin.php'); die(); }
|
||||
if($user['zayavka'] != 0) { die(); }
|
||||
if ($user['battle'] != 0) {
|
||||
header('location: fbattle.php');
|
||||
die();
|
||||
}
|
||||
if ($user['in_tower'] == 1) {
|
||||
header('Location: towerin.php');
|
||||
die();
|
||||
}
|
||||
if ($user['zayavka'] != 0) {
|
||||
die();
|
||||
}
|
||||
|
||||
$ch_raw = mysql_fetch_array(mysql_query("SELECT `id`, `status` FROM `cit_haos_status` WHERE `id` = '{$user['id']}' LIMIT 1"));
|
||||
if($ch_raw["status"] > 0 && $ch_raw["status"] < 5) { header('location: c_haos_in.php'); die(); }
|
||||
//$ch_raw = mysql_fetch_array(mysql_query("SELECT `id`, `status` FROM `cit_haos_status` WHERE `id` = '{$user['id']}' LIMIT 1"));
|
||||
//if ($ch_raw["status"] > 0 && $ch_raw["status"] < 5) {
|
||||
// header('location: c_haos_in.php');
|
||||
// die();
|
||||
//}
|
||||
|
||||
$dig_raw = mysql_fetch_array(mysql_query("SELECT `id`, `finish_dig`, `finish_guard` FROM `digger` WHERE `id` = '{$user['id']}' LIMIT 1"));
|
||||
if($dig_raw["finish_dig"] > $tm || $dig_raw["finish_guard"] > $tm) { header('location: wall_build.php'); die(); }
|
||||
if ($dig_raw["finish_dig"] > $tm || $dig_raw["finish_guard"] > $tm) {
|
||||
header('location: wall_build.php');
|
||||
die();
|
||||
}
|
||||
|
||||
header("Cache-Control: no-cache");
|
||||
|
||||
@ -130,7 +146,6 @@ if($d['mass'] > get_meshok() && $_GET['cp']) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ($_GET['bps']) {
|
||||
mysql_query("UPDATE `users`,`online` SET `users`.`room` = '26',`online`.`room` = '26' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;");
|
||||
?>
|
||||
@ -175,7 +190,6 @@ if($d['mass'] > get_meshok() && $_GET['cp']) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ($_GET['zamk']) {
|
||||
mysql_query("UPDATE `users`,`online` SET `users`.`room` = '2601',`online`.`room` = '2601' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;");
|
||||
?>
|
||||
@ -219,7 +233,6 @@ if($d['mass'] > get_meshok() && $_GET['cp']) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ($_GET['zaliv']) {
|
||||
mysql_query("UPDATE `users`,`online` SET `users`.`room` = '2111',`online`.`room` = '2111' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;");
|
||||
?>
|
||||
@ -265,13 +278,20 @@ if($d['mass'] > get_meshok() && $_GET['cp']) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ($_GET['ps']) {
|
||||
mysql_query("UPDATE `users`,`online` SET `users`.`room` = '51',`online`.`room` = '51' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;");
|
||||
|
||||
|
||||
?>
|
||||
<HTML><HEAD><link rel=stylesheet type="text/css" href="css/main.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></HEAD><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor=#d4d4d4>
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<link rel=stylesheet type="text/css" href="css/main.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>
|
||||
</HEAD>
|
||||
<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor=#d4d4d4>
|
||||
<?php
|
||||
die("
|
||||
<script>
|
||||
@ -303,14 +323,20 @@ if($d['mass'] > get_meshok() && $_GET['cp']) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ($_GET['torg']) {
|
||||
mysql_query("UPDATE `users`,`online` SET `users`.`room` = '2702',`online`.`room` = '2702' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;");
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<HTML><HEAD><link rel=stylesheet type="text/css" href="css/main.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></HEAD><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor=#d4d4d4>
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<link rel=stylesheet type="text/css" href="css/main.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>
|
||||
</HEAD>
|
||||
<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor=#d4d4d4>
|
||||
<?php
|
||||
die("
|
||||
<script>
|
||||
@ -342,14 +368,20 @@ if($d['mass'] > get_meshok() && $_GET['cp']) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ($_GET['abog']) {
|
||||
mysql_query("UPDATE `users`,`online` SET `users`.`room` = '2655',`online`.`room` = '2655' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;");
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<HTML><HEAD><link rel=stylesheet type="text/css" href="css/main.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></HEAD><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor=#d4d4d4>
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<link rel=stylesheet type="text/css" href="css/main.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>
|
||||
</HEAD>
|
||||
<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor=#d4d4d4>
|
||||
<?php
|
||||
die("
|
||||
<script>
|
||||
@ -393,7 +425,7 @@ if($d['mass'] > get_meshok() && $_GET['cp']) {
|
||||
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']."'");
|
||||
mysql_query("UPDATE `users` SET `kwest_shop_see`=`kwest_shop_see`+'1' WHERE `id`='" . $user['id'] . "'");
|
||||
}
|
||||
header('location: shop.php');
|
||||
}
|
||||
@ -409,44 +441,26 @@ if($d['mass'] > get_meshok() && $_GET['cp']) {
|
||||
|
||||
|
||||
if ($_GET['got'] && $_GET['level13']) {
|
||||
// if($user['login'] == 'SaulDin'|| $user['login'] == 'Дед Мазай'|| $user['login'] == 'The Kite Runner'){
|
||||
// mysql_query("UPDATE `users`,`online` SET `users`.`room` = '662',`online`.`room` = '662' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;");
|
||||
header('location: quest_room.php');
|
||||
/*
|
||||
if($user['hp'] >= $user['maxhp']){
|
||||
print "<script>alert('У вас полное здоровье!')</script>";
|
||||
}else {
|
||||
mysql_query("UPDATE `users` SET `hp` = `maxhp` WHERE `id` = '".$user['id']."' LIMIT 1");
|
||||
print "<script>alert('Здоровье восстановлено!')</script>";
|
||||
header('location: city.php');
|
||||
}*/
|
||||
//}//else{
|
||||
// print "<script>alert('На реконструкции!')</script>";
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ($_GET['got'] && $_GET['level9']) {
|
||||
if ($user['align'] == 4) {
|
||||
print "<script>alert('Хаосникам вход к памятнику запрещен!')</script>";
|
||||
}
|
||||
elseif ($user['level'] < 2) {
|
||||
} elseif ($user['level'] < 2) {
|
||||
print "<script>alert('Вход к памятнику со 2 уровня!')</script>";
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
mysql_query("UPDATE `users`,`online` SET `users`.`room` = '24',`online`.`room` = '24' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;");
|
||||
header('location: elka.php');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ($_GET['got'] && $_GET['level6'])
|
||||
{
|
||||
if ($user['level'] < 1) { print "<script>alert('Вход на почту только с первого уровня!')</script>"; }
|
||||
else
|
||||
{
|
||||
if ($_GET['got'] && $_GET['level6']) {
|
||||
if ($user['level'] < 1) {
|
||||
print "<script>alert('Вход на почту только с первого уровня!')</script>";
|
||||
} else {
|
||||
mysql_query("UPDATE `users`,`online` SET `users`.`room` = '27',`online`.`room` = '27' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;");
|
||||
header('location: post.php');
|
||||
}
|
||||
@ -455,17 +469,14 @@ if($d['mass'] > get_meshok() && $_GET['cp']) {
|
||||
if ($_GET['got'] && $_GET['level3']) {
|
||||
if ($user['align'] == 4) {
|
||||
print "<script>alert('Хаосникам вход в комиссионный магазин запрещен!')</script>";
|
||||
}
|
||||
elseif ($user['level'] < 1) {
|
||||
} elseif ($user['level'] < 1) {
|
||||
print "<script>alert('Вход в комиссионный магазин только с первого уровня!')</script>";
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
mysql_query("UPDATE `users`,`online` SET `users`.`room` = '25',`online`.`room` = '25' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;");
|
||||
header('location: comission.php');
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif($user['room']==21) {
|
||||
} elseif ($user['room'] == 21) {
|
||||
// Strashilka
|
||||
// strelka cp
|
||||
if ($_GET['got'] && $_GET['level4']) {
|
||||
@ -478,9 +489,7 @@ if($d['mass'] > get_meshok() && $_GET['cp']) {
|
||||
if ($_GET['got'] && $_GET['level13']) {
|
||||
if ($user['align'] == 4) {
|
||||
print "<script>alert('Хаосникам вход к памятнику запрещен!')</script>";
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
mysql_query("UPDATE `users`,`online` SET `users`.`room` = '34',`online`.`room` = '34' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;");
|
||||
header('location: fshop.php');
|
||||
}
|
||||
@ -490,11 +499,10 @@ if($d['mass'] > get_meshok() && $_GET['cp']) {
|
||||
if ($_GET['got'] && $_GET['level5']) {
|
||||
if ($user['align'] == 4) {
|
||||
print "<script>alert('Хаосникам вход в банк запрещен!')</script>";
|
||||
}
|
||||
else {
|
||||
} 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']."'");
|
||||
mysql_query("UPDATE `users` SET `kwest_bank_see`=`kwest_bank_see`+'1' WHERE `id`='" . $user['id'] . "'");
|
||||
}
|
||||
header('location: bank.php');
|
||||
}
|
||||
@ -504,8 +512,7 @@ if($d['mass'] > get_meshok() && $_GET['cp']) {
|
||||
$effs = mysql_fetch_array(mysql_query("SELECT `id` FROM `effects` WHERE `owner` = '{$user['id']}' AND `type` = '21' LIMIT 1"));
|
||||
if (isset($effs['id']))
|
||||
print "<script>alert('Вход в БС под действием Силы Нейтралитета запрещен!')</script>";
|
||||
else
|
||||
{
|
||||
else {
|
||||
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');
|
||||
}
|
||||
@ -515,7 +522,6 @@ if($d['mass'] > get_meshok() && $_GET['cp']) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ($_GET['got'] && $_GET['level14']) {
|
||||
mysql_query("UPDATE `users`,`online` SET `users`.`room` = '30',`online`.`room` = '30' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;");
|
||||
header('location: klanedit.php');
|
||||
@ -527,9 +533,7 @@ print "<script>alert('Нет прохода!')</script>";
|
||||
// mysql_query("UPDATE `users`,`online` SET `users`.`room` = '650',`online`.`room` = '650' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;");
|
||||
// header('location: ul_clans.php');
|
||||
}
|
||||
}
|
||||
|
||||
elseif($user['room']==2111) {
|
||||
} elseif ($user['room'] == 2111) {
|
||||
// залив
|
||||
// strelka cp
|
||||
if ($_GET['got'] && $_GET['level1']) {
|
||||
@ -568,8 +572,7 @@ if ($_GET['got'] && $_GET['level5']) {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
elseif($user['room']==2601) {
|
||||
} elseif ($user['room'] == 2601) {
|
||||
// zamkovaya
|
||||
// strelka bps
|
||||
if ($_GET['level4']) {
|
||||
@ -627,9 +630,7 @@ if ($_GET['got'] && $_GET['level5']) {
|
||||
// print "<script>alert('Пещера на реконструкции!')</script>";
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
elseif($user['room']==2701) {
|
||||
} elseif ($user['room'] == 2701) {
|
||||
if ($_GET['level1']) {
|
||||
header('location: city.php?zaliv=1');
|
||||
}
|
||||
@ -641,9 +642,7 @@ elseif($user['room']==2701) {
|
||||
// print "<script>alert('Пещера на реконструкции!')</script>";
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
//Торговая улица
|
||||
} //Торговая улица
|
||||
elseif ($user['room'] == 2702) {
|
||||
if ($_GET['got'] && $_GET['level10']) {
|
||||
header('location: city.php?cp=1');
|
||||
@ -664,8 +663,7 @@ elseif($user['room']==2702) {
|
||||
// print "<script>alert('Пещера на реконструкции!')</script>";
|
||||
// }
|
||||
}
|
||||
}
|
||||
//Арена Богов
|
||||
} //Арена Богов
|
||||
elseif ($user['room'] == 2655) {
|
||||
if ($_GET['got'] && $_GET['level10']) {
|
||||
header('location: city.php?zamk=1');
|
||||
@ -675,9 +673,7 @@ elseif($user['room']==2655) {
|
||||
header('location: aren_of_angels.php');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
elseif($user['room']==26) {
|
||||
} elseif ($user['room'] == 26) {
|
||||
// Strashilka
|
||||
// strelka cp
|
||||
if ($_GET['level4']) {
|
||||
@ -685,7 +681,7 @@ elseif($user['room']==2655) {
|
||||
}
|
||||
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']."'");
|
||||
mysql_query("UPDATE `users` SET `kwest_see_znahar`=`kwest_see_znahar`+'1' WHERE `id`='" . $user['id'] . "'");
|
||||
}
|
||||
// print "<script>alert('Нанюхался трав. Пересматривает формулы')</script>";
|
||||
mysql_query("UPDATE `users`,`online` SET `users`.`room` = '43',`online`.`room` = '43' WHERE `online`.`id` = `users`.`id` AND `online`.`id` = '{$_SESSION['uid']}' ;");
|
||||
@ -758,28 +754,30 @@ $online = mysql_query("SELECT * FROM `online` WHERE `real_time` >= ".(time()-60
|
||||
<META Http-Equiv=Expires Content=0>
|
||||
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
|
||||
<style>
|
||||
IMG.aFilter { filter:Glow(Color=d7d7d7,Strength=9,Enabled=0); cursor:pointer }
|
||||
IMG.aFilter {
|
||||
filter: Glow(Color=d7d7d7, Strength=9, Enabled=0);
|
||||
cursor: pointer
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
function solo(n)
|
||||
{
|
||||
function solo(n) {
|
||||
top.changeroom = n;
|
||||
window.location.href = 'city.php?got=1&level' + n + '=1';
|
||||
}
|
||||
|
||||
function imover(im)
|
||||
{
|
||||
function imover(im) {
|
||||
im.filters.Glow.Enabled = true;
|
||||
// im.style.visibility="hidden";
|
||||
}
|
||||
|
||||
function imout(im)
|
||||
{
|
||||
function imout(im) {
|
||||
im.filters.Glow.Enabled = false;
|
||||
// im.style.visibility="visible";
|
||||
}
|
||||
|
||||
function Down() {top.CtrlPress = window.event.ctrlKey}
|
||||
function Down() {
|
||||
top.CtrlPress = window.event.ctrlKey
|
||||
}
|
||||
|
||||
document.onmousedown = Down;
|
||||
</script>
|
||||
@ -788,10 +786,16 @@ $online = mysql_query("SELECT * FROM `online` WHERE `real_time` >= ".(time()-60
|
||||
<TABLE width=100% height=100% border=0 cellspacing="0" cellpadding="0">
|
||||
<TR>
|
||||
<TD align=center></TD>
|
||||
<TD align=right>Сейчас в игре : <?=mysql_num_rows($online)?> чел. <input type="button" value="Подсказка" style="background-color: #A9AFC0; margin-top: 0px; margin-left: 23px; margin-right: 20px;" onclick="window.open('help/city1.html', 'help', 'height=300,width=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')" /></TD></TR>
|
||||
<TR><TD align=center colspan=2><?
|
||||
<TD align=right>Сейчас в игре : <?= mysql_num_rows($online) ?> чел. <input type="button" value="Подсказка"
|
||||
style="background-color: #A9AFC0; margin-top: 0px; margin-left: 23px; margin-right: 20px;"
|
||||
onclick="window.open('help/city1.html', 'help', 'height=300,width=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')"/>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD align=center colspan=2><?
|
||||
|
||||
function buildset($id,$img,$top,$left,$des) {
|
||||
function buildset($id, $img, $top, $left, $des)
|
||||
{
|
||||
//$imga = ImageCreateFromGif("i/city/sub/".$img.".png");
|
||||
#Get image width / height
|
||||
//$x = ImageSX($imga);
|
||||
@ -800,7 +804,9 @@ $online = mysql_query("SELECT * FROM `online` WHERE `real_time` >= ".(time()-60
|
||||
echo "<div style=\"position:absolute; left:{$left}px; top:{$top}px; z-index:90;\"><img src=\"i/city/sub/{$img}.png\" alt=\"{$des}\" title=\"{$des}\" class=\"aFilter2\" onmouseover=\"this.src='i/city/sub/{$img}2.png'\" onmouseout=\"this.src='i/city/sub/{$img}.png'\"
|
||||
id=\"{$id}\" onclick=\"solo({$id})\" /></div>";
|
||||
}
|
||||
function buildset1($id,$img,$top,$left,$des) {
|
||||
|
||||
function buildset1($id, $img, $top, $left, $des)
|
||||
{
|
||||
//$imga = ImageCreateFromGif("i/city/sub/".$img.".png");
|
||||
#Get image width / height
|
||||
//$x = ImageSX($imga);
|
||||
@ -809,6 +815,7 @@ $online = mysql_query("SELECT * FROM `online` WHERE `real_time` >= ".(time()-60
|
||||
echo "<div style=\"position:absolute; left:{$left}px; top:{$top}px; z-index:90;\"><img src=\"i/city/sub/{$img}.gif\" alt=\"{$des}\" title=\"{$des}\" class=\"aFilter2\" onmouseover=\"this.src='i/city/sub/{$img}2.gif'\" onmouseout=\"this.src='i/city/sub/{$img}.gif'\"
|
||||
id=\"{$id}\" onclick=\"solo({$id})\" /></div>";
|
||||
}
|
||||
|
||||
if ($user['room'] == 20) {
|
||||
if ((int)date("H") > 5 && (int)date("H") < 22) {
|
||||
//$fon = 'vesna_cap_cp_day';
|
||||
@ -850,10 +857,8 @@ $online = mysql_query("SELECT * FROM `online` WHERE `real_time` >= ".(time()-60
|
||||
|
||||
|
||||
echo "</div></td></tr></table>";
|
||||
}
|
||||
//buildset(9,"fir",137,235,"Новогодняя елка");
|
||||
elseif ($user['room'] == 21)
|
||||
{
|
||||
} //buildset(9,"fir",137,235,"Новогодняя елка");
|
||||
elseif ($user['room'] == 21) {
|
||||
if ((int)date("H") > 5 && (int)date("H") < 22) {
|
||||
//$fon = 'vesna_cap_strash_day';
|
||||
$fon = 'zima_cap_strash_day';
|
||||
@ -882,9 +887,7 @@ $online = mysql_query("SELECT * FROM `online` WHERE `real_time` >= ".(time()-60
|
||||
buildset(4, "zima_cap_arr_left", 258, 21, "Центральная площадь");
|
||||
//buildset(22,"obshga",150,630,"Общежитие");
|
||||
echo "</div></td></tr></table>";
|
||||
}
|
||||
elseif ($user['room'] == 26)
|
||||
{
|
||||
} elseif ($user['room'] == 26) {
|
||||
if ((int)date("H") > 5 && (int)date("H") < 22) {
|
||||
//$fon = 'vesna_cap_park_day';
|
||||
$fon = 'zima_cap_park_day';
|
||||
@ -915,11 +918,7 @@ $online = mysql_query("SELECT * FROM `online` WHERE `real_time` >= ".(time()-60
|
||||
//buildset(4,"arr_right_png",259,715,"Центральная площадь");
|
||||
buildset(4, "zima_cap_arr_right", 259, 715, "Центральная площадь");
|
||||
echo "</div></td></tr></table>";
|
||||
}
|
||||
|
||||
|
||||
elseif ($user['room'] == 2601)
|
||||
{
|
||||
} elseif ($user['room'] == 2601) {
|
||||
if ((int)date("H") > 5 && (int)date("H") < 22) {
|
||||
//$fon = 'vesna_cap_park_day';
|
||||
$fon = 'zima_cap_zamk_day';
|
||||
@ -945,10 +944,7 @@ $online = mysql_query("SELECT * FROM `online` WHERE `real_time` >= ".(time()-60
|
||||
//buildset(4,"arr_right_png",260,710,"Большая парковая улица");
|
||||
buildset(4, "arr_right_png", 260, 710, "Большая парковая улица");
|
||||
echo "</div></td></tr></table>";
|
||||
}
|
||||
|
||||
elseif ($user['room'] == 2655)
|
||||
{
|
||||
} elseif ($user['room'] == 2655) {
|
||||
if ((int)date("H") > 5 && (int)date("H") < 22) {
|
||||
//$fon = 'vesna_cap_park_day';
|
||||
$fon = 'ar_e_n';
|
||||
@ -965,10 +961,7 @@ $online = mysql_query("SELECT * FROM `online` WHERE `real_time` >= ".(time()-60
|
||||
buildset(2222, "zima_cap_stop", 258, 21, "Проход закрыт");
|
||||
buildset(10, "arr_right_png", 260, 710, "Замковая площадь");
|
||||
echo "</div></td></tr></table>";
|
||||
}
|
||||
|
||||
elseif ($user['room'] == 2111)
|
||||
{
|
||||
} elseif ($user['room'] == 2111) {
|
||||
if ((int)date("H") > 5 && (int)date("H") < 22) {
|
||||
//$fon = 'vesna_cap_bg_d2';
|
||||
$fon = 'zima_rist_bg_day2';
|
||||
@ -1014,37 +1007,31 @@ $online = mysql_query("SELECT * FROM `online` WHERE `real_time` >= ".(time()-60
|
||||
if ($kr1 >= 20) {
|
||||
addchp('<span style="color:red"><b>Внимание!</b></span> <span style="color:red"> В принесенной бочке Вы нашли ' . $kr1 . ' кр. </span> ', '{[]}' . nick7($user['id']) . '{[]}');
|
||||
mysql_query("UPDATE `users` SET `bochka`='" . $laikas . "', `money`=`money`+$kr1 WHERE `id` = '{$user['id']}'; ");
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
addchp('<spanstyle="color:red"><b>Внимание!</b></span> <span style="color:red"> В принесенной бочке Вы нашли ' . $kr1 . ' кр. </span> ', '{[]}' . nick7($user['id']) . '{[]}');
|
||||
mysql_query("UPDATE `users` SET `bochka`='" . $laikas . "', `money`=`money`+$kr1 WHERE `id` = '{$user['id']}'; ");
|
||||
}
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
addchp('<span style="color:red"><b>Внимание!</b></span> <span style="color:red"> В принесенной бочке Вы нашли ' . $kr . ' кр. </span> ', '{[]}' . nick7($user['id']) . '{[]}');
|
||||
mysql_query("UPDATE `users` SET `bochka`='" . $laikas . "', `money`=`money`+$kr WHERE `id` = '{$user['id']}'; ");
|
||||
}
|
||||
}
|
||||
elseif ($bon==2){
|
||||
} elseif ($bon == 2) {
|
||||
$doblest = mt_rand(1, 75);
|
||||
if ($doblest >= 40) {
|
||||
$doblest1 = mt_rand(41, 75);
|
||||
if ($doblest1 >= 60) {
|
||||
addchp('<span style="color:red"><b>Внимание!</b></span> <span style="color:red"> В принесеной бочке Вы нашли ' . $doblest1 . ' оч.репутации. </span> ', '{[]}' . nick7($user['id']) . '{[]}');
|
||||
mysql_query("UPDATE `users` SET `bochka`='" . $laikas . "', `doblest`=`doblest`+$doblest, `reputation`=`reputation`+'$doblest' WHERE `id` = '{$user['id']}'; ");
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
addchp('<span style="color:red"><b>Внимание!</b></span> <span style="color:red"> В принесеной бочке Вы нашли ' . $doblest1 . ' оч.репутации. </span> ', '{[]}' . nick7($user['id']) . '{[]}');
|
||||
mysql_query("UPDATE `users` SET `bochka`='" . $laikas . "', `doblest`=`doblest`+$doblest, `reputation`=`reputation`+$doblest WHERE `id` = '{$user['id']}'; ");
|
||||
|
||||
}
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
addchp('<span style="color:red"><b>Внимание!</b></span> <span style="color:red"> В принесеной бочке Вы нашли ' . $doblest . ' оч.репутации. </span> ', '{[]}' . nick7($user['id']) . '{[]}');
|
||||
mysql_query("UPDATE `users` SET `bochka`='" . $laikas . "', `doblest`=`doblest`+$doblest, `reputation`=`reputation`+$doblest WHERE `id` = '{$user['id']}'; ");
|
||||
}
|
||||
}
|
||||
elseif ($bon==3){
|
||||
} elseif ($bon == 3) {
|
||||
$rom = mt_rand(1, 75);
|
||||
if ($rom >= 40) {
|
||||
$rom1 = mt_rand(41, 75);
|
||||
@ -1052,29 +1039,22 @@ $online = mysql_query("SELECT * FROM `online` WHERE `real_time` >= ".(time()-60
|
||||
addchp('<span style="color:red"><b>Внимание!</b></span> <span style="color:red"> В принесеной бочке Вы нашли странный сосуд... </span> ', '{[]}' . nick7($user['id']) . '{[]}');
|
||||
mysql_query("INSERT INTO `inventory` (`prototype`,`owner`,`name`,`type`,`massa`,`cost`,`img`,`maxdur`,`magic`,`otdel`, `isrep`)
|
||||
VALUES ('5900400','{$_SESSION['uid']}','Бутыль старого пирата','51','1','5','rom.gif',1,'555','188','0') ;");
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
addchp('<span style="color:red"><b>Внимание!</b></span> <span style="color:red"> Ничего, кроме не нужных водорослей, Вы не нашли... ', '{[]}' . nick7($user['id']) . '{[]}');
|
||||
}
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
addchp('<span style="color:red"><b>Внимание!</b></span> <span style="color:red"> Ничего, кроме не нужных водорослей, Вы не нашли... ', '{[]}' . nick7($user['id']) . '{[]}');
|
||||
}
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
addchp('<span style="color:red"><b>Внимание!</b></span> <span style="color:red"> Ничего, кроме не нужных водорослей, Вы не нашли... ', '{[]}' . nick7($user['id']) . '{[]}');
|
||||
}
|
||||
}
|
||||
elseif ($laikas<=time()-60*60*4){
|
||||
} elseif ($laikas <= time() - 60 * 60 * 4) {
|
||||
buildset(3, "bochka", 270, 630, "Бочка");
|
||||
}
|
||||
|
||||
//buildset(21,"angelscastle",131,628,"Замок Мэра Города");
|
||||
echo "</div></td></tr></table>";
|
||||
}
|
||||
|
||||
elseif ($user['room'] == 2701)
|
||||
{
|
||||
} elseif ($user['room'] == 2701) {
|
||||
if ((int)date("H") > 5 && (int)date("H") < 22) {
|
||||
$fon = 'av_arena_bg1_day2';
|
||||
} else {
|
||||
@ -1086,10 +1066,8 @@ $online = mysql_query("SELECT * FROM `online` WHERE `real_time` >= ".(time()-60
|
||||
buildset(2, "shar_dark", 234, 356, "Лабиринт Хаоса");
|
||||
buildset(3, "stop_png", 260, 720, "Проход закрыт");
|
||||
echo "</div></td></tr></table>";
|
||||
}
|
||||
//Торговая улица
|
||||
elseif ($user['room'] == 2702)
|
||||
{
|
||||
} //Торговая улица
|
||||
elseif ($user['room'] == 2702) {
|
||||
if ((int)date("H") > 5 && (int)date("H") < 22) {
|
||||
//$fon = 'vesna_cap_torg_day';
|
||||
$fon = 'zima_cap_torg_day';
|
||||
@ -1131,6 +1109,7 @@ echo "<span class=cit_note>".$ms_cit[rand(0, 2)]."</span>";
|
||||
<SCRIPT src='js/commoninf.js'></SCRIPT>
|
||||
<SCRIPT>
|
||||
var Hint3Name = '';
|
||||
|
||||
// Заголовок, название скрипта, имя поля с логином
|
||||
function findlogin(title, script, name) {
|
||||
document.all("hint3").innerHTML = '<table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B>' + title + '</td><td width=20 align=right valign=top style="cursor: hand" onclick="closehint3();"><BIG><B>x</td></tr><tr><td colspan=2>' +
|
||||
@ -1150,10 +1129,13 @@ function closehint3(){
|
||||
</SCRIPT>
|
||||
|
||||
<div align="right" id="hint3"></div>
|
||||
<INPUT TYPE="button" value="Напасть" onclick="findlogin('Введите имя персонажа', 'city.php?nap=attack', 'target'); ">
|
||||
<INPUT TYPE="button" value="Напасть"
|
||||
onclick="findlogin('Введите имя персонажа', 'city.php?nap=attack', 'target'); ">
|
||||
<?
|
||||
//сам скрипт нападения
|
||||
if($_GET['nap']=="attack" && $user['room']==20){include "magic/cityattack.php";}
|
||||
if ($_GET['nap'] == "attack" && $user['room'] == 20) {
|
||||
include "magic/cityattack.php";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user