7.4 to the go
This commit is contained in:
parent
6cd7b13db0
commit
924be6329b
81
AI.php
81
AI.php
@ -12,8 +12,8 @@ if(isset($_GET['m1'])) {
|
||||
|
||||
setlocale(LC_CTYPE, "ru_RU.CP1251");
|
||||
|
||||
include('_incl_data/__config.php');
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
include_once '_incl_data/__config.php';
|
||||
include_once '_incl_data/class/__db_connect.php';
|
||||
|
||||
$sp = mysql_query('SELECT * FROM `users_recombats` WHERE `email` != "" ORDER BY `name` DESC LIMIT 7000');
|
||||
while ($pl = mysql_fetch_array($sp)) {
|
||||
@ -26,13 +26,15 @@ if(isset($_GET['m1'])) {
|
||||
|
||||
include('_incl_data/__config.php');
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
include('_incl_data/class/__user.php');
|
||||
$u = User::start();
|
||||
|
||||
$ins = 'Âåùè ÁÊ-1:<hr>';
|
||||
$sp = mysql_query('SELECT * FROM `items_main` WHERE `geni` = 1');
|
||||
while ($pl = mysql_fetch_array($sp)) {
|
||||
|
||||
$po = mysql_fetch_array(mysql_query('SELECT * FROM `items_main_data` WHERE `items_id` = "'.$pl['id'].'" LIMIT 1'));
|
||||
$po = mysql_fetch_array(
|
||||
mysql_query('SELECT * FROM `items_main_data` WHERE `items_id` = "' . $pl['id'] . '" LIMIT 1')
|
||||
);
|
||||
$po = $u->lookStats($po['data']);
|
||||
|
||||
if (!isset($po['add_minAtack']) && isset($po['sv_minAtack'])) {
|
||||
@ -117,14 +119,9 @@ if( isset($_GET['test'])) {
|
||||
$i = 3;
|
||||
|
||||
|
||||
function yrn($sila) {
|
||||
$r = 0;
|
||||
|
||||
$level = $_GET['test'];
|
||||
|
||||
$r = 2 + $level + $sila - round($sila / 5);
|
||||
|
||||
return $r;
|
||||
function yrn($sila)
|
||||
{
|
||||
return 2 + $_GET['test'] + $sila - round($sila / 5);
|
||||
}
|
||||
|
||||
|
||||
@ -136,7 +133,7 @@ if( isset($_GET['test'])) {
|
||||
echo ' style="background-color:grey;color:#fff;"';
|
||||
}
|
||||
echo '> ';
|
||||
echo $i.' = '.yrn($i).'';
|
||||
echo $i . ' = ' . yrn($i);
|
||||
echo '</div>';
|
||||
$i++;
|
||||
}
|
||||
@ -144,52 +141,42 @@ if( isset($_GET['test'])) {
|
||||
die();
|
||||
}
|
||||
|
||||
function getIP() {
|
||||
if(isset($_SERVER['HTTP_X_REAL_IP'])) return $_SERVER['HTTP_X_REAL_IP'];
|
||||
return $_SERVER['REMOTE_ADDR'];
|
||||
function getIP()
|
||||
{
|
||||
return isset($_SERVER['HTTP_X_REAL_IP']) ? $_SERVER['HTTP_X_REAL_IP'] : $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
|
||||
if(isset($_GET['robot'])) {
|
||||
|
||||
}elseif(getIP() != $_SERVER['SERVER_ADDR'] && getIP() != '127.0.0.1' && getIP() != '' && getIP() != '31.131.116.166') {
|
||||
if( !isset($_GET['test'])) {
|
||||
if (!isset($_GET['robot']) && getIP() != $_SERVER['SERVER_ADDR'] && getIP() != '127.0.0.1' && getIP() != '' && getIP(
|
||||
) != '31.131.116.166' && !isset($_GET['test'])) {
|
||||
die(getIP() . '<br>' . $_SERVER['SERVER_ADDR']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
define('GAME',true);
|
||||
const GAME = true;
|
||||
|
||||
setlocale(LC_CTYPE, "ru_RU.CP1251");
|
||||
|
||||
include('_incl_data/__config.php');
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
include('_incl_data/class/__user.php');
|
||||
include('_incl_data/class/bot.priem.php');
|
||||
include('_incl_data/class/bot.logic.php');
|
||||
|
||||
function e($t) {
|
||||
mysql_query('INSERT INTO `chat` (`text`,`city`,`to`,`type`,`new`,`time`) VALUES ("core #'.date('d.m.Y').' %'.date('H:i:s').' (Êðèòè÷åñêàÿ îøèáêà): <b>'.mysql_real_escape_string($t).'</b>","capitalcity","LEL","6","1","-1")');
|
||||
$count = [0, 0, 0, 0, 0, 0];
|
||||
|
||||
function inuser_go_btl($id)
|
||||
{
|
||||
if (isset($id['id'])) {
|
||||
file_get_contents(
|
||||
'https://new-combats.com/jx/battle/refresh.php?uid=' . $id['id'] . '&cron_core=' . md5(
|
||||
$id['id'] . '_brfCOreW@!_' . $id['pass']
|
||||
) . '&pass=' . $id['pass']
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
$count = array(
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
$sp = mysql_query(
|
||||
'SELECT `u`.* , `s`.* FROM `stats` AS `s` LEFT JOIN `users` AS `u` ON `u`.`id` = `s`.`id` WHERE `u`.`pass` = "botforpeople" ORDER BY `s`.`nextAct` ASC LIMIT 200'
|
||||
);
|
||||
|
||||
function inuser_go_btl($id) {
|
||||
if(isset($id['id'])) {
|
||||
file_get_contents('https://new-combats.com/jx/battle/refresh.php?uid='.$id['id'].'&cron_core='.md5($id['id'].'_brfCOreW@!_'.$id['pass']).'&pass='.$id['pass']);
|
||||
}
|
||||
}
|
||||
|
||||
$sp = mysql_query('SELECT `u`.* , `s`.* FROM `stats` AS `s` LEFT JOIN `users` AS `u` ON `u`.`id` = `s`.`id` WHERE `u`.`pass` = "botforpeople" ORDER BY `s`.`nextAct` ASC LIMIT 200');
|
||||
|
||||
$btltest = array();
|
||||
$btltest = [];
|
||||
|
||||
while ($pl = mysql_fetch_array($sp)) {
|
||||
|
||||
@ -211,12 +198,12 @@ while($pl = mysql_fetch_array($sp)) {
|
||||
|
||||
mysql_query('UPDATE `users` SET `online` = "' . time() . '" WHERE `id` = "' . $pl['id'] . '" LIMIT 1');
|
||||
|
||||
botLogic::start( $pl['id'] );
|
||||
BotLogic::start($pl['id']);
|
||||
|
||||
} else {
|
||||
|
||||
if ($pl['zv'] > 0) {
|
||||
botLogic::start( $pl['id'] );
|
||||
BotLogic::start($pl['id']);
|
||||
}
|
||||
|
||||
if ($pl['timereg'] == 0) {
|
||||
@ -234,7 +221,7 @@ while($pl = mysql_fetch_array($sp)) {
|
||||
echo '*';
|
||||
}
|
||||
echo '+';
|
||||
echo '['.$pl['login'].'] -> Äåéñòâèå: '.$pl['ipreg'].' , îæèäàåì: '.($pl['timeMain']-time()).' ñåê., çàÿâêà: '.$pl['zv'].', ïîåäèíîê: '.$pl['battle'].'';
|
||||
echo '[' . $pl['login'] . '] -> Äåéñòâèå: ' . $pl['ipreg'] . ' , îæèäàåì: ' . ($pl['timeMain'] - time(
|
||||
)) . ' ñåê., çàÿâêà: ' . $pl['zv'] . ', ïîåäèíîê: ' . $pl['battle'] . '';
|
||||
echo '<hr>';
|
||||
}
|
||||
?>
|
||||
|
@ -5,81 +5,18 @@ ini_set('display_errors', 'Off');
|
||||
setlocale(LC_CTYPE, "ru_RU.CP1251");
|
||||
date_default_timezone_set('Europe/Moscow');
|
||||
|
||||
$c = [
|
||||
'ver' => '1.8.3.7',
|
||||
];
|
||||
/* Конфигурации игры */
|
||||
$c['name'] = 'Бойцовский Клуб';
|
||||
$c['title'] = '«' . $c['name'] . '» - Бесплатная,браузерная онлайн игра'; //Название игры
|
||||
$c['title2'] = ' - Бесплатная, онлайн игра посвященная сражениям и магии!';
|
||||
$c['title3'] = $c['name'];
|
||||
$c['keys'] = $c['name'] . ', combats.com, ' . $c['name'] . ' игра, ' . $c['name'] . ' играть, игра ' . $c['name'] . ', старый ' . $c['name'] . ', ' . $c['name'] . ' онлайн игра, ' . $c['name'] . ' браузерная игра, играть в ' . $c['name'] . ', игра бк, бк игра, старый бк, играть в бк, бк онлайн игра, новый бк, Легендарный ' . $c['name'] . ', легендарный бк, combats, комбатс, combats ru, combats com, OldBK, oldbk ru, oldbk com, олдбк, old bk, олд бк, mycombats, rebk, recombats, oldcombats, obk2'; //Ключевые слова META
|
||||
$c['desc'] = '«' . $c['name'] . '» – это бесплатная увлекательная браузерная онлайн игра 2004-2009г, в которой сконцентрировано все самое лучшее от современных онлайн игр. В этой браузерной игре заложены самые интересные традиции всем известной онлайн игры под названием «' . $c['name'] . ' 2004-2009», которая, кстати, стала первооткрывателем всех браузерных игр.'; //Описание META
|
||||
header('Cache-Control: no-cache, no-store, must-revalidate');
|
||||
header('Pragma: no-cache');
|
||||
header('Expires: 0');
|
||||
|
||||
//Сервера
|
||||
$c['host'] = 'new-combats.com';
|
||||
$c['forum'] = 'forum.' . $c['host'];
|
||||
$c['img'] = 'img' . $c['host'];
|
||||
$c['thiscity'] = 'capitalcity';
|
||||
$c['capitalcity'] = $c['host'];
|
||||
$c['abandonedplain'] = $c['host'];
|
||||
$c['exit'] = '<script>top.location="https://' . $c['host'] . '/";</script><noscript><meta http-equiv="refresh" content="0; URL=https://' . $c['host'] . '/"></noscript>';
|
||||
require_once 'mysql_override.php';
|
||||
|
||||
//Валюта
|
||||
$c['curency_name'] = 'RUB';
|
||||
$c['curency_value'] = 36;
|
||||
|
||||
//Бот клон
|
||||
$c['bot_level'] = 0; // до какого лвл бот (включительно)
|
||||
$c['propsk_die'] = 0; //Смерть при пропуске ходов, 0 - выкл. , >= 1 - количество пропусков до смерти при нападении
|
||||
|
||||
//Скупка
|
||||
$c['exp'] = 0; //бонус опыта
|
||||
$c['shop_type1'] = 100; //в гос НЕ ТРОГАТЬ
|
||||
$c['shop_type2'] = 90; //в березку НЕ ТРОГАТЬ
|
||||
$c['shop_all'] = 0; //Скупка на все! , 0 - сделать для отключения скупки.
|
||||
$c['shop_all_type1'] = 100; //Скупка только с госе! , 0 - сделать для отключения скупки.
|
||||
$c['shop_all_type2'] = 100; //Скупка только с березки! , 0 - сделать для отключения скупки.
|
||||
//
|
||||
$c['nosanich'] = true; //Странички Саныча не выпадают - true , выпадают - false
|
||||
$c['zuby'] = false; //зубы
|
||||
$c['limitedexp'] = false; //лимит опыта
|
||||
$c['infinity5level'] = false; //вечные 5 уровни
|
||||
$c['expstop'] = 2999999; //9; //Опыт на котором останавливаемся 11 149999999
|
||||
$c['expstopu'] = 2999999; //Опыт на котором останавливаемся
|
||||
$c['noobgade'] = false; //нуб квест (пещера)
|
||||
$c['bonusonline'] = true; //бонус за онлайн
|
||||
$c['level_ransfer'] = 8; //С какого уровня разрешены передачи
|
||||
$c['znahar'] = true; //бесплатный знахарь
|
||||
$c['nolevel'] = false; //лимитирование уровней
|
||||
$c['noitembuy'] = false; //Не требует ресурсы для покупки
|
||||
$c['effz'] = 0; //Скольким секундам равен заряд
|
||||
$c['money_haot'] = true; //кр за хаоты
|
||||
$c['crtoecr'] = 500; //Курс обмена кр на екр (если 0, то выключено)
|
||||
$c['ecrtocr'] = 200; //Курс обмена екр на кр
|
||||
$c['bonuslevel'] = true; //Бонус уровня
|
||||
$c['bonussocial'] = false; //Бонус социальный
|
||||
|
||||
$c['w'] = date('w');
|
||||
$c['m'] = date('m');
|
||||
|
||||
$code = '1';
|
||||
$c['counters'] = '';
|
||||
$c['counters_noFrm'] = '';
|
||||
$c['securetime'] = 0; //Время последнего возможного взлома персов (подбор пароля по базам данных других игр)
|
||||
|
||||
$c['copyright'] = 'Copyright © ' . date('Y') . ' « Новый Бойцовский Клуб »';
|
||||
|
||||
if (isset($_GET['version'])) {
|
||||
die('Version: ' . $c['ver']);
|
||||
}
|
||||
|
||||
// Для всех доработок, пока нет автозагрузки классов.
|
||||
// Для всех доработок, пока нет автозагрузки классов.
|
||||
require_once 'class/Insallah/Config.php';
|
||||
|
||||
// Попробуем в автозагрузку.
|
||||
// Никогда не заработает с такими названиями классов и файлов!
|
||||
// "На потом."
|
||||
// Попробуем в автозагрузку.
|
||||
// Никогда не заработает с такими названиями классов и файлов!
|
||||
// "На потом."
|
||||
spl_autoload_register(function ($className) {
|
||||
# 1 with namespaces
|
||||
# 2 without
|
||||
@ -87,9 +24,16 @@ spl_autoload_register(function ($className) {
|
||||
__DIR__ . '/class/' . str_replace('\\', '/', $className . '.php'),
|
||||
__DIR__ . '/class/' . $className . '.php'
|
||||
];
|
||||
foreach ($fileName as $file)
|
||||
foreach ($fileName as $file) {
|
||||
if (file_exists($file)) {
|
||||
require_once $file;
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$code = '1';
|
||||
$c = (new \Core\Config())->get();
|
||||
if (isset($_GET['version'])) {
|
||||
die('Version: ' . $c['ver']);
|
||||
}
|
||||
|
45
_incl_data/autoload.php
Normal file
45
_incl_data/autoload.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
const GAME = true; // Для совместимости с этой "защитой".
|
||||
const GAME_VERSION = 'alpha-7.4';
|
||||
// Новая автозагрузка.
|
||||
// ВНИМАНИЕ! Не введено в эксплуатацию!
|
||||
|
||||
require_once 'mysql_override.php';
|
||||
|
||||
spl_autoload_register(function (string $className) {
|
||||
# 1 with namespaces
|
||||
# 2 without
|
||||
$fileName = [
|
||||
__DIR__ . '/class/' . str_replace('\\', DIRECTORY_SEPARATOR, $className . '.php'),
|
||||
__DIR__ . '/class/' . $className . '.php'
|
||||
];
|
||||
foreach ($fileName as $file) {
|
||||
if (file_exists($file)) {
|
||||
require_once $file;
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
spl_autoload_register(function (string $classname) {
|
||||
$classMap = [
|
||||
'NewCombats' => __DIR__ . '/class/',
|
||||
'Insallah' => __DIR__ . '/class/Insallah/',
|
||||
];
|
||||
$parts = explode('\\', $classname);
|
||||
$namespace = array_shift($parts);
|
||||
$classFile = array_pop($parts) . '.php';
|
||||
|
||||
if (!array_key_exists($namespace, $classMap)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$path = implode(DIRECTORY_SEPARATOR, $parts);
|
||||
$file = $classMap[$namespace] . $path . DIRECTORY_SEPARATOR . $classFile;
|
||||
|
||||
if (!file_exists($file) && !class_exists($classname)) {
|
||||
return;
|
||||
}
|
||||
|
||||
require_once $file;
|
||||
});
|
40
_incl_data/class/Core/Mail.php
Normal file
40
_incl_data/class/Core/Mail.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace Core;
|
||||
|
||||
use PHPMailer;
|
||||
|
||||
class Mail
|
||||
{
|
||||
public static function send($to, $message, $subject = 'Áîéöîâñêèé êëóá')
|
||||
{
|
||||
require dirname(__DIR__) . '/mail/class.phpmailer.php';
|
||||
$message = mb_convert_encoding($message, 'UTF-8', 'CP1251');
|
||||
$subject = mb_convert_encoding($subject, 'UTF-8', 'CP1251');
|
||||
$mail = new PHPMailer;
|
||||
|
||||
$mail->IsSMTP(); // Set mailer to use SMTP
|
||||
$mail->Host = 'smtp.mail.yahoo.com'; // Specify main and backup server
|
||||
$mail->SMTPAuth = true; // Enable SMTP authentication
|
||||
$mail->Username = 'newcombats@yahoo.com'; // SMTP username
|
||||
$mail->Password = 'uqcdbnsoagxcyysh';
|
||||
$mail->SMTPSecure = 'tls'; // Enable encryption, 'ssl' also accepted
|
||||
$mail->Port = 587;
|
||||
$mail->CharSet = 'UTF-8';
|
||||
|
||||
$mail->From = 'newcombats@yahoo.com';
|
||||
$mail->FromName = mb_convert_encoding('Áîéöîâñêèé Êëóá', 'UTF-8', 'CP1251');
|
||||
$mail->AddAddress($to); // Add a recipient
|
||||
|
||||
$mail->IsHTML(true); // Set email format to HTML
|
||||
|
||||
$mail->Subject = $subject;
|
||||
$mail->Body = '<div>' . $message . '</div>';
|
||||
$mail->AltBody = $message;
|
||||
|
||||
if (!$mail->Send()) {
|
||||
return 'Message could not be sent. Mailer Error: ' . $mail->ErrorInfo;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
}
|
@ -93,7 +93,7 @@ class Achievements
|
||||
],
|
||||
];
|
||||
|
||||
public function __construct(\user $user)
|
||||
public function __construct(\User $user)
|
||||
{
|
||||
$this->user = $user;
|
||||
$this->info = Db::getRow('select * from users_achiv where id = ?', [$user->info['id']]);
|
||||
|
@ -10,7 +10,6 @@ require_once 'Tournament/Tournament.php';
|
||||
require_once 'Tournament/TournamentModel.php';
|
||||
require_once 'Achievements.php';
|
||||
|
||||
|
||||
//Âìåñòî êðîíà äëÿ òóðíèðà.
|
||||
if (Tournament::IS_ENABLED) {
|
||||
(new Tournament())->startAllBattles();
|
||||
|
@ -2,7 +2,9 @@
|
||||
|
||||
namespace Insallah;
|
||||
|
||||
use Core\Database;
|
||||
use Exception;
|
||||
use http\Message;
|
||||
use PDO;
|
||||
use PDOException;
|
||||
use PDOStatement;
|
||||
@ -35,19 +37,21 @@ class Db
|
||||
* DB constructor.
|
||||
* @throws Exception
|
||||
*/
|
||||
public function __construct(){
|
||||
public function __construct()
|
||||
{
|
||||
if (self::$instance === null) {
|
||||
try {
|
||||
self::$db = new PDO(
|
||||
'mysql:host='.self::DB_HOST.';dbname='.self::DB_NAME,
|
||||
'mysql:host=' . self::DB_HOST . ';dbname=' . self::DB_PREFIX . self::DB_NAME,
|
||||
self::DB_USER,
|
||||
self::DB_PASSWORD,
|
||||
$options = [
|
||||
[
|
||||
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
|
||||
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
|
||||
PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES ".self::CHARSET
|
||||
PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES " . self::CHARSET,
|
||||
]
|
||||
);
|
||||
// self::$db = Database::pdoinit();
|
||||
} catch (PDOException $e) {
|
||||
throw new Exception($e->getMessage());
|
||||
}
|
||||
@ -59,7 +63,8 @@ class Db
|
||||
* @param $stmt
|
||||
* @return PDOStatement
|
||||
*/
|
||||
public static function query($stmt) {
|
||||
public static function query($stmt)
|
||||
{
|
||||
return self::$db->query($stmt);
|
||||
}
|
||||
|
||||
@ -67,7 +72,8 @@ class Db
|
||||
* @param $stmt
|
||||
* @return PDOStatement
|
||||
*/
|
||||
public static function prepare($stmt) {
|
||||
public static function prepare($stmt)
|
||||
{
|
||||
return self::$db->prepare($stmt);
|
||||
}
|
||||
|
||||
@ -75,14 +81,16 @@ class Db
|
||||
* @param $query
|
||||
* @return int
|
||||
*/
|
||||
static public function exec($query) {
|
||||
static public function exec($query)
|
||||
{
|
||||
return self::$db->exec($query);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
static public function lastInsertId() {
|
||||
static public function lastInsertId()
|
||||
{
|
||||
return self::$db->lastInsertId();
|
||||
}
|
||||
|
||||
@ -92,7 +100,8 @@ class Db
|
||||
* @return PDOStatement
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function run($query, $args = []) {
|
||||
public static function run($query, $args = [])
|
||||
{
|
||||
try {
|
||||
if (!$args) {
|
||||
return self::query($query);
|
||||
@ -110,7 +119,8 @@ class Db
|
||||
* @param array $args
|
||||
* @return mixed
|
||||
*/
|
||||
public static function getRow($query, $args = []) {
|
||||
public static function getRow($query, $args = [])
|
||||
{
|
||||
return self::run($query, $args)->fetch();
|
||||
}
|
||||
|
||||
@ -119,7 +129,8 @@ class Db
|
||||
* @param array $args
|
||||
* @return array
|
||||
*/
|
||||
public static function getRows($query, $args = []) {
|
||||
public static function getRows($query, $args = [])
|
||||
{
|
||||
return self::run($query, $args)->fetchAll();
|
||||
}
|
||||
|
||||
@ -128,7 +139,8 @@ class Db
|
||||
* @param array $args
|
||||
* @return mixed
|
||||
*/
|
||||
public static function getValue($query, $args = []) {
|
||||
public static function getValue($query, $args = [])
|
||||
{
|
||||
$result = self::getRow($query, $args);
|
||||
if (!empty($result)) {
|
||||
$result = array_shift($result);
|
||||
@ -141,7 +153,8 @@ class Db
|
||||
* @param array $args
|
||||
* @return array
|
||||
*/
|
||||
public static function getColumn($query, $args = []) {
|
||||
public static function getColumn($query, $args = [])
|
||||
{
|
||||
return self::run($query, $args)->fetchAll(PDO::FETCH_COLUMN);
|
||||
}
|
||||
|
||||
|
@ -4,8 +4,7 @@ namespace Insallah;
|
||||
|
||||
class Runes
|
||||
{
|
||||
/** Создаём руну в зависимости от уровня.
|
||||
*
|
||||
/** Создаём руну в зависимости от уровня.
|
||||
* @param $level
|
||||
*
|
||||
* @return array
|
||||
@ -15,7 +14,7 @@ class Runes
|
||||
if (!in_array($level, [8, 9, 10])) {
|
||||
return [];
|
||||
}
|
||||
$power = [8 => 3, 9 => 5, 10 => 7];
|
||||
$power = [8 => 3, 9 => 3, 10 => 5];
|
||||
$stats = [8 => 1, 9 => 3, 10 => 3];
|
||||
$rand9 = array_rand(array_flip(['hpAll', 'm2', 'm5']));
|
||||
$runes = [
|
||||
@ -27,24 +26,24 @@ class Runes
|
||||
['s5', 'm11', 'mpAll', 'pzm']
|
||||
];
|
||||
$vars = [
|
||||
's1' => ['Сила', mt_rand(1, $stats[$level])],
|
||||
's2' => ['Ловкость', mt_rand(1, $stats[$level])],
|
||||
's3' => ['Интуиция', mt_rand(1, $stats[$level])],
|
||||
's5' => ['Интеллект', mt_rand(1, $stats[$level])],
|
||||
'pa1' => ['Мощности Колющего урона', mt_rand(1, $power[$level])],
|
||||
'pa2' => ['Мощности Рубящего урона', mt_rand(1, $power[$level])],
|
||||
'pa3' => ['Мощности Дробящего урона', mt_rand(1, $power[$level])],
|
||||
'pa4' => ['Мощности Режущего урона', mt_rand(1, $power[$level])],
|
||||
'm2' => ['мф. Против Критического Удара', mt_rand(5, 15)],
|
||||
'm3' => ['МК', mt_rand(1, 3)],
|
||||
'antm3' => ['ПМК', mt_rand(1, 3)],
|
||||
'm5' => ['мф. Против Увертывания', mt_rand(5, 10)],
|
||||
'm11' => ['Мощности Магии стихии', mt_rand(1, $power[$level])],
|
||||
's1' => ['Сила', mt_rand(1, $stats[$level])],
|
||||
's2' => ['Ловкость', mt_rand(1, $stats[$level])],
|
||||
's3' => ['Интуиция', mt_rand(1, $stats[$level])],
|
||||
's5' => ['Интеллект', mt_rand(1, $stats[$level])],
|
||||
'pa1' => ['Мощности Колющего урона', mt_rand(1, $power[$level])],
|
||||
'pa2' => ['Мощности Рубящего урона', mt_rand(1, $power[$level])],
|
||||
'pa3' => ['Мощности Дробящего урона', mt_rand(1, $power[$level])],
|
||||
'pa4' => ['Мощности Режущего урона', mt_rand(1, $power[$level])],
|
||||
'm2' => ['мф. Против Критического Удара', mt_rand(5, 15)],
|
||||
'm3' => ['МК', mt_rand(1, 3)],
|
||||
'antm3' => ['ПМК', mt_rand(1, 3)],
|
||||
'm5' => ['мф. Против Увертывания', mt_rand(5, 10)],
|
||||
'm11' => ['Мощности Магии стихии', mt_rand(1, $power[$level])],
|
||||
'hpAll' => ['HP', mt_rand(5, 15)],
|
||||
'mpAll' => ['MP', mt_rand(10, 20)],
|
||||
'pzm' => ['Подавление защиты от магии', 1],
|
||||
'za' => ['Защита от Урона', mt_rand(5, 10)],
|
||||
'zma' => ['Защита от Магии', mt_rand(5, 10)]
|
||||
'pzm' => ['Подавление защиты от магии', 1],
|
||||
'za' => ['Защита от Урона', mt_rand(5, 10)],
|
||||
'zma' => ['Защита от Магии', mt_rand(5, 10)]
|
||||
];
|
||||
|
||||
$rune = $runes[array_rand($runes)]; // arr (s, pa\m, rand9\mpAll, other)
|
||||
@ -52,40 +51,40 @@ class Runes
|
||||
$runeVals = [$vars[$rune[0]][1], $vars[$rune[1]][1], $vars[$rune[2]][1], $vars[$rune[3]][1]];
|
||||
$resultRune = array_combine($rune, $runeVals);
|
||||
$resultText = array_combine($runeTxt, $runeVals);
|
||||
if ($level < 10) { // Отрезаем параметр 4.
|
||||
if ($level < 10) { // Отрезаем параметр 4.
|
||||
array_pop($resultRune);
|
||||
array_pop($resultText);
|
||||
}
|
||||
if ($level < 9) { // Отрезаем параметр 3.
|
||||
if ($level < 9) { // Отрезаем параметр 3.
|
||||
array_pop($resultRune);
|
||||
array_pop($resultText);
|
||||
}
|
||||
//Строчка data в базу
|
||||
//Строчка data в базу
|
||||
$returnData = '|' . http_build_query($resultRune, '', '|');
|
||||
$returnData = str_replace('|', '|add_', $returnData);
|
||||
//Строчка человекопонятных параметров в статус.
|
||||
//Строчка человекопонятных параметров в статус.
|
||||
$returnText = urldecode(http_build_query($resultText, '', ', '));
|
||||
$returnText = 'Характеристики Руны: ' . str_replace('=', ': +', $returnText) . '.';
|
||||
$returnText = 'Характеристики Руны: ' . str_replace('=', ': +', $returnText) . '.';
|
||||
return [$returnData, $returnText];
|
||||
}
|
||||
|
||||
/** Выкусывает руну из предмета.
|
||||
/** Выкусывает руну из предмета.
|
||||
*
|
||||
* @param array $itemDataArray
|
||||
* data предмета
|
||||
* data предмета
|
||||
*
|
||||
* @return array массив, item - предмет, rune - руна из предмета, rune_id - id руны.
|
||||
* Оба в подготовленном строчном формате для data
|
||||
* @return array массив, item - предмет, rune - руна из предмета, rune_id - id руны.
|
||||
* Оба в подготовленном строчном формате для data
|
||||
*/
|
||||
public static function removeRuneData($itemDataArray)
|
||||
{
|
||||
# Ищем есть ли в предмете руна определённого типа.
|
||||
# Ищем есть ли в предмете руна определённого типа.
|
||||
$runeid = array_search('rune_id', array_flip($itemDataArray));
|
||||
if (!in_array($runeid, [6001, 6002, 6003])) {
|
||||
return [];
|
||||
}
|
||||
$bonusArgs = 0;
|
||||
# В зависимости от типа руны считаем количество элементов-бонусов.
|
||||
# В зависимости от типа руны считаем количество элементов-бонусов.
|
||||
if ($runeid === 6001) {
|
||||
$bonusArgs = 2;
|
||||
}
|
||||
|
@ -1,14 +0,0 @@
|
||||
<?php
|
||||
|
||||
|
||||
class PriemsMain extends priems
|
||||
{
|
||||
/**
|
||||
* Отдльный файл для методов приёмов.
|
||||
* По закону жанра - ничерта не подключается самостоятльно,
|
||||
* потому что "инклюд инклюда класса", файл не знает откуда и куда подключаться.
|
||||
* Игра вызывает _cron_, _cron_ вызывает priems, priems вызывает N.php
|
||||
* N.php вызывает _cron_, _users, _battles.
|
||||
* Всё это в разных местах, скрипт не понимает в какой он папке и капут.
|
||||
*/
|
||||
}
|
@ -7,7 +7,6 @@ class UserStats
|
||||
/**
|
||||
* Ñîáèðàåò ñóììû âñåõ áîíóñîâ ñ îäåòûõ ïðåäìåòîâ è àêòèâíûõ ýôåêòîâ.
|
||||
* @param $userId
|
||||
* @param bool $showAll
|
||||
* @return array
|
||||
*/
|
||||
public static function getAllBonuses($userId, $showAll = false)
|
||||
@ -18,7 +17,6 @@ class UserStats
|
||||
union all select data from eff_users where uid = ? and `delete` = 0';
|
||||
$iData = $db::getColumn($q, [$userId, $userId]);
|
||||
$params = [];
|
||||
$params2 = json_decode(str_replace(['=', '|'], ['":', ',"'], '{"' . $iData . '}'), true);
|
||||
foreach ($iData as $datum) {
|
||||
foreach (explode('|', $datum) as $inner) {
|
||||
list($a, $b) = explode('=', $inner);
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,189 +0,0 @@
|
||||
<?
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
class Chat {
|
||||
|
||||
var $smilesWorld = array(
|
||||
'laugh' => array(0 => 'смеется',1 => 'посмеялся над [*%l*]'),
|
||||
'fingal' => array(0 => 'трет фингал',1 => 'щупает фингал у [*%l*]'),
|
||||
'eek' => array(0 => 'ошарашен',1 => 'ошарашен действиями [*%l*]'),
|
||||
'smoke' => array(0 => 'закуривает',1 => 'предлагает [*%l*] пойти покурить'),
|
||||
'hi' => array(0 => 'приветствует всех вокруг',1 => 'приветствует [*%l*]'),
|
||||
'bye' => array(0 => 'прощается со всеми и уходит',1 => 'прощается с [*%l*]'),
|
||||
'king' => array(0 => 'коронует себя :-)',1 => 'объявляет [*%l*] своим королем!'),
|
||||
'king2' => array(0 => 'коронует себя :-)',1 => 'объявляет [*%l*] своей королевой!'),
|
||||
'boks2' => array(0 => 'вызывает всех на поединок',1 => 'предлагает [*%l*] дружеский матч'),
|
||||
'boks' => array(0 => 'обещает побить любого, кто примет вызов!',1 => 'намекает [*%l*] на поединок'),
|
||||
'gent' => array(0 => 'предлагает считать себя благородным сэром',1 => 'считает [*%l*] джельтельменом'),
|
||||
'lady' => array(0 => 'предлагает считать себя благородной леди',1 => 'считает, что [*%l*] настоящая Леди'),
|
||||
'tongue' => array(0 => 'показывает окружающим язык',1 => 'показывает язык [*%l*]'),
|
||||
'smil' => array(0 => 'болтает без умолку',1 => 'считает, что [*%l*] говорит откровенную ерунду!'),
|
||||
'ponder' => array(0 => 'кое-что усиленно обдумывает',1 => 'обещает обмозговать предложение [*%l*]'),
|
||||
'bow' => array(0 => 'сохраняя достоинство, кивает окружающим',1 => 'сохраняя достоинство кивает [*%l*]'),
|
||||
'angel' => array(0 => 'считает себя Ангелом',1 => 'считает [*%l*] своим Ангелом'),
|
||||
'angel2' => array(0 => 'грезит об Ангелах',1 => 'думает что [*%l*] Ангел'),
|
||||
'hello' => array(0 => 'желает здравствовать окружающим',1 => 'желает здравствовать [*%l*]'),
|
||||
'dont' => array(0 => 'рекомендует окружающим не делать этого',1 => 'рекомендует [*%l*] не делать этого'),
|
||||
'idea' => array(0 => 'озарен свежей идеей!',1 => 'предлагает [*%l*] обсудить пару идей'),
|
||||
'mol' => array(0 => 'преклоняется перед окружающими',1 => 'преклоняется перед [*%l*]'),
|
||||
'super' => array(0 => 'считает, что мир хорош, все дамы - Леди, а Солнце - шар дающий свет!',1 => 'фанатеет от [*%l*]'),
|
||||
'beer' => array(0 => 'вспоминает про припрятаный в заначке эликсир...',1 => 'готов поделиться с [*%l*] припрятанным эликсиром!'),
|
||||
'drink' => array(0 => 'считает, что пора пить различные эликсиры',1 => 'предлагает [*%l*] пойти пропустить по стаканчику эликсира'),
|
||||
'baby' => array(0 => 'изображает малыша',1 => ' считает, что [*%l*] еще мал и неопытен для обоснованной критики'),
|
||||
'tongue2' => array(0 => ' показывает всяким врединам язык',1 => 'показывает [*%l*] язык, проявляя недовольство'),
|
||||
'sword' => array(0 => 'готов сразиться в честном поединке',1 => 'вызывает [*%l*] на честный поединок!'),
|
||||
'agree' => array(0 => 'пожимает руку собеседникам',1 => 'пожимает руку [*%l*]'),
|
||||
'loveya' => array(0 => 'преисполнен чувства любви',1 => 'преисполнен чувства любви к [*%l*]'),
|
||||
'kiss' => array(0 => 'целует всех',1 => 'целует [*%l*]'),
|
||||
'kiss2' => array(0 => 'хочет нежно поцеловать кого-то...',1 => 'нежно целует [*%l*]'),
|
||||
'kiss3' => array(0 => 'кое-кого целует...',1 => 'нежно целует [*%l*]'),
|
||||
'kiss4' => array(0 => 'кое-кого целует...',1 => 'хочет уединиться с [*%l*] и целоваться...'),
|
||||
'rose' => array(0 => 'хочет кому-то подарить розу, но стесняется...',1 => 'дарит [*%l*] ароматную розу...'),
|
||||
'love' => array(0 => 'думает только о любви...',1 => 'думает, что [loginfrom] + [*%l*]= любовь!'),
|
||||
'love2' => array(0 => 'мечтает о свадьбе...',1 => 'мечтает о свадьбе с [*%l*]'),
|
||||
'confused' => array(0 => 'в недоумении...',1 => 'недоумевает от [*%l*]'),
|
||||
'yes' => array(0 => 'кивает в знак согласия',1 => 'кивает [*%l*] в знак согласия'),
|
||||
'no' => array(0 => 'мотает головой в знак протеста',1 => 'мотает головой [*%l*] в знак протеста'),
|
||||
'shuffle' => array(0 => 'в смущении от таких обстоятельств',1 => 'в смущении от [*%l*]'),
|
||||
'nono' => array(0 => 'выражает категорическое несогласие!',1 => 'выражает категорическое несогласение с [*%l*]'),
|
||||
'maniac' => array(0 => 'знает точно наперед - сегодня кто-нибудь умрет...',1 => 'считает, что [*%l*] пора бы уже стать жертвой маньяка...'),
|
||||
'privet' => array(0 => 'почтительно приветствует окружающих',1 => 'почтительно приветствует [*%l*]'),
|
||||
'ok' => array(0 => 'считает, что это замечательная идея',1 => 'считает, что [*%l*] движется в правильном направлении'),
|
||||
'ninja' => array(0 => 'угрожает окружающим тайным мастерством!',1 => 'угрожает [*%l*] мастерством древних'),
|
||||
'pif' => array(0 => 'ищет подходящую мишень',1 => 'думает, что сложно промахнуться по [*%l*]'),
|
||||
'smash' => array(0 => 'собирается крушить и ломать',1 => 'хочет сломать пару-тройку костей у [*%l*]'),
|
||||
'alien' => array(0 => 'считает, что мир захватили мутанты!',1 => ' считает, что [*%l*] еще тот мутант!'),
|
||||
'pirate' => array(0 => 'подумывает, кого бы ограбить!...',1 => 'считает, что лучшей жертвы чем [*%l*], не найти!'),
|
||||
'gun' => array(0 => 'хочет повысить кое-кому уровень железа в организме... :gun:',1 => 'считает, что у [*%l*] маловато железа в организме! :gun:'),
|
||||
'trup' => array(0 => 'падает замертво',1 => 'считает, что [*%l*], живет слишком долго, и пора бы это исправить!'),
|
||||
'mdr' => array(0 => 'считает, что у него есть отличный способ решения разногласий... :mdr:',1 => 'предлагает [*%l*] культурно отдохнуть :mdr:'),
|
||||
'sneeze' => array(0 => 'громко чихает',1 => 'чихает на [*%l*], обрызгивая его слюнями с ног до головы!'),
|
||||
'mad' => array(0 => 'просто в бешенстве!!!',1 => 'в бешенстве от [*%l*]!!!'),
|
||||
'friday' => array(0 => 'культурно отдыхает...',1 => 'предлагает [*%l*] культурно отдохнуть'),
|
||||
'cry' => array(0 => 'безудержно рыдает',1 => 'рыдает на плече у [*%l*]'),
|
||||
'grust' => array(0 => 'грустит...',1 => 'грустит о [*%l*]'),
|
||||
'rupor' => array(0 => 'пытается докричаться до окружающих',1 => 'пытается докричаться до [*%l*]'),
|
||||
'fie' => array(0 => 'умоляет: НЕТ, только не ЭТО!!!',1 => 'умоляет [*%l*] о пощаде!'),
|
||||
'nnn' => array(0 => 'ничего не видит, не слышит, и никому не скажет...',1 => 'ничего не видел, не слышал и не помнит о [*%l*]'),
|
||||
'row' => array(0 => 'находится в бешенстве и ищет с кем бы пообщаться...',1 => 'собирается выяснить отношения с [*%l*]'),
|
||||
'red' => array(0 => 'смущаясь краснеет...',1 => 'краснеет от [*%l*]'),
|
||||
'lick' => array(0 => 'облизнулся, в предвкушении',1 => 'облизывается при виде [*%l*]'),
|
||||
'help' => array(0 => 'нуждается в срочной помощи!',1 => 'просит помощи у [*%l*]'),
|
||||
'wink' => array(0 => 'подмигивает окружающим',1 => 'подмигивает [*%l*]'),
|
||||
'jeer' => array(0 => 'посмеивается над ситуацией...',1 => 'посмеивается над [*%l*]'),
|
||||
'tease' => array(0 => 'дразнится',1 => 'дразнит [*%l*]'),
|
||||
'nunu' => array(0 => 'недоволен окружающими...',1 => 'недоволен [*%l*]'),
|
||||
'inv' => array(0 => 'хочет найти свои зубы...',1 => 'жалуется [*%l*] на трудности жизни инвалида...'),
|
||||
'duel' => array(0 => 'собирается проткнуть кое-кого...',1 => 'вызывает [*%l*] на дуэль!'),
|
||||
'susel' => array(0 => 'Напевая: "эээххх ухнеееемм, да ещеее ууухнеем.." высматривает в толпе подходящий пондер...',1 => 'предлагает [*%l*] отхватить прямо по пондеру!'),
|
||||
'nun' => array(0 => 'угрожает окружающим палочками для риса',1 => 'показывает [*%l*] как надо пользоваться палочками для риса'),
|
||||
'kruger' => array(0 => 'ненавязчиво объясняет окружающим кого тут надо бояться :kruger:',1 => 'демонстрирует [*%l*] нестриженные когти'),
|
||||
'flowers' => array(0 => 'учится выхватывать букет Ромашек-21 из-за спины одним движением',1 => 'целует [*%l*] и дарит букет ромашек'),
|
||||
'horse' => array(0 => 'патрулирует границы Бойцовского Клуба',1 => 'предлагает [*%l*] порубать всех врагов в капусту! :horse:'),
|
||||
'hug' => array(0 => 'готов обнять всех в комнате!',1 => 'крепко обнимает [*%l*]'),
|
||||
'str' => array(0 => 'в ужасе покрывается ледяным потом!',1 => 'в ужасе прячется от [*%l*]'),
|
||||
'alch' => array(0 => 'напоминает окружающим о вечных ценностях :alch:',1 => 'предлагает [*%l*] приобщиться к вечным ценностям :alch:'),
|
||||
'pal' => array(0 => ' напоминает, что из под робы выпирает крест, а не что-то там! :-)',1 => 'требует от [*%l*] предъявить документы в развернутом виде!'),
|
||||
'mag' => array(0 => 'читает заклинания. Вслух. По слогам.',1 => 'произносит страшное колдунство на [*%l*]'),
|
||||
'sniper' => array(0 => 'изображает из себя Вильгельма Теля',1 => 'предлагает [*%l*] поиграть в Вильгельма Теля'),
|
||||
'fuck' => array(0 => 'повторяет позы камасутры',1 => 'предлагает [*%l*] повторить позы камасутры вместе'),
|
||||
'rotate' => array(0 => 'катается от смеха по полу',1 => 'катается по полу от смеха над [*%l*]')
|
||||
);
|
||||
|
||||
public function expworld($txt,$vl)
|
||||
{
|
||||
$words = explode(' ',$txt); $j = 0; $i = -1;
|
||||
while($i < count($words))
|
||||
{
|
||||
$i++;
|
||||
if(isset($words[$i]))
|
||||
{
|
||||
if(strlen($words[$i]) > $vl){ $words[$i] = substr($words[$i],0,$vl).' '.substr($words[$i],$vl); $i = 0; $j++; $txt = implode(' ', $words); $words = explode(' ',$txt); }
|
||||
}
|
||||
}
|
||||
$txt = implode(' ',$words);
|
||||
return $txt;
|
||||
}
|
||||
|
||||
public function str_count($str,$col)
|
||||
{
|
||||
if (strlen($str) > $col)
|
||||
{
|
||||
$str = substr($str,0,$col);
|
||||
}
|
||||
return ($str);
|
||||
}
|
||||
|
||||
public function smileText($text,$tol,$room,$city)
|
||||
{
|
||||
$retxt = ''; $j = 0;
|
||||
$txt = str_replace('/','⁄',$text).' ';
|
||||
|
||||
if(preg_match("/⁄(.*?) /", $txt, $retxt))
|
||||
{
|
||||
if(isset($this->smilesWorld[$retxt[1]]))
|
||||
{
|
||||
if($tol == '')
|
||||
{
|
||||
$tol = str_replace('⁄'.$retxt[1].' ','',$txt);
|
||||
$tol = trim($tol,' ');
|
||||
}
|
||||
if($tol == '')
|
||||
{
|
||||
$txt = ''.$this->smilesWorld[$retxt[1]][0].'';
|
||||
}else{
|
||||
$mbl = mysql_fetch_array(mysql_query('SELECT `online`,`id`,`login`,`room`,`city` FROM `users` WHERE `room`="'.$room.'" AND `online` > '.(time()-520).' AND `city` = "'.$city.'" AND `login`="'.mysql_real_escape_string($tol).'" LIMIT 1'));
|
||||
if(isset($mbl['id']))
|
||||
{
|
||||
$txt = ''.$this->smilesWorld[$retxt[1]][1].'';
|
||||
$txt = str_replace('[*%l*]','[login:'.$tol.']',$txt);
|
||||
}else{
|
||||
$txt = 'USER IS FALSE';
|
||||
}
|
||||
}
|
||||
$j = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if($j == 1)
|
||||
{
|
||||
$text = $txt;
|
||||
}else{
|
||||
$text = false;
|
||||
}
|
||||
|
||||
return $text;
|
||||
}
|
||||
|
||||
public function send($color,$room,$city,$from,$to,$text,$time,$type,$toChat,$spam,$sound,$new = 0)
|
||||
{
|
||||
//mysql_query('LOCK TABLES chat WRITE');
|
||||
|
||||
mysql_query("INSERT INTO `chat` (`new`,`sound`,`color`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`spam`) VALUES ('".$new."','".$sound."','".$color."','".$city."','".$room."','".$from."','".$to."','".$text."','".$time."','".$type."','".$toChat."','".$spam."')");
|
||||
|
||||
//mysql_query('UNLOCK TABLES');
|
||||
|
||||
$msg_id = mysql_insert_id();
|
||||
return $msg_id;
|
||||
}
|
||||
|
||||
public function jsmsg($id,$time,$to,$from,$type,$ch,$e,$see,$js = 0,$cl = '#000000',$typeTime = NULL)
|
||||
{
|
||||
$tm = date('H:i',$time);
|
||||
if($typeTime==1)
|
||||
{
|
||||
$tm = date('d.m.Y H:i',$time);
|
||||
}
|
||||
$rt = 'top.addMessage(\''.$id.'\',\''.$tm.'\',\''.$to.' \',\''.$from.'\',\''.$type.'\',\''.$ch.'\'," '.$e.' ",\''.$see.'\',\''.$cl.'\');';
|
||||
if($js==1)
|
||||
{
|
||||
$rt = '<script>'.$rt.'</script>';
|
||||
}
|
||||
return $rt;
|
||||
}
|
||||
}
|
||||
$chat = new Chat();
|
||||
?>
|
@ -1,28 +1,20 @@
|
||||
<?php
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
if (!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
|
||||
if( function_exists('date_default_timezone_set') ) {
|
||||
date_default_timezone_set('Europe/Moscow');
|
||||
}
|
||||
$db = [
|
||||
's' => 'localhost', // server
|
||||
'd' => 'newcom1_abk', // database
|
||||
'u' => 'newcom1_abk', // user
|
||||
'p' => '4nWYsIM[c?}P' // password
|
||||
];
|
||||
$dsn = 'mysql:host=' . $db['s'] . ';dbname=' . $db['d'];
|
||||
|
||||
$dbgo = mysql_pconnect('localhost','newcom1_abk','4nWYsIM[c?}P');
|
||||
mysql_select_db('newcom1_abk',$dbgo);
|
||||
include './_incl_data/mysql_override.php';
|
||||
|
||||
$dbgo = mysql_connect($db['s'], $db['u'], $db['p']);
|
||||
mysql_select_db($db['d'], $dbgo);
|
||||
mysql_query('SET NAMES cp1251');
|
||||
|
||||
if(!function_exists('GetRealIp')) {
|
||||
function GetRealIpTest(){
|
||||
if (!empty($_SERVER['HTTP_CLIENT_IP']))
|
||||
return $_SERVER['HTTP_CLIENT_IP'];
|
||||
else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
|
||||
return $_SERVER['HTTP_X_FORWARDED_FOR'];
|
||||
return $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
$ipban = GetRealIpTest();
|
||||
}else{
|
||||
$ipban = GetRealIp();
|
||||
}
|
||||
|
||||
$pdo = new PDO('mysql:host=localhost;dbname=newcom1_abk', 'newcom1_abk', '4nWYsIM[c?}P');
|
||||
$pdo = new PDO($dsn, $db['u'], $db['p'], [PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES cp1251"]);
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,168 +0,0 @@
|
||||
<?php
|
||||
if (!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
|
||||
class Filter
|
||||
{
|
||||
public function str_count($str, $col)
|
||||
{
|
||||
if (strlen($str) > $col) {
|
||||
$str = substr($str, 0, $col);
|
||||
}
|
||||
return ($str);
|
||||
}
|
||||
//
|
||||
//Ñìàéëèêè
|
||||
public $sm = ["laugh" => 1, "fingal" => 1, "eek" => 1, "smoke" => 1, "hi" => 1, "bye" => 1, "king" => 1, "king2" => 1, "boks2" => 1, "boks" => 1, "gent" => 1, "lady" => 1, "tongue" => 1, "smil" => 1, "rotate" => 1, "ponder" => 1, "bow" => 1, "angel" => 1, "angel2" => 1, "hello" => 1, "dont" => 1, "idea" => 1, "mol" => 1, "super" => 1, "beer" => 1, "drink" => 1, "baby" => 1, "tongue2" => 1, "sword" => 1, "agree" => 1, "loveya" => 1, "kiss" => 1, "kiss2" => 1, "kiss3" => 1, "kiss4" => 1, "rose" => 1, "love" => 1, "love2" => 1, "confused" => 1, "yes" => 1, "no" => 1, "shuffle" => 1, "nono" => 1, "maniac" => 1, "privet" => 1, "ok" => 1, "ninja" => 1, "pif" => 1, "smash" => 1, "alien" => 1, "pirate" => 1, "gun" => 1, "trup" => 1, "mdr" => 1, "sneeze" => 1, "mad" => 1, "friday" => 1, "cry" => 1, "grust" => 1, "rupor" => 1, "fie" => 1, "nnn" => 1, "row" => 1, "red" => 1, "lick" => 1, "help" => 1, "wink" => 1, "jeer" => 1, "tease" => 1, "nunu" => 1, "inv" => 1, "duel" => 1, "susel" => 1, "nun" => 1, "kruger" => 1, "flowers" => 1, "horse" => 1, "hug" => 1, "str" => 1, "alch" => 1, "pal" => 1, "mag" => 1, "sniper" => 1, "vamp" => 1, "doc" => 1, "doc2" => 1, "sharp" => 1, "naem" => 1, "naem2" => 1, "naem3" => 1, "invis" => 1, "chtoza" => 1, "beggar" => 1, "sorry" => 1, "sorry2" => 1,
|
||||
"creator" => 1, "grace" => 1, "dustman" => 1, "carreat" => 1, "lordhaos" => 1, "ura" => 1, "elix" => 1, "dedmoroz" => 1, "snegur" => 1, "showng" => 1, "superng" => 1, "podz" => 1, "sten" => 1, "devil" => 1, "cat" => 1, "owl" => 1, "lightfly" => 1, "snowfight" => 1, "rocket" => 1, "ball" => 1, "smile" => 1, "fuck" => 1];
|
||||
|
||||
public function e($t)
|
||||
{
|
||||
mysql_query('INSERT INTO `chat` (`text`,`city`,`to`,`type`,`new`,`time`) VALUES ("#' . date('d.m.Y') . ' %' . date('H:i:s') . ': <b>' . mysql_real_escape_string($t) . '</b>","capitalcity","Èãðîìèð","6","1","-1")');
|
||||
}
|
||||
|
||||
public function setOnline($online, $uid, $afk)
|
||||
{
|
||||
$add = 0;
|
||||
|
||||
if (time() - $online >= 1) {
|
||||
if (time() - $online < 60) {
|
||||
$add += time() - $online;
|
||||
} else {
|
||||
$add += 60;
|
||||
}
|
||||
}
|
||||
|
||||
if ($add > 0) {
|
||||
$on = mysql_fetch_array(mysql_query('SELECT * FROM `online` WHERE `uid` = "' . $uid . '" LIMIT 1'));
|
||||
if (isset($on['id'])) {
|
||||
$mt = 0;
|
||||
$lst = time();
|
||||
if (date('d', $on['lastUp']) != date('d', $lst)) {
|
||||
$on['time_today'] = $add;
|
||||
} else {
|
||||
$on['time_today'] += $add;
|
||||
}
|
||||
$add = $on['time_all'] + $add;
|
||||
mysql_query('UPDATE `online` SET `mainTime` = "' . $mt . '",`time_today` = "' . $on['time_today'] . '",`lastUp` = "' . $lst . '",`time_all` = "' . $add . '" WHERE `id` = "' . $on['id'] . '" LIMIT 1');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function mystr($string)
|
||||
{
|
||||
$str = strtolower($string);
|
||||
if (strtolower('S') != 's') {
|
||||
$ru = 'ÀÁÂÃÄŨÆÇÈÉÊËÌÍÎÐÏÑÒÓÔÕÖ×ØÙÚÜÛÝÞß';
|
||||
$ru2 = 'àáâãäå¸æçèéêëìíîðïñòóôõö÷øùúüûýþÿ';
|
||||
$en = 'QWERTYUIOPASDFGHJKLZXCVBNM';
|
||||
$en2 = 'qwertyuiopasdfghjklzxcvbnm';
|
||||
$i = 0;
|
||||
while ($i < 33) {
|
||||
if (isset($ru[$i])) {
|
||||
$str = strtr($str, $ru[$i], $ru2[$i]);
|
||||
}
|
||||
if (isset($en[$i])) {
|
||||
$str = strtr($str, $en[$i], $en2[$i]);
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
|
||||
public function spamFiltr($txt)
|
||||
{
|
||||
|
||||
$txt = str_replace('¸', 'å', $txt);
|
||||
|
||||
$nospam = 0;
|
||||
$txt = str_replace('>', '', $txt);
|
||||
$txt = str_replace('<', '', $txt);
|
||||
$txt = str_replace('"', '', $txt);
|
||||
$txt = $this->mystr($txt);
|
||||
$i = 0;
|
||||
while ($i <= count($this->sm)) {
|
||||
if (isset($this->sm[$i])) {
|
||||
$txt = preg_replace('/:' . $this->sm[$i] . ':/', "", $txt);
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
/* ôèëüòð */
|
||||
$spam = mysql_fetch_array(mysql_query('SELECT * FROM `spam_word` WHERE `id` = 1 LIMIT 1'));
|
||||
$spam = $spam['data'];
|
||||
//
|
||||
$testEN = preg_replace('/[^a-z]*/i', '', $txt);
|
||||
$testEN = preg_replace('/[^A-Z]*/i', '', $txt);
|
||||
$testEN2 = $txt;
|
||||
|
||||
$testEN2 = str_replace('"', '', $testEN2);
|
||||
$testEN2 = str_replace(' ', '', $testEN2);
|
||||
$testEN2 = str_replace('à', 'a', $testEN2);
|
||||
$testEN2 = str_replace('á', 'b', $testEN2);
|
||||
$testEN2 = str_replace('ñ', 'c', $testEN2);
|
||||
$testEN2 = str_replace('â', 'b', $testEN2);
|
||||
$testEN2 = str_replace('å', 'e', $testEN2);
|
||||
$testEN2 = str_replace('ò', 't', $testEN2);
|
||||
$testEN2 = str_replace('î', 'o', $testEN2);
|
||||
$testEN2 = str_replace('ð', 'p', $testEN2);
|
||||
$testEN2 = str_replace('ì', 'm', $testEN2);
|
||||
$testEN2 = str_replace('í', 'h', $testEN2);
|
||||
$testEN2 = str_replace('ó', 'y', $testEN2);
|
||||
$testEN2 = str_replace('ê', 'k', $testEN2);
|
||||
$testEN2 = str_replace('è', 'u', $testEN2);
|
||||
$testEN2 = str_replace('õ', 'x', $testEN2);
|
||||
$testEN2 = str_replace('ÿ', '9', $testEN2);
|
||||
$testEN2 = str_replace('()', 'o', $testEN2);
|
||||
$testEN2 = str_replace('0', 'o', $testEN2);
|
||||
$testEN2 = preg_replace('/[^a-z]*/i', '', $testEN2);
|
||||
$testEN2 = preg_replace('/[^A-Z]*/i', '', $testEN2);
|
||||
$testRU = preg_replace('/[^à-ÿ]*/i', '', $txt);
|
||||
$testRU = preg_replace('/[^À-ß]*/i', '', $txt);
|
||||
|
||||
$testRU2 = $txt;
|
||||
$testRU2 = str_replace('a', 'à', $testRU2);
|
||||
$testRU2 = str_replace('b', 'á', $testRU2);
|
||||
$testRU2 = str_replace('c', 'ñ', $testRU2);
|
||||
$testRU2 = str_replace('b', 'â', $testRU2);
|
||||
$testRU2 = str_replace('e', 'å', $testRU2);
|
||||
$testRU2 = str_replace('t', 'ò', $testRU2);
|
||||
$testRU2 = str_replace('o', 'î', $testRU2);
|
||||
$testRU2 = str_replace('p', 'ð', $testRU2);
|
||||
$testRU2 = str_replace('m', 'ì', $testRU2);
|
||||
$testRU2 = str_replace('h', 'í', $testRU2);
|
||||
$testRU2 = str_replace('y', 'ó', $testRU2);
|
||||
$testRU2 = str_replace('k', 'ê', $testRU2);
|
||||
$testRU2 = str_replace('x', 'õ', $testRU2);
|
||||
$testRU2 = str_replace('u', 'è', $testRU2);
|
||||
$testRU2 = str_replace('()', 'î', $testRU2);
|
||||
$testRU2 = str_replace('0', 'î', $testRU2);
|
||||
$testRU2 = preg_replace('/[^À-ÿ]*/i', ' ', $testRU2);
|
||||
$testRU2 = preg_replace('/[^À-ß]*/i', ' ', $testRU2);
|
||||
$i = 0;
|
||||
$spe = explode('|', $spam);
|
||||
while ($i <= count($spe)) {
|
||||
if (
|
||||
isset($spe[$i]) &&
|
||||
$spe[$i] != '' &&
|
||||
$spe[$i] != 'new-combats.com' &&
|
||||
(
|
||||
stristr($testEN, $spe[$i]) ||
|
||||
stristr($testRU, $spe[$i])
|
||||
)
|
||||
) {
|
||||
$nospam .= '%' . $spe[$i];
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
return $nospam;
|
||||
}
|
||||
|
||||
public function __clone()
|
||||
{
|
||||
trigger_error('Äóáëèðîâàíèå íå äîïóñêàåòñÿ.', E_USER_ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
$filter = new Filter();
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,405 +0,0 @@
|
||||
<?
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die('/index.php');
|
||||
}
|
||||
|
||||
function GetRealIp()
|
||||
{
|
||||
if (!empty($_SERVER['HTTP_CLIENT_IP']))
|
||||
{
|
||||
$ip=$_SERVER['HTTP_CLIENT_IP'];
|
||||
}
|
||||
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
|
||||
{
|
||||
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$ip=$_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
return $ip;
|
||||
}
|
||||
define('IP',GetRealIp());
|
||||
|
||||
if($_SERVER['HTTP_REFERER'] == 'https://new-combats.com/' && $_COOKIE['acomb1'] != '2') {
|
||||
setcookie('acomb1','1',time()+60*60*24*3);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
if(IP != '') {
|
||||
die('Ðåãèñòðàöèÿ âðåìåííî îòêëþ÷åíà. Èäåò âîññòàíîâëåíèå ïåðñîíàæåé.');
|
||||
}
|
||||
*/
|
||||
|
||||
class register
|
||||
{
|
||||
public function testLogin($v)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function en_ru($txt)
|
||||
{
|
||||
$g = false;
|
||||
$en = preg_match("/^(([0-9a-zA-Z _-])+)$/i", $txt);
|
||||
$ru = preg_match("/^(([0-9à-ÿÀ-ß _-])+)$/i", $txt);
|
||||
if(($ru && $en) || (!$ru && !$en))
|
||||
{
|
||||
$g = true;
|
||||
}
|
||||
return $g;
|
||||
}
|
||||
public function testStep()
|
||||
{
|
||||
global $c,$reg,$error,$filter,$chat,$reg_d,$noup,$youip;
|
||||
$stp = 1;
|
||||
if(isset($_POST['step']) && isset($reg['id']))
|
||||
{
|
||||
$upd = '';
|
||||
|
||||
$lr = mysql_fetch_array(mysql_query('SELECT `id`,`ipreg` FROM `users` WHERE `cityreg`="capitalcity" AND `timereg`>"'.(time()-60*60*1).'" AND `ipreg` = "'.mysql_real_escape_string(IP).'" LIMIT 1'));
|
||||
if(isset($_COOKIE['reg_capitalcity']) || (int)$_COOKIE['reg_capitalcity']>time() || isset($lr['id']))
|
||||
{
|
||||
$error .= 'Íåäàâíî ñ âàøåãî IP óæå ðåãèñòðèðîâàëñÿ ïåðñîíàæ. Ñ îäíîãî IP àäðåñà ðàçðåøåíà ðåãèñòðàöèÿ ïåðñîíàæåé íå ÷àùå, ÷åì ðàç â ÷àñ. Ïîïðîáóéòå ïîçæå.<br>'; $_POST['step'] = 1;
|
||||
}
|
||||
|
||||
if($error=='')
|
||||
{
|
||||
|
||||
$reg_bonus = false;
|
||||
/*if(isset($_POST['register_code']))
|
||||
{
|
||||
$cd = mysql_fetch_array(mysql_query('SELECT * FROM `register_code` WHERE `code` = "'.mysql_real_escape_string($_POST['register_code']).'" AND `time_finish` = "0" AND `use` = "0" LIMIT 1'));
|
||||
if(isset($cd['id']) && $cd['use']==0)
|
||||
{
|
||||
$reg_bonus = true;
|
||||
$upd = mysql_query('UPDATE `register_code` SET `use` = "'.$reg['id'].'",`time_start`="'.time().'" WHERE `id` = "'.$cd['id'].'" LIMIT 1');
|
||||
if($upd && $reg['id']>0)
|
||||
{
|
||||
$uz = mysql_fetch_array(mysql_query('SELECT `id`,`login` FROM `users` WHERE `id` = "'.mysql_real_escape_string($cd['uid']).'" LIMIT 1'));
|
||||
if(!isset($uz['id']))
|
||||
{
|
||||
$uz['login'] = '<i>Íåâèäèìêà</i>';
|
||||
}
|
||||
$error .= 'Âû óñïåøíî àêòèâèðîâàëè ïðèãëàøåíèå îò '.$uz['login'].'. Òåïåðü âû ìîæåòå çàðåãèñòðèðîâàòüñÿ. Êîä äåéñòâóåò òîëüêî íà ýòó ðåãèñòðàöèþ.<br>';
|
||||
mysql_query("UPDATE `items_users` SET `data`='info=Êîä ïðèãëàøåíèÿ: <b>".$cd['code']."</b><br>Ïðè óòåðè ïðèãëàøåíèÿ ðåãèñòðàöèÿ ïî äàííîìó êîäó áóäåò çàïðåùåíà.<br><div style=\"color:brown;\">Êòî-òî ðåãåñòðèðóåòñÿ ïî âàøåìó ïðèãëàøåíèþ. Äàòà: ".date('d.n.Y H:i',time())."</div>' WHERE `secret_id` = '".$cd['code']."' LIMIT 1");
|
||||
$cd['use'] = $reg['id'];
|
||||
|
||||
if($cd['time_create']<time()-60*60)
|
||||
{
|
||||
$error .= 'Ðåãèñòðàöèîííûé êîä ïðîñðî÷åí.<br>';
|
||||
$reg_bonus = false;
|
||||
}
|
||||
}else{
|
||||
$error .= 'Îøèáêà ïîäòâåðæäåíèÿ. Ïîïðîáóéòå ïîçæå...';
|
||||
}
|
||||
}else{
|
||||
$error .= 'Ðåãèñòðàöèîííûé êîä áûë èñïîëüçîâàí ðàíåå, ëèáî íå ñóùåñòâóåò.<br>';
|
||||
}
|
||||
}
|
||||
|
||||
$cd = mysql_fetch_array(mysql_query('SELECT * FROM `register_code` WHERE `use` = "'.$reg['id'].'" AND `time_finish` = "0" LIMIT 1'));
|
||||
if(!isset($cd['id']))
|
||||
{
|
||||
$reg_bonus = false;
|
||||
$error .= 'Ïðåäìåò íå íàéäåí. (ïðèãëàøåíèå â èíâåíòàðå ïîëüçîâàòåëÿ)<br>';
|
||||
}else{
|
||||
$reg_bonus = true;
|
||||
$cdi = mysql_fetch_array(mysql_query('SELECT * FROM `items_users` WHERE `secret_id` = "'.$cd['code'].'" AND `delete` = "0" AND `inShop` = "0" LIMIT 1'));
|
||||
if(!isset($cdi['id']))
|
||||
{
|
||||
$reg_bonus = false;
|
||||
$error .= 'Ïðåäìåò íå íàéäåí.';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//$reg_bonus = true;
|
||||
|
||||
//ðåãèñòðàöèÿ òðåáóåò ïðèãëàøåíèÿ
|
||||
if($reg_bonus==false)
|
||||
{
|
||||
$error .= '<form action="register.php" method="post">Ðåãèñòðàöèÿ òîëüêî ïî ïðèãëàøåíèþ. Ââåäèòå êîä ïðèãëàøåíèÿ:<br><input name="register_code" type="text" style="width:200px;"> <input type="submit" value="Ââåñòè êîä"></form>'; $_POST['step'] = 1;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
$reg_bonus = true;
|
||||
|
||||
if($_POST['step']>1)
|
||||
{
|
||||
//Çàïðåùåííûå ëîãèíû
|
||||
$nologin = array(0=>'àíãåë',1=>'angel',2=>'àäìèíèñòðàöèÿ',3=>'administration',4=>'Êîììåíòàòîð',5=>'Ìèðîçäàòåëü',6=>'Ìóñîðùèê',7=>'Ïàäàëüùèê',8=>'Ïîâåëèòåëü',9=>'Àðõèâàðèóñ',10=>'Ïåðåñìåøíèê',11=>'Âîëûíùèê',12=>'Ëîðä Ðàçðóøèòåëü',13=>'Ìèëîñåðäèå',14=>'Ñïðàâåäëèâîñòü',15=>'Èñêóøåíèå',16=>'Âîçíåñåíèå');
|
||||
$blacklist = "!@#$%^&*()\+¨¸|/'`\"";
|
||||
$sr = '_-éöóêåíãøùçõúôûâàïðîëäæýÿ÷ñìèòüáþ¸1234567890';
|
||||
$i = 0;
|
||||
while($i<count($nologin))
|
||||
{
|
||||
if(preg_match("/".$nologin[$i]."/i",$filter->mystr($reg_d[0])))
|
||||
{
|
||||
$error .= 'Âûáåðèòå, ïîæàëóéñòà, äðóãîé íèê.<br>'; $_POST['step'] = 1; $i = count($nologin);
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
$reg_d[0] = str_replace(' ',' ',$reg_d[0]);
|
||||
//Ëîãèí îò 4 äî 20 ñèìâîëîâ
|
||||
if(strlen($reg_d[0])>20)
|
||||
{
|
||||
$error .= 'Ëîãèí äîëæåí ñîäåðæàòü íå áîëåå 20 ñèìâîëîâ.<br>'; $_POST['step'] = 1;
|
||||
}
|
||||
if(strlen($reg_d[0])<4)
|
||||
{
|
||||
$error .= 'Ëîãèí äîëæåí ñîäåðæàòü íå ìåíåå 4 ñèìâîëîâ.<br>'; $_POST['step'] = 1;
|
||||
}
|
||||
//Îäèí àëôàâèò
|
||||
$er = $this->en_ru($reg_d[0]);
|
||||
if($er==true)
|
||||
{
|
||||
$error .= 'Â ëîãèíå ðàçðåøåíî èñïîëüçîâàòü òîëüêî áóêâû îäíîãî àëôàâèòà ðóññêîãî èëè àíãëèéñêîãî. Íåëüçÿ ñìåøèâàòü.<br>'; $_POST['step'] = 1;
|
||||
}
|
||||
//Çàïðåùåííûé ñèìâîëû
|
||||
if(strpos($sr,$reg_d[0]))
|
||||
{
|
||||
$error .= 'Ëîãèí ñîäåðæèò çàïðåùåííûå ñèìâîëû.<br>'; $_POST['step'] = 1;
|
||||
}
|
||||
//Ïåðñîíàæè â áàçå
|
||||
$log = mysql_fetch_array(mysql_query('SELECT `id` from `users` where `login`="'.mysql_real_escape_string($reg_d[0]).'" LIMIT 1'));
|
||||
$log2 = mysql_fetch_array(mysql_query('SELECT `id` from `lastNames` where `login`="'.mysql_real_escape_string($reg_d[0]).'" LIMIT 1'));
|
||||
if(isset($log['id']) || isset($log2['id']))
|
||||
{
|
||||
$error .= 'Ëîãèí '.$reg_d[0].' óæå çàíÿò, âûáåðèòå äðóãîé.<br>'; $_POST['step'] = 1;
|
||||
}
|
||||
//Ðàçäåëèòåëè
|
||||
if(substr_count($reg_d[0],' ')+substr_count($reg_d[0],'-')+substr_count($reg_d[0],'_')>2)
|
||||
{
|
||||
$error .= 'Íå áîëåå äâóõ ðàçäåëèòåëåé îäíîâðåìåííî (ïðîáåë, òèðå, íèæíåå ïîä÷åðêèâàíèå).<br>'; $_POST['step'] = 1;
|
||||
}
|
||||
$reg_d[0] = trim($reg_d[0],' ');
|
||||
|
||||
|
||||
if($_POST['step']!=1)
|
||||
{
|
||||
$stp = 2; $noup = 0;
|
||||
}
|
||||
}
|
||||
if($_POST['step']>2)
|
||||
{
|
||||
//ïðîâåðÿåì ïàðîëü
|
||||
if(strlen($reg_d[1])<6 || strlen($reg_d[1])>30)
|
||||
{
|
||||
$error .= 'Äëèíà ïàðîëÿ íå ìîæåò áûòü ìåíüøå 6 ñèìâîëîâ èëè áîëåå 30 ñèìâîëîâ.<br>'; $_POST['step'] = 2;
|
||||
}
|
||||
if($reg_d[1]!=$reg_d[2])
|
||||
{
|
||||
$error .= 'Â àíêåòå ïàðîëü íóæíî ââåñòè äâàæäû, äëÿ ïðîâåðêè. Âî âòîðîé ðàç âû åãî ââåëè íåâåðíî, áóäüòå âíèìàòåëüíåå.<br>'; $_POST['step'] = 2;
|
||||
}
|
||||
if(preg_match('/'.$reg_d[0].'/i',$reg_d[1]))
|
||||
{
|
||||
$error .= 'Ïàðîëü ñîäåðæèò ýëåìåíòû ëîãèíà.<br>'; $_POST['step'] = 2;
|
||||
}
|
||||
if($_POST['step']!=2)
|
||||
{
|
||||
$stp = 3; $noup = 0;
|
||||
}
|
||||
}
|
||||
if($_POST['step']>3)
|
||||
{
|
||||
//ïðîâåðÿåì e-mail
|
||||
if(strlen($reg_d[3])<6 || strlen($reg_d[3])>50)
|
||||
{
|
||||
$error .= 'E-mail íå ìîæåò áûòü êîðî÷å 6-õ ñèìâîëîâ è äëèíåå 50-òè.<br>'; $_POST['step'] = 3;
|
||||
}
|
||||
|
||||
if(!preg_match('#^[a-z0-9.!\#$%&\'*+-/=?^_`{|}~]+@([0-9.]+|([^\s]+\.+[a-z]{2,6}))$#si', $reg_d[3]))
|
||||
{
|
||||
$error .= 'Âû óêàçàëè ÿâíî îøèáî÷íûé E-mail.<br>'; $_POST['step'] = 3;
|
||||
}
|
||||
|
||||
$reg_d[4] = $chat->str_count($reg_d[4],30);
|
||||
$reg_d[5] = $chat->str_count($reg_d[5],30);
|
||||
|
||||
if($_POST['step']!=3)
|
||||
{
|
||||
$stp = 4; $noup = 0;
|
||||
}
|
||||
}
|
||||
if($_POST['step']>4)
|
||||
{
|
||||
//Èìÿ, Ïîë, Ãîðîä, Äåâèç è ò.ä.
|
||||
$er = $this->en_ru($reg_d[6]);
|
||||
if($er==true || strlen($reg_d[6])<2)
|
||||
{
|
||||
$error .= 'Óêàæèòå âàøå ðåàëüíîå èìÿ!<br>'; $_POST['step'] = 4;
|
||||
}
|
||||
|
||||
$reg_d[6] = $chat->str_count($reg_d[6],90);
|
||||
$reg_d[7] = round($reg_d[7]);
|
||||
$reg_d[8] = round($reg_d[8]);
|
||||
$reg_d[9] = round($reg_d[9]);
|
||||
|
||||
if($reg_d[7]<1 || $reg_d[7]>31 || $reg_d[8]<1 || $reg_d[8]>12 || $reg_d[9]<1920 || $reg_d[9]>2006)
|
||||
{
|
||||
$error .= 'Îøèáêà â íàïèñàíèè äíÿ ðîæäåíèÿ.<br>'; $_POST['step'] = 4;
|
||||
}
|
||||
|
||||
if($reg_d[15]!=0 && $reg_d[15]!=1)
|
||||
{
|
||||
$error .= 'Âû óêàçàëè íå âåðíûé ïîë.<br>'; $_POST['step'] = 4;
|
||||
}
|
||||
|
||||
if($reg_d[14]!='Black' && $reg_d[14]!='Blue' && $reg_d[14]!='Fuchsia' && $reg_d[14]!='Gray' && $reg_d[14]!='Green' && $reg_d[14]!='Maroon' && $reg_d[14]!='Navy' && $reg_d[14]!='Olive' && $reg_d[14]!='Purple' && $reg_d[14]!='Teal' && $reg_d[14]!='Orange' && $reg_d[14]!='Chocolate' && $reg_d[14]!='DarkKhaki' && $reg_d[14]!='SandyBrown')
|
||||
{
|
||||
$error .= 'Âû óêàçàëè íå âåðíûé öâåò ñîîáùåíèÿ â ÷àòå.<br>'; $_POST['step'] = 4;
|
||||
}
|
||||
|
||||
if($_POST['step']!=4)
|
||||
{
|
||||
$stp = 5; $noup = 0;
|
||||
}
|
||||
}
|
||||
if($_POST['step']>5)
|
||||
{
|
||||
//Ñîãëàøåíèå ñ çàêîíàìè
|
||||
if(!isset($_POST['law_'.$reg['id']]) || $_POST['law_'.$reg['id']]!='on')
|
||||
{
|
||||
$error .= 'Èçâèíèòå, áåç ïðèíÿòèÿ ïðàâèë íàøåãî êëóáà, âû íå ìîæåòå çàðåãèñòðèðîâàòü ñâîé ïåðñîíàæ.<br>'; $_POST['step'] = 5;
|
||||
}
|
||||
|
||||
if(!isset($_POST['law2_'.$reg['id']]) || $_POST['law2_'.$reg['id']]!='on')
|
||||
{
|
||||
$error .= 'Èçâèíèòå, áåç ïðèíÿòèÿ <u>Ñîãëàøåíèÿ î ïðåäîñòàâëåíèè ñåðâèñà èãðû '.$c['title'].'</u>, âû íå ìîæåòå çàðåãèñòðèðîâàòü ïåðñîíàæ.<br>'; $_POST['step'] = 5;
|
||||
}
|
||||
|
||||
if($_POST['code']!=$_SESSION['code'] || $_SESSION['code']<100 || $_POST['code']=='')
|
||||
{
|
||||
$error .= 'Îøèáêà ââåäåíèÿ êîäà.<br>'; $_POST['step'] = 5;
|
||||
}
|
||||
|
||||
if($_POST['step']!=5)
|
||||
{
|
||||
//çàâåðøåíèå ðåãèñòðàöèè è ðåäèðåêò â èãðó
|
||||
|
||||
if($filter->spamFiltr($reg_d[13])!=0)
|
||||
{
|
||||
$reg_d[13] = '';
|
||||
}
|
||||
if($filter->spamFiltr($reg_d[10])!=0)
|
||||
{
|
||||
$reg_d[10] = '';
|
||||
}
|
||||
if($filter->spamFiltr($reg_d[6])!=0)
|
||||
{
|
||||
$reg_d[6] = '';
|
||||
}
|
||||
|
||||
/*$mbid = mysql_fetch_array(mysql_query('select min(t1.id + 1)
|
||||
from users t1
|
||||
where t1.id + 1 not in (select id from users where id > 9999) AND t1.id > 9998'));
|
||||
//$mbid1 = mysql_fetch_array(mysql_query('SELECT `id` FROM `users` WHERE `id` = "'.$mbid[0].'" LIMIT 1'));
|
||||
//$mbid2 = mysql_fetch_array(mysql_query('SELECT `id` FROM `stats` WHERE `id` = "'.$mbid[0].'" LIMIT 1'));
|
||||
//if(isset($mbid1['id']) && isset($mbid2['id'])) {
|
||||
*/
|
||||
$mbid = 'NULL';
|
||||
/*}else{
|
||||
/* ÷èñòèì âîçìîæíûå äàííûå */
|
||||
/*if($mbid [0]> 0) {
|
||||
mysql_query('DELETE FROM `items_users` WHERE `uid` = "'.$mbid[0].'" LIMIT 1');
|
||||
mysql_query('DELETE FROM `eff_users` WHERE `uid` = "'.$mbid[0].'" LIMIT 1');
|
||||
mysql_query('DELETE FROM `bank` WHERE `uid` = "'.$mbid[0].'" LIMIT 1');
|
||||
mysql_query('DELETE FROM `users_delo` WHERE `uid` = "'.$mbid[0].'" LIMIT 1');
|
||||
mysql_query('DELETE FROM `actions` WHERE `uid` = "'.$mbid[0].'" LIMIT 1');
|
||||
}
|
||||
$mbid = $mbid[0];
|
||||
}*/
|
||||
|
||||
if($_COOKIE['b4n'] == '1') {
|
||||
setcookie('b4n','2',time()+60*60*24*3);
|
||||
$reg['referal'] = 'btl4.net';
|
||||
}elseif(isset($_COOKIE['hstreger'])) {
|
||||
$reg['referal'] = $_COOKIE['hstreger'];
|
||||
}
|
||||
|
||||
$ins = mysql_query("INSERT INTO `users` (`activ`,`fnq`,`host_reg`,`room`,`login`,`pass`,`ipreg`,`ip`,`city`,`cityreg`,`a1`,`q1`,`mail`,`name`,`bithday`,`sex`,`city_real`,`icq`,`icq_hide`,`deviz`,`chatColor`,`timereg`) VALUES (
|
||||
'0',
|
||||
'0',
|
||||
'".mysql_real_escape_string($reg['referal'])."',
|
||||
'0',
|
||||
'".$reg_d[0]."',
|
||||
'".md5($reg_d[1])."',
|
||||
'".IP."',
|
||||
'".IP."',
|
||||
'capitalcity',
|
||||
'capitalcity',
|
||||
'".$reg_d[4]."',
|
||||
'".$reg_d[5]."',
|
||||
'".$reg_d[3]."',
|
||||
'".$reg_d[6]."',
|
||||
'".$reg_d[7].".".$reg_d[8].".".$reg_d[9]."',
|
||||
'".$reg_d[15]."',
|
||||
'".$reg_d[10]."',
|
||||
'".$reg_d[11]."',
|
||||
'".$reg_d[12]."',
|
||||
'".$reg_d[13]."',
|
||||
'".$reg_d[14]."',
|
||||
'".time()."')");
|
||||
if($ins)
|
||||
{
|
||||
$uid = mysql_insert_id();
|
||||
|
||||
$refer = mysql_fetch_array(mysql_query('SELECT `id`,`login`,`banned`,`admin`,`level` FROM `users` WHERE `id` = "'.mysql_real_escape_string($reg['referal']).'" LIMIT 1'));
|
||||
if(isset($refer['id'])) {
|
||||
mysql_query("INSERT INTO `items_users` (`gift`,`uid`,`item_id`,`data`,`iznosMAX`,`geniration`,`maidin`,`time_create`) VALUES ('".$refer['login']."','".$uid."','3199','noodet=1|items_in_file=sunduk_new|var_id=1|open=1|noremont=1|nodelete=1|nosale=1',1,2,'capitalcity',".time().")");
|
||||
$text = '<font color=red>Âû ñòàëè âîñïèòàííèêîì èãðîêà "'.$refer['login'].'"!  èíâåíòàðå (ðàçäåë -ïðî÷åå-) âû íàéäåòå âñïîìîãàòåëüíûå ïðåäìåòû.</font>';
|
||||
mysql_query("INSERT INTO `chat` (`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`) VALUES ('capitalcity','0','','".$reg_d[0]."','".$text."','".time()."','11','0')");
|
||||
}
|
||||
|
||||
mysql_query("INSERT INTO `online` (`uid`,`timeStart`) VALUES ('".$uid."','".time()."')");
|
||||
mysql_query("INSERT INTO `stats` (`id`,`stats`) VALUES ('".$uid."','s1=3|s2=3|s3=3|s4=3|rinv=40|m9=5|m6=10')");
|
||||
//Äîáàâëÿåì ïðåäìåòû
|
||||
mysql_query("INSERT INTO `items_users` (`gift`,`uid`,`item_id`,`data`,`iznosMAX`,`geniration`,`maidin`,`time_create`) VALUES ('Ìèðîçäàòåëü','".$uid."','1','add_hpAll=3',10,2,'capitalcity',".time().")");
|
||||
mysql_query("INSERT INTO `items_users` (`gift`,`uid`,`item_id`,`data`,`iznosMAX`,`geniration`,`maidin`,`time_create`) VALUES ('Ìóñîðùèê','".$uid."','73','add_mib3=1|add_mab3=1|add_mib4=1|add_mab4=1',20,2,'capitalcity',".time().")");
|
||||
mysql_query("INSERT INTO `items_users` (`uid`,`item_id`,`data`,`iznosMAX`,`geniration`,`maidin`,`time_create`) VALUES ('".$uid."','724','moment=1|sudba=".mysql_real_escape_string($reg_d[0])."|moment_hp=100|nohaos=1|musor=2|noremont=1',100,2,'capitalcity',".time().")");
|
||||
mysql_query("INSERT INTO `items_users` (`uid`,`item_id`,`data`,`iznosMAX`,`geniration`,`maidin`,`time_create`) VALUES ('".$uid."','865','tr_lvl=1|sudba=".mysql_real_escape_string($reg_d[0])."|useOnLogin=1|musor=1|noremont=1',50,2,'capitalcity',".time().")");
|
||||
mysql_query("INSERT INTO `items_users` (`uid`,`item_id`,`data`,`iznosMAX`,`geniration`,`maidin`,`time_create`) VALUES ('".$uid."','4014','sudba=".mysql_real_escape_string($reg_d[0])."|noremont=1|usefromfile=1|musor=1|nodelete=1|nosale=1|expUpg=300000',1,2,'capitalcity',".time().")");
|
||||
|
||||
/*
|
||||
$text = 'Àäìèíèñòðàöèÿ ïðîåêòà: Æåëàåì ïðèÿòíîãî îáùåíèÿ, âåëèêèõ ïîáåä è íåçàáûâàåìûõ âïå÷àòëåíèé â íàøåé ñ âàìè èãðå! :-)';
|
||||
mysql_query("INSERT INTO `chat` (`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`) VALUES ('capitalcity','0','','".$reg_d[0]."','".$text."','".time()."','11','0')");
|
||||
$text = 'Âû ïîëó÷èëè ïðåäìåò [img[items/pot_cureHP100_20.gif]][1] "Çåëüå Æèçíè", îí íàõîäèòñÿ â èíâåíòàðå, â ðàçäåëå "ýëèêñèðû"';
|
||||
mysql_query("INSERT INTO `chat` (`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`) VALUES ('capitalcity','0','','".$reg_d[0]."','".$text."','".time()."','11','0')");
|
||||
$text = 'Âû ïîëó÷èëè ïðåäìåò [img[items/pal_button8.gif]][1] "Íàïàäåíèå", îí íàõîäèòñÿ â èíâåíòàðå, â ðàçäåëå "çàêëÿòèÿ"';
|
||||
mysql_query("INSERT INTO `chat` (`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`) VALUES ('capitalcity','0','','".$reg_d[0]."','".$text."','".time()."','11','0')");
|
||||
$text = 'Âû ïîëó÷èëè ïðåäìåò [img[items/qsvit_hran.gif]][1] "Ñâèòîê Îáó÷åíèÿ", îí íàõîäèòñÿ â èíâåíòàðå, â ðàçäåëå "çàêëÿòèÿ". <b><font color=red>Èñïîëüçîâàâ äàííûé ñâèòîê Âû ïîëó÷èòå +300.000 åä. îïûòà</font></b>';
|
||||
mysql_query("INSERT INTO `chat` (`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`) VALUES ('capitalcity','0','','".$reg_d[0]."','".$text."','".time()."','11','0')");
|
||||
*/
|
||||
|
||||
if(isset($_COOKIE['login']) || isset($_COOKIE['pass']))
|
||||
{
|
||||
setcookie('login','',time()-60*60*24,'',$c['host']);
|
||||
setcookie('pass','',time()-60*60*24,'',$c['host']);
|
||||
}
|
||||
setcookie('login',$reg_d[0],time()+60*60*24*7,'',$c['host']);
|
||||
setcookie('pass',md5($reg_d[1]),time()+60*60*24*7,'',$c['host']);
|
||||
setcookie('auth',md5($reg_d[1].'AUTH'.IP),time()+60*60*24*365,'',$c['host']);
|
||||
setcookie('reg_capitalcity',true,time()+60*60,'',$c['host']);
|
||||
$chat->send('',1,'capitalcity','','','Âàñ ïðèâåòñòâóåò íîâè÷îê: [login:'.$reg_d[0].']',time(),12,1,0,0);
|
||||
mysql_query("UPDATE `users` SET `online`='".time()."' WHERE `uid` = '".$uid."' LIMIT 1");
|
||||
mysql_query("UPDATE `register_code` SET `reg_id`='".$uid."',`time_finish`='".time()."' WHERE `id` = '".$cd['id']."' LIMIT 1");
|
||||
mysql_query("UPDATE `items_users` SET `delete`='".time()."' WHERE `secret_id` = '".$cd['code']."' LIMIT 1");
|
||||
mysql_query('DELETE FROM `register` WHERE `id` = "'.$reg['id'].'" LIMIT 1');
|
||||
header('location: /bk');
|
||||
die('Ðåãèñòàðöèÿ ïðîøëà óñïåøíî...');
|
||||
}else{
|
||||
$error .= 'Îøèáêà ðåãèñòðàöèè. Ïîïðîáóéòå ïîçæå...<br>';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return $stp;
|
||||
}
|
||||
}
|
||||
|
||||
$r = new register;
|
||||
?>
|
@ -1,37 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Insallah\Db;
|
||||
|
||||
if (!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
|
||||
class season
|
||||
{
|
||||
|
||||
public static $yy = [
|
||||
1 => [1, '01', 'ίνβΰπό', 'ίνβΰπόρκθι'],
|
||||
2 => [2, '02', 'Τεβπΰλό', 'Τεβπΰλόρκθι'],
|
||||
3 => [3, '03', 'Μΰπς', 'Μΰπςξβρκθι'],
|
||||
4 => [4, '04', 'ΐοπελό', 'ΐοπελόρκθι'],
|
||||
5 => [5, '05', 'Μΰι', 'Μΰιρκθι'],
|
||||
6 => [6, '06', 'Θώνό', 'Θώνόρκθι'],
|
||||
7 => [7, '07', 'Θώλό', 'Θώλόρκθι'],
|
||||
8 => [8, '08', 'ΐβγσρς', 'ΐβγσρςξβρκθι'],
|
||||
9 => [9, '09', 'Ρενς<CEBD>από', 'Ρενς<CEBD>απόρκθι'],
|
||||
10 => [10, '10', 'Ξκς<CEBA>από', 'Ξκς<CEBA>απόρκθι'],
|
||||
11 => [11, '11', 'Νξ<CE9D>από', 'Νξ<CE9D>απόρκθι'],
|
||||
12 => [12, '12', 'Δεκΰαπό', 'Δεκΰαπόρκθι'],
|
||||
];
|
||||
|
||||
public static $date = [], $m = [];
|
||||
|
||||
public static function data($val)
|
||||
{
|
||||
self::$m = Db::getRow('select * from sss_m where id = ?', [$val]);
|
||||
if (self::$m['s'] != self::$date['m']) {
|
||||
self::$m = [];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -1,197 +0,0 @@
|
||||
<?
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
class telegram
|
||||
{
|
||||
private static $flag_one;
|
||||
|
||||
public static function start()
|
||||
{
|
||||
if (!isset(self::$flag_one))
|
||||
{
|
||||
$c = __CLASS__;
|
||||
self::$flag_one = new $c($server);
|
||||
}
|
||||
return self::$flag_one;
|
||||
}
|
||||
|
||||
public function send($to,$from,$text,$time,$fromType)
|
||||
{
|
||||
mysql_query('START TRANSACTION');
|
||||
$ins = mysql_query("INSERT INTO `telegram` (`uid`,`from`,`fromType`,`text`,`time`) VALUES ('".$to."','".$from."','".$fromType."','".mysql_real_escape_string(AddSlashes(HtmlSpecialChars($text,NULL,'cp1251')))."','".time()."')");
|
||||
mysql_query('COMMIT');
|
||||
if($ins)
|
||||
{
|
||||
return mysql_insert_id();
|
||||
}
|
||||
}
|
||||
|
||||
public function readMsg($id,$uid)
|
||||
{
|
||||
$msg = mysql_fetch_array(mysql_query('SELECT * FROM `telegram` WHERE `id`="'.$id.'" AND `uid`="'.$uid.'" LIMIT 1 FOR UPDATE'));
|
||||
if(isset($msg['id']))
|
||||
{
|
||||
mysql_query('START TRANSACTION');
|
||||
$upd = mysql_query('UPDATE `telegram` SET `read`="1" WHERE `id` = "'.$id.'" AND `uid`="'.$uid.'" LIMIT 1');
|
||||
mysql_query('COMMIT');
|
||||
if($upd && $msg['lock']==0)
|
||||
{
|
||||
echo '<script>readGood('.$id.',"https://img.new-combats.com/i/misc/read.gif"); nobtext('.$id.');</script>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function lockMsg($id,$uid)
|
||||
{
|
||||
$msg = mysql_fetch_array(mysql_query('SELECT * FROM `telegram` WHERE `id`="'.$id.'" AND `uid`="'.$uid.'" LIMIT 1 FOR UPDATE'));
|
||||
if(isset($msg['id']))
|
||||
{
|
||||
$lock = array(0=>1,1=>0);
|
||||
mysql_query('START TRANSACTION');
|
||||
$upd = mysql_query('UPDATE `telegram` SET `read`="1",`lock`="'.$lock[$msg['lock']].'" WHERE `id` = "'.$id.'" AND `uid`="'.$uid.'" LIMIT 1');
|
||||
mysql_query('COMMIT');
|
||||
if($upd)
|
||||
{
|
||||
if($lock[$msg['lock']]==1)
|
||||
{
|
||||
echo '<script>readGood('.$id.',"https://img.new-combats.com/i/lock_message.gif"); nobtext('.$id.');</script>';
|
||||
}else{
|
||||
echo '<script>readGood('.$id.',"https://img.new-combats.com/i/misc/read.gif");</script>';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function deleteMsgAll($uid,$pg)
|
||||
{
|
||||
mysql_query('START TRANSACTION');
|
||||
$upd = mysql_query('UPDATE `telegram` SET `delete`="1" WHERE `uid`="'.$uid.'" AND `read`="1" AND `lock`="0" AND `delete`="0"');
|
||||
mysql_query('COMMIT');
|
||||
if($upd)
|
||||
{
|
||||
echo '<script> getPage('.$pg.');</script>';
|
||||
}
|
||||
}
|
||||
|
||||
public function deleteMsg($id,$uid,$pg)
|
||||
{
|
||||
$msg = mysql_fetch_array(mysql_query('SELECT * FROM `telegram` WHERE `id`="'.$id.'" AND `uid`="'.$uid.'" LIMIT 1 FOR UPDATE'));
|
||||
if(isset($msg['id']))
|
||||
{
|
||||
mysql_query('START TRANSACTION');
|
||||
$upd = mysql_query('UPDATE `telegram` SET `delete`="1" WHERE `id` = "'.$id.'" AND `uid`="'.$uid.'" LIMIT 1');
|
||||
mysql_query('COMMIT');
|
||||
if($upd && $msg['delete']==0 && $msg['lock']==0)
|
||||
{
|
||||
echo '<script> getPage('.$pg.');</script>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function addMsgTable($id,$from,$fromType,$ttl,$time,$lock,$read,$pg)
|
||||
{
|
||||
$i1 = '<img id="msgImg'.$id.'" src="https://img.new-combats.com/i/misc/unread.gif">';
|
||||
if($read==1)
|
||||
{
|
||||
$i1 = '<img id="msgImg'.$id.'" src="https://img.new-combats.com/i/misc/read.gif">';
|
||||
}
|
||||
|
||||
if($lock==1)
|
||||
{
|
||||
$i1 = '<img id="msgImg'.$id.'" src="https://img.new-combats.com/i/lock_message.gif">';
|
||||
}
|
||||
|
||||
if($fromType==1)
|
||||
{
|
||||
$from = '<a href="info/login='.$from.'" target="_blank" title="Èíô. î '.$from.'">'.$from.'</a>';
|
||||
}elseif($read==0)
|
||||
{
|
||||
$from = '<b id="tablePostTxtB'.$id.'">'.$from.'</b>';
|
||||
}
|
||||
|
||||
echo '<table id="tablePost'.$id.'" width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="30" class="underLine2"><div align="center">'.$i1.'</div></td>
|
||||
<td width="200" id="tablePostTxt'.$id.'" class="underLine2">'.$from.'</td>
|
||||
<td width="290" class="underLine2"><a onClick="openPost('.$id.'); return false;" href="#read'.$id.'" title="Ïðî÷èòàòü ñîîáùåíèå">'.substr($ttl,0,30).'...</a></td>
|
||||
<td width="120" class="underLine2">'.date('d.m.y H:i',$time).'</td>
|
||||
<td width="30" class="underLine2"><div align="center"><IMG style="cursor:pointer;" onClick="lockPost('.$id.');" title="Áëîêèðîâêà ñîîáùåíèÿ" src="https://img.new-combats.com/i/locked.gif"></div></td>
|
||||
<td width="30" class="underLine2"><div align="center"><IMG style="cursor:pointer;" onClick="deletePost('.$id.','.$pg.');" title="Óäàëèòü ñîîáùåíèå" src="https://img.new-combats.com/i/clear.gif" width="11" height="11"></div></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="readMSG'.$id.'" style="display:none;" class="unreadMSG">'.$ttl.'</div>';
|
||||
}
|
||||
|
||||
public function seeMsg($uid,$page,$maxPages)
|
||||
{
|
||||
$page = ceil($page);
|
||||
echo '<div id="jx" style="display:none;"></div>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="30" class="underLine"><div align="center"></div></td>
|
||||
<td width="200" class="underLine"><b>Îò êîãî</b></td>
|
||||
<td width="290" class="underLine"><b>Çàãîëîâîê ñîîáùåíèÿ</b></td>
|
||||
<td width="120" class="underLine"><b>Êîãäà</b></td>
|
||||
<td width="30" class="underLine"><div align="center"><IMG alt="Áëîêèðîâêà ñîîáùåíèé" src="https://img.new-combats.com/i/lock_message.gif"></div></td>
|
||||
<td width="30" class="underLine"><div align="center"><IMG style="cursor:pointer;" onClick="deletePostAll('.$page.');" alt="Óäàëèòü âñå ïðî÷èòàííûå ñîîáùåíèÿ" src="https://img.new-combats.com/i/clear.gif" width="11" height="11"></div></td>
|
||||
</tr>
|
||||
</table>';
|
||||
|
||||
$i = mysql_fetch_array(mysql_query('SELECT COUNT(*) FROM `telegram` WHERE `uid`="'.$uid.'" AND `delete`="0"'));
|
||||
$pg = ceil($i[0]/$maxPages);
|
||||
if($page<0)
|
||||
{
|
||||
$page = 0;
|
||||
}elseif($page>$pg)
|
||||
{
|
||||
$page = $pg;
|
||||
}
|
||||
|
||||
if($i[0]>0)
|
||||
{
|
||||
$sp = mysql_query('SELECT * FROM `telegram` WHERE `uid`="'.$uid.'" AND `delete`="0" ORDER BY `id` DESC LIMIT '.(($page-1)*$maxPages).' , '.$maxPages.'');
|
||||
while($pl = mysql_fetch_array($sp))
|
||||
{
|
||||
$this->addMsgTable($pl['id'],$pl['from'],$pl['fromType'],$pl['text'],$pl['time'],$pl['lock'],$pl['read'],$page);
|
||||
}
|
||||
}
|
||||
|
||||
if($i[0]==0)
|
||||
{
|
||||
echo '<div class="noMsg" align="center">Ñîîáùåíèé íåò</div>';
|
||||
}elseif($i[0]>$maxPages){
|
||||
$pages = '';
|
||||
$i = 1;
|
||||
while($i<=$pg)
|
||||
{
|
||||
$cls = '';
|
||||
if($page==$i)
|
||||
{
|
||||
$cls = 'style="color:#6f0000; font-size:14px;"';
|
||||
}
|
||||
$pages .= ' <a '.$cls.' onClick="getPage('.$i.'); return false;" href="#page'.$i.'">'.$i.'</a>';
|
||||
$i++;
|
||||
}
|
||||
echo '<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="30"><div align="center"></div></td>
|
||||
<td width="200">Ñòðàíèöû: '.$pages.'</td>
|
||||
<td width="240"></td>
|
||||
<td width="170"></td>
|
||||
<td width="30"></td>
|
||||
<td width="30"></td>
|
||||
</tr>
|
||||
</table>';
|
||||
}
|
||||
}
|
||||
|
||||
public function __clone()
|
||||
{
|
||||
trigger_error('Äóáëèðîâàíèå íå äîïóñêàåòñÿ.', E_USER_ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@ -1,539 +0,0 @@
|
||||
<?
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
class turnir {
|
||||
|
||||
public $info,$user,$name = array(
|
||||
0 => 'Âûæèòü ëþáîé öåíîé',
|
||||
1 => 'Êàæäûé ñàì çà ñåáÿ',
|
||||
2 => 'Çàõâàò êëþ÷à'
|
||||
);
|
||||
|
||||
public function start() {
|
||||
global $c,$u;
|
||||
$this->info = mysql_fetch_array(mysql_query('SELECT * FROM `turnirs` WHERE `id` = "'.$u->info['inTurnirnew'].'" LIMIT 1'));
|
||||
$this->user = mysql_fetch_array(mysql_query('SELECT * FROM `users_turnirs` WHERE `turnir` = "'.$u->info['inTurnirnew'].'" AND `bot` = "'.$u->info['id'].'" LIMIT 1'));
|
||||
}
|
||||
|
||||
public function startTurnir() {
|
||||
global $c,$u;
|
||||
$row = mysql_fetch_array(mysql_query('SELECT COUNT(*) FROM `users` WHERE `win` = "0" AND `lose` = "0" AND `nich` = "0"'));
|
||||
if($row[0] > 0 && $this->info['status'] != 3) {
|
||||
mysql_query('UPDATE `turnirs` SET `status` = "3" WHERE `id` = "'.$this->info['id'].'" LIMIT 1');
|
||||
//Ñîçäàíèå ïîåäèíêà
|
||||
mysql_query('INSERT INTO `battle` (`city`,`time_start`,`timeout`,`type`,`turnir`) VALUES ("'.$u->info['city'].'","'.time().'","60","1","'.$this->info['id'].'")');
|
||||
$uri = mysql_insert_id();
|
||||
//Çàêèäûâàåì ïåðñîíàæåé â ïîåäèíîê
|
||||
mysql_query('UPDATE `users` SET `battle` = "'.$uri.'" WHERE `inUser` = "0" AND `inTurnirnew` = "'.$this->info['id'].'"');
|
||||
//Îáîçíà÷àåì çàâåðøåíèå òóðíèðà ïðè âûõîäå
|
||||
die('Ïåðåéòèäå â ðàçäåë "ïîåäèíêè"...');
|
||||
}else{
|
||||
if($this->info['status'] == 3) {
|
||||
$this->finishTurnir();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function finishTurnir() {
|
||||
global $c,$u;
|
||||
$this->info = mysql_fetch_array(mysql_query('SELECT * FROM `turnirs` WHERE `id` = "'.$u->info['inTurnirnew'].'" LIMIT 1'));
|
||||
//mysql_query('UPDATE `users` SET `inUser` = 0, `inTurnirnew` = 0 WHERE `inTurnirnew` = '.$this->info['id'].' AND `inUser` > 0 LIMIT '.$this->info['users_in']);
|
||||
if($this->info['status'] == 3) {
|
||||
$win = '';
|
||||
$lose = '';
|
||||
$sp = mysql_query('SELECT * FROM `users_turnirs` WHERE `turnir` = "'.$this->info['id'].'" ORDER BY `points` DESC');
|
||||
while($pl = mysql_fetch_array($sp)) {
|
||||
mysql_query('DELETE FROM `users_turnirs` WHERE `turnir` = "'.$this->info['id'].'"');
|
||||
$inf = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `id` = "'.$pl['uid'].'" LIMIT 1'));
|
||||
$bot = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `id` = "'.$pl['bot'].'" LIMIT 1'));
|
||||
if(isset($inf['id'],$bot['id'])) {
|
||||
//âûäàåì ïðèçû è ò.ä
|
||||
mysql_query('DELETE FROM `users` WHERE `id` = "'.$bot['id'].'" LIMIT 1');
|
||||
mysql_query('DELETE FROM `stats` WHERE `id` = "'.$bot['id'].'" LIMIT 1');
|
||||
mysql_query('DELETE FROM `items_users` WHERE `uid` = "'.$bot['id'].'" LIMIT 1000');
|
||||
mysql_query('DELETE FROM `eff_users` WHERE `uid` = "'.$bot['id'].'" LIMIT 1000');
|
||||
}
|
||||
|
||||
if($pl['team'] == $this->info['winner'] && $this->info['winner'] != 0) {
|
||||
|
||||
$inf['add_expn'] = 3000;
|
||||
|
||||
$inf['add_expp'] = array(
|
||||
0,
|
||||
1,
|
||||
5,
|
||||
10,
|
||||
15,
|
||||
25,
|
||||
35,
|
||||
70,
|
||||
100,
|
||||
150,
|
||||
200,
|
||||
300,
|
||||
500,
|
||||
700,
|
||||
1000
|
||||
);
|
||||
|
||||
//$inf['add_expn'] = floor($inf['add_expn']/100*$inf['add_expp'][$inf['level']]);
|
||||
//$inf['add_expn'] = floor($inf['add_expn']/100*$inf['add_expp'][7]);
|
||||
//ïîëó÷àåì îïûò (ñ 0 ïî 12 ëâë)
|
||||
$inf['add_expn'] = array( 10 , 30 , 55 , 62 , 92 , 180 , 350 , 1350 , 4500 , 7000 , 21000 , 30000 , 35000 );
|
||||
$inf['add_expn'] = $inf['add_expn'][$inf['level']];
|
||||
|
||||
mysql_query('UPDATE `users` SET `win` = `win` + 1,`win_t` = `win_t` + 1 WHERE `id` = "'.$inf['id'].'" LIMIT 1');
|
||||
mysql_query('UPDATE `stats` SET `exp` = `exp` + '.$inf['add_expn'].' WHERE `id` = "'.$inf['id'].'" LIMIT 1');
|
||||
$win .= '<b>'.$inf['login'].'</b>, ';
|
||||
|
||||
$r = 'Òóðíèð çàâåðøåí. Âû ÿâëÿåòåñü ïîáåäèòåëåì òóðíèðà, ïîëó÷åíî îïûòà: <b>'.$inf['add_expn'].'</b>.';
|
||||
|
||||
/*if( $this->info['users_in'] >= 10 ) {
|
||||
$r .= '  òóðíèðå ñîáðàëîñü 10 èëè áîëåå ÷åëîâåê: <b>×åê íà 1 åêð.</b> äîáàâëåí ê Âàì â èíâåíòàðü.';
|
||||
$u->addItem(4393,$inf['id'],'');
|
||||
}*/
|
||||
|
||||
mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`) VALUES ('1','capitalcity','".$inf['room']."','','".$inf['login']."','".$r."','".time()."','6','0')");
|
||||
}elseif($pl['team'] != $this->info['winner'] && $this->info['winner'] != 0) {
|
||||
mysql_query('UPDATE `users` SET `lose` = `lose` + 1,`lose_t` = `lose_t` + 1 WHERE `id` = "'.$inf['id'].'" LIMIT 1');
|
||||
|
||||
$lose .= '<b>'.$inf['login'].'</b>, ';
|
||||
|
||||
}else{
|
||||
mysql_query('UPDATE `users` SET `nich` = `nich` + 1 WHERE `id` = "'.$inf['id'].'" LIMIT 1');
|
||||
}
|
||||
mysql_query('DELETE FROM `users_turnirs` WHERE `uid` = "'.$inf['id'].'" LIMIT 1');
|
||||
}
|
||||
mysql_query('UPDATE `users` SET `inUser` = "0",`inTurnirnew` = "0" WHERE `inTurnirnew` = "'.$this->info['id'].'" LIMIT '.$this->info['users_in']);
|
||||
mysql_query('UPDATE `turnirs` SET `chat` = 4 , `winner` = -1,`users_in` = 0,`status` = 0,`winner` = -1,`step` = 0,`time` = "'.(time()+$this->info['time2']).'",`count` = `count` + 1 WHERE `id` = '.$this->info['id'].' LIMIT 1');
|
||||
|
||||
if($win != '') {
|
||||
$win = rtrim($win,', ');
|
||||
$lose = rtrim($lose,', ');
|
||||
$win = 'Ïîáåäèòåëè òóðíèðà: '.$win.'. Ïðîèãðàâøàÿ ñòîðîíà: '.$lose.'. Ñëåäóþùèé òóðíèð íà÷íåòñÿ ÷åðåç '.$u->timeOut($this->info['time2']).' ('.date('d.m.Y H:i',(time()+$this->info['time2'])).').';
|
||||
}else{
|
||||
$win = 'Ïîáåäèòåëè òóðíèðà îòñóòñòâóåò. Ñëåäóþùèé òóðíèð íà÷íåòñÿ ÷åðåç '.$u->timeOut($this->info['time2']).' ('.date('d.m.Y H:i',(time()+$this->info['time2'])).').';
|
||||
}
|
||||
$r = '<font color=black><b>Òóðíèð çàâåðøåí.</b></font> '.$win;
|
||||
mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`) VALUES ('1','capitalcity','','','','".$r."','".time()."','6','0')");
|
||||
}
|
||||
}
|
||||
|
||||
public function locationSee() {
|
||||
global $c,$u;
|
||||
|
||||
$r = '';
|
||||
|
||||
$tm1 = '';
|
||||
|
||||
$tm2 = '';
|
||||
|
||||
$noitm = array(
|
||||
869 => 1,
|
||||
1246 => 1,
|
||||
155 => 1,
|
||||
1245 => 1,
|
||||
678 => 1
|
||||
);
|
||||
|
||||
if($this->info['step'] != 3 && $this->info['step'] != 0) {
|
||||
//ïîëó÷åíèå êîìïëåêòà
|
||||
if(isset($_GET['gocomplect']) && $this->user['points'] < 2) {
|
||||
$aso = explode(',',$this->user['items']);
|
||||
$ast = explode('-',$_GET['gocomplect']);
|
||||
$asg = array();
|
||||
$asj = array();
|
||||
$asgp = array();
|
||||
|
||||
$i = 0;
|
||||
while($i < count($aso)) {
|
||||
if($aso[$i] > 0) {
|
||||
$asg[$aso[$i]] = true;
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
$i = 0; $j = 0; $noitm = 0;
|
||||
$addi = 1;
|
||||
while($i < count($ast)) {
|
||||
if($ast[$i] > 0) {
|
||||
if($asg[$ast[$i]] != true) {
|
||||
$noitm++;
|
||||
}
|
||||
$itm = mysql_fetch_array(mysql_query('SELECT `id`,`inSlot`,`price1` FROM `items_main` WHERE `id` = "'.mysql_real_escape_string($ast[$i]).'" LIMIT 1'));
|
||||
if(isset($itm['id'])) {
|
||||
$itm2 = mysql_fetch_array(mysql_query('SELECT `iid`,`price_1` FROM `items_shop` WHERE `item_id` = "'.mysql_real_escape_string($ast[$i]).'" AND `kolvo` > 0 LIMIT 1'));
|
||||
if($itm2['price_1'] > $itm['price1']) {
|
||||
$itm['price1'] = $itm2['price_1'];
|
||||
}
|
||||
if($itm['inSlot'] == 3) {
|
||||
$asg[$itm['inSlot']][count($asg[$itm['inSlot']])] = $itm['id'];
|
||||
$asgp[$itm['inSlot']][count($asgp[$itm['inSlot']])] = $itm['price1'];
|
||||
$j++;
|
||||
}elseif($itm['inSlot'] == 10) {
|
||||
$asg[$itm['inSlot']][count($asg[$itm['inSlot']])] = $itm['id'];
|
||||
$asgp[$itm['inSlot']][count($asgp[$itm['inSlot']])] = $itm['price1'];
|
||||
$j++;
|
||||
}else{
|
||||
$asg[$itm['inSlot']] = $itm['id'];
|
||||
$asp[$itm['inSlot']] = $itm['price1'];
|
||||
$j++;
|
||||
}
|
||||
}
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
if($noitm > 0) {
|
||||
echo 'Èñïîëüçîâàíèå áàãîâ êàðàåòñÿ çàêîíîì!';
|
||||
$addi = 0;
|
||||
}elseif(count($asg[3]) > 2) {
|
||||
echo 'Âû âûáðàëè ñëèøêîì ìíîãî ïðåäìåòîâ, âûáåðèòå òîëüêî äâà îðóæèÿ è îäèí ùèò';
|
||||
$addi = 0;
|
||||
}elseif(count($asg[10]) > 3) {
|
||||
echo 'Âû âûáðàëè ñëèøêîì ìíîãî ïðåäìåòîâ, âûáåðèòå òîëüêî òðè êîëüöà';
|
||||
$addi = 0;
|
||||
}elseif($j > 16) {
|
||||
echo 'Âû âûáðàëè ñëèøêîì ìíîãî ïðåäìåòîâ';
|
||||
$addi = 0;
|
||||
}elseif($j < 1) {
|
||||
echo 'Âûáåðèòå õîòÿ áû îäèí ïðåäìåò';
|
||||
$addi = 0;
|
||||
}
|
||||
|
||||
//$addi = 0;
|
||||
|
||||
if($addi == 1) {
|
||||
|
||||
$i = 0;
|
||||
while($i <= 17) {
|
||||
if($i == 10) {
|
||||
if($asg[$i][0] > 0) {
|
||||
$u->addItem($asg[$i][0],$u->info['id']);
|
||||
$this->user['points'] += 1+round($asgp[$i][0]);
|
||||
}
|
||||
if($asg[$i][1] > 0) {
|
||||
$u->addItem($asg[$i][1],$u->info['id']);
|
||||
$this->user['points'] += 1+round($asgp[$i][1]);
|
||||
}
|
||||
if($asg[$i][2] > 0) {
|
||||
$u->addItem($asg[$i][2],$u->info['id']);
|
||||
$this->user['points'] += 1+round($asgp[$i][2]);
|
||||
}
|
||||
}elseif($i == 3) {
|
||||
if($asg[$i][0] > 0) {
|
||||
$u->addItem($asg[$i][0],$u->info['id']);
|
||||
$this->user['points'] += 1+round($asgp[$i][0]);
|
||||
}
|
||||
if($asg[$i][1] > 0) {
|
||||
$u->addItem($asg[$i][1],$u->info['id']);
|
||||
$this->user['points'] += 1+round($asgp[$i][1]);
|
||||
}
|
||||
}elseif($asg[$i] > 0) {
|
||||
$u->addItem($asg[$i],$u->info['id']);
|
||||
$this->user['points'] += 1+round($asgp[$i]);
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
mysql_query('UPDATE `users_turnirs` SET `points` = "'.$this->user['points'].'",`items` = "0" WHERE `bot` = "'.$u->info['id'].'" LIMIT 1');
|
||||
mysql_query('UPDATE `stats` SET `ability` = "100",`skills` = "10" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
||||
mysql_query('UPDATE `users` SET `level` = "12" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
||||
mysql_query('UPDATE `turnirs` SET `step` = "0" WHERE `id` = "'.$this->info['id'].'" LIMIT 1');
|
||||
|
||||
$this->info['step'] = 0;
|
||||
$this->info['items'] = '0';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if($this->info['step'] == 3) {
|
||||
$this->finishTurnir();
|
||||
}elseif($this->info['step'] == 0) {
|
||||
//ðàñïðåäåëÿåì êîìàíäû
|
||||
$po = array(0,0);
|
||||
$sp = mysql_query('SELECT * FROM `users_turnirs` WHERE `turnir` = "'.$this->info['id'].'" AND `points` > 3 ORDER BY `points` DESC LIMIT '.$this->info['users_in']);
|
||||
$tmr = rand(1,2);
|
||||
if($tmr == 1) {
|
||||
$tmr = array(2,1);
|
||||
}else{
|
||||
$tmr = array(1,2);
|
||||
}
|
||||
while($pl = mysql_fetch_array($sp)) {
|
||||
$inf = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `id` = "'.$pl['uid'].'" LIMIT 1'));
|
||||
$bot = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `id` = "'.$pl['bot'].'" LIMIT 1'));
|
||||
if(isset($inf['id'],$bot['id'])) {
|
||||
if($po[1] == $po[2]) {
|
||||
$tm = rand(1,2);
|
||||
}elseif($po[1] > $po[2]) {
|
||||
$tm = 2;
|
||||
}else{
|
||||
$tm = 1;
|
||||
}
|
||||
//$tm = $tmr[$tm];
|
||||
$bot['team'] = $tm;
|
||||
$po[$bot['team']] += $pl['points'];
|
||||
mysql_query('UPDATE `stats` SET `team` = "'.$bot['team'].'" WHERE `id` = "'.$bot['id'].'" LIMIT 1');
|
||||
mysql_query('UPDATE `users_turnirs` SET `team` = "'.$bot['team'].'" WHERE `id` = "'.$pl['id'].'" LIMIT 1');
|
||||
}
|
||||
}
|
||||
mysql_query('UPDATE `turnirs` SET `step` = "1" WHERE `id` = "'.$this->info['id'].'" LIMIT 1');
|
||||
}
|
||||
|
||||
$sp = mysql_query('SELECT * FROM `users_turnirs` WHERE `turnir` = "'.$this->info['id'].'" LIMIT '.$this->info['users_in']);
|
||||
$po = array(0,0);
|
||||
while($pl = mysql_fetch_array($sp)) {
|
||||
$inf = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `id` = "'.$pl['uid'].'" LIMIT 1'));
|
||||
$bot = mysql_fetch_array(mysql_query('SELECT `u`.*,`st`.* FROM `users` AS `u` LEFT JOIN `stats` AS `st` ON `u`.`id` = `st`.`id` WHERE `u`.`id` = "'.$pl['bot'].'" LIMIT 1'));
|
||||
if(isset($inf['id'],$bot['id'])) {
|
||||
$po[$bot['team']] += $pl['points'];
|
||||
//${'tm'.$bot['team']} .= '<b>'.$bot['login'].'</b> ['.$bot['level'].']<br>';
|
||||
${'tm'.$bot['team']} .= $u->microLogin($bot,2).'<br>';
|
||||
}
|
||||
}
|
||||
$r .= '<style>/* öâåòà êîìàíä */
|
||||
.CSSteam0 { font-weight: bold; cursor:pointer; }
|
||||
.CSSteam1 { font-weight: bold; color: #6666CC; cursor:pointer; }
|
||||
.CSSteam2 { font-weight: bold; color: #B06A00; cursor:pointer; }
|
||||
.CSSteam3 { font-weight: bold; color: #269088; cursor:pointer; }
|
||||
.CSSteam4 { font-weight: bold; color: #A0AF20; cursor:pointer; }
|
||||
.CSSteam5 { font-weight: bold; color: #0F79D3; cursor:pointer; }
|
||||
.CSSteam6 { font-weight: bold; color: #D85E23; cursor:pointer; }
|
||||
.CSSteam7 { font-weight: bold; color: #5C832F; cursor:pointer; }
|
||||
.CSSteam8 { font-weight: bold; color: #842B61; cursor:pointer; }
|
||||
.CSSteam9 { font-weight: bold; color: navy; cursor:pointer; }
|
||||
.CSSvs { font-weight: bold; }</style>';
|
||||
$r .= '<h3>«'.$this->name[$this->info['type']].'»</h3><br>Íà÷àëî òóðíèðà ÷åðåç '.$u->timeOut($this->info['time'] - time()).'! ';
|
||||
|
||||
if(isset($_GET['hpregenNowTurnir'])) {
|
||||
if($u->stats['hpNow'] < $u->stats['hpAll'] || $u->stats['mpNow'] < $u->stats['mpAll']) {
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = "'.$u->stats['hpAll'].'",`mpNow` = "'.$u->stats['mpAll'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
||||
}
|
||||
}
|
||||
|
||||
if($this->user['points'] < 3) {
|
||||
//Åùå íå ïîëó÷èëè îáìóíäèðîâàíèå
|
||||
if($this->user['points'] < 2) {
|
||||
$r .= '<INPUT class=\'btn_grey\' onClick="selectItmSave()" TYPE=button name=tmp value="Ïîëó÷èòü îáìóíäèðîâàíèå">';
|
||||
}else{
|
||||
$r .= ' <INPUT class=\'btn_grey\' onClick="location=\'main.php\';" TYPE=button name=tmp value="ß ãîòîâ';
|
||||
if($u->info['sex'] == 1) {
|
||||
$r .= 'à';
|
||||
}
|
||||
$r .= '!">';
|
||||
}
|
||||
}else{
|
||||
$r .= '<small><b>Âû ó÷àñòâóåòå â òóðíèðå!</b></small>';
|
||||
$r .= ' <INPUT class=\'btn_grey\' onClick="location.href=\'main.php?hpregenNowTurnir=1\'" TYPE=button name=tmp value="Âîññòàíîâèòü HP è MP">';
|
||||
}
|
||||
|
||||
$r .= '<div style="float:right"><INPUT onClick="location=\'main.php\';" TYPE=button name=tmp value="Îáíîâèòü"></div>';
|
||||
if($this->user['points'] < 3) {
|
||||
if($this->user['items'] != '0') {
|
||||
$r .= '<div align="left" style="height:1px; width:100%; margin:10px 0 10px 0; border-top:1px solid #999999;"></div>';
|
||||
if($this->user['items'] == '') {
|
||||
//Âûäàåì ïðåäìåòû äëÿ âûáîðà
|
||||
$ai = '';
|
||||
|
||||
$sp = mysql_query('SELECT `a`.*,`b`.* FROM `items_shop` AS `a` LEFT JOIN `items_main` AS `b` ON (`a`.`item_id` = `b`.`id`) WHERE `a`.`sid` = 1 AND
|
||||
(`a`.`r` != 5 AND `a`.`r` != 9 AND `a`.`r` <= 18 AND `a`.`kolvo` > 0 AND `cantBuy` = 0 AND `a`.`level` < 9 AND `b`.`level` < 9) AND
|
||||
`b`.`class` != 6');
|
||||
while($pl = mysql_fetch_array($sp)) {
|
||||
if(!isset($noitm[$pl['item_id']])) {
|
||||
$aso[$pl['inslot']][count($aso[$pl['inslot']])] = $pl;
|
||||
}
|
||||
}
|
||||
|
||||
$j = 1;
|
||||
$com = array();
|
||||
while($j <= 5) {
|
||||
$i = 0;
|
||||
while($i <= 17) {
|
||||
if($i == 3) {
|
||||
//
|
||||
$com[$i] = $aso[$i][rand(0,count($aso[$i])-1)];
|
||||
}elseif($i == 14) {
|
||||
//ïðàâàÿ ðóêà
|
||||
$com[$i] = $aso[$i][rand(0,count($aso[$i])-1)];
|
||||
}else{
|
||||
//îáìóíäèðîâàíèå
|
||||
$com[$i] = $aso[$i][rand(0,count($aso[$i])-1)];
|
||||
if($i == 10) {
|
||||
$ai .= $com[$i]['id'].',';
|
||||
$com[$i] = $aso[$i][rand(0,count($aso[$i])-1)];
|
||||
$ai .= $com[$i]['id'].',';
|
||||
//$com[$i] = $aso[$i][rand(0,count($aso[$i])-1)];
|
||||
//$ai .= $com[$i]['id'].',';
|
||||
}
|
||||
}
|
||||
if($com[$i]['id'] > 0 && $i != 10) {
|
||||
$ai .= $com[$i]['id'].',';
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
$j++;
|
||||
}
|
||||
unset($com);
|
||||
|
||||
$ai .= '0';
|
||||
$this->user['items'] = $ai;
|
||||
mysql_query('UPDATE `users_turnirs` SET `items` = "'.$ai.'" WHERE `id` = "'.$this->user['id'].'" LIMIT 1');
|
||||
}
|
||||
|
||||
//Âûâîäèì ïðåäìåòû ÷òîáû íàäåòü èõ
|
||||
$ai = explode(',',$this->user['items']);
|
||||
$i = 0; $ia = array();
|
||||
while($i < count($ai)) {
|
||||
if($ai[$i] > 0) {
|
||||
$pli = mysql_fetch_array(mysql_query('SELECT `id`,`inSlot`,`name`,`type`,`img`,`level` FROM `items_main` WHERE `id` = "'.$ai[$i].'" LIMIT 1'));
|
||||
$ia[$pli['inSlot']][count($ia[$pli['inSlot']])] = $pli;
|
||||
unset($pli);
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
unset($ai);
|
||||
|
||||
$r .= '<b>Âûáåðèòå ïðåäìåòû äëÿ òóðíèðà:</b><br>';
|
||||
?>
|
||||
<style>
|
||||
.its0 {
|
||||
margin:2px;
|
||||
cursor:pointer;
|
||||
filter:DXImageTransform.Microsoft.BasicImage(grayscale=1);
|
||||
-ms-filter:DXImageTransform.Microsoft.BasicImage(grayscale=1);
|
||||
-webkit-filter: grayscale(100%);
|
||||
}
|
||||
.its1 {
|
||||
background-color:#ee9898;
|
||||
margin:1px;
|
||||
border:1px solid #b16060;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
var set = [
|
||||
|
||||
];
|
||||
set[3] = [0,0,0];
|
||||
set[10] = [0,0,0,0];
|
||||
function selectItmAdd(x,y,id,s) {
|
||||
if(s != 10 && s != 3) {
|
||||
if(set[s] != undefined && set[s] != 0) {
|
||||
$('#it_'+set[s][1]+'_'+set[s][2]).attr('class','its0');
|
||||
set[s] = 0;
|
||||
}
|
||||
set[s] = [id,x,y];
|
||||
$('#it_'+x+'_'+y).attr('class','its1');
|
||||
}else if(s == 10) {
|
||||
if(set[s][0] > 2) {
|
||||
$('#it_'+set[s][1][1]+'_'+set[s][1][2]).attr('class','its0');
|
||||
$('#it_'+set[s][2][1]+'_'+set[s][2][2]).attr('class','its0');
|
||||
$('#it_'+set[s][3][1]+'_'+set[s][3][2]).attr('class','its0');
|
||||
set[s] = [0,0,0,0];
|
||||
}
|
||||
|
||||
if(set[s][1] == 0) {
|
||||
set[s][1] = [id,x,y];
|
||||
}else if(set[s][2] == 0) {
|
||||
set[s][2] = [id,x,y];
|
||||
}else if(set[s][3] == 0) {
|
||||
set[s][3] = [id,x,y];
|
||||
}
|
||||
set[s][0]++;
|
||||
$('#it_'+x+'_'+y).attr('class','its1');
|
||||
}else if(s == 3) {
|
||||
if(set[s][0] > 1) {
|
||||
$('#it_'+set[s][1][1]+'_'+set[s][1][2]).attr('class','its0');
|
||||
$('#it_'+set[s][2][1]+'_'+set[s][2][2]).attr('class','its0');
|
||||
set[s] = [0,0,0];
|
||||
}
|
||||
|
||||
if(set[s][1] == 0) {
|
||||
set[s][1] = [id,x,y];
|
||||
}else if(set[s][2] == 0) {
|
||||
set[s][2] = [id,x,y];
|
||||
}
|
||||
set[s][0]++;
|
||||
$('#it_'+x+'_'+y).attr('class','its1');
|
||||
}
|
||||
}
|
||||
function selectItmSave() {
|
||||
var i = 0;
|
||||
var r = '';
|
||||
while(i <= 17) {
|
||||
if(set[i] != undefined) {
|
||||
if(i == 10) {
|
||||
if(set[i][1][0] != undefined) {
|
||||
r += set[i][1][0]+'-';
|
||||
}
|
||||
if(set[i][2][0] != undefined) {
|
||||
r += set[i][2][0]+'-';
|
||||
}
|
||||
if(set[i][3][0] != undefined) {
|
||||
r += set[i][3][0]+'-';
|
||||
}
|
||||
}else if(i == 3) {
|
||||
if(set[i][1][0] != undefined) {
|
||||
r += set[i][1][0]+'-';
|
||||
}
|
||||
if(set[i][2][0] != undefined) {
|
||||
r += set[i][2][0]+'-';
|
||||
}
|
||||
}else{
|
||||
if(set[i][0] != undefined) {
|
||||
r += set[i][0]+'-';
|
||||
}
|
||||
}
|
||||
}
|
||||
i++;
|
||||
}
|
||||
location = "main.php?gocomplect="+r;
|
||||
}
|
||||
</script>
|
||||
<?
|
||||
$i = 0;
|
||||
while($i <= 17) {
|
||||
if(count($ia[$i]) > 0) {
|
||||
$j = 0;
|
||||
while($j < count($ia[$i])) {
|
||||
$r .= '<img id="it_'.$i.'_'.$j.'" onclick="selectItmAdd('.$i.','.$j.','.$ia[$i][$j]['id'].','.$ia[$i][$j]['inSlot'].');" class="its0" title="'.$ia[$i][$j]['name'].'" src="https://img.new-combats.com/i/items/'.$ia[$i][$j]['img'].'">';
|
||||
$j++;
|
||||
}
|
||||
$r .= '<br>';
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
$r .= '<div align="left" style="height:1px; width:100%; margin:10px 0 10px 0; border-top:1px solid #999999;"></div>';
|
||||
//$r .= '<b class="CSSteam1">Êîìàíäà ¹1</b>: '.rtrim($tm1,', ');
|
||||
//$r .= '<br><b class="CSSteam2">Êîìàíäà ¹2</b>: '.rtrim($tm2,', ');
|
||||
|
||||
$r .= '<table style="border:1px solid #99cccc" width="700" bgcolor="#bbdddd" border="0" align="center" cellpadding="5" cellspacing="0">
|
||||
<tr>
|
||||
<td width="350" align="center" bgcolor="#99cccc"><b class="CSSteam1">Êîìàíäà 1</b></td>
|
||||
<td align="center" bgcolor="#99cccc"><b class="CSSteam2">Êîìàíäà 2</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="border-right:1px solid #99cccc">'.rtrim($tm1,', ').'</td>
|
||||
<td align="center">'.rtrim($tm2,', ').'</td>
|
||||
</tr>
|
||||
</table>';
|
||||
|
||||
|
||||
if( ($this->info['time'] - time() < 0) && $this->info['step'] == 1) {
|
||||
//íà÷èíàåì òóðíèð
|
||||
$this->startTurnir();
|
||||
}
|
||||
|
||||
echo $r;
|
||||
}
|
||||
|
||||
}
|
||||
$tur = new turnir;
|
||||
$tur->start();
|
||||
?>
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,516 +0,0 @@
|
||||
<?php
|
||||
|
||||
if( !defined('GAME') ) {
|
||||
die();
|
||||
}
|
||||
|
||||
class botPriemLogic {
|
||||
|
||||
static $p = array();
|
||||
|
||||
static function start( $i, $id ) {
|
||||
|
||||
self::$p = mysql_fetch_array(mysql_query('SELECT * FROM `priems` WHERE `id` = "'.$id.'" LIMIT 1'));
|
||||
|
||||
$test = self::testpriem( self::$p );
|
||||
|
||||
if( isset(self::$p['id']) && $test == 0 ) {
|
||||
//Èñïîëüçóåì ïðèåì ïîä íîìåðîì $id
|
||||
if( $id == 1 ) { self::priem1( $i ); } //Ïðèêðûòüñÿ 1|2|3|4|5|6|7|8|9|10|11|13|14|45|47|48|49|188|204|211|217|220|223|232|235|240|0|0|0|0|0|0|0|0|0|0|0|0|0|0
|
||||
elseif( $id == 2 ) { self::priem2( $i ); } //Âëîìèòü
|
||||
elseif( $id == 3 ) { self::priem3( $i ); } //Ñîáðàòü çóáû
|
||||
elseif( $id == 4 ) { self::priem4( $i ); } //Ñèëüíûé óäàð
|
||||
elseif( $id == 5 ) { self::priem5( $i ); } //Óòåðåòü ïîò
|
||||
elseif( $id == 6 ) { self::priem6( $i ); } //Âîëÿ ê ïîáåäå
|
||||
elseif( $id == 7 ) { self::priem7( $i ); } //Àêòèâíàÿ çàùèòà
|
||||
elseif( $id == 8 ) { self::priem8( $i ); } //Òàíåö âåòðà
|
||||
elseif( $id == 9 ) { self::priem9( $i ); } //Äèêàÿ óäà÷à
|
||||
elseif( $id == 10 ) { self::priem10( $i ); } //Ïðåäâèäèíèå
|
||||
elseif( $id == 11 ) { self::priem11( $i ); } //Óäà÷íûé óäàð
|
||||
elseif( $id == 13 ) { self::priem13( $i ); } //Ñòîéêîñòü
|
||||
elseif( $id == 14 ) { self::priem14( $i ); } //ßðîñòü
|
||||
elseif( $id == 45 ) { self::priem45( $i ); } //Ïîëíàÿ çàùèòà
|
||||
elseif( $id == 47 ) { self::priem47( $i ); } //Ñëåïàÿ óäà÷à
|
||||
elseif( $id == 48 ) { self::priem48( $i ); } //Òàíåö ëåçâèé
|
||||
elseif( $id == 49 ) { self::priem49( $i ); } //Âòîðîå äûõàíèå
|
||||
elseif( $id == 188 ) { self::priem188( $i ); } //Æàæäà êðîâè
|
||||
elseif( $id == 204 ) { self::priem204( $i ); } //Îáðå÷åííîñòü
|
||||
elseif( $id == 211 ) { self::priem211( $i ); } //Àãðåññèâíàÿ çàùèòà
|
||||
elseif( $id == 217 ) { self::priem217( $i ); } //Ðàçãàäàòü òàêòèêó
|
||||
elseif( $id == 220 ) { self::priem220( $i ); } //Ñòàâêà íà îïåðåæåíèå
|
||||
elseif( $id == 223 ) { self::priem223( $i ); } //Ðûâîê
|
||||
elseif( $id == 232 ) { self::priem232( $i ); } //Âûæèòü
|
||||
elseif( $id == 235 ) { self::priem235( $i ); } //Øîêèðóþùèé óäàð
|
||||
elseif( $id == 240 ) { self::priem240( $i ); } //Õëåáíóòü êðîâè
|
||||
|
||||
elseif( $id >= 175 && $id <= 179 ) { self::priem175( $i ); }
|
||||
|
||||
//*********************************
|
||||
}
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
static function usePriem($id,$on = NULL) {
|
||||
|
||||
//if(self::$p['id'] > 7 && self::$p['id'] < 11) {
|
||||
//botLogic::e(botLogic::$bot['login'].', èñïîëüçóþ ïðèåì "'.self::$p['name'].'" , battle: <a target=_blank href=https://new-combats.com/logs.php?log='.botLogic::$bot['battle'].'>Link</a>');
|
||||
//}
|
||||
|
||||
$go_txt = '&usepriem='.$id;
|
||||
if( $on != '') {
|
||||
$on = str_replace(' ','%20',$on);
|
||||
$go_txt .= '&useon='.$on;
|
||||
}
|
||||
botLogic::inuser_go_btl( botLogic::$bot , $go_txt );
|
||||
}
|
||||
//Ñòàâêà íà îïåðåæåíèå
|
||||
static function priem220( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
if(rand(0,100) >= 30) {
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
//Ðàçãàäàòü òàêòèêó
|
||||
static function priem217( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
if(rand(0,100) >= 30) {
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
//Îáðå÷åííîñòü
|
||||
static function priem204( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
if(rand(0,100) >= 30) {
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
|
||||
//Âûæèòü
|
||||
static function priem232( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
if(self::hp() > 30 || rand(0,100) >= 50) {
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
//Æàæäà êðîâè
|
||||
static function priem188( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
if(rand(0,100) >= 30) {
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
//Øîê óäàð
|
||||
static function priem235( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
if(rand(0,100) >= 50) {
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
//Õëåáíóòü êðîâè
|
||||
static function priem240( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
//if(botLogic::$st['tactic2'] < 7 || botLogic::$st['tactic4'] < 3 || self::hp() > 70) {
|
||||
if(self::hp() > 70) {
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
//Ñèëîâîå ïîëå
|
||||
static function priem175( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
/*if(botLogic::$st['hpNow'] >= botLogic::$st['hpAll']) {
|
||||
$su = false;
|
||||
}elseif(botLogic::$st['hpNow'] < 5) {
|
||||
$su = false;
|
||||
}elseif(rand(0,100) >= 50) {
|
||||
$su = false;
|
||||
}*/
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
|
||||
//Ïðèêðûòüñÿ
|
||||
static function priem1( $i ) {
|
||||
$su = true;
|
||||
if(rand(0,100) >= 50) {
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
|
||||
//Âëîìèòü
|
||||
static function priem2( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
if(rand(0,100) >= 50) {
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
|
||||
//Ñîáðàòü çóáû
|
||||
static function priem3( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
/*if(botLogic::$st['hpNow'] >= botLogic::$st['hpAll']) {
|
||||
$su = false;
|
||||
}elseif(botLogic::$st['hpNow'] < 10) {
|
||||
$su = false;
|
||||
}elseif(isset(botLogic::$pr[1]) && botLogic::$pr[1] < 1) {
|
||||
$su = false;
|
||||
}*/
|
||||
if(self::hp() > 70 || rand(0,100) >= 50) {
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
|
||||
//Âîëÿ ê ïîáåäå
|
||||
static function priem6( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
if(self::hp() > 40 || rand(0,100) >= 50) {
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
|
||||
//Òàíåö âåòðà
|
||||
static function priem8( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
if(rand(0,100) >= 30) {
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
//Òàíåö ëåçâèé
|
||||
static function priem48( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
if(rand(0,100) >= 70) {
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
|
||||
//Äèêàÿ óäà÷à
|
||||
static function priem9( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
if(rand(0,100) >= 30) {
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
//Ñëåïàÿ óäà÷à
|
||||
static function priem47( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
if(rand(0,100) >= 50) {
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
|
||||
//Ïðåäâèäåíüå
|
||||
static function priem10( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
if(rand(0,100) >= 30) {
|
||||
$su = false;
|
||||
}
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
//Âòîðîå äûõàíèå
|
||||
static function priem49( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
if(rand(0,100) >= 80 || self::hp() > 60) {
|
||||
$su = false;
|
||||
}
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
|
||||
//Ðûâîê
|
||||
static function priem223( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
if(self::hp() > 50 || rand(0,100) >= 50) {
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
|
||||
//Óäà÷íûé óäàð
|
||||
static function priem11( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
//if(isset(botLogic::$pr[6]) && botLogic::$st['tactic7'] > 0 && self::hp() < 66 && botLogic::$st['tactic1'] < 14) {
|
||||
if(rand(0,100) >= 30){
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
//Ñòîéêîñòü
|
||||
static function priem13( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
if(rand(0,100) >= 50){
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
//ßðîñòü
|
||||
static function priem14( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
if(rand(0,100) >= 50){
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
|
||||
//Ñèëüíûé óäàð
|
||||
static function priem4( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
/*if(isset(botLogic::$pr[6]) && botLogic::$st['tactic7'] > 0 && self::hp() < 66 && botLogic::$st['tactic1'] < 14) {
|
||||
$su = false;
|
||||
}elseif((isset(botLogic::$pr[11]) || isset(botLogic::$pr[6])) && rand(0,100) <= 75) {*/
|
||||
if(rand(0,100) >= 60){
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
|
||||
//Óòåðåòü ïîò
|
||||
static function priem5( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
if(self::hp() > 95) {
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Àãðåññèâíàÿ çàùèòà
|
||||
static function priem211( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
|
||||
//if( rand(0,100) >= 80 || (isset(botLogic::$pr[7]) && botLogic::$pr[7] < 1) || (isset(botLogic::$pr[45]) && botLogic::$pr[45] < 1) || self::hp() > 80 ) {
|
||||
if( rand(0,100) >= 80){
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Ïîëíàÿ çàùèòà
|
||||
static function priem45( $i ) {
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
|
||||
//if( rand(0,100) >= 60 || (isset(botLogic::$pr[7]) && botLogic::$pr[7] < 1) || (isset(botLogic::$pr[211]) && botLogic::$pr[211] < 1) || self::hp() > 80 ) {
|
||||
if( rand(0,100) >= 50){
|
||||
$su = false;
|
||||
}
|
||||
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Àêòèâíàÿ çàùèòà
|
||||
static function priem7( $i ) {
|
||||
//if (rand(0,100) >= 50){$su = true;}else{$su = false;}
|
||||
|
||||
$su = true;
|
||||
//Ëîãèêà èñïîëüçîâàíèÿ ïðèåìà
|
||||
/* Åñëè åñòü àáñîëþòíàÿ çàùèòà (àãðåññèâíóþ) è å¸ âîçìîæíî èñîïëüçîâàòü, à òàê-æå ÍÐ ìåíåå 70% */
|
||||
//if( rand(0,100) >= 50 || (isset(botLogic::$pr[45]) && botLogic::$pr[45] < 1) || (isset(botLogic::$pr[211]) && botLogic::$pr[211] < 1) || self::hp() > 80 ) {
|
||||
if(rand(0,100) >= 30) {
|
||||
|
||||
$su = false;
|
||||
|
||||
}
|
||||
if($su == true) {
|
||||
self::usePriem( $i );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static function hp() {
|
||||
$p = round((botLogic::$st['hpNow']/botLogic::$st['hpAll']*100),2);
|
||||
return $p;
|
||||
}
|
||||
|
||||
//Òåñò íà âîçìîæíîñòü èñïîëüçîâàíèÿ
|
||||
static function testpriem($pl) {
|
||||
global $u;
|
||||
$notr = 0;
|
||||
|
||||
$tr = $u->lookStats($pl['tr']);
|
||||
$d2 = $u->lookStats($pl['date2']);
|
||||
|
||||
$x = 1;
|
||||
while( $x <= 7 ) {
|
||||
if(botLogic::$bot['tactic'.$x] < $pl['tt'.$x] && $x!=7 && $pl['tt'.$x] > 0) {
|
||||
$notr++;
|
||||
}elseif($x==7) {
|
||||
if($pl['tt'.$x]>0 && botLogic::$bot['tactic'.$x]<=0) {
|
||||
$notr++;
|
||||
}
|
||||
}
|
||||
$x++;
|
||||
}
|
||||
|
||||
if($pl['xuse']>0) {
|
||||
$xu = $u->testAction('`vars` = "use_priem_'.botLogic::$bot['battle'].'_'.botLogic::$bot['id'].'" AND `vals` = "'.$pl['id'].'" LIMIT '.$pl['xuse'].'',2);
|
||||
if($xu[0] >= $pl['xuse']) {
|
||||
$notr++;
|
||||
}
|
||||
}
|
||||
|
||||
$x = 0;
|
||||
$t = $u->items['tr'];
|
||||
while($x < count($t))
|
||||
{
|
||||
$n = $t[$x];
|
||||
if(isset($tr['tr_'.$n]))
|
||||
{
|
||||
if($n=='lvl')
|
||||
{
|
||||
if($tr['tr_'.$n] > botLogic::$bot['level'])
|
||||
{
|
||||
$notr++;
|
||||
}
|
||||
}elseif($tr['tr_'.$n] > botLogic::$st[$n])
|
||||
{
|
||||
$notr++;
|
||||
}
|
||||
}
|
||||
$x++;
|
||||
}
|
||||
|
||||
if(isset($tr['tr_mpNow']))
|
||||
{
|
||||
if(botLogic::$st['mpNow'] < $tr['tr_mpNow'])
|
||||
{
|
||||
$notr++;
|
||||
}
|
||||
}
|
||||
|
||||
if($pl['trUser']==1)
|
||||
{
|
||||
//òðåáóåò ÷òîáû ïîëüçîâàòåëü ñ êåì-òî ðàçìåíèâàëñÿ (ïðè îæèäàíèè ïðèåì ãàñíèò)
|
||||
$ga = mysql_fetch_array(mysql_query('SELECT `id` FROM `battle_act` WHERE `battle` = "'.botLogic::$bot['battle'].'" AND `uid1` = "'.botLogic::$bot['id'].'" AND `uid2` = "'.botLogic::$bot['enemy'].'" LIMIT 1'));
|
||||
if(isset($ga['id']))
|
||||
{
|
||||
$notr++;
|
||||
}
|
||||
}
|
||||
|
||||
//Åñëè ïðèåì óæå èñïîëüçîâàëè
|
||||
if(botLogic::$st['prsu'][$pl['id']]>0) {
|
||||
$notr++;
|
||||
}
|
||||
|
||||
return $notr;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
File diff suppressed because it is too large
Load Diff
@ -1,504 +0,0 @@
|
||||
<?php
|
||||
if(!defined('GAME')) { die(); }
|
||||
|
||||
if($_GET['go_away']) { header('location: main.php'); die(); }
|
||||
if($u->info['battle'] != 0) { header('location: main.php'); die(); }
|
||||
|
||||
if(isset($_POST['clip76_'])) {
|
||||
$obj = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "4677" LIMIT 1'));
|
||||
if($u->count_items(877, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(882, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(902, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(903, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(881, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(878, $u->info['id'], 1) > 0) {
|
||||
$data = '|frompisher=12';
|
||||
$u->addItem(4677, $u->info['id'], $data, $obj);
|
||||
$u->deleteItemID(877, $u->info['id'], 1);
|
||||
$u->deleteItemID(882, $u->info['id'], 1);
|
||||
$u->deleteItemID(902, $u->info['id'], 1);
|
||||
$u->deleteItemID(903, $u->info['id'], 1);
|
||||
$u->deleteItemID(881, $u->info['id'], 1);
|
||||
$u->deleteItemID(878, $u->info['id'], 1);
|
||||
$err = 'Âû ïîëó÷èëè ×åðíàÿ Ìåòêà';
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Ëó÷èñòûé òîïàç"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Ëó÷èñòûé ðóáèí"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Òûñÿ÷åëåòíèé êàìåíü"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Ïëîä çìåèíîãî äåðåâà"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Ãëóáèííûé êàìåíü"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Ñòàëü"";
|
||||
}
|
||||
} elseif(isset($_POST['clip80_'])) {
|
||||
$obj = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "4758" LIMIT 1'));
|
||||
if($u->count_items(950, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(907, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(902, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(878, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(905, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(903, $u->info['id'], 1) > 0) {
|
||||
$data = '|frompisher=12';
|
||||
$u->addItem(4758, $u->info['id'], $data, $obj);
|
||||
$u->deleteItemID(950, $u->info['id'], 1);
|
||||
$u->deleteItemID(907, $u->info['id'], 1);
|
||||
$u->deleteItemID(902, $u->info['id'], 1);
|
||||
$u->deleteItemID(878, $u->info['id'], 1);
|
||||
$u->deleteItemID(905, $u->info['id'], 1);
|
||||
$u->deleteItemID(903, $u->info['id'], 1);
|
||||
$u->deleteItemID(905, $u->info['id'], 1);
|
||||
$err = 'Âû ïîëó÷èëè Êëàóñòðîôîáèÿ';
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Ýññåíöèÿ ïðàâåäíîãî ãíåâà"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Øåïîò ãîð"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Êàìåíü çàòàåííîãî ñîëíöà"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Êðèñòàëë ãîëîñà ïðåäêîâ"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Ñãóñòîê ýôèðà"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Ëó÷èñòîå Ñåðåáðî"";
|
||||
}
|
||||
} elseif(isset($_POST['clip81_'])) {
|
||||
$obj = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "4679" LIMIT 1'));
|
||||
if($u->count_items(906, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(907, $u->info['id'], 1) > 0) {
|
||||
$data = '|frompisher=12';
|
||||
$u->addItem(4679, $u->info['id'], $data, $obj);
|
||||
$u->deleteItemID(906, $u->info['id'], 1);
|
||||
$u->deleteItemID(907, $u->info['id'], 1);
|
||||
$err = 'Âû ïîëó÷èëè Ïðîêëÿòüå Óìèðàþùåé Çåìëè';
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Êðèñòàëë ñòàáèëüíîñòè"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Êðèñòàëë ãîëîñà ïðåäêîâ"";
|
||||
}
|
||||
} elseif(isset($_POST['clip82_'])) {
|
||||
$obj = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "4680" LIMIT 1'));
|
||||
if($u->count_items(877, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(890, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(902, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(903, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(888, $u->info['id'], 1) > 0) {
|
||||
$data = '|frompisher=12';
|
||||
$u->addItem(4680, $u->info['id'], $data, $obj);
|
||||
$u->deleteItemID(877, $u->info['id'], 1);
|
||||
$u->deleteItemID(890, $u->info['id'], 1);
|
||||
$u->deleteItemID(902, $u->info['id'], 1);
|
||||
$u->deleteItemID(903, $u->info['id'], 1);
|
||||
$u->deleteItemID(888, $u->info['id'], 1);
|
||||
$err = 'Âû ïîëó÷èëè Ïðîêëÿòüå Ñòèõàþùåãî Âåòðà';
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Øåïîò ãîð"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Òûñÿ÷åëåòíèé êàìåíü"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Ïëîä çìåèíîãî äåðåâà"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Ñãóñòîê àñòðàëà"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Ñòàëü"";
|
||||
}
|
||||
} elseif(isset($_POST['clip89_'])) {
|
||||
$obj = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "4681" LIMIT 1'));
|
||||
if($u->count_items(900, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(882, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(903, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(904, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(908, $u->info['id'], 1) > 0) {
|
||||
$data = '|frompisher=12';
|
||||
$u->addItem(4681, $u->info['id'], $data, $obj);
|
||||
$u->deleteItemID(900, $u->info['id'], 1);
|
||||
$u->deleteItemID(882, $u->info['id'], 1);
|
||||
$u->deleteItemID(903, $u->info['id'], 1);
|
||||
$u->deleteItemID(904, $u->info['id'], 1);
|
||||
$u->deleteItemID(908, $u->info['id'], 1);
|
||||
$err = 'Âû ïîëó÷èëè Ïðîêëÿòüå Çàìåðçàþùåé Âîäû';
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Êàìåíü çàòàåííîãî ñîëíöà"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Êðèñòàëë âðåìåí"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Òûñÿ÷åëåòíèé êàìåíü"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Ãëóáèííûé êàìåíü"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Êîæà çìåèíîãî äåðåâà"";
|
||||
}
|
||||
} elseif(isset($_POST['clip90_'])) {
|
||||
$obj = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "4682" LIMIT 1'));
|
||||
if($u->count_items(950, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(889, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(902, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(903, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(878, $u->info['id'], 1) > 0) {
|
||||
$data = '|frompisher=12';
|
||||
$u->addItem(4682, $u->info['id'], $data, $obj);
|
||||
$u->deleteItemID(950, $u->info['id'], 1);
|
||||
$u->deleteItemID(889, $u->info['id'], 1);
|
||||
$u->deleteItemID(902, $u->info['id'], 1);
|
||||
$u->deleteItemID(906, $u->info['id'], 1);
|
||||
$u->deleteItemID(878, $u->info['id'], 1);
|
||||
$err = 'Âû ïîëó÷èëè Ïðîêëÿòüå Óãàñàþùåãî Îãíÿ';
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Ëó÷èñòûé òîïàç"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Òûñÿ÷åëåòíèé êàìåíü"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Ïëîä çìåèíîãî äåðåâà"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Ñãóñòîê ýôèðà"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Êîæà Îáùåãî Âðàãà"";
|
||||
}
|
||||
} elseif(isset($_POST['clip91_'])) {
|
||||
$obj = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "4683" LIMIT 1'));
|
||||
if($u->count_items(907, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(881, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(905, $u->info['id'], 1) > 0) {
|
||||
$data = '|frompisher=12';
|
||||
$u->addItem(4683, $u->info['id'], $data, $obj);
|
||||
$u->deleteItemID(907, $u->info['id'], 1);
|
||||
$u->deleteItemID(881, $u->info['id'], 1);
|
||||
$u->deleteItemID(905, $u->info['id'], 1);
|
||||
$err = 'Âû ïîëó÷èëè Ïðîêëÿòüå Ëåãêîãî Îòóïëåíèÿ';
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Ñòèõèàëèÿ"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Ëó÷èñòûé ðóáèí"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Êðèñòàëë ñòàáèëüíîñòè"";
|
||||
}
|
||||
} elseif(isset($_POST['clip92_'])) {
|
||||
$obj = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "4684" LIMIT 1'));
|
||||
if($u->count_items(907, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(881, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(905, $u->info['id'], 1) > 0) {
|
||||
$data = '|frompisher=12';
|
||||
$u->addItem(4684, $u->info['id'], $data, $obj);
|
||||
$u->deleteItemID(907, $u->info['id'], 1);
|
||||
$u->deleteItemID(881, $u->info['id'], 1);
|
||||
$u->deleteItemID(905, $u->info['id'], 1);
|
||||
$err = 'Âû ïîëó÷èëè Ïðîêëÿòüå Óÿçâèìîñòè';
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Ñòèõèàëèÿ"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Ëó÷èñòûé ðóáèí"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Êðèñòàëë ñòàáèëüíîñòè"";
|
||||
}
|
||||
} elseif(isset($_POST['clip93_'])) {
|
||||
$obj = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "4685" LIMIT 1'));
|
||||
if($u->count_items(901, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(889, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(890, $u->info['id'], 1) > 0) {
|
||||
$data = '|frompisher=12';
|
||||
$u->addItem(4685, $u->info['id'], $data, $obj);
|
||||
$u->deleteItemID(901, $u->info['id'], 1);
|
||||
$u->deleteItemID(889, $u->info['id'], 1);
|
||||
$u->deleteItemID(890, $u->info['id'], 1);
|
||||
$err = 'Âû ïîëó÷èëè Çà÷àðîâàòü êîëüöî: Âûòÿãèâàíèå äóøè [1]';
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Ñãóñòîê àñòðàëà"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Ñãóñòîê ýôèðà"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Êðèñòàëë òûñÿ÷è îòâåòîâ"";
|
||||
}
|
||||
} elseif(isset($_POST['clip94_'])) {
|
||||
$obj = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "4686" LIMIT 1'));
|
||||
if($u->count_items(4685, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(4688, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(4689, $u->info['id'], 1) > 0) {
|
||||
if($u->count_items(4690, $u->info['id'], 1) > 0) {
|
||||
$data = '|frompisher=12';
|
||||
$u->addItem(4686, $u->info['id'], $data, $obj);
|
||||
$u->deleteItemID(4685, $u->info['id'], 1);
|
||||
$u->deleteItemID(4688, $u->info['id'], 1);
|
||||
$u->deleteItemID(4689, $u->info['id'], 1);
|
||||
$u->deleteItemID(4690, $u->info['id'], 1);
|
||||
$err = 'Âû ïîëó÷èëè Çà÷àðîâàòü êîëüöî: Âûòÿãèâàíèå äóøè [2]';
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Óñêîðèòåëü äëÿ Ãîëåìîâ"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Ñìàçêà äëÿ Ãîëåìîâ"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Òîïëèâî äëÿ Ãîëåìîâ"";
|
||||
}
|
||||
} else {
|
||||
$err = "Íå õâàòàåò ðåñóðñîâ "Çà÷àðîâàòü êîëüöî: Âûòÿãèâàíèå äóøè [1]"";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function getColor($id, $num) {
|
||||
global $u;
|
||||
$color = 'green';
|
||||
$ch = mysql_query("SELECT `id` FROM `items_users` WHERE `uid` = ".$u->info['id']." AND `delete` = 0 AND `item_id` = ".(int)$id." AND inShop = 0 AND inOdet = 0");
|
||||
if(mysql_num_rows($ch) < $num) { $color = 'red'; }
|
||||
return $color;
|
||||
}
|
||||
|
||||
function getImg($id, $num) {
|
||||
global $u;
|
||||
$img = 'good.png';
|
||||
$ch = mysql_query("SELECT `id` FROM `items_users` WHERE `uid` = ".$u->info['id']." AND `delete` = 0 AND `item_id` = ".(int)$id." AND inShop = 0 AND inOdet = 0");
|
||||
if(mysql_num_rows($ch) < $num) { $img = 'i/clear.gif'; }
|
||||
return $img;
|
||||
}
|
||||
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="https://img.new-combats.com/css/main.css" />
|
||||
<meta content="text/html; charset=windows-1251" 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" />
|
||||
<style>
|
||||
.row { cursor:pointer; }
|
||||
#answer1 {color: #003388; font-weight: bold; text-decoration: none; }
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
function show(ele) {
|
||||
var srcElement = document.getElementById(ele);
|
||||
if(srcElement != null) {
|
||||
if(srcElement.style.display == "block") {
|
||||
srcElement.style.display= 'none';
|
||||
} else {
|
||||
srcElement.style.display='block';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function OpenDiv(vr) {
|
||||
var dg01 = document.getElementById(vr);
|
||||
if(dg01.style.display == '') {
|
||||
dg01.style.display = 'none'
|
||||
} else {
|
||||
dg01.style.display = ''
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript" src="https://img.new-combats.com/js/inf.0.104.js?<?=mt_rand(1436,1293286936)/10000000000?>" charset="utf-8"></script>
|
||||
</head>
|
||||
<body leftmargin=5 topmargin=5 marginwidth=5 marginheight=5 bgcolor="#d7d7d7" onLoad="">
|
||||
<div id=hint4 class=ahint></div>
|
||||
<TABLE cellspacing=0 cellpadding=2 width=100%>
|
||||
<TD style="width: 40%; vertical-align: top; ">
|
||||
<TABLE cellspacing=0 cellpadding=2 style="width: 100%; ">
|
||||
<tr><TD align=center><h4>Ìàñòåðñêàÿ Çàáûòûõ Ìàñòåðîâ</h4></TD></tr>
|
||||
<TR>
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD style="width: 5%; vertical-align: top; "> </TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</html>
|
||||
<? if($err != '') { echo "<center><b style='color: Red;'>".$err."</b></center>"; } ?>
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td width="255" valign="top"><div align="left"><? $st = array(); $st2 = array(); $st = $u->getStats($u->info['id'],1); $st2 = $st[1]; $st = $st[0]; $rgd = $u->regen($u->info['id'],$st,1); $us = $u->getInfoPers($u->info['id'],1,$st); if($us!=false){ echo $us[0]; }else{ echo 'information is lost.'; } ?></div>
|
||||
<div align="left"></div><div align="left"></div>
|
||||
<div style="float: left">
|
||||
<td valign="top"><br />
|
||||
<div id="step1" style="margin-left: 20px;"></div>
|
||||
<br /><br />
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<div id="answer1">
|
||||
• <a href="#" onclick="OpenDiv('clip76')">×åðíàÿ ìåòêà <img src="https://img.new-combats.com/i/items/spell_curse.gif"></a><br />
|
||||
<div id="clip76" style="display: none; color: black;">
|
||||
<p style="color:<?=getColor(877, 1)?>"> Còàëü <img src="https://img.new-combats.com/<?=getImg(877, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(882, 1)?>"> Ãëóáèííûé êàìåíü <img src="https://img.new-combats.com/<?=getImg(882, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(902, 1)?>"> Ïëîä çìåèíîãî äåðåâà <img src="https://img.new-combats.com/<?=getImg(902, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(903, 1)?>"> Òûñÿ÷åëåòíèé êàìåíü <img src="https://img.new-combats.com/<?=getImg(903, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(881, 1)?>"> Ëó÷èñòûé ðóáèí <img src="https://img.new-combats.com/<?=getImg(881, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(878, 1)?>"> Ëó÷èñòûé òîïàç <img src="https://img.new-combats.com/<?=getImg(878, 1)?>" width="13" height="13" /></p>
|
||||
<form action="" method="POST">
|
||||
<input type="submit" name="clip76_" value="Ñîáðàòü" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
• <a href="#" onclick="OpenDiv('clip80')">Êëàóñòðîôîáèÿ <img src="https://img.new-combats.com/i/items/d_blat24.gif"></a><br />
|
||||
<div id="clip80" style="display: none; color: black;">
|
||||
<p style="color:<?=getColor(950, 1)?>"> Êîæà îáùåãî âðàãà <img src="https://img.new-combats.com/<?=getImg(950, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(907, 1)?>"> Êðèñòàëë ñòàáèëüíîñòè <img src="https://img.new-combats.com/<?=getImg(907, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(902, 1)?>"> Ïëîä çìåèíîãî äåðåâà <img src="https://img.new-combats.com/<?=getImg(902, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(878, 1)?>"> Ëó÷èñòûé òîïàç <img src="https://img.new-combats.com/<?=getImg(878, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(905, 1)?>"> Ñòèõèàëèÿ <img src="https://img.new-combats.com/<?=getImg(905, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(903, 1)?>"> Òûñÿ÷åëåòíèé êàìåíü <img src="https://img.new-combats.com/<?=getImg(903, 1)?>" width="13" height="13" /></p>
|
||||
<form action="" method="POST">
|
||||
<input type="submit" name="clip80_" value="Ñîáðàòü" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
• <a href="#" onclick="OpenDiv('clip81')">Ïðîêëÿòüå Óìèðàþùåé Çåìëè <img src="https://img.new-combats.com/i/items/m_ptp_1.gif"></a><br />
|
||||
<div id="clip81" style="display: none; color: black;">
|
||||
<p style="color:<?=getColor(906, 1)?>"> Êðèñòàëë ãîëîñà ïðåäêîâ <img src="https://img.new-combats.com/<?=getImg(906, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(907, 1)?>"> Êðèñòàëë ñòàáèëüíîñòè <img src="https://img.new-combats.com/<?=getImg(907, 1)?>" width="13" height="13" /></p>
|
||||
<form action="" method="POST">
|
||||
<input type="submit" name="clip81_" value="Ñîáðàòü" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
• <a href="#" onclick="OpenDiv('clip82')">Ïðîêëÿòüå Ñòèõàþùåãî Âåòðà <img src="https://img.new-combats.com/i/items/m_ptp_2.gif"></a><br />
|
||||
<div id="clip82" style="display: none; color: black;">
|
||||
<p style="color:<?=getColor(877, 1)?>"> Ñòàëü <img src="https://img.new-combats.com/<?=getImg(877, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(890, 1)?>"> Ñãóñòîê àñòðàëà <img src="https://img.new-combats.com/<?=getImg(890, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(902, 1)?>"> Ïëîä çìåèíîãî äåðåâà <img src="https://img.new-combats.com/<?=getImg(902, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(903, 1)?>"> Òûñÿ÷åëåòíèé êàìåíü <img src="https://img.new-combats.com/<?=getImg(903, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(888, 1)?>"> Øåïîò ãîð <img src="https://img.new-combats.com/<?=getImg(888, 1)?>" width="13" height="13" /></p>
|
||||
<form action="" method="POST">
|
||||
<input type="submit" name="clip82_" value="Ñîáðàòü" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
• <a href="#" onclick="OpenDiv('clip89')">Ïðîêëÿòüå Çàìåðçàþùåé Âîäû <img src="https://img.new-combats.com/i/items/m_ptp_3.gif"></a><br />
|
||||
<div id="clip89" style="display: none; color: black;">
|
||||
<p style="color:<?=getColor(900, 1)?>"> Êîðà çìåèíîãî äåðåâà <img src="https://img.new-combats.com/<?=getImg(900, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(882, 1)?>"> Ãëóáèííûé êàìåíü <img src="https://img.new-combats.com/<?=getImg(882, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(903, 1)?>"> Òûñÿ÷åëåòíèé êàìåíü <img src="https://img.new-combats.com/<?=getImg(903, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(904, 1)?>"> Êðèñòàëë âðåìåí <img src="https://img.new-combats.com/<?=getImg(904, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(908, 1)?>"> Êàìåíü çàòàåííîãî ñîëíöà <img src="https://img.new-combats.com/<?=getImg(908, 1)?>" width="13" height="13" /></p>
|
||||
<form action="" method="POST">
|
||||
<input type="submit" name="clip89_" value="Ñîáðàòü" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
• <a href="#" onclick="OpenDiv('clip90')">Ïðîêëÿòüå Óãàñàþùåãî Îãíÿ <img src="https://img.new-combats.com/i/items/m_ptp_4.gif"></a><br />
|
||||
<div id="clip90" style="display: none; color: black;">
|
||||
<p style="color:<?=getColor(950, 1)?>"> Êîæà Îáùåãî Âðàãà <img src="https://img.new-combats.com/<?=getImg(950, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(889, 1)?>"> Ñãóñòîê ýôèðà <img src="https://img.new-combats.com/<?=getImg(889, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(902, 1)?>"> Ïëîä çìåèíîãî äåðåâà <img src="https://img.new-combats.com/<?=getImg(902, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(903, 1)?>"> Òûñÿ÷åëåòíèé êàìåíü <img src="https://img.new-combats.com/<?=getImg(903, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(878, 1)?>"> Ëó÷èñòûé òîïàç <img src="https://img.new-combats.com/<?=getImg(878, 1)?>" width="13" height="13" /></p>
|
||||
<form action="" method="POST">
|
||||
<input type="submit" name="clip90_" value="Ñîáðàòü" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
• <a href="#" onclick="OpenDiv('clip91')">Ïðîêëÿòüå Ëåãêîãî Îòóïëåíèÿ <img src="https://img.new-combats.com/i/items/m_ptp_5.gif"></a><br />
|
||||
<div id="clip91" style="display: none; color: black;">
|
||||
<p style="color:<?=getColor(907, 1)?>"> Êðèñòàëë ñòàáèëüíîñòè <img src="https://img.new-combats.com/<?=getImg(907, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(881, 1)?>"> Ëó÷èñòûé ðóáèí <img src="https://img.new-combats.com/<?=getImg(881, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(905, 1)?>"> Ñòèõèàëèÿ <img src="https://img.new-combats.com/<?=getImg(905, 1)?>" width="13" height="13" /></p>
|
||||
<form action="" method="POST">
|
||||
<input type="submit" name="clip91_" value="Ñîáðàòü" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
• <a href="#" onclick="OpenDiv('clip92')">Ïðîêëÿòüå Óÿçâèìîñòè <img src="https://img.new-combats.com/i/items/m_ptp_6.gif"></a><br />
|
||||
<div id="clip92" style="display: none; color: black;">
|
||||
<p style="color:<?=getColor(907, 1)?>"> Êðèñòàëë ñòàáèëüíîñòè <img src="https://img.new-combats.com/<?=getImg(907, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(881, 1)?>"> Ëó÷èñòûé ðóáèí <img src="https://img.new-combats.com/<?=getImg(881, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(905, 1)?>"> Ñòèõèàëèÿ <img src="https://img.new-combats.com/<?=getImg(905, 1)?>" width="13" height="13" /></p>
|
||||
<form action="" method="POST">
|
||||
<input type="submit" name="clip92_" value="Ñîáðàòü" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
• <a href="#" onclick="OpenDiv('clip93')">Çà÷àðîâàòü êîëüöî: Âûòÿãèâàíèå äóøè [1] <img src="https://img.new-combats.com/i/items/enhp_6_revamp10.gif"></a><br />
|
||||
<div id="clip93" style="display: none; color: black;">
|
||||
<p style="color:<?=getColor(901, 1)?>"> Êðèñòàëë òûñÿ÷è îòâåòîâ <img src="https://img.new-combats.com/<?=getImg(901, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(889, 1)?>"> Ñãóñòîê ýôèðà <img src="https://img.new-combats.com/<?=getImg(889, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(890, 1)?>"> Ñãóñòîê àñòðàëà <img src="https://img.new-combats.com/<?=getImg(890, 1)?>" width="13" height="13" /></p>
|
||||
<form action="" method="POST">
|
||||
<input type="submit" name="clip93_" value="Ñîáðàòü" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
• <a href="#" onclick="OpenDiv('clip94')">Çà÷àðîâàòü êîëüöî: Âûòÿãèâàíèå äóøè [2] <img src="https://img.new-combats.com/i/items/enhp_6_revamp10_2.gif"></a><br />
|
||||
<div id="clip94" style="display: none; color: black;">
|
||||
<p style="color:<?=getColor(4685, 1)?>"> Çà÷àðîâàòü êîëüöî: Âûòÿãèâàíèå äóøè [1] <img src="https://img.new-combats.com/<?=getImg(4685, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(4688, 1)?>"> Òîïëèâî äëÿ Ãîëåìîâ <img src="https://img.new-combats.com/<?=getImg(4688, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(4689, 1)?>"> Ñìàçêà äëÿ Ãîëåìîâ <img src="https://img.new-combats.com/<?=getImg(4689, 1)?>" width="13" height="13" /></p>
|
||||
<p style="color:<?=getColor(4690, 1)?>"> Óñêîðèòåëü äëÿ Ãîëåìîâ <img src="https://img.new-combats.com/<?=getImg(4690, 1)?>" width="13" height="13" /></p>
|
||||
<form action="" method="POST">
|
||||
<input type="submit" name="clip94_" value="Ñîáðàòü" />
|
||||
</form>
|
||||
</div>
|
||||
<br>
|
||||
• <a href="?go_away=1">Óéòè. (Âûõîä)</a>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</div>
|
||||
<div style="float:left">
|
||||
|
||||
<td width="120">
|
||||
<table width="100" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td>
|
||||
<TABLE border=0 cellSpacing=1 cellPadding=0 width="100%">
|
||||
<TBODY>
|
||||
<TR vAlign=top>
|
||||
<TD>
|
||||
<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%">
|
||||
<TBODY>
|
||||
</TBODY></TABLE></TD>
|
||||
<TD><TABLE border=0 cellSpacing=0 cellPadding=0 width="100%"><TBODY>
|
||||
|
||||
</TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<TABLE width=100% align="right">
|
||||
<tr><td>
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
|
||||
</TD></tr>
|
||||
</TABLE>
|
||||
</body>
|
||||
</html>
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Magic\Elemental;
|
||||
|
||||
use battleClass;
|
||||
use Battle;
|
||||
use Insallah\Math;
|
||||
|
||||
class Fire
|
||||
@ -11,7 +11,7 @@ class Fire
|
||||
private $color = '#a00';
|
||||
private $colorCrit = '#f00';
|
||||
private $colorMiss = '#909090';
|
||||
public function __construct(battleClass $btl)
|
||||
public function __construct(Battle $btl)
|
||||
{
|
||||
$this->btl = $btl;
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ if(!defined('GAME'))
|
||||
}
|
||||
|
||||
//Âûäàåì ïðåäìåòû, íî íå ðàíüøå 00:00:00 01-01-2013
|
||||
if(date('Y')==2021) {
|
||||
if(date('Y')==2023) {
|
||||
/*
|
||||
|
||||
2. Íîâîãîäíèé Øîêîëàä (ïîëíîå âîñò. õï)
|
||||
@ -33,7 +33,7 @@ if(date('Y')==2021) {
|
||||
|
||||
//Îòêðûòêà (x1)
|
||||
$idit = $u->addItem(996,$u->info['id']);
|
||||
mysql_query('UPDATE `items_users` SET `gift` = "Новый Год" , `gtxt1` = "Администрация проекта поздравляет Вас с Новым, 2021, Годом!" WHERE `id` = "'.$idit.'" LIMIT 1');
|
||||
mysql_query('UPDATE `items_users` SET `gift` = "Новый Год" , `gtxt1` = "Администрация проекта поздравляет Вас с Новым, 2023, Годом!" WHERE `id` = "'.$idit.'" LIMIT 1');
|
||||
|
||||
|
||||
//òî÷èëêà
|
||||
@ -50,11 +50,11 @@ if(date('Y')==2021) {
|
||||
mysql_query('UPDATE `items_users` SET `gift` = "Ñòàðûé Ãîä",`iznosMAX` = "100" WHERE `id` = "'.$idit.'" LIMIT 1');
|
||||
|
||||
|
||||
$u->error = 'Вы успешно использовали "'.$itm['name'].'". В инвентарь добавлены подарки. С Новым, 2021, Годом!';
|
||||
$u->error = 'Вы успешно использовали "'.$itm['name'].'". В инвентарь добавлены подарки. С Новым, 2023, Годом!';
|
||||
mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE (`item_id` = "4009" OR `id` = "'.$itm['id'].'") AND `uid` = "'.$u->info['id'].'" LIMIT 10'); //2763
|
||||
}
|
||||
}else{
|
||||
$u->error = 'Подарок возможно использовать не раньше 01.01.2021';
|
||||
$u->error = 'Подарок возможно использовать не раньше 01.01.2023';
|
||||
}
|
||||
|
||||
?>
|
@ -1,29 +0,0 @@
|
||||
<?
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
if( $itm['magic_inci'] == 'propuskpsh' ) {
|
||||
$test = mysql_fetch_array(mysql_query('SELECT `id`,`time` FROM `actions` WHERE `uid` = "'.$u->info['id'].'" AND `vars` = "propuskpsh" AND `time` > "'.(time()-300).'" LIMIT 1'));
|
||||
if( $u->info['align'] != 2 ) {
|
||||
if( isset($test['id']) ) {
|
||||
$u->error = 'Çàäåðæêà íå ïðîøëà, åùå '.$u->timeOut($test['time']-time()+300);
|
||||
}else{
|
||||
$u->addAction(time(),'propuskpsh','');
|
||||
$u->error = 'Âñå ïðîøëî óñïåøíî, çàäåðæêè â ïåùåðû ñíÿòà.';
|
||||
if($itm['id'] == 4802) {
|
||||
mysql_query('UPDATE `actions` SET `time` = "'.(time()-43200).'" WHERE `uid` = '.$u->info['id'].' AND `time` > "'.(time()-43200).'" AND `vars` LIKE "psh%" AND `vars` != "psh102" AND `vars` NOT LIKE "psh\_%"');
|
||||
}else{
|
||||
mysql_query('UPDATE `actions` SET `time` = "'.(time()-21600).'" WHERE `uid` = '.$u->info['id'].' AND `time` > "'.(time()-43200).'" AND `vars` LIKE "psh%" AND `vars` != "psh102" AND `vars` NOT LIKE "psh\_%"');
|
||||
}
|
||||
// Äåéñòâóåò òîëüêî íà:
|
||||
// 1) ãäå òàéìåð ìåíüøå 12 ÷àñîâ. (÷òîáû î÷åíü ñòàðûå ïîõîäû íå ìåíÿëè âðåìÿ ïîõîäà 4 ñâèòêà, è ñóòêè íàçàä, èñòîðèÿ ïîõîäîâ íåêîððåêòíàÿ).
|
||||
// 2) íå ñðàáîòàåò íà Ïåùåðó Äðàêîíîâ.
|
||||
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1');
|
||||
}
|
||||
}else{
|
||||
$u->error = 'Õàîñíèêè íå ìîãóò ïîëüçîâàòüñÿ ïðîïóñêîì!';
|
||||
}
|
||||
}
|
||||
?>
|
@ -5,71 +5,42 @@ if(!defined('GAME'))
|
||||
}
|
||||
|
||||
$io .= '<i>Ïîäàðî÷íûé êîìïëåêò Êðèòîâèêà</i>, ';
|
||||
$this->addItem(6361,$this->info['id'],'|nosale=1|srok=604800|sudba='.$this->info['login']);
|
||||
$this->addItem(6361,$this->info['id'],'|nosale=1|srok=604800|sudba='.$this->info['login']);
|
||||
$this->addItem(6364,$this->info['id'],'|nosale=1|srok=604800|sudba='.$this->info['login']);
|
||||
$this->addItem(5237,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5237,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5237,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4401,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5229,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5219,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5211,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5199,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5192,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5186,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5178,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5168,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5161,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5150,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5150,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2472,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(842,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(842,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(749,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(666,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2469,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(580,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(594,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(642,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(814,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(777,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(787,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(803,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(803,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(803,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
|
||||
$io .= '<i>Ñâèòêè, çàòî÷êè è ïðî÷èå ìàòåðèàëû....</i>, ';
|
||||
$this->addItem(4935,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4944,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2712,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2634,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2634,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$io .= '<i>Ñâèòêè è ïðî÷èå ìàòåðèàëû....</i>, ';
|
||||
$this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2621,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2621,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(871,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(994,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
|
||||
?>
|
@ -3,70 +3,43 @@ if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
$io .= '<i>Ïîäàðî÷íûé êîìïëåêò Ìàãà Îãíÿ</i>, ';
|
||||
$this->addItem(850,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(751,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(669,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(1176,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(822,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(583,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(597,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(644,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(810,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4983,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4543,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(5003,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(5003,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(5003,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
|
||||
$io .= '<i>Ïîäàðî÷íûé êîìïëåêò Ìàãà</i>, ';
|
||||
$this->addItem(6406,$this->info['id'],'|nosale=1|srok=604800|sudba='.$this->info['login']);
|
||||
$this->addItem(6409,$this->info['id'],'|nosale=1|srok=604800|sudba='.$this->info['login']);
|
||||
$this->addItem(5153,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5157,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5165,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5173,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2475,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5181,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5189,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5195,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5205,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5216,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5224,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5232,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5232,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5232,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4401,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
|
||||
$io .= '<i>Ñâèòêè, çàòî÷êè è ïðî÷èå ìàòåðèàëû....</i>, ';
|
||||
$this->addItem(4935,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4944,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2712,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2702,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$io .= '<i>Ñâèòêè è ïðî÷èå ìàòåðèàëû....</i>, ';
|
||||
$this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2687,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(873,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); // ýëèê
|
||||
$this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4942,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(1460,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2146,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); //óñèëîê
|
||||
$this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
|
||||
?>
|
@ -3,72 +3,42 @@ if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
$io .= '<i>Ïîäàðî÷íûé êîìïëåêò Òàíêà</i>, ';
|
||||
$this->addItem(6394,$this->info['id'],'|nosale=1|srok=604800|sudba='.$this->info['login']);
|
||||
$this->addItem(6405,$this->info['id'],'|nosale=1|srok=604800|sudba='.$this->info['login']);
|
||||
$this->addItem(6397,$this->info['id'],'|nosale=1|srok=604800|sudba='.$this->info['login']);
|
||||
$this->addItem(6143,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(6151,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(6144,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(6145,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2472,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(6146,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(6147,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(6148,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(6149,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(6150,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(6152,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(6153,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(6154,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(6154,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(6154,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4401,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4648,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4654,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4647,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4651,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2469,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4962,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4968,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4650,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4653,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4652,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4987,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4646,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4649,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4649,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4649,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
|
||||
$io .= '<i>Ñâèòêè, çàòî÷êè è ïðî÷èå ìàòåðèàëû....</i>, ';
|
||||
$this->addItem(4935,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4944,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2712,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2612,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$io .= '<i>Ñâèòêè è ïðî÷èå ìàòåðèàëû....</i>, ';
|
||||
$this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2430,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(870,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(994,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
|
||||
?>
|
@ -4,72 +4,43 @@ if(!defined('GAME'))
|
||||
die();
|
||||
}
|
||||
|
||||
$io .= '<i>Ïîäàðî÷íûé êîìïëåêò Òîïîðà</i>, ';
|
||||
$this->addItem(6383,$this->info['id'],'|nosale=1|srok=604800|sudba='.$this->info['login']);
|
||||
$this->addItem(6383,$this->info['id'],'|nosale=1|srok=604800|sudba='.$this->info['login']);
|
||||
$this->addItem(6386,$this->info['id'],'|nosale=1|srok=604800|sudba='.$this->info['login']);
|
||||
$this->addItem(6142,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(6142,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5163,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5171,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2472,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5177,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5184,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5194,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5201,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5209,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5221,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5228,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5236,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5236,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5236,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4401,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$io .= '<i>Ïîäàðî÷íûé êîìïëåêò Ñèëà÷à ( Òîïîðà )</i>, ';
|
||||
$this->addItem(6483,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(6483,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(6484,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(6485,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2469,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(6486,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(6487,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(6488,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(6489,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(6490,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(6491,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(6492,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(6493,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(6493,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(6493,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
|
||||
$io .= '<i>Ñâèòêè, çàòî÷êè è ïðî÷èå ìàòåðèàëû....</i>, ';
|
||||
$this->addItem(4935,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4944,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2712,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2678,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2678,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$io .= '<i>Ñâèòêè è ïðî÷èå ìàòåðèàëû....</i>, ';
|
||||
$this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2665,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2665,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(870,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(994,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
|
||||
?>
|
@ -4,72 +4,43 @@ if(!defined('GAME'))
|
||||
die();
|
||||
}
|
||||
|
||||
$io .= '<i>Ïîäàðî÷íûé êîìïëåêò Óâîðîò÷èêà</i>, ';
|
||||
$this->addItem(6372,$this->info['id'],'|nosale=1|srok=604800|sudba='.$this->info['login']);
|
||||
$this->addItem(6372,$this->info['id'],'|nosale=1|srok=604800|sudba='.$this->info['login']);
|
||||
$this->addItem(6375,$this->info['id'],'|nosale=1|srok=604800|sudba='.$this->info['login']);
|
||||
$this->addItem(5146,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5146,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5162,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5170,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2472,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5179,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5187,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5193,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5200,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5210,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5220,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5230,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5238,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5238,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5238,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4401,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$io .= '<i>Ïîäàðî÷íûé êîìïëåêò Óâîðîòà</i>, ';
|
||||
$this->addItem(605,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(605,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(748,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(667,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2469,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(735,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(579,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(593,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(641,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(813,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(775,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(786,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(802,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(802,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(802,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
|
||||
$io .= '<i>Ñâèòêè, çàòî÷êè è ïðî÷èå ìàòåðèàëû....</i>, ';
|
||||
$this->addItem(4935,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4944,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2712,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2656,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2656,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$io .= '<i>Ñâèòêè è ïðî÷èå ìàòåðèàëû....</i>, ';
|
||||
$this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2643,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2643,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(872,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(994,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
|
||||
?>
|
@ -3,70 +3,43 @@ if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
$io .= '<i>Ïîäàðî÷íûé êîìïëåêò Ìàãà Âîäû</i>, ';
|
||||
$this->addItem(851,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(753,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(670,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(1176,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(823,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(584,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(598,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(645,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(812,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4984,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4544,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(5004,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(5004,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(5004,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
|
||||
$io .= '<i>Ïîäàðî÷íûé êîìïëåêò Ìàãà</i>, ';
|
||||
$this->addItem(6406,$this->info['id'],'|nosale=1|srok=604800|sudba='.$this->info['login']);
|
||||
$this->addItem(6409,$this->info['id'],'|nosale=1|srok=604800|sudba='.$this->info['login']);
|
||||
$this->addItem(5155,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5158,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5166,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5175,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2475,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5182,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5191,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5196,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5206,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5217,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5225,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5233,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5233,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5233,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4401,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
|
||||
$io .= '<i>Ñâèòêè, çàòî÷êè è ïðî÷èå ìàòåðèàëû....</i>, ';
|
||||
$this->addItem(4935,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4944,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2712,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2702,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$io .= '<i>Ñâèòêè è ïðî÷èå ìàòåðèàëû....</i>, ';
|
||||
$this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2687,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(873,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); // ýëèê
|
||||
$this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4942,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(1460,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2147,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); //óñèëîê
|
||||
$this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
|
||||
?>
|
@ -3,70 +3,43 @@ if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
$io .= '<i>Ïîäàðî÷íûé êîìïëåêò Ìàãà Âîçäóõà</i>, ';
|
||||
$this->addItem(848,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(752,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(671,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(1176,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(820,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(581,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(595,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(646,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(811,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4982,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4545,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(5002,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(5002,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(5002,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
|
||||
$io .= '<i>Ïîäàðî÷íûé êîìïëåêò Ìàãà</i>, ';
|
||||
$this->addItem(6406,$this->info['id'],'|nosale=1|srok=604800|sudba='.$this->info['login']);
|
||||
$this->addItem(6409,$this->info['id'],'|nosale=1|srok=604800|sudba='.$this->info['login']);
|
||||
$this->addItem(5152,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5156,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5164,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5172,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2475,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5180,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5188,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5197,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5204,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5215,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5223,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5231,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5231,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5231,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4401,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
|
||||
$io .= '<i>Ñâèòêè, çàòî÷êè è ïðî÷èå ìàòåðèàëû....</i>, ';
|
||||
$this->addItem(4935,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4944,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2712,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2702,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$io .= '<i>Ñâèòêè è ïðî÷èå ìàòåðèàëû....</i>, ';
|
||||
$this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2687,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(873,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); // ýëèê
|
||||
$this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4942,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(1460,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2148,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); //óñèëîê
|
||||
$this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
|
||||
?>
|
@ -3,70 +3,43 @@ if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
$io .= '<i>Ïîäàðî÷íûé êîìïëåêò Ìàãà Çåìëè</i>, ';
|
||||
$this->addItem(849,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(750,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(668,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(1176,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(821,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(582,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(596,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(643,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(809,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4985,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4546,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(5005,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(5005,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(5005,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
|
||||
$io .= '<i>Ïîäàðî÷íûé êîìïëåêò Ìàãà</i>, ';
|
||||
$this->addItem(6406,$this->info['id'],'|nosale=1|srok=604800|sudba='.$this->info['login']);
|
||||
$this->addItem(6409,$this->info['id'],'|nosale=1|srok=604800|sudba='.$this->info['login']);
|
||||
$this->addItem(5154,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5159,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5167,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5174,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2475,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5183,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5190,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5198,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5207,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5218,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5226,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5234,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5234,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(5234,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4401,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
|
||||
$io .= '<i>Ñâèòêè, çàòî÷êè è ïðî÷èå ìàòåðèàëû....</i>, ';
|
||||
$this->addItem(4935,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4944,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2712,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(10038,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(4691,$this->info['id'],'|tr_lvl=10|nosale=1|sudba='.$this->info['login']);
|
||||
$this->addItem(2702,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
|
||||
$io .= '<i>Ñâèòêè è ïðî÷èå ìàòåðèàëû....</i>, ';
|
||||
$this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2687,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(873,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); // ýëèê
|
||||
$this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4942,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(1460,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(2149,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); //óñèëîê
|
||||
$this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
|
||||
?>
|
@ -42,7 +42,7 @@ if(!defined('GAME'))
|
||||
}
|
||||
$arts_1 = $arts_1[rand(0,count($arts_1)-1)];
|
||||
if( $arts_1 > 0 ) {
|
||||
$this->addItem($arts_1,$this->info['id'],'|nosale=1|srok='.(1*1209600).'',NULL,50);
|
||||
$this->addItem($arts_1,$this->info['id'],'|nosale=1|srok='.(1*259200).'',NULL,50);
|
||||
}
|
||||
//echo '['.$arts_1[rand(0,count($arts_1)-1)].'!'.count($arts_1).'!'.$arts_lvl.']';
|
||||
}
|
||||
|
@ -1,121 +0,0 @@
|
||||
<?
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
if($tr['var_id'] != '') {
|
||||
|
||||
$io = '';
|
||||
|
||||
/*
|
||||
1. Âûïàäàåò àðòåôàêò óðîâíÿ ïåðñîíàæà - 1% , âðåìåííûé , íå ïðîäàåòñÿ , ñóäüáà , 3 äí. ñðîê ãîäíîñòè
|
||||
2. Âûïàäàåò ëèáî 5 åêð. ñâèòîê, ëèáî ñâèòîê +200% îïûòà íà 3 ÷àñà (áåç çàìîðîçêè)
|
||||
3. 1 èç 4 ýëèêñèðîâà +15 (åêð.)
|
||||
4. ×åê 20 êð.
|
||||
*/
|
||||
$trgos = false;
|
||||
|
||||
$key1 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4460 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
|
||||
$key2 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4461 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
|
||||
$key3 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4462 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
|
||||
$key4 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4463 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
|
||||
|
||||
if( isset($key1['id']) && isset($key2['id']) && isset($key3['id']) && isset($key4['id']) ) {
|
||||
mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `id` = '.$key1['id'].' OR `id` = '.$key2['id'].' OR `id` = '.$key3['id'].' OR `id` = '.$key4['id'].' LIMIT 4');
|
||||
$trgos = true;
|
||||
}
|
||||
|
||||
if( $trgos == true ) {
|
||||
if( rand(0,100) == 57 || $this->info['admin'] > 0 ) {
|
||||
//Âûäàåì àðòåôàêò
|
||||
$io .= '<i>Âðåìåííûé àðòåôàêò</i>, ';
|
||||
$arts_1 = array();
|
||||
$arts_lvl = $this->info['level'];
|
||||
if( $arts_lvl < 4 ) {
|
||||
$arts_lvl = 4;
|
||||
}elseif( $arts_lvl > 10 ) {
|
||||
$arts_lvl = 10;
|
||||
}
|
||||
$sp1 = mysql_query('SELECT `items_id` FROM `items_main_data` WHERE `data` LIKE "%|art=%" AND `data` LIKE "%tr_lvl='.$arts_lvl.'%"');
|
||||
while( $pl1 = mysql_fetch_array($sp1) ) {
|
||||
$arts_1[] = $pl1['items_id'];
|
||||
}
|
||||
$arts_1 = $arts_1[rand(0,count($arts_1)-1)];
|
||||
if( $arts_1 > 0 ) {
|
||||
$this->addItem($arts_1,$this->info['id'],'|nosale=1|srok='.(1*86400).'',NULL,50);
|
||||
}
|
||||
//echo '['.$arts_1[rand(0,count($arts_1)-1)].'!'.count($arts_1).'!'.$arts_lvl.']';
|
||||
}
|
||||
|
||||
$recr=rand(0,99); // 1% 4510 - 40 åêð /3% 5021 - 20 åêð /10% 5020 -10 åêð/ 20% 4465 -5 åêð/ 100% 5017 - 1åêð
|
||||
$rcr=rand(0,99); // 5%4274 - 400 êð / 15% 4392/4392 - 100 êð / 30% 4392 -50 êð/ 100% 4464 - 20êð
|
||||
|
||||
if( $recr > 98 ) {
|
||||
//Âûäàåì ÷åê +40 åêð.
|
||||
$io .= '<i>×åê íà 40 åêð.</i>, ';
|
||||
$this->addItem(4510,$this->info['id'],'|sudba='.$this->info['login']);
|
||||
}elseif( $recr > 96 ){
|
||||
//Âûäàåì ÷åê +20 åêð.
|
||||
$io .= '<i>×åê íà 20 åêð.</i>, ';
|
||||
$this->addItem(5021,$this->info['id'],'|sudba='.$this->info['login']);
|
||||
}elseif( $recr > 89 ){
|
||||
//Âûäàåì ÷åê +10 åêð.
|
||||
$io .= '<i>×åê íà 10 åêð.</i>, ';
|
||||
$this->addItem(5020,$this->info['id'],'|sudba='.$this->info['login']);
|
||||
}elseif( $recr > 79 ){
|
||||
//Âûäàåì ÷åê +5 åêð.
|
||||
$io .= '<i>×åê íà 5 åêð.</i>, ';
|
||||
$this->addItem(4465,$this->info['id'],'|sudba='.$this->info['login']);
|
||||
}else{
|
||||
//Âûäàåì ÷åê +1 åêð.
|
||||
$io .= '<i>×åê íà 1 åêð.</i>, ';
|
||||
$this->addItem(5017,$this->info['id'],'|sudba='.$this->info['login']);
|
||||
}
|
||||
|
||||
if( $rcr > 94 ) {
|
||||
//Âûäàåì ÷åê íà 400 êð.
|
||||
$io .= '<i>×åê íà 400 êð.</i> ';
|
||||
$this->addItem(4274,$this->info['id'],'|sudba='.$this->info['login']);
|
||||
}elseif( $rcr > 84 ){
|
||||
//Âûäàåì ÷åê íà 100 êð.
|
||||
$io .= '<i>×åêè íà ñóììó 100 êð.</i> ';
|
||||
$this->addItem(4392,$this->info['id'],'|sudba='.$this->info['login']);
|
||||
$this->addItem(4392,$this->info['id'],'|sudba='.$this->info['login']);
|
||||
}elseif( $rcr > 69 ){
|
||||
//Âûäàåì ÷åê íà 50 êð.
|
||||
$io .= '<i>×åê íà 50 êð.</i> ';
|
||||
$this->addItem(4392,$this->info['id'],'|sudba='.$this->info['login']);
|
||||
}else{
|
||||
//Âûäàåì ÷åê íà 20 êð.
|
||||
$io .= '<i>×åê íà 20 êð.</i> ';
|
||||
$this->addItem(4464,$this->info['id'],'|sudba='.$this->info['login']);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$elik_1 = array(
|
||||
4037,4038,4039,4040
|
||||
);
|
||||
$elik_1 = $elik_1[rand(0,3)];
|
||||
if( $elik_1 > 0 ) {
|
||||
//Âûäàåì 1 èç 4 ýëèêîâ
|
||||
$io .= '<i>Ýëèêñèð +22 ñòàòîâ</i>, ';
|
||||
$this->addItem($elik_1,$this->info['id'],'|nosale=1|sudba='.$this->info['login'],NULL,1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Âûäàåì ñâèòîê +200%
|
||||
$io .= '<i>Ñâèòîê +100% îïûòà</i>, ';
|
||||
$this->addItem(4466,$this->info['id'],'');
|
||||
|
||||
}else{
|
||||
$no_open_itm = true;
|
||||
$this->error = 'Òðåáóåòñÿ 4 ðàçëè÷íûõ êëþ÷à ñ ïîëÿ áèòâû.';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
unset($i5,$i3,$i4);
|
||||
?>
|
@ -1,11 +1,14 @@
|
||||
<?
|
||||
|
||||
if (!defined('GAME')) {
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
if( $itm['magic_inci'] == 'yarostzvezd' ) {
|
||||
$pvr = [];
|
||||
|
||||
|
||||
|
||||
$pvr = array();
|
||||
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
$pvr['trs7'] = 5;
|
||||
@ -28,35 +31,13 @@ if ($itm['magic_inci'] == 'yarostzvezd') {
|
||||
|
||||
mysql_query('DELETE FROM `eff_users` WHERE `uid` = "'.$u->info['id'].'" AND `id_eff` = 22 AND `v1` = "priem" AND `v2` = 325');
|
||||
mysql_query("
|
||||
INSERT INTO `eff_users` (
|
||||
`id_eff`,
|
||||
`uid`,
|
||||
`name`,
|
||||
`data`,
|
||||
`overType`,
|
||||
`timeUse`,
|
||||
`timeAce`,
|
||||
`user_use`,
|
||||
`delete`,
|
||||
`v1`,
|
||||
`v2`, `img2`, `x`, `hod`, `bj`, `sleeptime`, `no_Ace`, `file_finish`, `tr_life_user`, `deactiveTime`, `deactiveLast`, `mark`, `bs`) VALUES
|
||||
(
|
||||
22,
|
||||
'" . $u->info['id'] . "',
|
||||
'ßðîñòü Õîëîäíûõ Çâåçä',
|
||||
'add_acestar=1',
|
||||
0,
|
||||
77,
|
||||
0,
|
||||
'" . $u->info['id'] . "',
|
||||
0,
|
||||
'priem',
|
||||
325,
|
||||
'elementalcrit.gif', 1, -1, 'ÿðîñòüõîëîäíûõçâåçä', 0, 0, '', 0, 0, 0, 1, 0);
|
||||
INSERT INTO `eff_users` ( `id_eff`, `uid`, `name`, `data`, `overType`, `timeUse`, `timeAce`, `user_use`, `delete`, `v1`, `v2`, `img2`, `x`, `hod`, `bj`, `sleeptime`, `no_Ace`, `file_finish`, `tr_life_user`, `deactiveTime`, `deactiveLast`, `mark`, `bs`) VALUES
|
||||
( 22, '".$u->info['id']."', 'ßðîñòü Õîëîäíûõ Çâåçä', 'add_acestar=1', 0, 77, 0, '".$u->info['id']."', 0, 'priem', 325, 'elementalcrit.gif', 1, -1, 'ÿðîñòüõîëîäíûõçâåçä', 0, 0, '', 0, 0, 0, 1, 0);
|
||||
");
|
||||
|
||||
$u->error = '<font color=red><b>Âû ïî÷óâñòâîâàëè ñèëó... </b></font>';
|
||||
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1');
|
||||
|
||||
}else{
|
||||
$u->error = '<font color=red><b>Ñâèòîê âîçìîæíî èñïîëüçîâàòü òîëüêî â áîþ</b></font>';
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,243 +0,0 @@
|
||||
<?php
|
||||
class GameDealerClass {
|
||||
//Êîíôèãóðàöèè
|
||||
public $c = array(
|
||||
/* MySQL Áàçà äàííûõ */
|
||||
'db_name' => 'pay_operations', //Òàáëèöà â êîòîðóþ çàíîñÿòñÿ äàííûå
|
||||
'db_host' => 'localhost',
|
||||
'db_user' => 'newcom1_abk',
|
||||
'db_pass' => '4nWYsIM[c?}P',
|
||||
'db_base' => 'newcom1_abk',
|
||||
/* Íàñòðîéêè ïëàòåæåé */
|
||||
'ip_list' => array('127,0,0,1,188.166.34.68,136.243.38.147,136.243.38.149,136.243.38.150,136.243.38.151,136.243.38.189,88.198.88.98'), //Óêàçûâàòü ÷åðåç çàïÿòóþ (Ðàçðåøåííûå IP)
|
||||
'key' => 'qtzl0igb', //gamedealer key
|
||||
'id' => '65643' //ID ïðîåêòà
|
||||
),
|
||||
$ip = '',
|
||||
$BACK = array(); //Ðåçóëüòàò êîòîðûé âîçâðàùàåì â êîíöå
|
||||
|
||||
//Êîäèðóåì èç ÞÒÔ-8 â Êèðèëèöó
|
||||
public function in($text) {
|
||||
return iconv("UTF-8","cp1251",$text);
|
||||
}
|
||||
|
||||
//Êîäèðóåì èç Êèðèëèöó â ÞÒÔ-8
|
||||
public function out($text) {
|
||||
return iconv("cp1251","UTF-8",$text);
|
||||
}
|
||||
|
||||
//Äîáàâëÿåì äàííûå â áàçó äàííûõ
|
||||
public function add($type,$value,$money) {
|
||||
mysql_query('INSERT INTO `'.$this->c['db_name'].'` (`time`,`type`,`ip`,`value`,`money`,`project`) VALUES ("'.time().'","'.mysql_real_escape_string($type).'","'.$_SERVER['HTTP_X_REAL_IP'].'","'.mysql_real_escape_string($value).'","'.mysql_real_escape_string($money).'","'.mysql_real_escape_string($this->id).'")');
|
||||
}
|
||||
|
||||
//Ïîäêëþ÷àåìñÿ ê áàçå äàííûõ
|
||||
public function connect_db() {
|
||||
$db = mysql_connect($this->c['db_host'],$this->c['db_user'],$this->c['db_pass']) or die('Îøèáêà ïîäêëþ÷åíèÿ ê MySQL ñåðâåðó!');
|
||||
mysql_select_db($this->c['db_base'],$db) or die('Îøèáêà ïîäêëþ÷åíèÿ ê áàçå äàííûõ!');
|
||||
mysql_query('SET NAMES cp1251');
|
||||
}
|
||||
|
||||
public function output($a,$v = NULL) {
|
||||
$r = '';
|
||||
$i = 0;
|
||||
while($i < count($a)) {
|
||||
$rn = '';
|
||||
$tb = '';
|
||||
if($v != NULL) {
|
||||
$rn = "\r\n";
|
||||
$tb = " ";
|
||||
}
|
||||
$r .= $rn.'<'.$a[$i][0].'>';
|
||||
if(!is_array($a[$i][1])) {
|
||||
$rn = '';
|
||||
$tb = '';
|
||||
$r .= $rn.$tb.($this->out($a[$i][1]));
|
||||
}else{
|
||||
if($i > 0) {
|
||||
$r .= $rn;
|
||||
}
|
||||
$r .= $tb.($this->output($a[$i][1],1));
|
||||
}
|
||||
$r .= $rn.'</'.$a[$i][0].'>';
|
||||
$i++;
|
||||
}
|
||||
return $r;
|
||||
}
|
||||
|
||||
//Ãåíåðèðóåì XML-ôàéë
|
||||
public function backInformation() {
|
||||
header('Content-Type: text/html/force-download');
|
||||
echo '<?xml version="1.0" encoding="UTF-8"?>';
|
||||
echo $this->output($this->BACK,1);
|
||||
}
|
||||
|
||||
//Ïðîâåðêà ñóùåñòâîâàíèÿ ïåðñîíàæà
|
||||
public function test_accaunt($nick) {
|
||||
$r = false;
|
||||
$nick = mysql_fetch_array(mysql_query('SELECT `id` FROM `bank` WHERE `id` = "'.mysql_real_escape_string($nick).'" LIMIT 1'));
|
||||
if(isset($nick['id'])) {
|
||||
$r = true;
|
||||
}
|
||||
return $r;
|
||||
}
|
||||
|
||||
//Ïîëó÷àåò ñ÷åò â áàíêå ïî ëîãèíó
|
||||
public function getBank($nick) {
|
||||
$nick = mysql_fetch_array(mysql_query('SELECT `id` FROM `users` WHERE `login` = "'.mysql_real_escape_string($nick).'" LIMIT 1'));
|
||||
$nick = mysql_fetch_array(mysql_query('SELECT `id` FROM `bank` WHERE `uid` = "'.mysql_real_escape_string($nick['id']).'" LIMIT 1'));
|
||||
return $nick['id'];
|
||||
}
|
||||
|
||||
//Ïîèñê ëîãèíà
|
||||
public function bank_user($nick) {
|
||||
$nick = mysql_fetch_array(mysql_query('SELECT `id`,`uid FROM `bank` WHERE `id` = "'.mysql_real_escape_string($nick).'" LIMIT 1'));
|
||||
$nick = mysql_fetch_array(mysql_query('SELECT `id`,`login` FROM `users` WHERE `login` = "'.mysql_real_escape_string($nick['uid']).'" LIMIT 1'));
|
||||
return $nick['login'];
|
||||
}
|
||||
|
||||
//Íà÷èíàåì îáðàáîòêó çàïðîñîâ
|
||||
public function start_session() {
|
||||
|
||||
$this->ip = $_SERVER['HTTP_X_REAL_IP'];
|
||||
|
||||
//Ïîäêëþ÷àåìñÿ ê ÁÄ
|
||||
$this->connect_db();
|
||||
|
||||
//Ïîëó÷àåì äàííûå çàïðîñà
|
||||
//$xml = file_get_contents('php://input');
|
||||
|
||||
//Ïàðñèíã XML çàïðîñà
|
||||
if(function_exists('simplexml_load_string')) {
|
||||
$xml = simplexml_load_string($xml);
|
||||
}else{
|
||||
$this->BACK = array(array('gdanswer',array(array('status','-1'),array('desc','Íå óäàëîñü ïðîèçâåñòè îáðàáîòêó çàïðîñà'))));
|
||||
die($this->backInformation());
|
||||
}
|
||||
|
||||
$this->id = $xml->projectid;
|
||||
|
||||
if(!in_array($this->ip,$this->c['ip_list'])) {
|
||||
$this->BACK = array(array('gdanswer',array(array('status','-1'),array('desc','Íåò äîñòóïà ñ äàííîãî IP'))));
|
||||
die($this->backInformation());
|
||||
}
|
||||
|
||||
//Îáðàáîòêà çàïðîñîâ
|
||||
if($xml->method == 'check_balance') {
|
||||
//<sign>MD5(method+MD5(gdKey))</sign>
|
||||
|
||||
$sign = md5($xml->method.md5($this->c['key']));
|
||||
|
||||
if($sign == $xml->sign) {
|
||||
//Áàëàíñ äèëåðà
|
||||
$balance = 1000000;
|
||||
$this->BACK = array(array('gdanswer',array(array('status','1'),array('desc','Áàëàíñ äèëåðà: '.$balance),array('balance',$balance))));
|
||||
$this->add('4','check:'.$xml->nick.':1'.$r,0);
|
||||
}
|
||||
|
||||
}elseif($xml->method == 'check') {
|
||||
/*
|
||||
nick - ëîãèí ïåðñîíàæà <sign>MD5(nick+method+MD5(gdKey))</sign> */
|
||||
|
||||
$sign = md5($xml->nick.$xml->method.md5($this->c['key']));
|
||||
|
||||
if($sign == $xml->sign) {
|
||||
$xml->nick = $this->in($xml->nick);
|
||||
if($this->test_accaunt($xml->nick) == true) {
|
||||
//Ïåðñîíàæ íàéäåí è çà÷èñëÿåì åìó èãðîâóþ âàëþòó
|
||||
$this->BACK = array(array('gdanswer',array(array('status','1'),array('desc','Áàíêîâñêèé ñ÷åò íàéäåí'))));
|
||||
$this->add('3','check:'.$xml->nick.':1'.$r,0);
|
||||
}else{
|
||||
//Ïåðñîíàæ íå íàéäåí
|
||||
$this->BACK = array(array('gdanswer',array(array('status','-1'),array('desc','Ïëàòåæ íå îáðàáîòàí. Áàíêîâñêèé ñ÷åò íå íàéäåí.'))));
|
||||
$this->add('-1','Ïåðñîíàæ íå íàéäåí:pay:'.$xml->nick.':0',0);
|
||||
}
|
||||
}
|
||||
}elseif($xml->method == 'pay') {
|
||||
/* Ïðîâîäèì ïëàòåæ
|
||||
nick - ëîãèí àêêàóíòà , projectid - id ïðîåêòà , sign , amount - äåíüãè , payid - id ïëàòåæà */
|
||||
|
||||
$sign = md5($xml->nick.$xml->projectid.$xml->amount.$xml->payid.$xml->method.md5($this->c['key']));
|
||||
|
||||
if($sign == $xml->sign) {
|
||||
$xml->nick = $this->in($xml->nick);
|
||||
if($this->test_accaunt($xml->nick) == true) {
|
||||
//Ïåðñîíàæ íàéäåí è çà÷èñëÿåì åìó èãðîâóþ âàëþòó
|
||||
$bank = $this->test_accaunt($xml->nick);
|
||||
if($bank > 0) {
|
||||
mysql_query('UPDATE `bank` SET `money2` = `money2` + '.mysql_real_escape_string($xml->amount).' WHERE `id` = "'.mysql_real_escape_string($xml->nick).'" LIMIT 1');
|
||||
$this->BACK = array(array('gdanswer',array(array('status','1'),array('desc','Ïëàòåæ ïðîøåë óñïåøíî'),array('id',$this->c['id']))));
|
||||
$this->add('2','pay:'.$xml->nick.':'.$xml->projectid.':'.$xml->sign.':'.$xml->amount.':'.$xml->payid.':'.$bank['id'],$xml->amount);
|
||||
|
||||
$user = mysql_fetch_array(mysql_query('SELECT `id`,`uid` FROM `bank` WHERE `id` = "'.mysql_real_escape_string($xml->nick).'" LIMIT 1'));
|
||||
$user = mysql_fetch_array(mysql_query('SELECT `id`,`login`,`city`,`sex`,`room` FROM `users` WHERE `id` = "'.mysql_real_escape_string($user['uid']).'" LIMIT 1'));
|
||||
|
||||
mysql_query('UPDATE `users` SET `catch` = `catch` + '.mysql_real_escape_string(floor($xml->amount)).' WHERE `id` = "'.mysql_real_escape_string($xml->nick).'" LIMIT 1');
|
||||
|
||||
$r = '<span class=date>'.date('d.m.Y H:i').'</span> Àëõèìèê <img src=https://img.new-combats.com/i/align/align50.gif width=12 height=15 /><u><b>Enchanter</b> / Àâòîìàòè÷åñêàÿ îïëàòà</u> ñîîáùàåò: ';
|
||||
|
||||
if($user['sex'] == 1) {
|
||||
$r .= 'Óâàæàåìàÿ';
|
||||
}else{
|
||||
$r .= 'Óâàæàåìûé';
|
||||
}
|
||||
|
||||
$r .= ' <b>'.$user['login'].'</b>, íà Âàø áàíêîâñêèé ñ÷åò ¹'.$bank.' çà÷èñëåíî '.$xml->amount.' Ekr. Áëàãîäàðèì Âàñ çà ïîêóïêó!';
|
||||
|
||||
mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`) VALUES ('1','".$user['city']."','".$user['room']."','','".$user['login']."','".$r."','-1','5','0')");
|
||||
|
||||
}else{
|
||||
$this->BACK = array(array('gdanswer',array(array('status','-1'),array('desc','Ó ïîëüçîâàòåëÿ îòñóòñòâóåò áàíê'),array('id',$this->c['id']))));
|
||||
$this->add('-1','Ó ïåðñîíàæà îòñóòñòâóåò áàíê:pay:'.$xml->nick.':'.$xml->projectid.':'.$xml->sign.':'.$xml->amount.':'.$xml->payid.':'.$bank['id'],$xml->amount);
|
||||
}
|
||||
}else{
|
||||
//Ïåðñîíàæ íå íàéäåí
|
||||
$this->BACK = array(array('gdanswer',array(array('status','-1'),array('desc','Ïëàòåæ íå îáðàáîòàí. Ïåðñîíàæ íå íàéäåí.'))));
|
||||
$this->add('-1','Ïåðñîíàæ íå íàéäåí:pay:'.$xml->nick.':0',0);
|
||||
}
|
||||
}else{
|
||||
//Îøèáêà ñèãíàòóðû
|
||||
$this->BACK = array(array('gdanswer',array(array('status','-1'),array('desc','Îøèáêà ñèãíàòóðû'))));
|
||||
$this->add('-1','Îøèáêà ñèãíàòóðû:pay:'.$xml->nick.':0',0);
|
||||
}
|
||||
}elseif($xml->method == 'check_login') {
|
||||
/* Ïðîâåðêà àêêàóíòà
|
||||
nick - ëîãèí àêêàóíòà , projectid - id ïðîåêòà , sign */
|
||||
$sign = md5($xml->nick.$xml->method.md5($this->c['key']));
|
||||
|
||||
if($sign == $xml->sign) {
|
||||
$xml->nick = $this->in($xml->nick);
|
||||
if($this->test_accaunt($xml->nick) == true) {
|
||||
//Ïåðñîíàæ íàéäåí
|
||||
$this->BACK = array(array('gdanswer',array(array('status','1'),array('desc','Ñ÷åò íàéäåí'),array('addinfo',$this->bank_user($xml->nick)))));
|
||||
$this->add('1','check_login:'.$xml->nick.':1'.$r,0);
|
||||
}else{
|
||||
//Ïåðñîíàæ íå íàéäåí
|
||||
$this->BACK = array(array('gdanswer',array(array('status','-1'),array('desc','Ñ÷åò íå íàéäåí'))));
|
||||
$this->add('-1','Ïåðñîíàæ íå íàéäåí:check_login:'.$xml->nick.':0',0);
|
||||
}
|
||||
}else{
|
||||
//Îøèáêà ñèãíàòóðû
|
||||
$this->BACK = array(array('gdanswer',array(array('status','-1'),array('desc','Îøèáêà ñèãíàòóðû'))));
|
||||
$this->add('-1','Îøèáêà ñèãíàòóðû:pay:'.$xml->nick.':0',0);
|
||||
}
|
||||
}else{
|
||||
$this->BACK = array(array('gdanswer',array(array('status','-1'),array('desc','Íåèçâåñòíûé òèï çàïðîñà'))));
|
||||
$this->add('-1','Íåèçâåñòíûé òèï çàïðîñà:error_method:gamedealer',0);
|
||||
}
|
||||
|
||||
//Çàíîñèì èíôîðìàöèþ
|
||||
/* Ïðèìåð ðåçóëüòàòà çàïðîñà
|
||||
$this->BACK = array(
|
||||
array('gdanswer',array(array('status',-100),array('desc','Îïèñàíèå çàïðîñà')))
|
||||
);
|
||||
*/
|
||||
|
||||
//Âîçâðàùàåì ðåçóëüòàò
|
||||
$this->backInformation();
|
||||
}
|
||||
}
|
||||
|
||||
$pay = new GameDealerClass;
|
||||
$pay->start_session();
|
||||
?>
|
@ -24,8 +24,8 @@ if( isset($pr_momental_this)) {
|
||||
unset( $pr_used_this );
|
||||
}else{
|
||||
|
||||
$pvr['hp_0'] = 1;
|
||||
$pvr['hp_1'] = 95;
|
||||
$pvr['hp_0'] = 50;
|
||||
$pvr['hp_1'] = 65;
|
||||
|
||||
//
|
||||
$pvr['hp'] = floor(rand($pvr['hp_0'],$pvr['hp_1']));
|
||||
|
@ -7,7 +7,7 @@ if(!defined('GAME')) {
|
||||
*/
|
||||
$pvr = array();
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
$pvr['hp'] = rand(34,41);
|
||||
$pvr['hp'] = rand(46,54);
|
||||
$pvr['hp'] = $this->magatack( $u->info['id'], $this->ue['id'], $pvr['hp'], 'çåìëÿ', 1 );
|
||||
$pvr['promah_type'] = $pvr['hp'][3];
|
||||
$pvr['promah'] = $pvr['hp'][2];
|
||||
|
@ -126,7 +126,7 @@ if( isset($pr_used_this) && isset($pr_moment) ) {
|
||||
};
|
||||
unset( $pr_used_this );
|
||||
}else{
|
||||
$pvr['hp'] = floor(rand(66,71));
|
||||
$pvr['hp'] = floor(rand(70,81));
|
||||
$pvr['hp'] = $this->magatack( $u->info['id'], $this->ue['id'], $pvr['hp'], 'çåìëÿ', 0 );
|
||||
$pvr['promah_type'] = $pvr['hp'][3];
|
||||
$pvr['promah'] = $pvr['hp'][2];
|
||||
|
@ -6,7 +6,7 @@ if(!defined('GAME')) {
|
||||
Ïðèåì: Êàìåííûé Äîæäü [8]
|
||||
*/
|
||||
$pvr = array();
|
||||
$pvr['hp_0'] = 13;
|
||||
$pvr['hp_0'] = 30;
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
$pvr['hp'] = $pvr['hp_0'];
|
||||
$pvr['hp'] = $this->magatack( $u->info['id'], $this->ue['id'], $pvr['hp'], 'çåìëÿ', 1 );
|
||||
|
@ -24,8 +24,8 @@ if( isset($pr_momental_this)) {
|
||||
unset( $pr_used_this );
|
||||
}else{
|
||||
|
||||
$pvr['hp_0'] = 25;
|
||||
$pvr['hp_1'] = 51;
|
||||
$pvr['hp_0'] = 30;
|
||||
$pvr['hp_1'] = 50;
|
||||
|
||||
//
|
||||
$pvr['hp'] = floor($pvr['hp_1']);
|
||||
|
@ -1,127 +0,0 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Ïðèçðà÷íàÿ çàùèòà
|
||||
Ñëåäóþùèé óäàð ïðîòèâíèêà ïî âàì íàíåñåò íà 75% ìåíüøå óðîíà
|
||||
*/
|
||||
$pvr = array();
|
||||
if( isset($pr_momental_this)) {
|
||||
$fx_moment = function( $uid, $enemy, $j_id, $yron, $profil ) {
|
||||
if(!isset($btl->stats[$btl->uids[$uid]]['um_priem'][$j_id])) {
|
||||
global $u, $btl;
|
||||
$yron = $yron/4;
|
||||
$btl->priemAddLogFast( $uid, 0, "Ïðèçðà÷íàÿ çàùèòà",
|
||||
'{tm1} '.$btl->addlt(1 , 17 , $btl->users[$btl->uids[$uid]]['sex'] , NULL).'',
|
||||
0, time() );
|
||||
if( $yron < 0 ) {
|
||||
$yron = 1;
|
||||
}
|
||||
$btl->stats[$btl->uids[$uid]]['um_priem'][$j_id] = true;
|
||||
}
|
||||
return round($yron);
|
||||
};
|
||||
}elseif( isset($pr_tested_this) ) {
|
||||
$fx_priem = function( $id , $at , $uid, $j_id ) {
|
||||
// -- íà÷àëî ïðèåìà
|
||||
global $u, $btl;
|
||||
//
|
||||
//Ïàðàìåòðû ïðèåìà
|
||||
$pvr['used'] = 0;
|
||||
//
|
||||
$uid1 = $btl->atacks[$id]['uid1'];
|
||||
$uid2 = $btl->atacks[$id]['uid2'];
|
||||
if( $uid == $uid2 ) {
|
||||
$a = 1;
|
||||
$b = 2;
|
||||
$u1 = ${'uid1'};
|
||||
$u2 = ${'uid2'};
|
||||
}elseif( $uid == $uid1 ) {
|
||||
$a = 2;
|
||||
$b = 1;
|
||||
$u1 = ${'uid2'};
|
||||
$u2 = ${'uid1'};
|
||||
}
|
||||
/*
|
||||
if((!isset($btl->atacks[$id]['newsf5']) || $btl->atacks[$id]['newsf5'] == false) && (!isset($btl->atacks[$id]['stopfx']) || $btl->atacks[$id]['stopfx'] == false)) {
|
||||
if( isset($at['p'][$a]['priems']['kill'][$uid][$j_id]) ) {
|
||||
mysql_query('UPDATE `eff_users` SET `delete` = "'.time().'" WHERE `id` = "'.$btl->stats[$btl->uids[$uid]]['u_priem'][$j_id][3].'" AND `uid` = "'.$uid.'" LIMIT 1');
|
||||
unset($btl->stats[$btl->uids[$uid]]['u_priem'][$j_id]);
|
||||
$btl->stats[$btl->uids[$uid]]['u_priem'][$j_id] = false;
|
||||
}
|
||||
}
|
||||
*/
|
||||
//
|
||||
// -- êîíåö ïðèåìà
|
||||
return $at;
|
||||
};
|
||||
unset( $pr_used_this );
|
||||
}elseif( isset($pr_used_this) ) {
|
||||
$fx_priem = function( $id , $at , $uid, $j_id ) {
|
||||
// -- íà÷àëî ïðèåìà
|
||||
global $u, $btl;
|
||||
//
|
||||
//Ïàðàìåòðû ïðèåìà
|
||||
$pvr['used'] = 0;
|
||||
//
|
||||
$uid1 = $btl->atacks[$id]['uid1'];
|
||||
$uid2 = $btl->atacks[$id]['uid2'];
|
||||
if( $uid == $uid2 ) {
|
||||
$a = 1;
|
||||
$b = 2;
|
||||
$u1 = ${'uid1'};
|
||||
$u2 = ${'uid2'};
|
||||
}elseif( $uid == $uid1 ) {
|
||||
$a = 2;
|
||||
$b = 1;
|
||||
$u1 = ${'uid2'};
|
||||
$u2 = ${'uid1'};
|
||||
}
|
||||
if( $a > 0 ) {
|
||||
$j = 0; $k = 0; $wp = 3;
|
||||
while($j < count($at['p'][$a]['atack'])) {
|
||||
if( isset($at['p'][$a]['atack'][$j]['yron']) && (
|
||||
$at['p'][$a]['atack'][$j][1] == 1 ||
|
||||
$at['p'][$a]['atack'][$j][1] == 4 ||
|
||||
$at['p'][$a]['atack'][$j][1] == 5 )) {
|
||||
//if( !isset($at['p'][$a]['priems']['kill'][$uid][$j_id]) ) {
|
||||
//
|
||||
$at['p'][$a]['atack'][$j]['yron']['y'] = round($at['p'][$a]['atack'][$j]['yron']['y']/4);
|
||||
$at['p'][$a]['atack'][$j]['yron']['r'] = round($at['p'][$a]['atack'][$j]['yron']['r']/4);
|
||||
$at['p'][$a]['atack'][$j]['yron']['k'] = round($at['p'][$a]['atack'][$j]['yron']['k']/4);
|
||||
$at['p'][$a]['atack'][$j]['yron']['m_k'] = round($at['p'][$a]['atack'][$j]['yron']['m_k']/4);
|
||||
$at['p'][$a]['atack'][$j]['yron']['m_y'] = round($at['p'][$a]['atack'][$j]['yron']['m_y']/4);
|
||||
//
|
||||
if( $at['p'][$a]['atack'][$j]['yron']['y'] < 1 ) { $at['p'][$a]['atack'][$j]['yron']['y'] = 1; }
|
||||
if( $at['p'][$a]['atack'][$j]['yron']['r'] >= 0 ) { $at['p'][$a]['atack'][$j]['yron']['r'] = -1; }
|
||||
if( $at['p'][$a]['atack'][$j]['yron']['k'] < 1 ) { $at['p'][$a]['atack'][$j]['yron']['k'] = 1; }
|
||||
if( $at['p'][$a]['atack'][$j]['yron']['m_k'] < 1 ) { $at['p'][$a]['atack'][$j]['yron']['m_k'] = 1; }
|
||||
if( $at['p'][$a]['atack'][$j]['yron']['m_y'] < 1 ) { $at['p'][$a]['atack'][$j]['yron']['m_y'] = 1; }
|
||||
//
|
||||
if( $pvr['used'] == 0 ) {
|
||||
$at['p'][$a]['atack'][$j]['yron']['plog'][] = '$this->priemAddLog( '.$id.', '.$b.', '.$a.', '.$u2.', '.$u1.',
|
||||
"Ïðèçðà÷íàÿ çàùèòà",
|
||||
"{tm1} '.$btl->addlt($b , 17 , $btl->users[$btl->uids[$u2]]['sex'] , NULL).'",
|
||||
'.($btl->hodID + 1).' );';
|
||||
}
|
||||
//
|
||||
$at['p'][$a]['atack'][$j]['yron']['used'][] = array($j_id,$uid,$pvr['used']);
|
||||
$at['p'][$a]['atack'][$j]['yron']['kill'][] = array($j_id,$uid,$pvr['kill']);
|
||||
//
|
||||
$at['p'][$a]['priems']['kill'][$uid][$j_id] = true;
|
||||
//}
|
||||
}
|
||||
$j++;
|
||||
}
|
||||
}
|
||||
// -- êîíåö ïðèåìà
|
||||
return $at;
|
||||
};
|
||||
unset( $pr_used_this );
|
||||
}else{
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
$this->addEffPr($pl,$id);
|
||||
}
|
||||
unset($pvr);
|
||||
?>
|
@ -1,140 +0,0 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Ïðèçðà÷íàÿ çàùèòà
|
||||
Ñëåäóþùèé óäàð ïðîòèâíèêà ïî âàì íàíåñåò íà 75% ìåíüøå óðîíà
|
||||
*/
|
||||
$pvr = array();
|
||||
if( isset($pr_momental_this)) {
|
||||
$fx_moment = function( $uid, $enemy, $j_id, $yron, $profil ) {
|
||||
if(!isset($btl->stats[$btl->uids[$uid]]['um_priem'][$j_id])) {
|
||||
global $u, $btl;
|
||||
if( $btl->stats[$btl->uids[$u2]]['effects'][$btl->stats[$btl->uids[$uid]]['u_priem'][$j_id][0]]['name'] == 'Áåñ÷óâñòâåííîñòü' ) {
|
||||
//$yron = $yron/10;
|
||||
}else{
|
||||
//$yron = $yron/4;
|
||||
}
|
||||
$btl->priemAddLogFast( $uid, 0, "".$btl->stats[$btl->uids[$u2]]['effects'][$btl->stats[$btl->uids[$uid]]['u_priem'][$j_id][0]]['name']."",
|
||||
'{tm1} '.$btl->addlt(1 , 17 , $btl->users[$btl->uids[$uid]]['sex'] , NULL).'',
|
||||
0, time() );
|
||||
if( $yron < 0 ) {
|
||||
$yron = 1;
|
||||
}
|
||||
$btl->stats[$btl->uids[$uid]]['um_priem'][$j_id] = true;
|
||||
}
|
||||
return round($yron);
|
||||
};
|
||||
}elseif( isset($pr_tested_this) ) {
|
||||
$fx_priem = function( $id , $at , $uid, $j_id ) {
|
||||
// -- íà÷àëî ïðèåìà
|
||||
global $u, $btl;
|
||||
//
|
||||
//Ïàðàìåòðû ïðèåìà
|
||||
$pvr['used'] = 0;
|
||||
//
|
||||
$uid1 = $btl->atacks[$id]['uid1'];
|
||||
$uid2 = $btl->atacks[$id]['uid2'];
|
||||
if( $uid == $uid2 ) {
|
||||
$a = 1;
|
||||
$b = 2;
|
||||
$u1 = ${'uid1'};
|
||||
$u2 = ${'uid2'};
|
||||
}elseif( $uid == $uid1 ) {
|
||||
$a = 2;
|
||||
$b = 1;
|
||||
$u1 = ${'uid2'};
|
||||
$u2 = ${'uid1'};
|
||||
}
|
||||
if( isset($at['p'][$a]['priems']['kill'][$uid][$j_id]) ) {
|
||||
mysql_query('UPDATE `eff_users` SET `delete` = "'.time().'" WHERE `id` = "'.$btl->stats[$btl->uids[$uid]]['u_priem'][$j_id][3].'" AND `uid` = "'.$uid.'" LIMIT 1');
|
||||
unset($btl->stats[$btl->uids[$uid]]['u_priem'][$j_id]);
|
||||
}
|
||||
//
|
||||
// -- êîíåö ïðèåìà
|
||||
return $at;
|
||||
};
|
||||
unset( $pr_used_this );
|
||||
}elseif( isset($pr_used_this) ) {
|
||||
$fx_priem = function( $id , $at , $uid, $j_id ) {
|
||||
// -- íà÷àëî ïðèåìà
|
||||
global $u, $btl;
|
||||
//
|
||||
//Ïàðàìåòðû ïðèåìà
|
||||
$pvr['used'] = 0;
|
||||
//
|
||||
$uid1 = $btl->atacks[$id]['uid1'];
|
||||
$uid2 = $btl->atacks[$id]['uid2'];
|
||||
if( $uid == $uid2 ) {
|
||||
$a = 1;
|
||||
$b = 2;
|
||||
$u1 = ${'uid1'};
|
||||
$u2 = ${'uid2'};
|
||||
}elseif( $uid == $uid1 ) {
|
||||
$a = 2;
|
||||
$b = 1;
|
||||
$u1 = ${'uid2'};
|
||||
$u2 = ${'uid1'};
|
||||
}
|
||||
if( $a > 0 ) {
|
||||
$j = 0; $k = 0; $wp = 3;
|
||||
/*$at['p'][$a]['atack'][$j]['yron']['plog'][] = '$this->deleffm(141,'.(0+$uid).','.$btl->stats[$btl->uids[$uid]]['u_priem'][$j_id][3].');
|
||||
$this->priemAddLog( '.$id.', '.$b.', '.$a.', '.$u2.', '.$u1.',
|
||||
"'.$btl->stats[$btl->uids[$u2]]['effects'][$btl->stats[$btl->uids[$uid]]['u_priem'][$j_id][0]]['name'].'",
|
||||
"{tm1} '.$btl->addlt($b , 17 , $btl->users[$btl->uids[$u2]]['sex'] , NULL).'",
|
||||
'.($btl->hodID + 1).' );';*/
|
||||
while($j < count($at['p'][$a]['atack'])) {
|
||||
if( isset($at['p'][$a]['atack'][$j]['yron']) && (
|
||||
$at['p'][$a]['atack'][$j][1] == 1 ||
|
||||
$at['p'][$a]['atack'][$j][1] == 4 ||
|
||||
$at['p'][$a]['atack'][$j][1] == 5 )) {
|
||||
//if( !isset($at['p'][$a]['priems']['kill'][$uid][$j_id]) ) {
|
||||
//
|
||||
/*if( $btl->stats[$btl->uids[$u2]]['effects'][$btl->stats[$btl->uids[$uid]]['u_priem'][$j_id][0]]['name'] == 'Áåñ÷óâñòâåííîñòü' ) {
|
||||
$at['p'][$a]['atack'][$j]['yron']['y'] = round($at['p'][$a]['atack'][$j]['yron']['y']/10);
|
||||
$at['p'][$a]['atack'][$j]['yron']['r'] = round($at['p'][$a]['atack'][$j]['yron']['r']/10);
|
||||
$at['p'][$a]['atack'][$j]['yron']['k'] = round($at['p'][$a]['atack'][$j]['yron']['k']/10);
|
||||
$at['p'][$a]['atack'][$j]['yron']['m_k'] = round($at['p'][$a]['atack'][$j]['yron']['m_k']/10);
|
||||
$at['p'][$a]['atack'][$j]['yron']['m_y'] = round($at['p'][$a]['atack'][$j]['yron']['m_y']/10);
|
||||
}else{
|
||||
$at['p'][$a]['atack'][$j]['yron']['y'] = round($at['p'][$a]['atack'][$j]['yron']['y']/4);
|
||||
$at['p'][$a]['atack'][$j]['yron']['r'] = round($at['p'][$a]['atack'][$j]['yron']['r']/4);
|
||||
$at['p'][$a]['atack'][$j]['yron']['k'] = round($at['p'][$a]['atack'][$j]['yron']['k']/4);
|
||||
$at['p'][$a]['atack'][$j]['yron']['m_k'] = round($at['p'][$a]['atack'][$j]['yron']['m_k']/4);
|
||||
$at['p'][$a]['atack'][$j]['yron']['m_y'] = round($at['p'][$a]['atack'][$j]['yron']['m_y']/4);
|
||||
}
|
||||
//
|
||||
if( $at['p'][$a]['atack'][$j]['yron']['y'] < 1 ) { $at['p'][$a]['atack'][$j]['yron']['y'] = 1; }
|
||||
if( $at['p'][$a]['atack'][$j]['yron']['r'] >= 0 ) { $at['p'][$a]['atack'][$j]['yron']['r'] = -1; }
|
||||
if( $at['p'][$a]['atack'][$j]['yron']['k'] < 1 ) { $at['p'][$a]['atack'][$j]['yron']['k'] = 1; }
|
||||
if( $at['p'][$a]['atack'][$j]['yron']['m_k'] < 1 ) { $at['p'][$a]['atack'][$j]['yron']['m_k'] = 1; }
|
||||
if( $at['p'][$a]['atack'][$j]['yron']['m_y'] < 1 ) { $at['p'][$a]['atack'][$j]['yron']['m_y'] = 1; }
|
||||
//
|
||||
if( $pvr['used'] == 0 ) {
|
||||
/*$at['p'][$a]['atack'][$j]['yron']['plog'][] = '$this->deleffm(141,'.(0+$uid).','.$btl->stats[$btl->uids[$uid]]['u_priem'][$j_id][3].');
|
||||
$this->priemAddLog( '.$id.', '.$b.', '.$a.', '.$u2.', '.$u1.',
|
||||
"'.$btl->stats[$btl->uids[$u2]]['effects'][$btl->stats[$btl->uids[$uid]]['u_priem'][$j_id][0]]['name'].'",
|
||||
"{tm1} '.$btl->addlt($b , 17 , $btl->users[$btl->uids[$u2]]['sex'] , NULL).'",
|
||||
'.($btl->hodID + 1).' );';*/
|
||||
/*}*/
|
||||
//
|
||||
$at['p'][$a]['atack'][$j]['yron']['used'][] = array($j_id,$uid,$pvr['used']);
|
||||
$at['p'][$a]['atack'][$j]['yron']['kill'][] = array($j_id,$uid,$pvr['kill']);
|
||||
//
|
||||
$at['p'][$a]['priems']['kill'][$uid][$j_id] = true;
|
||||
//}
|
||||
}
|
||||
$j++;
|
||||
}
|
||||
}
|
||||
// -- êîíåö ïðèåìà
|
||||
return $at;
|
||||
};
|
||||
unset( $pr_used_this );
|
||||
}else{
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
$this->addEffPr($pl,$id);
|
||||
}
|
||||
unset($pvr);
|
||||
?>
|
@ -36,7 +36,7 @@ $pvr = array();
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem( $u->info['id'], $pvr['uid'], 21, $pvr['hp'], 5, true );
|
||||
if(!$pvr['krit']) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
if( $pvr['hp'] > $pvr['lim'] ) {
|
||||
$pvr['hp'] = $pvr['lim'];
|
||||
}
|
||||
@ -50,6 +50,7 @@ $pvr = array();
|
||||
$btl->priemYronSave($u->info['id'],$pvr['uid'],$pvr['hp'],0);
|
||||
|
||||
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
}elseif( $pvr['hpNow'] < 0 ) {
|
||||
@ -61,8 +62,8 @@ $pvr = array();
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = "'.$btl->stats[$btl->uids[$pvr['uid']]]['hpNow'].'" WHERE `id` = "'.$pvr['uid'].'" LIMIT 1');
|
||||
|
||||
//
|
||||
if(!$pvr['promah']) {
|
||||
if(!$pvr['krit']) {
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '006699';
|
||||
if(isset($btl->mcolor[$btl->mname['îãîíü']])) {
|
||||
$prv['color2'] = $btl->mcolor[$btl->mname['îãîíü']];
|
||||
@ -95,7 +96,12 @@ $pvr = array();
|
||||
($btl->hodID + 1)
|
||||
);
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$this->addEffPr($pl,$id);
|
||||
//$this->addPriem($pvr['uid'],$pl['id'],'atgm='.floor($pvr['hp']/5).'',0,77,5,$u->info['id'],1,'ÿäîâèòîåîáëàêî',0,0,1);
|
||||
|
||||
//Îòíèìàåì òàêòèêè
|
||||
//$this->mintr($pl);
|
||||
//
|
||||
$pvr['xx']++;
|
||||
}
|
||||
@ -104,6 +110,12 @@ $pvr = array();
|
||||
$btl->delPriem($pvr['x5'],$btl->users[$btl->uids[$this->ue['id']]],2);
|
||||
//
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$this->addEffPr($pl,$id);
|
||||
//$this->addPriem($this->ue['id'],$pl['id'],'atgm='.($pvr['hp']/16).'',2,77,4,$u->info['id'],3,'îëåäåíåíèå',0,0,1);
|
||||
|
||||
//Îòíèìàåì òàêòèêè
|
||||
//$this->mintr($pl);
|
||||
|
||||
unset($pvr);
|
||||
?>
|
@ -7,7 +7,7 @@ if(!defined('GAME')) {
|
||||
*/
|
||||
$pvr = array();
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
$pvr['hp'] = rand(40,80);
|
||||
$pvr['hp'] = rand(50,90);
|
||||
//$pvr['hp'] = floor($pvr['hp']*0.95);
|
||||
//$pvr['hp'] = $this->magatackfiz( $u->info['id'], $this->ue['id'], $pvr['hp'], 'âîäà' /* äðîáÿùèé óðîí - 3 */, 1 , 'çåìëÿ' );
|
||||
$pvr['hp'] = $this->magatack( $u->info['id'], $this->ue['id'], $pvr['hp'], 'çåìëÿ', 1 ); //
|
||||
|
@ -11,7 +11,7 @@ $pvr['x5'] = mysql_fetch_array(mysql_query('SELECT `id`,`x` FROM `eff_users` WHE
|
||||
if( $pvr['x5']['x'] < 5 ) {
|
||||
$prv['x'] = '';
|
||||
if( $pvr['x5']['x'] > 0 ) {
|
||||
$prv['x'] = ' x'.($pvr['x5']['x']+1);
|
||||
$prv['x'] = ' x'.($pvr['x5']['x']+1).'';
|
||||
}
|
||||
//
|
||||
$this->addEffPr($pl,$id);
|
||||
|
@ -1,116 +0,0 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Óñèëåííûå óäàðû
|
||||
Ñëåäóþùèå óäàðû ïî ïðîòèâíèêó íàíîñèò íà 5*(ëâë) åä. áîëüøå
|
||||
*/
|
||||
$pvr = array();
|
||||
if( isset($pr_tested_this) ) {
|
||||
$fx_priem = function( $id , $at , $uid, $j_id ) {
|
||||
// -- íà÷àëî ïðèåìà
|
||||
global $u, $btl;
|
||||
//
|
||||
//Ïàðàìåòðû ïðèåìà
|
||||
$pvr['used'] = 0;
|
||||
//
|
||||
$uid1 = $btl->atacks[$id]['uid1'];
|
||||
$uid2 = $btl->atacks[$id]['uid2'];
|
||||
if( $uid == $uid1 ) {
|
||||
$a = 1;
|
||||
$b = 2;
|
||||
$u1 = ${'uid1'};
|
||||
$u2 = ${'uid2'};
|
||||
}elseif( $uid == $uid2 ) {
|
||||
$a = 2;
|
||||
$b = 1;
|
||||
$u1 = ${'uid2'};
|
||||
$u2 = ${'uid1'};
|
||||
}
|
||||
if( isset($at['p'][$a]['priems']['kill'][$uid][$j_id]) ) {
|
||||
mysql_query('UPDATE `eff_users` SET `delete` = "'.time().'" WHERE `id` = "'.$btl->stats[$btl->uids[$uid]]['u_priem'][$j_id][3].'" AND `uid` = "'.$uid.'" LIMIT 1');
|
||||
unset($btl->stats[$btl->uids[$uid]]['u_priem'][$j_id]);
|
||||
}
|
||||
//
|
||||
// -- êîíåö ïðèåìà
|
||||
return $at;
|
||||
};
|
||||
unset( $pr_used_this );
|
||||
}elseif( isset($pr_used_this) ) {
|
||||
$fx_priem = function( $id , $at , $uid, $j_id ) {
|
||||
// -- íà÷àëî ïðèåìà
|
||||
global $u, $btl;
|
||||
//
|
||||
//Ïàðàìåòðû ïðèåìà
|
||||
$pvr['used'] = 0;
|
||||
//
|
||||
$uid1 = $btl->atacks[$id]['uid1'];
|
||||
$uid2 = $btl->atacks[$id]['uid2'];
|
||||
if( $uid == $uid1 ) {
|
||||
$a = 1;
|
||||
$b = 2;
|
||||
$u1 = ${'uid1'};
|
||||
$u2 = ${'uid2'};
|
||||
}elseif( $uid == $uid2 ) {
|
||||
$a = 2;
|
||||
$b = 1;
|
||||
$u1 = ${'uid2'};
|
||||
$u2 = ${'uid1'};
|
||||
}
|
||||
if( $a > 0 ) {
|
||||
$j = 0; $k = 0; $wp = 3;
|
||||
while($j < count($at['p'][$a]['atack'])) {
|
||||
if( isset($at['p'][$a]['atack'][$j]['yron']) && (
|
||||
$at['p'][$a]['atack'][$j][1] == 1 ||
|
||||
$at['p'][$a]['atack'][$j][1] == 4 ||
|
||||
$at['p'][$a]['atack'][$j][1] == 5 )) {
|
||||
//if( $pvr['used'] == 0 && !isset($at['p'][$a]['priems']['kill'][$uid][$j_id]) ) {
|
||||
//
|
||||
$pvr['hp'] = 6 * $btl->users[$btl->uids[$u1]]['level'];
|
||||
$pvr['hp'] = $btl->testYronPriem( $u1, $u2, 12, $pvr['hp'], -1, true, false, 0 );
|
||||
if( $pvr['hp'] <= 1 ) {
|
||||
$pvr['hp'] = 0;
|
||||
$at['p'][$a]['atack'][$j]['yron']['y'] = 1;
|
||||
$at['p'][$a]['atack'][$j]['yron']['r'] = -1;
|
||||
$at['p'][$a]['atack'][$j]['yron']['k'] = 1;
|
||||
$at['p'][$a]['atack'][$j]['yron']['m_k'] = 1;
|
||||
$at['p'][$a]['atack'][$j]['yron']['m_y'] = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
$at['p'][$a]['atack'][$j]['yron']['y'] += $pvr['hp'];
|
||||
$at['p'][$a]['atack'][$j]['yron']['r'] -= $pvr['hp'];
|
||||
$at['p'][$a]['atack'][$j]['yron']['k'] += $pvr['hp'];
|
||||
$at['p'][$a]['atack'][$j]['yron']['m_y'] += $pvr['hp'];
|
||||
$at['p'][$a]['atack'][$j]['yron']['m_k'] += $pvr['hp'];
|
||||
}
|
||||
//$at['p'][$a]['atack'][$j]['yron'] = $btl->testYronPriemAttack( 193 , $u1 , $u2 , $at['p'][$a]['atack'][$j]['yron'] );
|
||||
//
|
||||
if( $pvr['used'] == 0 && !isset($at['p'][$a]['priems']['kill'][$uid][$j_id]) ) {
|
||||
$at['p'][$a]['atack'][$j]['yron']['plog'][] = '$this->priemAddLog( '.$id.', '.$a.', '.$b.', '.$u1.', '.$u2.',
|
||||
"Óñèëåííûå óäàðû",
|
||||
"{tm1} '.$btl->addlt($a , 17 , $btl->users[$btl->uids[$u1]]['sex'] , NULL).'",
|
||||
'.($btl->hodID + 1).' );';
|
||||
//
|
||||
$at['p'][$a]['atack'][$j]['yron']['used'][] = array($j_id,$uid,$pvr['used']);
|
||||
$at['p'][$a]['atack'][$j]['yron']['kill'][] = array($j_id,$uid,$pvr['kill']);
|
||||
}
|
||||
//
|
||||
$at['p'][$a]['priems']['kill'][$uid][$j_id] = true;
|
||||
//}
|
||||
}
|
||||
$j++;
|
||||
}
|
||||
}
|
||||
//Óäàëÿåì ïðèåì
|
||||
// -- êîíåö ïðèåìà
|
||||
return $at;
|
||||
};
|
||||
unset( $pr_used_this );
|
||||
}else{
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
$this->addEffPr($pl,$id);
|
||||
}
|
||||
unset($pvr);
|
||||
?>
|
@ -1,72 +0,0 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Âûæèòü, ñæèðàåò âñå òàêòèêè, çà ñåðäöà 0.5 åä. çà îñòàëüíîå 1 åä. ÍÐ
|
||||
*/
|
||||
$pvr = array();
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
|
||||
$pvr['hp'] = round( 1+$btl->users[$btl->uids[$u->info['id']]]['tactic1']+$btl->users[$btl->uids[$u->info['id']]]['tactic2']+$btl->users[$btl->uids[$u->info['id']]]['tactic3']+$btl->users[$btl->uids[$u->info['id']]]['tactic4']+$btl->users[$btl->uids[$u->info['id']]]['tactic5']+$btl->users[$btl->uids[$u->info['id']]]['tactic6']*0.5 );
|
||||
if( $pvr['hp'] > 25 ) {
|
||||
$pvr['hp'] = 25;
|
||||
}
|
||||
$pvr['hp'] = round($btl->stats[$btl->uids[$u->info['id']]]['hpAll']/100*$pvr['hp']);
|
||||
$pvr['hpSee'] = '--';
|
||||
$pvr['hpNow'] = floor($btl->stats[$btl->uids[$this->ue['id']]]['hpNow']);
|
||||
$pvr['hpAll'] = $btl->stats[$btl->uids[$u->info['id']]]['hpAll'];
|
||||
$pvr['hp'] = $btl->hphe( $u->info['id'] , $pvr['hp'] , true );
|
||||
$pvr['hpTr'] = $pvr['hpAll'] - $pvr['hpNow'];
|
||||
if( $pvr['hpTr'] > 0 ) {
|
||||
//Òðåáóåòñÿ õèëë
|
||||
if( $pvr['hpTr'] < $pvr['hp'] ) {
|
||||
$pvr['hp'] = $pvr['hpTr'];
|
||||
}
|
||||
$pvr['hpSee'] = '+'.$pvr['hp'];
|
||||
$pvr['hpNow'] += $pvr['hp'];
|
||||
}
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
}elseif( $pvr['hpNow'] < 0 ) {
|
||||
$pvr['hpNow'] = 0;
|
||||
}
|
||||
|
||||
$btl->users[$btl->uids[$u->info['id']]]['last_hp'] = $pvr['hp'];
|
||||
|
||||
$u->info['hpNow'] = $pvr['hpNow'];
|
||||
$u->stats['hpNow'] = $pvr['hpNow'];
|
||||
$btl->stats[$btl->uids[$this->ue['id']]]['hpNow'] = $pvr['hpNow'];
|
||||
|
||||
$pvr['i']=1;
|
||||
while($pvr['i'] <= 6) {
|
||||
$btl->users[$btl->uids[$u->info['id']]]['tactic'.$pvr['i']] = 0;
|
||||
$btl->stats[$btl->uids[$u->info['id']]]['tactic'.$pvr['i']] = 0;
|
||||
$u->info['tactic'.$pvr['i']] = 0;
|
||||
$u->stats['tactic'.$pvr['i']] = 0;
|
||||
$pvr['i']++;
|
||||
}
|
||||
|
||||
mysql_query('UPDATE `stats` SET
|
||||
`last_hp` = "'.$btl->users[$btl->uids[$u->info['id']]]['last_hp'].'",
|
||||
`hpNow` = "'.$pvr['hpNow'].'",
|
||||
`tactic1` = "0",
|
||||
`tactic2` = "0",
|
||||
`tactic3` = "0",
|
||||
`tactic4` = "0",
|
||||
`tactic5` = "0",
|
||||
`tactic6` = "0"
|
||||
WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
||||
|
||||
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $u->info['enemy'],
|
||||
'Âûæèòü',
|
||||
'{tm1} '.$btl->addlt(1 , 17 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL).' <font Color=#006699><b>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']',
|
||||
($btl->hodID)
|
||||
);
|
||||
|
||||
//Îòíèìàåì òàêòèêè
|
||||
$this->mintr($pl);
|
||||
|
||||
unset($pvr);
|
||||
?>
|
@ -1,13 +1,7 @@
|
||||
<?php
|
||||
<?
|
||||
|
||||
/**
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id int
|
||||
* @var $pl array
|
||||
*/
|
||||
if (!$id) {
|
||||
exit();
|
||||
if (!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Ïûëàþùàÿ Ñìåðòü
|
||||
@ -17,10 +11,10 @@ $pvr['mg'] = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `uid
|
||||
if (
|
||||
$btl->stats[$btl->uids[$this->ue['id']]]['hpNow'] > round($btl->stats[$btl->uids[$this->ue['id']]]['hpAll'] / 100 * 33)
|
||||
) {
|
||||
echo '<b style="color: red">Óðîâåíü çäîðîâüÿ öåëè äîëæåí áûòü íèæå 33%</b>';
|
||||
echo '<font color=red><b>Óđîâĺíü çäîđîâü˙ öĺëč äîëćĺí áűňü íčćĺ 33%</b></font>';
|
||||
$cup = true;
|
||||
} elseif (!isset($pvr['mg']['id'])) {
|
||||
echo '<b style="color: red">Íà ïåðñîíàæå íåò ïîæèðàþùåãî ïëàìåíè (Âàøåãî çàêëÿòèÿ)</b>';
|
||||
echo '<font color=red><b>Íŕ ďĺđńîíŕćĺ íĺň ďîćčđŕţůĺăî ďëŕěĺíč (Âŕřĺăî çŕęë˙ňč˙)</b></font>';
|
||||
$cup = true;
|
||||
} else {
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
@ -30,6 +24,25 @@ if (
|
||||
// Óðîí = 150% îñòàâøåãîñÿ óðîíà (óðîí çà õîä * êîëè÷åñòâî õîäîâ * 150/100).
|
||||
$pvr['hp'] = floor($pvr['data']['atgm'] * $pvr['mg']['hod'] * 1.5);
|
||||
|
||||
// $pvr['di'] = 0;
|
||||
// $pvr['dc'] = count($pvr['data']['atgm']);
|
||||
// $pvr['rd'] = 0;
|
||||
// $pvr['redata'] = '';
|
||||
// while ($pvr['di'] < 4) {
|
||||
// if (isset($pvr['data']['atgm'][($pvr['dc'] - $pvr['di'])])) {
|
||||
// if ($pvr['rd'] < 3) {
|
||||
// $pvr['hp'] += $pvr['data']['atgm'][($pvr['dc'] - $pvr['di'])];
|
||||
// $pvr['redata'] = 'atgm=' . $pvr['data']['atgm'][($pvr['dc'] - $pvr['di'])] . '|' . $pvr['redata'];
|
||||
// $pvr['rd']++;
|
||||
// }
|
||||
// }
|
||||
// $pvr['di']++;
|
||||
// }
|
||||
|
||||
// $pvr['hp23'] = $pvr['hp'];
|
||||
// $pvr['hp'] = 450;
|
||||
// $pvr['hp24'] = $pvr['hp'];
|
||||
|
||||
// Ìû äîëæíû ñìî÷ü êðèòîâàòü, íî ìû íå äîëæíû åù¸ ðàç ìîäèôèöèðîâàòü óðîí!
|
||||
$pvr['hp_test'] = $this->magatack($u->info['id'], $this->ue['id'], $pvr['hp'], 'îãîíü', 1);
|
||||
|
||||
@ -64,13 +77,25 @@ if (
|
||||
|
||||
$prv['text'] = $btl->addlt(1, 19, $btl->users[$btl->uids[$u->info['id']]]['sex'], null);
|
||||
|
||||
|
||||
$prv['color'] = $pvr['krit'] ? "f00" : "a00";
|
||||
//Öâĺň ďđčĺěŕ
|
||||
if (!$pvr['krit']) {
|
||||
$prv['color2'] = '006699';
|
||||
if (isset($btl->mcolor[$btl->mname['îăîíü']])) {
|
||||
$prv['color2'] = $btl->mcolor[$btl->mname['îăîíü']];
|
||||
}
|
||||
$prv['color'] = '000000';
|
||||
if (isset($btl->mncolor[$btl->mname['îăîíü']])) {
|
||||
$prv['color'] = $btl->mncolor[$btl->mname['îăîíü']];
|
||||
}
|
||||
} else {
|
||||
$prv['color2'] = 'FF0000';
|
||||
$prv['color'] = 'FF0000';
|
||||
}
|
||||
|
||||
$prv['text2'] = '{tm1} ' . $prv['text'] . '. <font Color=' . $prv['color'] . '><b>' . $pvr['hpSee'] . '</b></font> [' . $pvr['hpNow'] . '/' . $pvr['hpAll'] . ']';
|
||||
|
||||
$btl->priemAddLog($id, 1, 2, $u->info['id'], $this->ue['id'],
|
||||
'<font color^^^^#' . $prv['color'] . '>Ïûëàþùàÿ Ñìåðòü</font>',
|
||||
'<font color^^^^#' . $prv['color2'] . '>Ďűëŕţůŕ˙ Ńěĺđňü</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID + 1)
|
||||
);
|
||||
@ -83,3 +108,4 @@ if (
|
||||
$this->mintr($pl);
|
||||
}
|
||||
unset($pvr);
|
||||
?>
|
@ -32,7 +32,7 @@ if( isset($pr_momental_this)) {
|
||||
);
|
||||
*/
|
||||
//
|
||||
$pvr['mp'] = round($u->stats['mpAll']*0.05);
|
||||
$pvr['mp'] = round($u->stats['mpAll']*0.15);
|
||||
$pvr['mpSee'] = 0;
|
||||
$pvr['mpNow'] = floor($u->stats['mpNow']);
|
||||
$pvr['mpAll'] = $u->stats['mpAll'];
|
||||
@ -66,7 +66,7 @@ if( isset($pr_momental_this)) {
|
||||
$btl->stats[$btl->uids[$u->info['id']]]['mpNow'] = $pvr['mpNow'];
|
||||
$btl->users[$btl->uids[$u->info['id']]]['mpNow'] = $pvr['mpNow'];
|
||||
//
|
||||
$pvr['hp'] = round($u->stats['hpAll']*0.05);
|
||||
$pvr['hp'] = round($u->stats['hpAll']*0.15);
|
||||
$pvr['hpSee'] = 0;
|
||||
$pvr['hpNow'] = floor($u->stats['hpNow']);
|
||||
$pvr['hpAll'] = $u->stats['hpAll'];
|
||||
|
@ -11,14 +11,14 @@ $pvr['x5'] = mysql_fetch_array(mysql_query('SELECT `id`,`x` FROM `eff_users` WHE
|
||||
if( $pvr['x5']['x'] < 5 ) {
|
||||
$prv['x'] = '';
|
||||
if( $pvr['x5']['x'] > 0 ) {
|
||||
$prv['x'] = ' x'.($pvr['x5']['x']+1);
|
||||
$prv['x'] = ' x'.($pvr['x5']['x']+1).'';
|
||||
}
|
||||
//
|
||||
$this->addEffPr($pl,$id);
|
||||
//
|
||||
$prv['effx'] = '';
|
||||
if( $pvr['x5']['x'] > 0 ) {
|
||||
$prv['eff'] = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `id` = '.$pvr['x5']['id']));
|
||||
$prv['eff'] = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `id` = "'.$pvr['x5']['id'].'" LIMIT 1'));
|
||||
if( isset($prv['eff']['id']) ) {
|
||||
//Ðàçáèðàåì äàòó $prv['eff']['data']
|
||||
$prv['eda'] = $prv['eff']['data'];
|
||||
@ -34,7 +34,7 @@ if( $pvr['x5']['x'] < 5 ) {
|
||||
$prv['v'] = $u->lookKeys($this->redate($prv['eda'],$u->info['id']),0); // êëþ÷è 2
|
||||
$prv['i'] = 0; $prv['inf'] = '';
|
||||
while($prv['i']<count($prv['v'])) {
|
||||
|
||||
//$prv['j'][$prv['v'][$prv['i']]] += $prv['j'][$prv['v'][$prv['i']]];
|
||||
$prv['vi'] = str_replace('add_','',$prv['v'][$prv['i']]);
|
||||
if($u->is[$prv['vi']]!='') {
|
||||
if($prv['j'][$prv['v'][$prv['i']]]>0) {
|
||||
|
@ -99,8 +99,7 @@ if( isset($pr_momental_this)) {
|
||||
//
|
||||
//if( $at['p'][$a]['atack'][$j]['yron']['y'] < 1 ) { $at['p'][$a]['atack'][$j]['yron']['y'] = 0; }
|
||||
if( $at['p'][$a]['atack'][$j]['yron']['r'] >= 0 ) { $at['p'][$a]['atack'][$j]['yron']['r'] = -1; }
|
||||
$priem->addAirStaticPoints($u1);
|
||||
|
||||
$priem->mg2static_points( $u1 , $btl->stats[$btl->uids[$u1]] );
|
||||
/*
|
||||
if( $at['p'][$a]['atack'][$j]['yron']['k'] < 1 ) { $at['p'][$a]['atack'][$j]['yron']['k'] = 1; }
|
||||
if( $at['p'][$a]['atack'][$j]['yron']['m_k'] < 1 ) { $at['p'][$a]['atack'][$j]['yron']['m_k'] = 1; }
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php /**@var $this priems*/
|
||||
if (!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
@ -6,47 +6,29 @@ if(!defined('GAME')) {
|
||||
Ïðèåì: Çàðÿä: Ñîáðàòü
|
||||
*/
|
||||
$pvr = array();
|
||||
//$pvr['mg'] = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `uid` = "'.$btl->users[$btl->uids[$this->ue['id']]]['id'].'" AND `v2` = "260" AND `user_use` = "'.$u->info['id'].'" ORDER BY `id` DESC LIMIT 1'));
|
||||
$pvr['mg'] = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `uid` = "'.$btl->users[$btl->uids[$this->ue['id']]]['id'].'" AND `v2` = "260" ORDER BY `id` DESC LIMIT 1'));
|
||||
if( isset($pvr['mg']['id']) ) {
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
//$pvr['hp'] = floor(144/3*$pvr['mg']['x']);
|
||||
/*$pvr['hp'] = 1;*/
|
||||
//
|
||||
$pvr['mg'] = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `uid` = ' . $btl->users[$btl->uids[$this->ue['id']]]['id'] . ' AND `v2` = 260 ORDER BY `id` DESC LIMIT 1'));
|
||||
if (!isset($pvr['mg']['id'])) {
|
||||
echo '<b style="color: red">Íà ïåðñîíàæå íåò Ñòàòèêè</b>';
|
||||
$cup = true;
|
||||
} else {
|
||||
$pvr['data'] = $this->lookStatsArray($pvr['mg']['data']);
|
||||
//
|
||||
/**/
|
||||
if( $pvr['data']['add_mg2static_points'][0] < 1 ) {
|
||||
echo '<font color=red><b>Ñòàòèêà íå ñîáðàëà äîñòàòî÷íîãî êîëè÷åñòâà çàðÿäîâ</b></font>';
|
||||
if ($pvr['data']['add_mg2static_points'] < 1) {
|
||||
echo '<b style="color: red">Ñòàòèêà íå ñîáðàëà äîñòàòî÷íîãî êîëè÷åñòâà çàðÿäîâ</b>';
|
||||
$cup = true;
|
||||
} else {
|
||||
$prv['text'] = $btl->addlt(1 , 21 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
$prv['text'] = $btl->addlt(1, 21, $btl->users[$btl->uids[$this->u->info['id']]]['sex'], NULL);
|
||||
|
||||
//Öâåò ïðèåìàû
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '006699';
|
||||
if(isset($btl->mcolor[$btl->mname['âîçäóõ']])) {
|
||||
$prv['color2'] = $btl->mcolor[$btl->mname['âîçäóõ']];
|
||||
}
|
||||
$prv['color'] = '000000';
|
||||
if(isset($btl->mncolor[$btl->mname['âîçäóõ']])) {
|
||||
$prv['color'] = $btl->mncolor[$btl->mname['âîçäóõ']];
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
$prv['color'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
$prv['color'] = $this->logColor[$this::AIR];
|
||||
|
||||
//Õèëÿåì ìàíó
|
||||
$pvr['mp'] = $pvr['data']['add_mg2static_points'][0]*(3*$u->info['level']);
|
||||
$pvr['mp'] = $pvr['data']['add_mg2static_points'] * (3 * $this->u->info['level']);
|
||||
//
|
||||
$pvr['mpSee'] = '';
|
||||
$pvr['mpNow'] = floor($btl->stats[$btl->uids[$u->info['id']]]['mpNow']);
|
||||
$pvr['mpAll'] = $btl->stats[$btl->uids[$u->info['id']]]['mpAll'];
|
||||
$pvr['mpNow'] = floor($btl->stats[$btl->uids[$this->u->info['id']]]['mpNow']);
|
||||
$pvr['mpAll'] = $btl->stats[$btl->uids[$this->u->info['id']]]['mpAll'];
|
||||
|
||||
$pvr['mpTr'] = $pvr['mpNow'] + $pvr['mp'];
|
||||
if ($pvr['mpTr'] > $pvr['mpAll']) {
|
||||
@ -61,53 +43,32 @@ if( isset($pvr['mg']['id']) ) {
|
||||
$pvr['mpSee'] = $pvr['mp'];
|
||||
}
|
||||
|
||||
if( $pvr['mpSee'] == '' || $pvr['mpSee'] == 0 ) {
|
||||
if (empty($pvr['mpSee'])) {
|
||||
$pvr['mpSee'] = '--';
|
||||
}
|
||||
$u->stats['mpNow'] = $pvr['mpNow'];
|
||||
$u->info['mpNow'] = $pvr['mpNow'];
|
||||
$btl->stats[$btl->uids[$u->info['id']]]['mpNow'] = $pvr['mpNow'];
|
||||
$btl->users[$btl->uids[$u->info['id']]]['mpNow'] = $pvr['mpNow'];
|
||||
mysql_query('UPDATE `stats` SET `mpNow` = "'.$u->stats['mpNow'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
||||
$this->u->stats['mpNow'] = $pvr['mpNow'];
|
||||
$this->u->info['mpNow'] = $pvr['mpNow'];
|
||||
$btl->stats[$btl->uids[$this->u->info['id']]]['mpNow'] = $pvr['mpNow'];
|
||||
$btl->users[$btl->uids[$this->u->info['id']]]['mpNow'] = $pvr['mpNow'];
|
||||
mysql_query('UPDATE `stats` SET `mpNow` = ' . $this->u->stats['mpNow'] . ' WHERE `id` = ' . $this->u->info['id']);
|
||||
|
||||
//Óäàëÿåì 1 íåãàòèâíûé ýôôåêò
|
||||
$pvr['no'] = ' AND `a`.`v2` != 201';
|
||||
|
||||
$pvr['sp'] = mysql_query('SELECT `a`.* FROM `eff_users` AS `a` LEFT JOIN `priems` AS `b` ON `b`.`id` = `a`.`v2` WHERE `a`.`uid` = "'.$u->info['id'].'" AND `a`.`delete` = 0 AND `a`.`v1` = "priem" '.$pvr['no'].' AND `b`.`neg` > 0 LIMIT 1');
|
||||
$pvr['sp'] = mysql_query('select * from eff_users left join priems on priems.id = v2 where `delete` = 0 and neg > 0 and v1 = \'priem\' and v2 != 201 and uid = ' . $this->u->info['id']);
|
||||
$pvr['pl'] = mysql_fetch_array($pvr['sp']);
|
||||
$pvr['pl']['priem'] = mysql_fetch_array(mysql_query('SELECT * FROM `priems` WHERE `id` = "'.$pvr['pl']['v2'].'" LIMIT 1'));
|
||||
shuffle($pvr['pl']);
|
||||
$pvr['pl'] = $pvr['pl'][0];
|
||||
$pvr['pl']['priem'] = mysql_fetch_array(mysql_query('SELECT * FROM `priems` WHERE `id` = ' . $pvr['pl']['v2']));
|
||||
if (isset($pvr['pl']['priem'])) {
|
||||
$btl->delPriem($pvr['pl'],$btl->users[$btl->uids[$u->info['id']]],100);
|
||||
$btl->delPriem($pvr['pl'], $btl->users[$btl->uids[$this->u->info['id']]], 100);
|
||||
}
|
||||
|
||||
$prv['text2'] = '{tm1} ' . $prv['text'] . ' ÷åðåç {u2}. <font Color=' . $prv['color'] . '><b>' . $pvr['mpSee'] . '</b></font> [' . $pvr['mpNow'] . '/' . $pvr['mpAll'] . '] (ìàíà)';
|
||||
|
||||
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $this->ue['id'],
|
||||
'<font color^^^^#'.$prv['color2'].'>Çàðÿä: Ñîáðàòü</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID + 1)
|
||||
);
|
||||
$btl->priemAddLog($id, 1, 2, $this->u->info['id'], $this->ue['id'], '<font color^^^^#' . $prv['color'] . '>Çàðÿä: Ñîáðàòü</font>', $prv['text2'], ($btl->hodID + 1));
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$this->addEffPr($pl,$id);
|
||||
//$this->addPriem($this->ue['id'],$pl['id'],'atgm='.($pvr['hp']/16).'',2,77,4,$u->info['id'],3,'îëåäåíåíèå',0,0,1);
|
||||
|
||||
//Óäàëÿåì îëåäåíåíèå
|
||||
$pvr['mg']['priem']['id'] = $pvr['mg']['id'];
|
||||
//$btl->delPriem($pvr['mg'],$btl->users[$btl->uids[$this->ue['id']]],2);
|
||||
|
||||
$pvr['edt'] = $u->lookStats($pvr['mg']['data']);
|
||||
$pvr['edt']['add_zm2proc'] = 0;
|
||||
$pvr['edt']['add_mg2static_points'] = 0;
|
||||
$pvr['edt'] = $u->impStats($pvr['edt']);
|
||||
mysql_query('UPDATE `eff_users` SET `x` = 1, `data` = "'.$pvr['edt'].'" WHERE `id` = "'.$pvr['mg']['id'].'" LIMIT 1');
|
||||
|
||||
//Îòíèìàåì òàêòèêè
|
||||
//$this->mintr($pl);
|
||||
$pvr['edt'] = $this->changeStatsData($pvr['mg']['data'], ['add_mg2static_points' => 0]);
|
||||
mysql_query('UPDATE `eff_users` SET `x` = 1, `data` = "' . $pvr['edt'] . '" WHERE `id` = ' . $pvr['mg']['id']);
|
||||
}
|
||||
}else{
|
||||
echo '<font color=red><b>Íà ïåðñîíàæå íåò Ñòàòèêè (Âàøåãî çàêëÿòèÿ)</b></font>';
|
||||
$cup = true;
|
||||
}
|
||||
unset($pvr);
|
||||
?>
|
@ -1,43 +1,22 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
<?php
|
||||
/** Ïðèåì: Îëåäåíåíèå: Ðàçáèòü! @var $this priems */
|
||||
if (!$id) {
|
||||
exit();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Îëåäåíåíèå: Ðàçáèòü!
|
||||
*/
|
||||
//$cup = $this->glaciationBreak($id, $pl, $btl);
|
||||
|
||||
$pvr = array();
|
||||
$pvr['mg'] = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `uid` = "'.$btl->users[$btl->uids[$this->ue['id']]]['id'].'" AND `bj` = "îëåäåíåíèå" AND `user_use` = "'.$u->info['id'].'" ORDER BY `id` DESC LIMIT 1'));
|
||||
if( isset($pvr['mg']['id']) ) {
|
||||
$pvr['mg'] = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `uid` = "' . $btl->users[$btl->uids[$this->ue['id']]]['id'] . '" AND `bj` = "îëåäåíåíèå" AND `user_use` = "' . $this->u->info['id'] . '" ORDER BY `id` DESC LIMIT 1'));
|
||||
if (!isset($pvr['mg']['id'])) {
|
||||
echo '<b style="color: red;">Íà ïåðñîíàæå íåò îëåäåíåíèÿ (Âàøåãî çàêëÿòèÿ)</b>';
|
||||
$cup = true;
|
||||
} else {
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
//$pvr['hp'] = floor(144/3*$pvr['mg']['x']);
|
||||
$pvr['hp'] = 1;
|
||||
//
|
||||
$pvr['data'] = $this->lookStatsArray($pvr['mg']['data']);
|
||||
$pvr['di'] = 0;
|
||||
$pvr['dc'] = count($pvr['data']['atgm']);
|
||||
$pvr['rd'] = 0;
|
||||
while( $pvr['di'] < 4 ) {
|
||||
if( isset($pvr['data']['atgm'][($pvr['dc']-$pvr['di'])]) ) {
|
||||
if( $pvr['rd'] < 3 ) {
|
||||
$pvr['hp'] += $pvr['data']['atgm'][($pvr['dc']-$pvr['di'])];
|
||||
$pvr['rd']++;
|
||||
}
|
||||
}
|
||||
$pvr['di']++;
|
||||
}
|
||||
//
|
||||
|
||||
|
||||
//$pvr['hp'] = 444;
|
||||
$pvr['hp'] = 100;
|
||||
//$pvr['hp'] += floor($pvr['hp']/100*$u->stats['mg3']);//óìåëêè
|
||||
//$pvr['hp'] += floor($pvr['hp']/100*($u->stats['s5']*0.15));//Èíòåëåêò , áûëî 0.33
|
||||
//
|
||||
if( $btl->stats[$btl->uids[$u->info['enemy']]]['hpNow'] < floor($btl->stats[$btl->uids[$this->ue['id']]]['hpAll']/100*33) ) {
|
||||
//$pvr['hp'] = floor( $pvr['hp'] + ($pvr['hp']/100*(50*$pvr['mg']['x'])) );
|
||||
$pvr['hp'] = 80;
|
||||
if ($btl->stats[$btl->uids[$this->ue['id']]]['hpNow'] < floor($btl->stats[$btl->uids[$this->ue['id']]]['hpAll'] * 0.2)) {
|
||||
$pvr['hp'] *= 1.5;
|
||||
}
|
||||
$pvr['hp'] = $this->magatack( $u->info['id'], $this->ue['id'], $pvr['hp'], 'âîäà', 1 );
|
||||
$pvr['hp'] = $this->magatack($this->u->info['id'], $this->ue['id'], $pvr['hp'], 'âîäà', 1);
|
||||
$pvr['promah_type'] = $pvr['hp'][3];
|
||||
$pvr['promah'] = $pvr['hp'][2];
|
||||
$pvr['krit'] = $pvr['hp'][1];
|
||||
@ -47,11 +26,11 @@ if( isset($pvr['mg']['id']) ) {
|
||||
$pvr['hpAll'] = $btl->stats[$btl->uids[$this->ue['id']]]['hpAll'];
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem( $u->info['id'], $this->ue['id'], 21, $pvr['hp'], 7, true );
|
||||
$pvr['hp'] = $btl->testYronPriem($this->u->info['id'], $this->ue['id'], 21, $pvr['hp'], 7, true);
|
||||
|
||||
$pvr['hpSee'] = '-' . $pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$this->ue['id'],$pvr['hp'],0);
|
||||
$btl->priemYronSave($this->u->info['id'], $this->ue['id'], $pvr['hp'], 0);
|
||||
|
||||
if ($pvr['hpNow'] > $pvr['hpAll']) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
@ -61,13 +40,18 @@ if( isset($pvr['mg']['id']) ) {
|
||||
|
||||
$btl->stats[$btl->uids[$this->ue['id']]]['hpNow'] = $pvr['hpNow'];
|
||||
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = "'.$btl->stats[$btl->uids[$this->ue['id']]]['hpNow'].'" WHERE `id` = "'.$this->ue['id'].'" LIMIT 1');
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = ' . $pvr['hpNow'] . ' WHERE `id` = ' . $this->ue['id']);
|
||||
|
||||
$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
$prv['text'] = $btl->addlt(1, 19, $btl->users[$btl->uids[$this->u->info['id']]]['sex'], NULL);
|
||||
|
||||
//Öâåò ïðèåìà
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
if ($pvr['promah']) {
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
} elseif ($pvr['krit']) {
|
||||
$prv['color2'] = 'FF0000';
|
||||
$prv['color'] = 'FF0000';
|
||||
} else {
|
||||
$prv['color2'] = '006699';
|
||||
if (isset($btl->mcolor[$btl->mname['âîäà']])) {
|
||||
$prv['color2'] = $btl->mcolor[$btl->mname['âîäà']];
|
||||
@ -76,29 +60,14 @@ if( isset($pvr['mg']['id']) ) {
|
||||
if (isset($btl->mncolor[$btl->mname['âîäà']])) {
|
||||
$prv['color'] = $btl->mncolor[$btl->mname['âîäà']];
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
$prv['color'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],3).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
$prv['text2'] = '{tm1} ' . $prv['text'] . '. <font Color=' . $prv['color'] . '><b ' . $btl->maginfoattack($this->u->info['id'], $this->ue['id'], 3) . '>' . $pvr['hpSee'] . '</b></font> [' . $pvr['hpNow'] . '/' . $pvr['hpAll'] . ']';
|
||||
if ($pvr['promah_type'] == 2) {
|
||||
$prv['text'] = $btl->addlt(1 , 20 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],3).'>--</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
$prv['text'] = $btl->addlt(1, 20, $btl->users[$btl->uids[$this->u->info['id']]]['sex'], NULL);
|
||||
$prv['text2'] = '{tm1} ' . $prv['text'] . '. <font Color=' . $prv['color'] . '><b ' . $btl->maginfoattack($this->u->info['id'], $this->ue['id'], 3) . '>--</b></font> [' . $pvr['hpNow'] . '/' . $pvr['hpAll'] . ']';
|
||||
}
|
||||
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $u->info['enemy'],
|
||||
'<font color^^^^#'.$prv['color2'].'>Îëåäåíåíèå: Ðàçáèòü!</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID + 1)
|
||||
);
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$this->addEffPr($pl,$id);
|
||||
//$this->addPriem($u->info['enemy'],$pl['id'],'atgm='.($pvr['hp']/16).'',2,77,4,$u->info['id'],3,'îëåäåíåíèå',0,0,1);
|
||||
$btl->priemAddLog($id, 1, 2, $this->u->info['id'], $this->u->info['enemy'], '<font color^^^^#' . $prv['color2'] . '>Îëåäåíåíèå: Ðàçáèòü!</font>', $prv['text2'], ($btl->hodID + 1));
|
||||
|
||||
//Óäàëÿåì îëåäåíåíèå
|
||||
$pvr['mg']['priem']['id'] = $pvr['mg']['id'];
|
||||
@ -106,9 +75,5 @@ if( isset($pvr['mg']['id']) ) {
|
||||
|
||||
//Îòíèìàåì òàêòèêè
|
||||
$this->mintr($pl);
|
||||
}else{
|
||||
echo '<font color=red><b>Íà ïåðñîíàæå íåò îëåäåíåíèÿ (Âàøåãî çàêëÿòèÿ)</b></font>';
|
||||
$cup = true;
|
||||
}
|
||||
unset($pvr);
|
||||
?>
|
@ -1,11 +1,10 @@
|
||||
<?
|
||||
<?php
|
||||
/** @var $this priems*/
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Êðèñòàëëèçàöèÿ
|
||||
*/
|
||||
$pvr = array();
|
||||
/* Ïðèåì: Êðèñòàëëèçàöèÿ */
|
||||
|
||||
if( isset($pr_used_this) && isset($pr_moment) ) {
|
||||
//Êàæäûé õîä
|
||||
$fx_priem = function( $id , $at , $uid, $j_id ) {
|
||||
@ -13,76 +12,5 @@ if( isset($pr_used_this) && isset($pr_moment) ) {
|
||||
};
|
||||
unset( $pr_used_this );
|
||||
}else{
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
|
||||
$pvr['promah_type'] = 0;
|
||||
$pvr['promah'] = false;
|
||||
$pvr['krit'] = false;
|
||||
$pvr['hp'] = $btl->stats[$btl->uids[$this->ue['id']]]['s1'];
|
||||
if( $pvr['hp'] > 10*$u->info['level'] ) {
|
||||
$pvr['hp'] = $u->info['level']*10;
|
||||
$this->crystalize($id, $pl, $btl);
|
||||
}
|
||||
$pvr['hpSee'] = '--';
|
||||
$pvr['hpNow'] = floor($btl->stats[$btl->uids[$this->ue['id']]]['hpNow']);
|
||||
$pvr['hpAll'] = $btl->stats[$btl->uids[$this->ue['id']]]['hpAll'];
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem( $u->info['id'], $this->ue['id'], 21, $pvr['hp'], 7, true );
|
||||
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$this->ue['id'],$pvr['hp'],0);
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
}elseif( $pvr['hpNow'] < 0 ) {
|
||||
$pvr['hpNow'] = 0;
|
||||
}
|
||||
|
||||
$btl->stats[$btl->uids[$this->ue['id']]]['hpNow'] = $pvr['hpNow'];
|
||||
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = "'.$btl->stats[$btl->uids[$this->ue['id']]]['hpNow'].'" WHERE `id` = "'.$this->ue['id'].'" LIMIT 1');
|
||||
|
||||
$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
|
||||
//Öâåò ïðèåìà
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '006699';
|
||||
if(isset($btl->mcolor[$btl->mname['âîäà']])) {
|
||||
$prv['color2'] = $btl->mcolor[$btl->mname['âîäà']];
|
||||
}
|
||||
$prv['color'] = '000000';
|
||||
if(isset($btl->mncolor[$btl->mname['âîäà']])) {
|
||||
$prv['color'] = $btl->mncolor[$btl->mname['âîäà']];
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
$prv['color'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],3).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
$prv['text'] = $btl->addlt(1 , 20 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],3).'>--</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
}
|
||||
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $this->ue['id'],
|
||||
'<font color^^^^#'.$prv['color2'].'>Êðèñòàëëèçàöèÿ</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID + 1)
|
||||
);
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$this->addEffPr($pl,$id);
|
||||
$this->addPriem($this->ue['id'],268,'|add_s1=-'.$btl->stats[$btl->uids[$u->info['id']]]['mg3'].'|add_s2=-'.$btl->stats[$btl->uids[$u->info['id']]]['mg3'],2,77,3,$u->info['id'],3,'êðèñòàëëèçàöèÿ',0,0,1);
|
||||
|
||||
//Îòíèìàåì òàêòèêè
|
||||
//$this->mintr($pl);
|
||||
}
|
||||
|
||||
unset($pvr);
|
||||
?>
|
@ -6,8 +6,8 @@ if(!defined('GAME')) {
|
||||
Ïðèåì: Êàìåííûé Öâåòîê [8]
|
||||
*/
|
||||
$pvr = array();
|
||||
$pvr['hp_0'] = 40;
|
||||
$pvr['hp_1'] = 14;
|
||||
$pvr['hp_0'] = 51;
|
||||
$pvr['hp_1'] = 45;
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
$pvr['hp'] = $pvr['hp_0'];
|
||||
$pvr['hp'] = $this->magatack( $u->info['id'], $this->ue['id'], $pvr['hp'], 'çåìëÿ', 1 );
|
||||
|
@ -7,7 +7,7 @@ if(!defined('GAME')) {
|
||||
*/
|
||||
$pvr = array();
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
$pvr['hp'] = rand(1,87);
|
||||
$pvr['hp'] = rand(40,50);
|
||||
$pvr['hp'] = $this->magatack( $u->info['id'], $this->ue['id'], $pvr['hp'], 'âîçäóõ', 1 );
|
||||
$pvr['promah_type'] = $pvr['hp'][3];
|
||||
$pvr['promah'] = $pvr['hp'][2];
|
||||
|
@ -59,7 +59,7 @@ $pvr = array();
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
|
||||
//$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$u->info['id']]] );
|
||||
$this->addAirStaticPoints(); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],2).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
|
@ -149,7 +149,7 @@ if(isset($hod))
|
||||
}elseif($pl['id']==93)
|
||||
{
|
||||
//молния [8]
|
||||
$hpmin = rand(1,87);
|
||||
$hpmin = rand(40,50);
|
||||
}elseif($pl['id']==94)
|
||||
{
|
||||
//молния [9]
|
||||
|
@ -1,9 +1,22 @@
|
||||
<?
|
||||
<?php
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
function getdr($s, $v, $d)
|
||||
{
|
||||
$i = 0;
|
||||
while ($i < count($v)) {
|
||||
if (isset($v[$i])) {
|
||||
$s = str_replace('{' . $v[$i] . '}', $d[$i], $s);
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
$s = eval("return (" . $s . ");");
|
||||
return floor($s);
|
||||
}
|
||||
|
||||
if($pl['id'] == 189) {
|
||||
$imun = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `uid` = "'.$u->info['enemy'].'" and `v2`="191" and `delete`="0" LIMIT 1'));
|
||||
//Îøåëîìèòü
|
||||
@ -27,23 +40,6 @@ if($pl['id'] == 189) {
|
||||
$vLog = 'time1='.time().'||s1='.$u->info['sex'].'||t1='.$u->info['team'].'||login1='.$u->info['login'].'||s2='.$btl->users[$btl->uids[$u->info['enemy']]]['sex'].'||t2='.$btl->users[$btl->uids[$u->info['enemy']]]['team'].'||login2='.$btl->users[$btl->uids[$u->info['enemy']]]['login'].'';
|
||||
$mas1 = array('time'=>time(),'battle'=>$btl->info['id'],'id_hod'=>$btl->hodID,'text'=>'','vars'=>$vLog,'zona1'=>'','zonb1'=>'','zona2'=>'','zonb2'=>'','type'=>'1');
|
||||
|
||||
/*$hp = $u->info['level']*2-$u->info['level'];
|
||||
|
||||
if($hp < 0) {
|
||||
$hp = 0;
|
||||
}*/
|
||||
|
||||
/*$btl->users[$btl->uids[$u->info['enemy']]]['hpNow'] -= $hp;
|
||||
$btl->stats[$btl->uids[$u->info['enemy']]]['hpNow'] -= $hp;
|
||||
$btl->users[$btl->uids[$u->info['enemy']]]['last_hp'] = -$hp;
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = "'.$btl->stats[$btl->uids[$u->info['enemy']]]['hpNow'].'",`last_hp` = "'.$btl->users[$btl->uids[$u->info['enemy']]]['last_hp'].'" WHERE `id` = "'.$u->info['enemy'].'" LIMIT 1');
|
||||
|
||||
if($hp < 1) {
|
||||
$hp = '--';
|
||||
}else{
|
||||
$hp = -$hp;
|
||||
}*/
|
||||
|
||||
$mas1['text'] = '{tm1} {u1} {1x16x0} ïðèåì "<b>'.$pl['name'].'</b>" è îøåëîìèë'.$sx.' ïåðñîíàæà {u2} íà äâà õîäà.';
|
||||
$pz = $btl->users[$btl->uids[$u->info['enemy']]]['priems_z'];
|
||||
$p_id = $btl->users[$btl->uids[$u->info['enemy']]]['priems'];
|
||||
@ -318,11 +314,7 @@ if($pl['id'] == 189) {
|
||||
$pr78++;
|
||||
}
|
||||
}
|
||||
/*if($pr78 > 0) {
|
||||
$this->stats[$this->uids[$u1['id']]] = $u->getStats($u1['id'],0);
|
||||
$this->stats[$this->uids[$u2['id']]] = $u->getStats($u2['id'],0);
|
||||
$this->re_pd['restart'] = true;
|
||||
}*/
|
||||
|
||||
unset($pr78,$vLog,$mas1,$pl031,$sp031);
|
||||
}
|
||||
}elseif($pl['id']==12)
|
||||
|
@ -1,3 +1 @@
|
||||
<?
|
||||
$txt .= '<br><b><font color=red>Ó âàñ íåò ïîäõîäÿùèõ ïðåäìåòîâ äëÿ îáìåíà...</b></font>';
|
||||
?>
|
||||
<?php $txt.= '<br><strong style="color: red;">Ó âàñ íåò ïîäõîäÿùèõ ïðåäìåòîâ äëÿ îáìåíà...</strong>';
|
||||
|
@ -9,8 +9,8 @@ die();
|
||||
|
||||
define('GAME',true);
|
||||
setlocale(LC_CTYPE ,"ru_RU.CP1251");
|
||||
include('_incl_data/__config.php');
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
require_once('_incl_data/__config.php');
|
||||
require_once('_incl_data/class/__db_connect.php');
|
||||
|
||||
function error($e)
|
||||
{
|
||||
|
578
admin.php
578
admin.php
@ -1,578 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
|
||||
ßäðî äëÿ îáðàáîòêè äàííûõ.
|
||||
Îáðàáîòêà ïîåäèíêîâ, îáðàáîòêà çàÿâîê, îáðàáîòêà áîòîâ, îáðàáîòêà ïåùåð, îáðàáîòêà òóðíèðîâ, îáðàáîòêà âðåìåííûõ ãåíåðàöèé
|
||||
|
||||
*/
|
||||
|
||||
define('GAME',true);
|
||||
|
||||
include('_incl_data/__config.php');
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
include('_incl_data/class/__user.php');
|
||||
|
||||
if(isset($_GET['bonus'])) {
|
||||
$sp = mysql_query('SELECT * FROM `users` WHERE `real` = 1 AND `banned` = 0 AND `id` = 75301');
|
||||
while( $pl = mysql_fetch_array($sp) ) {
|
||||
//
|
||||
//$u->addItem(730, $pl['id'], '|nosale=1|notransfer=1|sudba=1|halo1=1');
|
||||
//$u->addItem(1167, $pl['id'], '|nosale=1|notransfer=1|sudba=1|halo1=1');
|
||||
|
||||
$i = 1;
|
||||
while( $i <= 25 ) {
|
||||
//$u->addItem(4913, $pl['id'], '|nosale=1|notransfer=1|sudba=1|halo1=1');
|
||||
if( $i <= 10 ) {
|
||||
//$u->addItem(4039, $pl['id'], '|nosale=1|notransfer=1|sudba=1|halo1=1');
|
||||
}
|
||||
//$u->addItem(4690, $pl['id'], '|nosale=1|notransfer=1|sudba=1|halo1=1');
|
||||
$i++;
|
||||
}
|
||||
|
||||
//
|
||||
/*$sp1 = mysql_query('SELECT `id` FROM `items_main` WHERE `magic_inci` = "tznanie" AND `name` NOT LIKE "%(òîì%" AND `name` NOT LIKE "%(ñåêðåòíûé òîì%"');
|
||||
while( $pl1 = mysql_fetch_array($sp1) ) {
|
||||
mysql_query('INSERT INTO `actions` (
|
||||
`uid`,`time`,`city`,`room`,`vars`,`vals`
|
||||
) VALUES (
|
||||
"'.$pl['id'].'","'.time().'","capitalcity","213","read","'.$pl1['id'].'"
|
||||
)');
|
||||
}*/
|
||||
|
||||
}
|
||||
die();
|
||||
}
|
||||
|
||||
include('_incl_data/class/bot.logic.php');
|
||||
|
||||
|
||||
if( $u->info['admin'] > 0 ) {
|
||||
|
||||
|
||||
if(isset($_POST['complect_saver'])) {
|
||||
|
||||
$cs = $_POST['complect_saver'];
|
||||
|
||||
$cs = json_decode($cs);
|
||||
|
||||
$v1 = '';
|
||||
$v2 = '';
|
||||
$eff = '0';
|
||||
$csa = $cs->{'lvl'};
|
||||
$csm = $cs->{'lvl'}+1;
|
||||
if($csa > 5) {
|
||||
$csa = 5;
|
||||
}
|
||||
if($csm > 10) {
|
||||
$csm = 10;
|
||||
}
|
||||
|
||||
$up_id = 0;
|
||||
|
||||
$sp = mysql_query('SELECT * FROM `levels` ORDER BY `upLevel`');
|
||||
$ups = array();
|
||||
$all_ups = array();
|
||||
$lvl = 0;
|
||||
while($pl = mysql_fetch_array($sp)) {
|
||||
$all_ups[$lvl][(0+$ups[$lvl])] = ($pl['upLevel']-1);
|
||||
$ups[$lvl]++;
|
||||
if($lvl != $pl['nextLevel']) {
|
||||
$lvl = $pl['nextLevel'];
|
||||
}else{
|
||||
}
|
||||
}
|
||||
|
||||
$up_id = $all_ups[$cs->{'lvl'}][$cs->{'up'}];
|
||||
|
||||
$stats = 's1='.$cs->{'s1'}.'|s2='.$cs->{'s2'}.'|s3='.$cs->{'s3'}.'|s4='.$cs->{'s4'}.'|rinv=40|m9=5|m6=10|a1='.$csa.'|a2='.$csa.'|a3='.$csa.'|a4='.$csa.'|a5='.$csa.'|mg1='.$csm.'|mg2='.$csm.'|mg3='.$csm.'|mg4='.$csm.'|mg5='.$csm.'|mg6='.$csa.'|mg7='.$csa.'|s5='.$cs->{'s5'}.'|s6='.$cs->{'s6'}.'|os1=0|os2=0|os3=0|os4=0|os5=0|os6=0|os7=0|os8=0|os9=0|os10=0|os11=0|s7=0|s8=0|s9=0|s10=0|a6=5|a7=5';
|
||||
|
||||
$i = 0;
|
||||
while( $i < 20 ) {
|
||||
|
||||
if( $cs->{'w'.$i} > 0 ) {
|
||||
$v1 .= ',`w'.$i.'`';
|
||||
$v2 .= ',"'.$cs->{'w'.$i}.'"';
|
||||
}
|
||||
|
||||
if( $cs->{'s'.$i} > 0 ) {
|
||||
$v1 .= ',`s'.$i.'`';
|
||||
$v2 .= ',"'.$cs->{'s'.$i}.'"';
|
||||
}
|
||||
|
||||
if( $cs->{'e'.$i} > 0 ) {
|
||||
$v1 .= ',`e'.$i.'`';
|
||||
$v2 .= ',"'.$cs->{'e'.$i}.'"';
|
||||
$eff .= ','.$i;
|
||||
}
|
||||
|
||||
if( $cs->{'p'.$i} > 0 ) {
|
||||
$v1 .= ',`p'.$i.'`';
|
||||
$v2 .= ',"'.$cs->{'p'.$i}.'"';
|
||||
}
|
||||
|
||||
$i++;
|
||||
}
|
||||
mysql_query('INSERT INTO `a_bot_tree` (`delete`,`class`,`level`,`up`,`stats`,`eff`,`pr`'.$v1.') VALUES ("1","'.$cs->{'class'}.'","'.$cs->{'lvl'}.'","'.$up_id.'","'.$stats.'","'.$eff.'","'.$pr.'"'.$v2.') ');
|
||||
|
||||
$_GET['good'] = mysql_insert_id();
|
||||
//header('location: admin.php?good');
|
||||
}
|
||||
|
||||
if(isset($_GET['good'])) {
|
||||
$error = 'Êîìëïåêò áûë óñïåøíî ñîõðàíåí!<br><br>Íîìåð êîìïëåêòà: '.$_GET['good'];
|
||||
die($error);
|
||||
}
|
||||
|
||||
|
||||
/* ÏÐÅÄÌÅÒÛ */
|
||||
$w = array();
|
||||
$ws = array(
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9,
|
||||
10,
|
||||
10,
|
||||
10,
|
||||
13,
|
||||
14,
|
||||
15,
|
||||
16,
|
||||
17
|
||||
);
|
||||
|
||||
$i = 1;
|
||||
while( $i <= 17 ) {
|
||||
if($i != 14) {
|
||||
$sp = mysql_query('SELECT `id`,`name`,`img` FROM `items_main` WHERE `inslot` = "'.$ws[$i].'" ORDER BY `type` ASC,`level` ASC');
|
||||
while($pl = mysql_fetch_array($sp)) {
|
||||
$w[$i] .= '['.$pl['id'].',"'.$pl['name'].'","'.$pl['img'].'"],';
|
||||
}
|
||||
$w[$i] = rtrim($w[$i],',');
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
$sp = mysql_query('SELECT `id`,`name`,`img` FROM `items_main` WHERE `2too` = "1" OR `inslot` = "14" ORDER BY `type` ASC,`level` ASC');
|
||||
while($pl = mysql_fetch_array($sp)) {
|
||||
$w[14] .= '['.$pl['id'].',"'.$pl['name'].'","'.$pl['img'].'"],';
|
||||
}
|
||||
$w[14] = rtrim($w[14],',');
|
||||
|
||||
|
||||
/* ÏÐÈÅÌÛ */
|
||||
$pr = '';
|
||||
|
||||
$sp = mysql_query('SELECT `id`,`name`,`img` FROM `priems` ORDER BY `img` ASC');
|
||||
while($pl = mysql_fetch_array($sp)) {
|
||||
$pr .= '['.$pl['id'].',"'.$pl['name'].'","'.$pl['img'].'.gif"],';
|
||||
}
|
||||
$pr = rtrim($pr,',');
|
||||
|
||||
|
||||
/* ÝÔÔÅÊÒÛ */
|
||||
$eff = '';
|
||||
|
||||
$sp = mysql_query('SELECT `id2`,`mname`,`img` FROM `eff_main` WHERE `type1` != 23 ORDER BY `type1` ASC');
|
||||
while($pl = mysql_fetch_array($sp)) {
|
||||
$eff .= '['.$pl['id2'].',"'.$pl['mname'].'","'.$pl['img'].'"],';
|
||||
}
|
||||
$eff = rtrim($eff,',');
|
||||
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="https://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
|
||||
<link href="https://img.new-combats.com/css/main.css" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="js/jquery.js"></script>
|
||||
<title>Ðåäàêòîð îáìóíäèðîâàíèÿ ïåðñîíàæåé</title>
|
||||
|
||||
<script>
|
||||
var admin = {
|
||||
com:{},
|
||||
start:function() {
|
||||
var i = 0;
|
||||
while( i <= 17 ) {
|
||||
$('#w'+i).attr('IDreal',i);
|
||||
$('#w'+i).bind('click', function(){ admin.select($(this).attr('IDreal')); } );
|
||||
i++;
|
||||
}
|
||||
|
||||
var i = 0;
|
||||
while( i <= 12 ) {
|
||||
$('#e'+i).attr('IDreal',i);
|
||||
$('#e'+i).bind('click', function(){ admin.select_eff($(this).attr('IDreal')); } );
|
||||
i++;
|
||||
}
|
||||
|
||||
var i = 0;
|
||||
while( i <= 18 ) {
|
||||
$('#p'+i).attr('IDreal',i);
|
||||
$('#p'+i).bind('click', function(){ admin.select_pr($(this).attr('IDreal')); } );
|
||||
i++;
|
||||
}
|
||||
},
|
||||
save:function() {
|
||||
var r = this.finish_line();
|
||||
$('#save').html( '<b>Ñêîïèðóéòå â áóôåð îáìåíà:</b><br><br><form name="f1" id="f1" action="admin.php" target="_blank" method="post"><textarea name="complect_saver" style="width:600px;" rows="5">'+r+'</textarea><br><button type="sumbit"></button></form>' );
|
||||
$('#f1').submit();
|
||||
},
|
||||
finish_line:function() {
|
||||
|
||||
this.com['lvl'] = $('#lvl').val();
|
||||
this.com['up'] = $('#up').val();
|
||||
this.com['class'] = $('#pclss').val();
|
||||
|
||||
var i = 1;
|
||||
while( i <= 6 ) {
|
||||
this.com['s'+i] = $('#s'+i).val();
|
||||
i++;
|
||||
}
|
||||
|
||||
var r = JSON.stringify( this.com );
|
||||
return r;
|
||||
|
||||
},
|
||||
take:function( id, i ) {
|
||||
if( top.items[id][i] != undefined ) {
|
||||
this.com['w'+id] = top.items[id][i][0];
|
||||
$('#w'+id).attr({
|
||||
'src':'https://img.new-combats.com/i/items/'+top.items[id][i][2],
|
||||
'title':top.items[id][i][1]
|
||||
});
|
||||
}
|
||||
},
|
||||
take_eff:function( id, i ) {
|
||||
if( top.items['eff'][i] != undefined ) {
|
||||
this.com['e'+id] = top.items['eff'][i][0];
|
||||
$('#e'+id).attr({
|
||||
'src':'https://img.new-combats.com/i/eff/'+top.items['eff'][i][2],
|
||||
'title':top.items['eff'][i][1]
|
||||
});
|
||||
}
|
||||
},
|
||||
take_pr:function( id, i ) {
|
||||
if( top.items['pr'][i] != undefined ) {
|
||||
this.com['p'+id] = top.items['pr'][i][0];
|
||||
$('#p'+id).attr({
|
||||
'src':'https://img.new-combats.com/i/eff/'+top.items['pr'][i][2],
|
||||
'title':top.items['pr'][i][1]
|
||||
});
|
||||
}
|
||||
},
|
||||
select_pr:function (id) {
|
||||
var html = '';
|
||||
|
||||
if( top.items['pr'] != undefined ) {
|
||||
|
||||
var i = 0;
|
||||
|
||||
while( i != -1 ) {
|
||||
|
||||
if( top.items['pr'][i] == undefined ) {
|
||||
|
||||
i = -2;
|
||||
|
||||
}else{
|
||||
|
||||
html += '<img width="40" height="25" onclick="admin.take_pr('+id+','+i+');" style="cursor:pointer;padding:2px;" title="'+top.items['pr'][i][1]+'" src="https://img.new-combats.com/i/eff/'+top.items['pr'][i][2]+'">';
|
||||
|
||||
}
|
||||
|
||||
i++;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if( html == '' ) {
|
||||
html = 'Íåò ïîäõîäÿùèõ ïðèåìîâ';
|
||||
}
|
||||
|
||||
$('#items_add').html( html );
|
||||
},
|
||||
select_eff:function (id) {
|
||||
var html = '';
|
||||
|
||||
if( top.items['eff'] != undefined ) {
|
||||
|
||||
var i = 0;
|
||||
|
||||
while( i != -1 ) {
|
||||
|
||||
if( top.items['eff'][i] == undefined ) {
|
||||
|
||||
i = -2;
|
||||
|
||||
}else{
|
||||
|
||||
html += '<img width="40" height="25" onclick="admin.take_eff('+id+','+i+');" style="cursor:pointer;padding:2px;" title="'+top.items['eff'][i][1]+'" src="https://img.new-combats.com/i/eff/'+top.items['eff'][i][2]+'">';
|
||||
|
||||
}
|
||||
|
||||
i++;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if( html == '' ) {
|
||||
html = 'Íåò ïîäõîäÿùèõ ýôôåêòîâ';
|
||||
}
|
||||
|
||||
$('#items_add').html( html );
|
||||
},
|
||||
select:function( id ) {
|
||||
var html = '';
|
||||
|
||||
if( top.items[id] != undefined ) {
|
||||
|
||||
var i = 0;
|
||||
|
||||
while( i != -1 ) {
|
||||
|
||||
if( top.items[id][i] == undefined ) {
|
||||
|
||||
i = -2;
|
||||
|
||||
}else{
|
||||
|
||||
html += '<img onclick="admin.take('+id+','+i+');" style="cursor:pointer;padding:2px;" title="'+top.items[id][i][1]+'" src="https://img.new-combats.com/i/items/'+top.items[id][i][2]+'">';
|
||||
|
||||
}
|
||||
|
||||
i++;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if( html == '' ) {
|
||||
html = 'Íåò ïîäõîäÿùèõ ïðåäìåòîâ';
|
||||
}
|
||||
|
||||
$('#items_add').html( html );
|
||||
}
|
||||
};
|
||||
|
||||
var items = {
|
||||
<?
|
||||
$i = 1;
|
||||
while( $i <= 17 ) {
|
||||
echo $i.':['.$w[$i].'],';
|
||||
$i++;
|
||||
}
|
||||
echo '"eff":['.$eff.'],"pr":['.$pr.']';
|
||||
?>
|
||||
};
|
||||
function MM_jumpMenu(targ,selObj,restore){ //v3.0
|
||||
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
|
||||
if (restore) selObj.selectedIndex=0;
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body onLoad="admin.start();">
|
||||
<table width="100%" border="0" cellpadding="25" cellspacing="0">
|
||||
<tr>
|
||||
<td width="250" valign="top"><div style="width:240px; padding:2px; border-bottom:1px solid #666666; border-right:1px solid #666666; border-left:1px solid #FFFFFF; border-top:1px solid #FFFFFF;">
|
||||
<div align="center">
|
||||
<!-- blocked -->
|
||||
</div>
|
||||
<table width="240" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="60" valign="top"><table width="60" height="280" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="60"><div style="position:relative"><img id="w1" style="display:block;" title="Ïóñòîé ñëîò øëåì" src="https://img.new-combats.com/i/items/w/w9.gif"></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40"><img id="w2" style="display:block;" title="Ïóñòîé ñëîò íàðó÷è" src="https://img.new-combats.com/i/items/w/w13.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="60"><img id="w3" style="display:block;" title="Ïóñòîé ñëîò ùèò" src="https://img.new-combats.com/i/items/w/w3.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="80"><img id="w5" style="display:block;" title="Ïóñòîé ñëîò ùèò" src="https://img.new-combats.com/i/items/w/w4.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40"><img id="w7" style="display:block;" title="Ïóñòîé ñëîò ïîÿñ" src="https://img.new-combats.com/i/items/w/w5.gif"></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
<td height="280" valign="top"><table width="120" height="280" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="20" valign="top" bgcolor="#EDEDED"><!-- HP and MP -->
|
||||
<!-- --></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#333333"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40"><div align="center">
|
||||
<table width="120" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="40" height="20"><img style="display:block;" title="Ïóñòîé ñëîò ïðàâûé êàðìàí" src="https://img.new-combats.com/i/items/w/w15.gif"></td>
|
||||
<td width="40" height="20"><img style="display:block;" title="Ïóñòîé ñëîò öåíòðàëüíûé êàðìàí" src="https://img.new-combats.com/i/items/w/w15.gif"></td>
|
||||
<td width="40" height="20"><img style="display:block;" title="Ïóñòîé ñëîò ëåâûé êàðìàí" src="https://img.new-combats.com/i/items/w/w15.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40" height="20"><img style="display:block;" title="Ïóñòîé ñëîò ñìåíà" src="https://img.new-combats.com/i/items/w/w20.gif"></td>
|
||||
<td width="40" height="20"><img style="display:block;" title="Ïóñòîé ñëîò ñìåíà" src="https://img.new-combats.com/i/items/w/w20.gif"></td>
|
||||
<td width="40" height="20"><img style="display:block;" title="Ïóñòîé ñëîò ñìåíà" src="https://img.new-combats.com/i/items/w/w20.gif"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
<td width="60" valign="top"><table width="60" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="20"><img id="w8" style="display:block;" title="Ïóñòîé ñëîò ñåðüãè" src="https://img.new-combats.com/i/items/w/w1.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="20"><img id="w9" style="display:block;" title="Ïóñòîé ñëîò îæåðåëüå" src="https://img.new-combats.com/i/items/w/w2.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="20"><table width="60" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="20" height="20"><img id="w10" style="display:block;" title="Ïóñòîé ñëîò êîëüöî" src="https://img.new-combats.com/i/items/w/w6.gif"></td>
|
||||
<td width="20"><img id="w11" style="display:block;" title="Ïóñòîé ñëîò êîëüöî" src="https://img.new-combats.com/i/items/w/w6.gif"></td>
|
||||
<td width="20"><img id="w12" style="display:block;" title="Ïóñòîé ñëîò êîëüöî" src="https://img.new-combats.com/i/items/w/w6.gif"></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40"><img id="w13" style="display:block;" title="Ïóñòîé ñëîò ïåð÷àòêè" src="https://img.new-combats.com/i/items/w/w11.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="60"><img id="w14" style="display:block;" title="Ïóñòîé ñëîò ùèò" src="https://img.new-combats.com/i/items/w/w10.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="80"><img id="w16" style="display:block;" title="Ïóñòîé ñëîò ùèò" src="https://img.new-combats.com/i/items/w/w19.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40"><img id="w17" style="display:block;" title="Ïóñòîé ñëîò îáóâü" src="https://img.new-combats.com/i/items/w/w12.gif"></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table>
|
||||
<p><strong>Ýôôåêòû:</strong></p>
|
||||
<table width="240" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="40" height="25"><img id="e1" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td width="40"><img id="e2" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td width="40"><img id="e3" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td width="40"><img id="e4" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td width="40"><img id="e5" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td width="40"><img id="e6" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="25"><img id="e7" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td><img id="e8" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td><img id="e9" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td><img id="e10" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td><img id="e11" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td><img id="e12" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<p><strong>Ïðèåìû:</strong></p>
|
||||
<table width="240" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="40" height="25"><img id="p1" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td width="40"><img id="p2" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td width="40"><img id="p3" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td width="40"><img id="p4" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td width="40"><img id="p5" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td width="40"><img id="p6" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="25"><img id="p7" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td><img id="p8" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td><img id="p9" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td><img id="p10" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td><img id="p11" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td><img id="p12" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="25"><img id="p13" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td><img id="p14" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td><img id="p15" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td><img id="p16" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td><img id="p17" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
<td><img id="p18" title="Ïóñòîé ñëîò çàêëèíàíèÿ" src="https://img.new-combats.com/i/items/w/w101.gif"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<p><a href="javascript:admin.save(1);">Ñîõðàíèòü êîìïëåêò â áàçó</a></p></td>
|
||||
|
||||
<td width="150" align="right" valign="top"><p><strong>Ñòàòû ïåðñîíàæà (ðîäíûå):</strong></p>
|
||||
<p>
|
||||
Ñèëà:
|
||||
<input id="s1" style="width:35px" value="3"> <br>
|
||||
Ëîâêîñòü:
|
||||
<input id="s2" style="width:35px" value="3"> <br>
|
||||
Èíòóèöèÿ:
|
||||
<input id="s3" style="width:35px" value="3"> <br>
|
||||
Âûíîñëèâîñòü:
|
||||
<input id="s4" style="width:35px" value="3"> <br>
|
||||
Èíòåëåêò:
|
||||
<input id="s5" style="width:35px" value="0"> <br>
|
||||
Ìóäðîñòü:
|
||||
<input id="s6" style="width:35px" value="0">
|
||||
</p>
|
||||
<p><strong>Âûáåðèòå êëàññ êîìïëåêòà è àïï: </strong></p>
|
||||
<p>
|
||||
Êëàññ:
|
||||
<select id="pclss">
|
||||
<option selected value="1">Òàíê</option>
|
||||
<option value="2">Êðèò</option>
|
||||
<option value="3">Óâîðîò</option>
|
||||
<option value="4">Óíèâåðñàë</option>
|
||||
<option value="5">Ìàã îãíÿ</option>
|
||||
<option value="6">Ìàã âîäû</option>
|
||||
<option value="7">Ìàã çåìëè</option>
|
||||
<option value="8">Ìàã âîçäóõà</option>
|
||||
</select>
|
||||
<br>
|
||||
Óðîâåíü:
|
||||
<input id="lvl" style="width:35px" value="0">
|
||||
<br>
|
||||
Àïï:
|
||||
<input id="up" style="width:35px" value="0">
|
||||
<br>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
</td>
|
||||
|
||||
<td valign="top">
|
||||
<div id="save" style="border:1px solid red; padding:10px;margin:5px; background-color:#FCC; color:#333"></div>
|
||||
<br>
|
||||
<b>Ïðåäìåòû äëÿ ñëîòà:</b>
|
||||
<br>
|
||||
<div id="items_add">
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<script>
|
||||
<?
|
||||
|
||||
if(isset($error)) {
|
||||
echo 'alert("'.$error.'");';
|
||||
}
|
||||
|
||||
?>
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
<?
|
||||
}else{
|
||||
echo 'Äëÿ ïîëó÷åíè äîñòóïà ê äàííîìó ðàçäåëó - îáðàòèòåñü ê Àäìèíèñòðàöèè ïðîåêòà, ïîëó÷èòü äîñòóï ìîæåò êàæäûé èãðîê, íî îêîí÷àòåëüíîå ðåøåíèå çàâèñèò èñêëþ÷èòåëüíî îò Àäìèíèñòðàöèè ïðîåêòà.';
|
||||
}
|
||||
?>
|
286
balance.php
286
balance.php
@ -1,34 +1,27 @@
|
||||
<?php
|
||||
define('GAME',true);
|
||||
# Admin Only Area
|
||||
const GAME = true;
|
||||
include('_incl_data/__config.php');
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
include('_incl_data/class/__user.php');
|
||||
if(isset($_GET['connect'])) {
|
||||
$u = User::start();
|
||||
if (isset($_GET['connect'])) {
|
||||
setcookie('adminionself', 'trueself', time() + 86400);
|
||||
header('location: /balance.php');
|
||||
die();
|
||||
}
|
||||
} elseif ($u->info['admin'] != 1 && !isset($_COOKIE['adminionself'])) {
|
||||
die('balance.php');
|
||||
}
|
||||
if($u->info['admin']<1 && !isset($_COOKIE['adminionself']))
|
||||
{
|
||||
header('location: https://new-combats.com/'); die();
|
||||
if ($u->info['admin'] < 1 && !isset($_COOKIE['adminionself'])) {
|
||||
header('location: https://new-combats.com/');
|
||||
die();
|
||||
}
|
||||
|
||||
$noobs = '';
|
||||
|
||||
/*
|
||||
if(!isset($_GET['noob']) || isset($_POST['money'])) {
|
||||
$noobs = ' AND `time` < 1443155244 ';
|
||||
}
|
||||
*/
|
||||
|
||||
if (isset($_GET['all'])) {
|
||||
$data = array(
|
||||
$data = [
|
||||
|
||||
); //ïî äíÿì ñ ñàìîãî íà÷àëà
|
||||
]; //ïî äíÿì ñ ñàìîãî íà÷àëà
|
||||
$sp = mysql_query('SELECT * FROM `balance_money` WHERE `money` > 0' . $noobs . ' ORDER BY `id` ASC');
|
||||
$max = 0;
|
||||
//
|
||||
@ -73,7 +66,11 @@ if(isset($_GET['all'])) {
|
||||
$summ = 0;
|
||||
$mn = date('m', $i);
|
||||
}
|
||||
echo '<td valign="bottom"><div title="Êóïèëè '.round(($data[date('d.m.Y',$i)]),2).' RUB'."\n".'Äàòà: '.date('d.m.Y',$i).'" class="boxpro'.$nl.'" style="height:'.round(10+$data[date('d.m.Y',$i)]/$max*100).'px;"></div></td>';
|
||||
echo '<td valign="bottom"><div title="Êóïèëè ' . round(
|
||||
($data[date('d.m.Y', $i)]), 2
|
||||
) . ' RUB' . "\n" . 'Äàòà: ' . date('d.m.Y', $i) . '" class="boxpro' . $nl . '" style="height:' . round(
|
||||
10 + $data[date('d.m.Y', $i)] / $max * 100
|
||||
) . 'px;"></div></td>';
|
||||
//
|
||||
$i += 86400;
|
||||
$sum += round(($data[date('d.m.Y', $i)]), 2);
|
||||
@ -84,30 +81,37 @@ if(isset($_GET['all'])) {
|
||||
//
|
||||
//<td valign="bottom"> </td>
|
||||
//
|
||||
echo '</tr></table><hr>Äíåé: '.$j.' , ñóììà: '.$sum.' RUB<br>Ñðåäíåå â äåíü: '.round($sum/$j,2).' RUB<br>Ñðåäíåå â ìåñÿö: '.round($sum/$j*30,2).' RUB<br>Çà ñåãîäíÿ: '.$today.' RUB';
|
||||
echo '</tr></table><hr>Äíåé: ' . $j . ' , ñóììà: ' . $sum . ' RUB<br>Ñðåäíåå â äåíü: ' . round(
|
||||
$sum / $j, 2
|
||||
) . ' RUB<br>Ñðåäíåå â ìåñÿö: ' . round($sum / $j * 30, 2) . ' RUB<br>Çà ñåãîäíÿ: ' . $today . ' RUB';
|
||||
die();
|
||||
}
|
||||
|
||||
if(isset($_POST['money']))
|
||||
{
|
||||
$balance = mysql_fetch_array(mysql_query('SELECT SUM(`money`) FROM `balance_money` WHERE `cancel` = 0'.$noobs.''));
|
||||
if (isset($_POST['money'])) {
|
||||
$balance = mysql_fetch_array(
|
||||
mysql_query('SELECT SUM(`money`) FROM `balance_money` WHERE `cancel` = 0' . $noobs . '')
|
||||
);
|
||||
$balance = $balance[0] + (int)$_POST['money'];
|
||||
mysql_query('INSERT INTO `balance_money` (`time`,`ip`,`money`,`comment2`,`balance`) VALUES ("'.time().'","'.$u->info['ip'].'","'.((int)$_POST['money']).'","'.mysql_real_escape_string($_POST['text']).'","'.$balance.'")');
|
||||
}elseif(isset($_GET['cancel']))
|
||||
{
|
||||
mysql_query('UPDATE `balance_money` SET `cancel` = "'.$u->info['id'].'" WHERE `id` = "'.((int)$_GET['cancel']).'" LIMIT 1');
|
||||
}elseif(isset($_GET['recancel']))
|
||||
{
|
||||
mysql_query(
|
||||
'INSERT INTO `balance_money` (`time`,`ip`,`money`,`comment2`,`balance`) VALUES ("' . time(
|
||||
) . '","' . $u->info['ip'] . '","' . ((int)$_POST['money']) . '","' . mysql_real_escape_string(
|
||||
$_POST['text']
|
||||
) . '","' . $balance . '")'
|
||||
);
|
||||
} elseif (isset($_GET['cancel'])) {
|
||||
mysql_query(
|
||||
'UPDATE `balance_money` SET `cancel` = "' . $u->info['id'] . '" WHERE `id` = "' . ((int)$_GET['cancel']) . '" LIMIT 1'
|
||||
);
|
||||
} elseif (isset($_GET['recancel'])) {
|
||||
mysql_query('UPDATE `balance_money` SET `cancel` = "0" WHERE `id` = "' . ((int)$_GET['recancel']) . '" LIMIT 1');
|
||||
}
|
||||
|
||||
$mm = date('m');
|
||||
$yy = date('Y');
|
||||
if(isset($_GET['mm']))
|
||||
{
|
||||
if (isset($_GET['mm'])) {
|
||||
$mm = $_GET['mm'];//strtotime
|
||||
}
|
||||
$mf = array(
|
||||
$mf = [
|
||||
'01' => 'January',
|
||||
'02' => 'February',
|
||||
'03' => 'March',
|
||||
@ -119,9 +123,9 @@ $mf = array(
|
||||
'09' => 'September',
|
||||
'10' => 'October',
|
||||
'11' => 'November',
|
||||
'12' => 'December'
|
||||
);
|
||||
$mf2 = array(
|
||||
'12' => 'December',
|
||||
];
|
||||
$mf2 = [
|
||||
'12' => 'January',
|
||||
'01' => 'February',
|
||||
'02' => 'March',
|
||||
@ -133,15 +137,13 @@ $mf2 = array(
|
||||
'08' => 'September',
|
||||
'09' => 'October',
|
||||
'10' => 'November',
|
||||
'11' => 'December'
|
||||
);
|
||||
if(!isset($mf[$mm]))
|
||||
{
|
||||
'11' => 'December',
|
||||
];
|
||||
if (!isset($mf[$mm])) {
|
||||
$mm = date('m');
|
||||
}
|
||||
$yy2 = $yy;
|
||||
if($mm=='12')
|
||||
{
|
||||
if ($mm == '12') {
|
||||
$yy2++;
|
||||
}
|
||||
$time_start = strtotime("1 " . $mf[$mm] . " " . $yy . "");
|
||||
@ -149,7 +151,11 @@ $time_finish = strtotime("1 ".$mf2[$mm]." ".$yy2."");
|
||||
|
||||
$balance = mysql_fetch_array(mysql_query('SELECT SUM(`money`) FROM `balance_money` WHERE `cancel` = 0' . $noobs . ''));
|
||||
$balance = $balance[0];
|
||||
$plus = mysql_fetch_array(mysql_query('SELECT SUM(`money`) FROM `balance_money` WHERE `cancel` = 0'.$noobs.' AND `time` >= '.$time_start.' AND `time` < '.$time_finish.' AND `cancel` = "0"'));
|
||||
$plus = mysql_fetch_array(
|
||||
mysql_query(
|
||||
'SELECT SUM(`money`) FROM `balance_money` WHERE `cancel` = 0' . $noobs . ' AND `time` >= ' . $time_start . ' AND `time` < ' . $time_finish . ' AND `cancel` = "0"'
|
||||
)
|
||||
);
|
||||
$plus = $plus[0];
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
@ -166,6 +172,7 @@ body {
|
||||
font-family: tahoma, arial, verdana, sans-serif, Lucida Sans;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.txt1 {
|
||||
color: #707a88;
|
||||
}
|
||||
@ -180,74 +187,133 @@ function MM_jumpMenu(targ,selObj,restore){ //v3.0
|
||||
<body>
|
||||
<table width="1000" bgcolor="#fefefe" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td height="30" align="center"><form name="form1" method="post" action="">
|
||||
<td height="30" align="center">
|
||||
<form name="form1" method="post" action="">
|
||||
Ïåðèîä îò÷åòíîñòè:
|
||||
<select name="mm" id="mm" onChange="MM_jumpMenu('parent',this,0)">
|
||||
<option <? if($mm=='01'){ echo 'selected'; } ?> value="01">ÿíâàðü</option>
|
||||
<option <? if($mm=='02'){ echo 'selected'; } ?> value="02">ôåâðàëü</option>
|
||||
<option <? if($mm=='03'){ echo 'selected'; } ?> value="03">ìàðò</option>
|
||||
<option <? if($mm=='04'){ echo 'selected'; } ?> value="04">àïðåëü</option>
|
||||
<option <? if($mm=='05'){ echo 'selected'; } ?> value="05">ìàé</option>
|
||||
<option <? if($mm=='06'){ echo 'selected'; } ?> value="06">èþíü</option>
|
||||
<option <? if($mm=='07'){ echo 'selected'; } ?> value="07">èþëü</option>
|
||||
<option <? if($mm=='08'){ echo 'selected'; } ?> value="08">àâãóñò</option>
|
||||
<option <? if($mm=='09'){ echo 'selected'; } ?> value="09">ñåíòÿáðü</option>
|
||||
<option <? if($mm=='10'){ echo 'selected'; } ?> value="10">îêòÿáðü</option>
|
||||
<option <? if($mm=='11'){ echo 'selected'; } ?> value="11">íîÿáðü</option>
|
||||
<option <? if($mm=='12'){ echo 'selected'; } ?> value="12">äåêàáðü</option>
|
||||
<option <? if ($mm == '01') {
|
||||
echo 'selected';
|
||||
} ?> value="01">ÿíâàðü
|
||||
</option>
|
||||
<option <? if ($mm == '02') {
|
||||
echo 'selected';
|
||||
} ?> value="02">ôåâðàëü
|
||||
</option>
|
||||
<option <? if ($mm == '03') {
|
||||
echo 'selected';
|
||||
} ?> value="03">ìàðò
|
||||
</option>
|
||||
<option <? if ($mm == '04') {
|
||||
echo 'selected';
|
||||
} ?> value="04">àïðåëü
|
||||
</option>
|
||||
<option <? if ($mm == '05') {
|
||||
echo 'selected';
|
||||
} ?> value="05">ìàé
|
||||
</option>
|
||||
<option <? if ($mm == '06') {
|
||||
echo 'selected';
|
||||
} ?> value="06">èþíü
|
||||
</option>
|
||||
<option <? if ($mm == '07') {
|
||||
echo 'selected';
|
||||
} ?> value="07">èþëü
|
||||
</option>
|
||||
<option <? if ($mm == '08') {
|
||||
echo 'selected';
|
||||
} ?> value="08">àâãóñò
|
||||
</option>
|
||||
<option <? if ($mm == '09') {
|
||||
echo 'selected';
|
||||
} ?> value="09">ñåíòÿáðü
|
||||
</option>
|
||||
<option <? if ($mm == '10') {
|
||||
echo 'selected';
|
||||
} ?> value="10">îêòÿáðü
|
||||
</option>
|
||||
<option <? if ($mm == '11') {
|
||||
echo 'selected';
|
||||
} ?> value="11">íîÿáðü
|
||||
</option>
|
||||
<option <? if ($mm == '12') {
|
||||
echo 'selected';
|
||||
} ?> value="12">äåêàáðü
|
||||
</option>
|
||||
</select>
|
||||
, <?= $yy; ?>
|
||||
ãîäà.
|
||||
Äîñòóïíûå ñðåäñòâà:
|
||||
<span style="font-weight: bold"><?=number_format($balance, 0, ",", " ");?></span> RUB | Ïðèáûëü çà ýòîò ìåñÿö: <span style="font-weight: bold"><?=number_format($plus, 0, ",", " ");?></span> RUB | Äàòà ãåíåðàöèè îò÷åòà:
|
||||
<span style="font-weight: bold"><?= number_format($balance, 0, ",", " "); ?></span> RUB | Ïðèáûëü çà
|
||||
ýòîò ìåñÿö: <span style="font-weight: bold"><?= number_format($plus, 0, ",", " "); ?></span> RUB | Äàòà
|
||||
ãåíåðàöèè îò÷åòà:
|
||||
<?= date('d.m.Y H:i:s'); ?>
|
||||
</form></td>
|
||||
</tr>
|
||||
<!--<tr>
|
||||
<td>
|
||||
<table width="1000" border="0" align="center" cellpadding="5" cellspacing="0">
|
||||
<tr>
|
||||
<td width="500" align="center" bgcolor="#CEE4C5" class="txt1" style="color: #265214; font-family: tahoma, arial, verdana, sans-serif, 'Lucida Sans';">Ïîñòóïëåíèå</td>
|
||||
<td width="500" align="center" bgcolor="#E1C8C9" class="txt1" style="color: #A3585C">Ñïèñàíèå</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>-->
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<?
|
||||
$i = 1;
|
||||
$days = ($time_finish - $time_start) / 86400;
|
||||
while($i<=$days)
|
||||
{
|
||||
while ($i <= $days) {
|
||||
$dt = $time_start + (86400 * ($i - 1));
|
||||
if($dt<time())
|
||||
{
|
||||
$lim = mysql_fetch_array(mysql_query('SELECT COUNT(*) FROM `balance_money` WHERE `time` >= '.$dt.''.$noobs.' AND `time` < '.($dt+86400).''));
|
||||
if ($dt < time()) {
|
||||
$lim = mysql_fetch_array(
|
||||
mysql_query(
|
||||
'SELECT COUNT(*) FROM `balance_money` WHERE `time` >= ' . $dt . '' . $noobs . ' AND `time` < ' . ($dt + 86400) . ''
|
||||
)
|
||||
);
|
||||
$lim = $lim[0];
|
||||
$mst = mysql_fetch_array(mysql_query('SELECT `money`,`balance` FROM `balance_money` WHERE `time` < '.$dt.''.$noobs.' AND `cancel` = "0" ORDER BY `id` DESC LIMIT 1')); $mst = $mst['balance'];
|
||||
$mft = mysql_fetch_array(mysql_query('SELECT `money`,`balance` FROM `balance_money` WHERE `time` >= '.$dt.''.$noobs.' AND `time` < '.($dt+86400).' AND `cancel` = "0" ORDER BY `id` DESC LIMIT 1')); $mft = $mft['balance'];
|
||||
$mst = mysql_fetch_array(
|
||||
mysql_query(
|
||||
'SELECT `money`,`balance` FROM `balance_money` WHERE `time` < ' . $dt . '' . $noobs . ' AND `cancel` = "0" ORDER BY `id` DESC LIMIT 1'
|
||||
)
|
||||
);
|
||||
$mst = $mst['balance'];
|
||||
$mft = mysql_fetch_array(
|
||||
mysql_query(
|
||||
'SELECT `money`,`balance` FROM `balance_money` WHERE `time` >= ' . $dt . '' . $noobs . ' AND `time` < ' . ($dt + 86400) . ' AND `cancel` = "0" ORDER BY `id` DESC LIMIT 1'
|
||||
)
|
||||
);
|
||||
$mft = $mft['balance'];
|
||||
?>
|
||||
<!-- day -->
|
||||
<div style="background-color:#cad3e0;color:#8591a2;border:1px solid #cdd5e2;">
|
||||
<div style="padding:10px;">Äàòà: <b><?=date('d.m.Y',$dt);?></b>, Îïåðàöèé çà ýòîò äåíü: <?=$lim;?>, ñðåäñòâ â íà÷àëå äíÿ: <b><?=number_format($mst, 0, ",", " ");?></b> RUB, ñðåäñòâ â êîíöå äíÿ: <b><?=number_format($mft, 0, ",", " ");?></b> RUB</div>
|
||||
<div style="padding:10px;">Äàòà: <b><?= date('d.m.Y', $dt); ?></b>, Îïåðàöèé çà ýòîò
|
||||
äåíü: <?= $lim; ?>, ñðåäñòâ â íà÷àëå äíÿ: <b><?= number_format($mst, 0, ",", " "); ?></b>
|
||||
RUB, ñðåäñòâ â êîíöå äíÿ: <b><?= number_format($mft, 0, ",", " "); ?></b> RUB
|
||||
</div>
|
||||
<!-- -->
|
||||
<?
|
||||
$sp = mysql_query('SELECT * FROM `balance_money` WHERE `time` >= '.$dt.''.$noobs.' AND `time` < '.($dt+86400).' ORDER BY `time` ASC LIMIT '.$lim);
|
||||
while($pl = mysql_fetch_array($sp))
|
||||
{
|
||||
if($pl['money']>0 && $pl['cancel']==0)
|
||||
{
|
||||
$sp = mysql_query(
|
||||
'SELECT * FROM `balance_money` WHERE `time` >= ' . $dt . '' . $noobs . ' AND `time` < ' . ($dt + 86400) . ' ORDER BY `time` ASC LIMIT ' . $lim
|
||||
);
|
||||
while ($pl = mysql_fetch_array($sp)) {
|
||||
if ($pl['money'] > 0 && $pl['cancel'] == 0) {
|
||||
?>
|
||||
<table width="998" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="499" align="center" valign="top" bgcolor="#f5f7fa" class="txt1">
|
||||
<table bgcolor="#e6f8ea" width="100%" border="0" cellspacing="0" cellpadding="5">
|
||||
<table bgcolor="#e6f8ea" width="100%" border="0" cellspacing="0"
|
||||
cellpadding="5">
|
||||
<tr>
|
||||
<td width="100" align="center"><?=date('d.m.Y H:i:s',$pl['time']);?></td>
|
||||
<td width="75" align="center"><?=number_format($pl['money'], 0, ",", " ");?> RUB</td>
|
||||
<td>Îñòàòîê: <span style="font-weight: bold"><?=number_format($pl['balance'], 0, ",", " ");?></span> RUB</td>
|
||||
<td width="100" align="center"><? if($pl['cancel']==0){ echo '<a href="?mm='.$mm.'&cancel='.$pl['id'].'">Îòêðåïèòü</a>'; }else{ echo '<a href="?mm='.$mm.'&recancel='.$pl['id'].'">Ïðèêðåïèòü</a>'; } ?></td>
|
||||
<td width="100" align="center"><?= date(
|
||||
'd.m.Y H:i:s', $pl['time']
|
||||
); ?></td>
|
||||
<td width="75" align="center"><?= number_format(
|
||||
$pl['money'], 0, ",", " "
|
||||
); ?> RUB
|
||||
</td>
|
||||
<td>Îñòàòîê: <span style="font-weight: bold"><?= number_format(
|
||||
$pl['balance'], 0, ",", " "
|
||||
); ?></span> RUB
|
||||
</td>
|
||||
<td width="100" align="center"><? if ($pl['cancel'] == 0) {
|
||||
echo '<a href="?mm=' . $mm . '&cancel=' . $pl['id'] . '">Îòêðåïèòü</a>';
|
||||
} else {
|
||||
echo '<a href="?mm=' . $mm . '&recancel=' . $pl['id'] . '">Ïðèêðåïèòü</a>';
|
||||
} ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@ -267,44 +333,74 @@ function MM_jumpMenu(targ,selObj,restore){ //v3.0
|
||||
<td width="499" align="right" valign="top" bgcolor="#f5f7fa" class="txt1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="5">
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#F5F7FA"> <?=$pl['comment2'];?></td>
|
||||
<td valign="top" bgcolor="#F5F7FA">
|
||||
<?= $pl['comment2']; ?></td>
|
||||
<td width="30" align="right" valign="top">→</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="499" align="center" valign="top" bgcolor="<? if($pl['money']<0){ echo '#f8e6ef'; }else{ echo '#F5F7FA'; } ?>" class="txt1">
|
||||
<table bgcolor="<? if($pl['money']<0 && $pl['cancel']==0){ echo '#f8e6ef'; }else{ echo '#F5F7FA'; } ?>" width="100%" border="0" cellspacing="0" cellpadding="5">
|
||||
<td width="499" align="center" valign="top" bgcolor="<? if ($pl['money'] < 0) {
|
||||
echo '#f8e6ef';
|
||||
} else {
|
||||
echo '#F5F7FA';
|
||||
} ?>" class="txt1">
|
||||
<table bgcolor="<? if ($pl['money'] < 0 && $pl['cancel'] == 0) {
|
||||
echo '#f8e6ef';
|
||||
} else {
|
||||
echo '#F5F7FA';
|
||||
} ?>" width="100%" border="0" cellspacing="0" cellpadding="5">
|
||||
<tr>
|
||||
<td width="100" align="center"><?=date('d.m.Y H:i:s',$pl['time']);?></td>
|
||||
<td width="75" align="center"><?=number_format($pl['money'], 0, ",", " ");?> RUB</td>
|
||||
<td>Îñòàòîê: <span style="font-weight: bold"><?=number_format($pl['balance'], 0, ",", " ");?></span> RUB</td>
|
||||
<td width="100" align="center"><? if($pl['cancel']==0){ echo '<a href="?mm='.$mm.'&cancel='.$pl['id'].'">Îòêðåïèòü</a>'; }else{ echo '<a href="?mm='.$mm.'&recancel='.$pl['id'].'">Ïðèêðåïèòü</a>'; } ?></td>
|
||||
<td width="100" align="center"><?= date(
|
||||
'd.m.Y H:i:s', $pl['time']
|
||||
); ?></td>
|
||||
<td width="75" align="center"><?= number_format(
|
||||
$pl['money'], 0, ",", " "
|
||||
); ?> RUB
|
||||
</td>
|
||||
<td>Îñòàòîê: <span style="font-weight: bold"><?= number_format(
|
||||
$pl['balance'], 0, ",", " "
|
||||
); ?></span> RUB
|
||||
</td>
|
||||
<td width="100" align="center"><? if ($pl['cancel'] == 0) {
|
||||
echo '<a href="?mm=' . $mm . '&cancel=' . $pl['id'] . '">Îòêðåïèòü</a>';
|
||||
} else {
|
||||
echo '<a href="?mm=' . $mm . '&recancel=' . $pl['id'] . '">Ïðèêðåïèòü</a>';
|
||||
} ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<? } } ?>
|
||||
<? }
|
||||
} ?>
|
||||
<!-- -->
|
||||
</div>
|
||||
<? } $i++; } ?>
|
||||
<? }
|
||||
$i++;
|
||||
} ?>
|
||||
<? if ($mm == date('m')) { ?>
|
||||
<br><br><br>
|
||||
<div style="background-color:#F5F7FA;">
|
||||
<form name="form1" method="post" action="?mm=<?= $mm; ?>#addline">
|
||||
<table width="100%" border="0" align="center" cellpadding="5" style="border:1px solid #8591a2;" cellspacing="0">
|
||||
<table width="100%" border="0" align="center" cellpadding="5" style="border:1px solid #8591a2;"
|
||||
cellspacing="0">
|
||||
<tr>
|
||||
<td bgcolor="#CAD3E0">Ñóììà: <input name="money" type="text" size="21" maxlength="7"/>
|
||||
RUB</td>
|
||||
RUB
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#CAD3E0"><p class="txt1">Êîììåíòàðèé (500 ñèìâîëîâ ìàêñèìóì):</p>
|
||||
<p>
|
||||
<textarea style="width:980px;" name="text" id="text" cols="45" rows="5"></textarea>
|
||||
<textarea style="width:980px;" name="text" id="text" cols="45"
|
||||
rows="5"></textarea>
|
||||
</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" bgcolor="#CAD3E0"><input type="submit" name="button" id="button" value="Ïðèêðåïèòü ê îò÷åòó çà <?=date('d.m.Y');?>"></td>
|
||||
<td align="right" bgcolor="#CAD3E0"><input type="submit" name="button" id="button"
|
||||
value="Ïðèêðåïèòü ê îò÷åòó çà <?= date(
|
||||
'd.m.Y'
|
||||
); ?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
79
bandit.php
79
bandit.php
@ -1,28 +1,40 @@
|
||||
<?php
|
||||
|
||||
define('GAME',true);
|
||||
const GAME = true;
|
||||
include_once('_incl_data/__config.php');
|
||||
include_once('_incl_data/class/__db_connect.php');
|
||||
include_once('_incl_data/class/__user.php');
|
||||
$u = User::start();
|
||||
|
||||
if($u->room['name']!='Îäíîðóêèé áàíäèò')
|
||||
{
|
||||
if ($u->room['name'] != 'Îäíîðóêèé áàíäèò') {
|
||||
die();
|
||||
}else{
|
||||
}
|
||||
|
||||
//Ðàçäàåì âûéãðûøè
|
||||
|
||||
|
||||
function get2str($key='', $val='') {
|
||||
function get2str($key = '', $val = '')
|
||||
{
|
||||
$get = $_GET;
|
||||
if (is_array($key)) {
|
||||
if ( count($key)>0 ) foreach ( $key as $k=>$v ) $get[$k] = $v;
|
||||
} else $get[$key] = $val;
|
||||
if ( count($get)>0 ) {
|
||||
foreach ( $get as $k=>$v ) if ( empty($v) ) unset($get[$k]);
|
||||
if (count($key) > 0) {
|
||||
foreach ($key as $k => $v) {
|
||||
$get[$k] = $v;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$get[$key] = $val;
|
||||
}
|
||||
if (count($get) > 0) {
|
||||
foreach ( $get as $k=>$v ) $get[$k] = $k.'='.urlencode($v);
|
||||
foreach ($get as $k => $v) {
|
||||
if (empty($v)) {
|
||||
unset($get[$k]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count($get) > 0) {
|
||||
foreach ($get as $k => $v) {
|
||||
$get[$k] = $k . '=' . urlencode($v);
|
||||
}
|
||||
return '?' . implode('&', $get);
|
||||
}
|
||||
}
|
||||
@ -36,9 +48,7 @@ if($u->room['name']!='
|
||||
} elseif ($_GET['bet'] == 3) {
|
||||
$s = 3;
|
||||
}
|
||||
if( $u->bank['money2'] < $s ) {
|
||||
//Íåäîñòàòî÷íî äåíåã!
|
||||
}else{
|
||||
if ($u->bank['money2'] >= $s) {
|
||||
//Èãðàåì!
|
||||
$w1 = rand(0, 4);
|
||||
$w2 = rand(0, 4);
|
||||
@ -71,11 +81,7 @@ if($u->room['name']!='
|
||||
// 1 2 3
|
||||
$win = 1;
|
||||
$n = 5;
|
||||
}elseif( $w1 == 4 && $w3 == 4 ) {
|
||||
// 1 2 3
|
||||
$win = 1;
|
||||
$n = 5;
|
||||
}elseif( $w2 == 4 && $w3 == 4 ) {
|
||||
} elseif ($w1 == 4 && $w3 == 4 || $w2 == 4 && $w3 == 4) {
|
||||
// 1 2 3
|
||||
$win = 1;
|
||||
$n = 5;
|
||||
@ -114,11 +120,7 @@ if($u->room['name']!='
|
||||
// 1 2 3
|
||||
$win = 1;
|
||||
$n = 5;
|
||||
}elseif( $w1 == 4 && $w3 == 4 ) {
|
||||
// 1 2 3
|
||||
$win = 1;
|
||||
$n = 5;
|
||||
}elseif( $w2 == 4 && $w3 == 4 ) {
|
||||
} elseif ($w1 == 4 && $w3 == 4 || $w2 == 4 && $w3 == 4) {
|
||||
// 1 2 3
|
||||
$win = 1;
|
||||
$n = 5;
|
||||
@ -127,24 +129,31 @@ if($u->room['name']!='
|
||||
//
|
||||
$u->bank['money2'] -= $s;
|
||||
$u->bank['money2'] += $s * $win;
|
||||
mysql_query('UPDATE `bank` SET `money2` = "'.$u->bank['money2'].'" WHERE `id` = "'.$u->bank['id'].'" LIMIT 1');
|
||||
mysql_query(
|
||||
'UPDATE `bank` SET `money2` = "' . $u->bank['money2'] . '" WHERE `id` = "' . $u->bank['id'] . '" LIMIT 1'
|
||||
);
|
||||
//
|
||||
mysql_query('INSERT INTO `bandit` (`uid`,`time`,`room`,`s`,`wm`,`w`) VALUES (
|
||||
"'.$u->info['id'].'","'.time().'","'.$u->info['room'].'","'.$s.'","'.($s*$win).'","'.$w1.$w2.$w3.'"
|
||||
) ');
|
||||
mysql_query(
|
||||
'INSERT INTO `bandit` (`uid`,`time`,`room`,`s`,`wm`,`w`) VALUES (
|
||||
"' . $u->info['id'] . '","' . time(
|
||||
) . '","' . $u->info['room'] . '","' . $s . '","' . ($s * $win) . '","' . $w1 . $w2 . $w3 . '"
|
||||
) '
|
||||
);
|
||||
$gid = mysql_insert_id();
|
||||
//
|
||||
if ($win > 0) {
|
||||
mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`) VALUES ('1','".$u->info['city']."','390','','','<small>[<b><font color=0066ff>Êðóïüå</font></b>] Èãðîê <b>".mysql_real_escape_string($u->info['login'])."</b> âûèãðàë <b>".($s*$win).".00</b> åêð., ñòàâêà: ".$s.".00 åêð., èãðà ¹".$gid."</small>','".time()."','6','0')");
|
||||
mysql_query(
|
||||
"INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`) VALUES ('1','" . $u->info['city'] . "','390','','','<small>[<b><font color=0066ff>Êðóïüå</font></b>] Èãðîê <b>" . mysql_real_escape_string(
|
||||
$u->info['login']
|
||||
) . "</b> âûèãðàë <b>" . ($s * $win) . ".00</b> åêð., ñòàâêà: " . $s . ".00 åêð., èãðà ¹" . $gid . "</small>','" . time(
|
||||
) . "','6','0')"
|
||||
);
|
||||
}
|
||||
//
|
||||
$r .= 'cash='.floor($u->bank['money2']).'';
|
||||
$r .= '&w1='.$w1.'&w2='.$w2.'&w3='.$w3.'&n='.$n.'&win='.($s*$win).'';
|
||||
$r .= 'cash=' . floor($u->bank['money2']);
|
||||
$r .= '&w1=' . $w1 . '&w2=' . $w2 . '&w3=' . $w3 . '&n=' . $n . '&win=' . ($s * $win);
|
||||
}
|
||||
} else {
|
||||
$r .= 'cash='.floor($u->bank['money2']).'';
|
||||
$r .= 'cash=' . floor($u->bank['money2']);
|
||||
}
|
||||
|
||||
echo $r;
|
||||
}
|
||||
?>
|
@ -69,8 +69,8 @@ define('GAME',true);
|
||||
|
||||
setlocale(LC_CTYPE ,"ru_RU.CP1251");
|
||||
|
||||
include('_incl_data/__config.php');
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
require_once('_incl_data/__config.php');
|
||||
require_once('_incl_data/class/__db_connect.php');
|
||||
|
||||
//Îáíóëåíèå ïåðåäà÷ ðàç â ñóòêè
|
||||
mysql_query('UPDATE `stats` SET `transfers` = 100 WHERE `transfers` < 200');
|
||||
|
479
batl_1.js1
479
batl_1.js1
@ -1,479 +0,0 @@
|
||||
var loadingLogNow = true;
|
||||
var vlogid = 0;
|
||||
var battleClass = {
|
||||
battle:0,
|
||||
hod:0,
|
||||
conf:{
|
||||
timeout:'-- ìèí.',
|
||||
damage:'0',
|
||||
tactic:[ 0 , 0 , 0 , 0 , 0 , 0 , 0 ],
|
||||
priems:[],
|
||||
pr:"",
|
||||
pr_z:"",
|
||||
pr_s:0
|
||||
},
|
||||
me:0,
|
||||
enemy:0,
|
||||
users:{ },
|
||||
uids:[0],
|
||||
priems:{ },
|
||||
prms:[0],
|
||||
eff:[],
|
||||
act:[],
|
||||
log:function(txt) {
|
||||
console.log(txt);
|
||||
},
|
||||
start:function() {
|
||||
this.reflesh(1);
|
||||
},
|
||||
reflesh:function( type ) {
|
||||
$.getJSON( 'https://new-combats.com/getbattle.php',{ 'global':true,'type':type },function(data) {
|
||||
//
|
||||
if( data.e != undefined && data.e != "" ) {
|
||||
alert( 'Îøèáêà: ' + data.e );
|
||||
}
|
||||
//
|
||||
battleClass.me = data.you;
|
||||
battleClass.enemy = data.enemy;
|
||||
battleClass.battle = data.btl;
|
||||
battleClass.hod = data.hod;
|
||||
battleClass.conf.timeout = data.to;
|
||||
battleClass.conf.damage = data.dm;
|
||||
battleClass.conf.pr = data.pr[0];
|
||||
battleClass.conf.pr_z = data.pr[1];
|
||||
battleClass.conf.pr_s = data.pr[2];
|
||||
battleClass.conf.tactic = [ 0 , data.t1 , data.t2 , data.t3 , data.t4 , data.t5 , data.t6 , data.t7 ];
|
||||
//
|
||||
battleClass.eff = data.r.eff_me;
|
||||
battleClass.act = data.r.act;
|
||||
//
|
||||
//Ïîëüçîâàòåëè
|
||||
if( data.r.u != undefined ) {
|
||||
var i = 0;
|
||||
while( i != -1 ) {
|
||||
if( data.r.u[i] != undefined ) {
|
||||
if( data.r.u[i][0] > 0 ) {
|
||||
//
|
||||
if( battleClass.users[data.r.u[i][0]] == undefined ) {
|
||||
battleClass.users[data.r.u[i][0]] = { 'complete':false };
|
||||
battleClass.uids[0]++;
|
||||
battleClass.uids[battleClass.uids[0]] = data.r.u[i][0];
|
||||
}
|
||||
battleClass.users[data.r.u[i][0]].id = data.r.u[i][0];
|
||||
//
|
||||
battleClass.users[data.r.u[i][0]].hp = data.r.u[i][1];
|
||||
battleClass.users[data.r.u[i][0]].mp = data.r.u[i][2];
|
||||
battleClass.users[data.r.u[i][0]].hpAll = data.r.u[i][3];
|
||||
battleClass.users[data.r.u[i][0]].mpAll = data.r.u[i][4];
|
||||
//
|
||||
if( battleClass.users[data.r.u[i][0]].hp > battleClass.users[data.r.u[i][0]].hpAll ) {
|
||||
battleClass.users[data.r.u[i][0]].hp = battleClass.users[data.r.u[i][0]].hpAll;
|
||||
}
|
||||
if( battleClass.users[data.r.u[i][0]].mp > battleClass.users[data.r.u[i][0]].mpAll ) {
|
||||
battleClass.users[data.r.u[i][0]].mp = battleClass.users[data.r.u[i][0]].mpAll;
|
||||
}
|
||||
//
|
||||
}else{
|
||||
battleClass.log( 'Îøèáêà, èãðîê íå íàéäåí...' );
|
||||
}
|
||||
}else{
|
||||
i = -2;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
battleClass.loadingGlobaldata();
|
||||
}
|
||||
//
|
||||
});
|
||||
},
|
||||
loadingGlobaldata:function() {
|
||||
var r = {
|
||||
'load':0,
|
||||
'users':"0",
|
||||
'priems':"0"
|
||||
};
|
||||
//Îáíîâëÿåì ïîëüçîâàòåëåé êîòîðûõ íå ïðîãðóçèëè
|
||||
/*
|
||||
Ñêëîííîñòü, Êëàí, Óðîâåíü, Ëîãèí, Êîìàíäà
|
||||
*/
|
||||
var i = 1;
|
||||
while( i <= battleClass.uids[0] ) {
|
||||
if( battleClass.users[ battleClass.uids[i] ].complete == false ) {
|
||||
//Ïðîãðóæàåì äàííûå èãðîêà
|
||||
r.load++;
|
||||
r.users = r.users + "," + battleClass.users[ battleClass.uids[i] ].id;
|
||||
}else{
|
||||
//Âñå îêåé
|
||||
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
//Ïðèåìû
|
||||
var pr = battleClass.conf.pr.split('|');
|
||||
var prz = battleClass.conf.pr_z.split('|');
|
||||
var i = 0;
|
||||
while( i < battleClass.conf.pr_s ) {
|
||||
if( pr[i] != undefined && pr[i] > 0 ) {
|
||||
if( battleClass.priems[pr[i]] == undefined ) {
|
||||
//Ïðîãðóæàåì äàííûå ïî ïðèåìàì
|
||||
r.load++;
|
||||
r.priems += ',' + pr[i];
|
||||
}else{
|
||||
//Âñå îêåé
|
||||
}
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
if( r.load > 0 ) {
|
||||
|
||||
$.getJSON( 'https://new-combats.com/getbattle.php',{ 'loading':true , 'uload':r.users , 'pload':r.priems },function(data) {
|
||||
//
|
||||
if( data.e != undefined && data.e != "" ) {
|
||||
alert( 'Îøèáêà: ' + data.e );
|
||||
}
|
||||
//
|
||||
if( data.r != undefined ) {
|
||||
//+++++++++++++++++++++++++++++
|
||||
|
||||
battleClass.log(data);
|
||||
|
||||
|
||||
//Çàãðóçêà ïîëüçîâàòåëåé
|
||||
if( data.r.ul != undefined ) {
|
||||
//
|
||||
var i = 0;
|
||||
while( i != -1 ) {
|
||||
if( data.r.ul[i] != undefined ) {
|
||||
if( data.r.ul[i].id > 0 ) {
|
||||
//
|
||||
if( battleClass.users[data.r.ul[i].id] == undefined ) {
|
||||
battleClass.users[data.r.ul[i].id] = { };
|
||||
battleClass.uids[0]++;
|
||||
battleClass.uids[battleClass.uids[0]] = data.r.ul[i].id;
|
||||
}
|
||||
battleClass.users[data.r.ul[i].id] = data.r.ul[i];
|
||||
//
|
||||
battleClass.users[data.r.ul[i].id].complete = true;
|
||||
//
|
||||
}else{
|
||||
battleClass.log( 'Îøèáêà, èãðîê íå íàéäåí...' );
|
||||
}
|
||||
}else{
|
||||
i = -2;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
//
|
||||
}
|
||||
|
||||
//Çàãðóçêà ïðèåìîâ
|
||||
if( data.r.pl != undefined ) {
|
||||
//
|
||||
var i = 0;
|
||||
while( i != -1 ) {
|
||||
if( data.r.pl[i] != undefined ) {
|
||||
if( data.r.pl[i].id > 0 ) {
|
||||
//
|
||||
if( battleClass.priems[data.r.pl[i].id] == undefined ) {
|
||||
battleClass.priems[data.r.pl[i].id] = { };
|
||||
battleClass.prms[0]++;
|
||||
battleClass.prms[battleClass.prms[0]] = data.r.pl[i].id;
|
||||
}
|
||||
battleClass.priems[data.r.pl[i].id] = data.r.pl[i];
|
||||
//
|
||||
battleClass.priems[data.r.pl[i].id].complete = true;
|
||||
//
|
||||
}else{
|
||||
battleClass.log( 'Îøèáêà, ïðèåì íå íàéäåí...' );
|
||||
}
|
||||
}else{
|
||||
i = -2;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
//
|
||||
}
|
||||
|
||||
battleClass.generate();
|
||||
|
||||
//+++++++++++++++++++++++++++++
|
||||
}
|
||||
//
|
||||
});
|
||||
}else{
|
||||
battleClass.generate();
|
||||
}
|
||||
//
|
||||
|
||||
},
|
||||
loadLog:function(url) {
|
||||
var loadingLogNow = false;
|
||||
$('#battle_log').remove();
|
||||
var e = document.createElement("script");
|
||||
e.src = url;
|
||||
e.id = 'battle_log';
|
||||
e.type="text/javascript";
|
||||
document.getElementsByTagName("head")[0].appendChild(e);
|
||||
},
|
||||
testAct:function(uid1,uid2) {
|
||||
var r = false;
|
||||
var i = 0;
|
||||
while( i != -1 ) {
|
||||
if( this.act[i] != undefined ) {
|
||||
if( this.act[i][1] == uid1 && this.act[i][2] == uid2 ) {
|
||||
r = true;
|
||||
}
|
||||
}else{
|
||||
i = -2;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
return r;
|
||||
},
|
||||
userInfoItems:function(id,t) {
|
||||
var i = 0;
|
||||
while( i != - 1 ) {
|
||||
if( this.users[id].itm[i] != undefined ) {
|
||||
//
|
||||
title = '<center><b>'+this.users[id].itm[i][3]+'</b>';
|
||||
title += '<br><i>(Õàðàêòåðèñòèêè ñêðûòû)</i>';
|
||||
title += '</center>';
|
||||
//
|
||||
var cvs = '';
|
||||
if( id == this.me ) {
|
||||
cvs = this.users[id].itm[i][5];
|
||||
}
|
||||
//
|
||||
abitms(t,id,this.users[id].itm[i][0],this.users[id].itm[i][2],this.users[id].itm[i][3],title,this.users[id].itm[i][4],cvs);
|
||||
}else{
|
||||
i = -2;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
},
|
||||
userInfoEffects:function(id,t) {
|
||||
var i = 0;
|
||||
var html = '';
|
||||
if( this.eff != undefined ) {
|
||||
while( i != - 1 ) {
|
||||
if( this.eff[i] != undefined ) {
|
||||
if( this.eff[i][0] == id ) {
|
||||
var title_eff = '<b><u>'+this.eff[i][3]+'</u></b>';
|
||||
var eff_types = '(Ýôôåêò)';
|
||||
if( this.eff[i][5] > 0 && this.eff[i][5] < 7 ) {
|
||||
var eff_types = '(Ýëèêñèð)';
|
||||
}else if( (this.eff[i][5] > 6 && this.eff[i][5] < 11) || this.eff[i][5] == 16 ) {
|
||||
var eff_types = '(Çàêëÿòèå)';
|
||||
}else if( this.eff[i][5] == 14 ) {
|
||||
var eff_types = '(Ïðèåì)';
|
||||
}else if( this.eff[i][5] == 15 ) {
|
||||
var eff_types = '(Èçó÷åíèå)';
|
||||
}else if( this.eff[i][5] == 17 ) {
|
||||
var eff_types = '(Ïðîêëÿòèå)';
|
||||
}else if( this.eff[i][5] == 18 || this.eff[i][5] == 17 ) {
|
||||
var eff_types = '(Òðàâìà)';
|
||||
}else if( this.eff[i][5] == 20 ) {
|
||||
var eff_types = '(Ïðèñòðàñòèå)';
|
||||
}else if( this.eff[i][5] == 22 ) {
|
||||
var eff_types = '(Îæèäàíèå)';
|
||||
}
|
||||
title_eff += ' ' + eff_types;
|
||||
html = '<div class="pimg" pog="0" col="0" stl="0" stt="'+title_eff+'"><img src="https://img.new-combats.com/i/eff/'+this.eff[i][4]+'"></div>'+html;
|
||||
}
|
||||
}else{
|
||||
i = -2;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
return html;
|
||||
},
|
||||
userInfo:function(id,t) {
|
||||
var stats_title = '';
|
||||
stats_title += '<b>'+this.users[id].login+'</b><br>';
|
||||
stats_title += 'Ñèëà: --<br>';
|
||||
stats_title += 'Ëîâêîñòü: --<br>';
|
||||
stats_title += 'Èíòóèöèÿ: --<br>';
|
||||
stats_title += 'Âûíîñëèâîñòü: --<br>';
|
||||
|
||||
var eff_data = this.userInfoEffects(id,t);
|
||||
|
||||
return info_reflesh(t,id,'',this.users[id].obraz,this.users[id].hp,this.users[id].hpAll,this.users[id].mp,this.users[id].mpAll,0,0,eff_data,stats_title,0,'');
|
||||
},
|
||||
generate:function() {
|
||||
|
||||
//Íàáèòî
|
||||
$('#nabito').html( this.conf.damage );
|
||||
|
||||
//Òàéìàóò
|
||||
$('#timer_out').html( this.conf.timeout );
|
||||
|
||||
//Òàêòèêè
|
||||
var i = 1;
|
||||
while( i <= 7 ) {
|
||||
$('#tac'+i).html( ( 0 + parseInt(this.conf.tactic[i]) ));
|
||||
i++;
|
||||
}
|
||||
$('#tac7t').attr( { 'title':'Óðîâåíü äóõà: ' + this.conf.tactic[7] } );
|
||||
|
||||
//Èãðîê
|
||||
$('#player1').html( this.userInfo(this.me,1) );
|
||||
$('#player1_login').html( this.microLogin(this.me,0) );
|
||||
this.userInfoItems(this.me,1);
|
||||
|
||||
//Ïðîòèâíèê
|
||||
if( this.enemy > 0 ) {
|
||||
$('#player2').html( this.userInfo(this.enemy,2) );
|
||||
$('#player2_login').html( this.microLogin(this.enemy,0) + ' ' );
|
||||
this.userInfoItems(this.enemy,2);
|
||||
}else{
|
||||
$('#player2_login').html('');
|
||||
$('#player2').html('Íåò ïðîòèâíèêà...');
|
||||
}
|
||||
|
||||
//Äîï.ôóíêöèè
|
||||
shpb();
|
||||
|
||||
//Ïðèåìû
|
||||
var pr_see = '';
|
||||
var pr = battleClass.conf.pr.split('|');
|
||||
var prz = battleClass.conf.pr_z.split('|');
|
||||
var i = 0;
|
||||
while( i < battleClass.conf.pr_s ) {
|
||||
if( pr[i] != undefined && pr[i] > 0 ) {
|
||||
if( battleClass.priems[pr[i]] != undefined ) {
|
||||
prm = battleClass.priems[pr[i]];
|
||||
cl = '';
|
||||
if( prm.type == 1 ) {
|
||||
var onuser = '';
|
||||
if( prm.onUser > 0 ) {
|
||||
cl = 'href="javascript:void(0);" onClick="top.priemOnUser('+i+',1,\''+prm.name+'\',\''+onuser+'\',\''+prm.img+'\');"';
|
||||
}else{
|
||||
cl = 'href="javascript:void(0);" onClick="usepriem('+i+',1,\''+prm.img+'\');"';
|
||||
}
|
||||
}else if( prm.type == 2 ) {
|
||||
cl = 'href="javascript:void(0);" onClick="usepriem('+i+',1,\''+prm.img+'\');"';
|
||||
}else if( prm.type == 3 ) {
|
||||
cl = 'href="javascript:void(0);" onClick="alert(\'Âîçìîæíî èñïîëüçóåì?\');"';
|
||||
}
|
||||
}else{
|
||||
prm = {
|
||||
'id':pr[i],
|
||||
'name':"*Íåèçâåñòíûé ïðèåì ¹"+pr[i]+"*",
|
||||
'img':"clearPriem.gif"
|
||||
};
|
||||
cl = 'href="javascript:void(0);" onclick="alert(\'Ïðèåì íå íàéäåí\');"';
|
||||
}
|
||||
pr_see += '<a '+cl+'><img style="margin-top:4px;margin-left:4px;" title="'+prm.name+'" src="https://img.new-combats.com/i/eff/'+prm.img+'.gif" width="40" height="25"></a>';
|
||||
}else{
|
||||
pr_see += '<img style="margin-top:4px;margin-left:4px;" title="Ïóñòîé ñëîò ïðèåìà" src="https://img.new-combats.com/i/items/w/clearPriem.gif" width="40" height="25">';
|
||||
}
|
||||
i++;
|
||||
}
|
||||
$('#priems').html( pr_see );
|
||||
delete pr_see;
|
||||
|
||||
//Ñîáèðàåì êîìàíäû
|
||||
var rd = '';
|
||||
var tms = [];
|
||||
var tmr = [0];
|
||||
var i = 1;
|
||||
while( i <= this.uids[0] ) {
|
||||
if( tms[this.users[ this.uids[i] ].team] == undefined ) {
|
||||
tmr[0]++;
|
||||
tms[this.users[ this.uids[i] ].team] = '';
|
||||
tmr[tmr[0]] = this.users[ this.uids[i] ].team;
|
||||
}
|
||||
if( this.users[ this.uids[i] ].hp > 0 ) {
|
||||
if( tms[this.users[ this.uids[i] ].team] != '' ) {
|
||||
tms[this.users[ this.uids[i] ].team] += ', ';
|
||||
}
|
||||
tms[this.users[ this.uids[i] ].team] += this.teamLogin(this.users[ this.uids[i] ].id,1);
|
||||
}
|
||||
i++;
|
||||
}
|
||||
var i = 1;
|
||||
while( i <= tmr[0] ) {
|
||||
if( tms[tmr[i]] != '' ) {
|
||||
if( rd != '' ) {
|
||||
rd += ' <b>ïðîòèâ</b> ';
|
||||
}
|
||||
rd += '<img src="https://img.new-combats.com/i/lock3.gif" style="cursor:pointer"> ' + tms[tmr[i]];
|
||||
}
|
||||
i++;
|
||||
}
|
||||
$('#teams').html( rd );
|
||||
//
|
||||
//ëîã áîÿ
|
||||
this.loadLog('https://new-combats.com/battle_logs/btl_'+this.battle+'.js?'+this.hod);
|
||||
this.logTimerX = 0;
|
||||
this.logUpdateNow();
|
||||
//
|
||||
//Ðàçäåë ïîåäèíêà
|
||||
if( this.testAct( this.me , this.enemy ) == true ) {
|
||||
mainstatus(2);
|
||||
}else{
|
||||
mainstatus(1);
|
||||
}
|
||||
//
|
||||
},
|
||||
lastvlogid:0,
|
||||
logTimer:null,
|
||||
logTimerX:0,
|
||||
logUpdateNow:function() {
|
||||
clearTimeout(this.logTimer);
|
||||
if( typeof logRefleshedCache == 'function' && loadingLogNow == true && this.lastvlogid < vlogid) {
|
||||
this.lastvlogid = vlogid;
|
||||
this.logTimerX = 0;
|
||||
$('#battle_logg').html('');
|
||||
logRefleshedCache();
|
||||
}else{
|
||||
this.logTimerX++;
|
||||
this.log('logUpdateNow-cycles');
|
||||
if( this.logTimerX < 101 ) {
|
||||
this.logTimer = setTimeout('battleClass.logUpdateNow();',20);
|
||||
}else{
|
||||
this.logTimerX = 0;
|
||||
}
|
||||
}
|
||||
},
|
||||
teamLogin:function(id,type) {
|
||||
var r = '';
|
||||
if( this.users[id].align != undefined && this.users[id].align > 0 ) {
|
||||
// r += '<img src="https://img.new-combats.com/i/align/align'+this.users[id].align+'.gif">';
|
||||
}
|
||||
if( this.users[id].clan != undefined && this.users[id].clan > 0 ) {
|
||||
// r += '<img src="https://img.new-combats.com/i/clan/'+this.users[id].clan+'.gif">';
|
||||
}
|
||||
var stl = '';
|
||||
if( this.testAct(this.me,id) != false ) {
|
||||
//Óäàðèëè îæèäàåì îòâåòà
|
||||
stl = '';
|
||||
}
|
||||
if( this.testAct(id,this.me) != false ) {
|
||||
//Óäàðèëè, íóæíî îòâåòèòü
|
||||
stl = 'text-decoration:underline;';
|
||||
}
|
||||
r += '<b style="'+stl+'" onclick="top.chat.addto(\''+this.users[id].login+'\',\'to\');" oncontextmenu="top.infoMenu(\''+this.users[id].login+'\',event,\'main\'); return false;" class="CSSteam'+this.users[id].team+'">'+this.users[id].login+'</b>';
|
||||
//
|
||||
r += '<small> ['+this.users[id].hp+'/'+this.users[id].hpAll+']</small>';
|
||||
//
|
||||
return r;
|
||||
},
|
||||
microLogin:function(id,type) {
|
||||
var r = '';
|
||||
if( this.users[id].align != undefined && this.users[id].align > 0 ) {
|
||||
r += '<img src="https://img.new-combats.com/i/align/align'+this.users[id].align+'.gif">';
|
||||
}
|
||||
if( this.users[id].clan != undefined && this.users[id].clan > 0 ) {
|
||||
r += '<img src="https://img.new-combats.com/i/clan/'+this.users[id].clan+'.gif">';
|
||||
}
|
||||
r += '<a href="javascript:void(0)" onclick="top.chat.addto(\''+this.users[id].login+'\',\'to\');" oncontextmenu="top.infoMenu(\''+this.users[id].login+'\',event,\'main\'); return false;">'+this.users[id].login+'</a> ['+this.users[id].level+']';
|
||||
r += '<a href="/info/'+this.users[id].id+'" target="_blank"><img title="Èíô. î '+this.users[id].login+'" src="https://img.new-combats.com/i/inf_capitalcity.gif"></a>';
|
||||
return r;
|
||||
}
|
||||
};
|
28
bonuss.php
28
bonuss.php
@ -1,16 +1,13 @@
|
||||
<?
|
||||
/*if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}*/
|
||||
define('GAME',true);
|
||||
include('_incl_data/__config.php');
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
include('_incl_data/class/__user.php');
|
||||
include('_incl_data/class/__dungeon.php');
|
||||
<?php
|
||||
|
||||
if ($_POST['code']==$_SESSION['code'] && $_POST['code']!='')
|
||||
{
|
||||
const GAME = true;
|
||||
require_once('_incl_data/__config.php');
|
||||
require_once('_incl_data/class/__db_connect.php');
|
||||
$u = User::start();
|
||||
$d = new Dungeon;
|
||||
$d->start();
|
||||
|
||||
if ($_POST['code'] == $_SESSION['code'] && $_POST['code'] != '') {
|
||||
echo "<body onload=\"myWindow1();\">";
|
||||
}
|
||||
|
||||
@ -20,7 +17,8 @@ if ($_POST['code']==$_SESSION['code'] && $_POST['code']!='')
|
||||
<link rel="stylesheet" type="text/css" href="css/windows.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="css/hack.css"/>
|
||||
<br>
|
||||
<img style="width:164px;margin-top:5px;" src="show_reg_img/security2.php?register_id=<?=str_replace(' ','0',microtime())?>" width="107" height="26">
|
||||
<img style="width:164px;margin-top:5px;"
|
||||
src="show_reg_img/security2.php?register_id=<?= str_replace(' ', '0', microtime()) ?>" width="107" height="26">
|
||||
<br>
|
||||
<form action="bonuss.php" method="post">
|
||||
<input style="width:164px;margin-top:5px;" type="text" size="30" name="code" value="戕ֈ!">
|
||||
@ -33,6 +31,7 @@ if ($_POST['code']==$_SESSION['code'] && $_POST['code']!='')
|
||||
function myWindow1() {
|
||||
window.parent.open('main.php?takebns=<?echo $u->info['nextAct'];?>&getb1w=3&inv=1', '_self');
|
||||
}
|
||||
|
||||
function myWindow2() {
|
||||
var raz = window.parent.document.querySelector('iframe[src^="https://new-combats.com/bonuss.php"]'); // óäàëèòü ñîçäàííûé â ðîäèòåëå iframe
|
||||
raz.parentNode.removeChild(raz);
|
||||
@ -41,6 +40,7 @@ function myWindow2() {
|
||||
</script>
|
||||
<style>
|
||||
html {
|
||||
overflow: hidden; // óáðàòü ïîëîñû ïðîêðóòêè âíóòðè iframe, ò.ê. àòðèáóò scrolling="no" äëÿ iframe â HTML5 íå ïîääåðæèâàåòñÿ
|
||||
overflow: hidden;
|
||||
/ / óáðàòü ïîëîñû ïðîêðóòêè âíóòðè iframe, ò . ê . àòðèáóò scrolling = "no" äëÿ iframe â HTML5 íå ïîääåðæèâàåòñÿ
|
||||
}
|
||||
</style>
|
@ -1,18 +1,8 @@
|
||||
<?
|
||||
define('GAME',true);
|
||||
<?php
|
||||
const GAME = true;
|
||||
include('_incl_data/__config.php');
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
include('_incl_data/class/__user.php');
|
||||
|
||||
/*
|
||||
<tr height="20">
|
||||
<td>1</td>
|
||||
<td><a target="_blank" href="https://capitalcity.combats.com/encicl/alignment.html" title="Ïîâåëèòåëü Îãíÿ"><img src="https://img.new-combats.com/i/align20.gif" width="12" height="15" border="0" /></a><a target="_blank" href="https://dungeon.combats.com/clans_inf.pl?Mercenaries" title="Èíôîðìàöèÿ î êëàíå Mercenaries"><img src="https://img.new-combats.com/i/klan/Mercenaries.gif" width="24" height="15" border="0" /></a><strong>SeDuCeR</strong> [12]<a href="https://dungeon.combats.com/inf.pl?1069870465" title="Èíôîðìàöèÿ î SeDuCeR" target="_blank"><img src="https://img.new-combats.com/i/inf.gif" width="12" height="11" border="0" /></a></td>
|
||||
<td>243</td>
|
||||
<td>47748</td>
|
||||
<td><a href="https://dungeon.combats.com/logs.pl?log=1425817576.94166">»»</a></td>
|
||||
</tr>
|
||||
*/
|
||||
$u = User::start();
|
||||
|
||||
$r1 = '';
|
||||
$r2 = '';
|
||||
@ -32,13 +22,23 @@ if( $_GET['level'] == 9 ) {
|
||||
$i = 1;
|
||||
$j = 1;
|
||||
|
||||
$sp = mysql_query('SELECT `id`,`uid`,`level`,`time` FROM `izlom_rating` WHERE `level` = "' . $lvl . '" GROUP BY `uid` ORDER BY SUM(`obr`) DESC');
|
||||
$sp = mysql_query(
|
||||
'SELECT `id`,`uid`,`level`,`time` FROM `izlom_rating` WHERE `level` = "' . $lvl . '" GROUP BY `uid` ORDER BY SUM(`obr`) DESC'
|
||||
);
|
||||
while ($pl = mysql_fetch_array($sp)) {
|
||||
//
|
||||
$ret = mysql_fetch_array(mysql_query('SELECT SUM(`obr`) FROM `izlom_rating` WHERE `uid` = "'.$pl['uid'].'" AND `level` = "'.$pl['level'].'" LIMIT 1'));
|
||||
$ret = mysql_fetch_array(
|
||||
mysql_query(
|
||||
'SELECT SUM(`obr`) FROM `izlom_rating` WHERE `uid` = "' . $pl['uid'] . '" AND `level` = "' . $pl['level'] . '" LIMIT 1'
|
||||
)
|
||||
);
|
||||
$ret = round($ret[0] * (154.97));
|
||||
//
|
||||
$pl2 = mysql_fetch_array(mysql_query('SELECT * FROM `izlom_rating` WHERE `uid` = "'.$pl['uid'].'" AND `level` = "'.$pl['level'].'" ORDER BY `time` DESC LIMIT 1'));
|
||||
$pl2 = mysql_fetch_array(
|
||||
mysql_query(
|
||||
'SELECT * FROM `izlom_rating` WHERE `uid` = "' . $pl['uid'] . '" AND `level` = "' . $pl['level'] . '" ORDER BY `time` DESC LIMIT 1'
|
||||
)
|
||||
);
|
||||
//
|
||||
$r1 .= '<tr height="20">
|
||||
<td>' . $i . '</td>
|
||||
@ -61,35 +61,6 @@ while( $pl = mysql_fetch_array($sp) ) {
|
||||
$i++;
|
||||
}
|
||||
|
||||
/*$sp = mysql_query('SELECT * FROM `izlom_rating` WHERE `level` = "' . $lvl . '" GROUP BY `uid` ORDER BY MAX(`time`) DESC');
|
||||
while( $pl = mysql_fetch_array($sp) ) {
|
||||
//
|
||||
$ret = mysql_fetch_array(mysql_query('SELECT SUM(`obr`) FROM `izlom_rating` WHERE `uid` = "'.$pl['uid'].'" AND `level` = "'.$pl['level'].'" LIMIT 1'));
|
||||
$ret = round($ret[0]*(154.97));
|
||||
//
|
||||
$r1 .= '<tr height="20">
|
||||
<td>' . $i . '</td>
|
||||
<td>' . $u->microLogin($pl['uid'],1) . '</td>
|
||||
<td>' . $pl['voln'] . '</td>
|
||||
<td>'.$ret.'</td>
|
||||
<td>»»</td>
|
||||
</tr>';
|
||||
|
||||
if( $pl['uid'] == 1000000 ) {
|
||||
echo date('d.m.Y',$pl['time']).'<br>';
|
||||
}
|
||||
if( date('d.m.Y') == date('d.m.Y',$pl['time']) ) {
|
||||
$r2 .= '<tr height="20">
|
||||
<td>' . $j . '</td>
|
||||
<td>' . $u->microLogin($pl['uid'],1) . '</td>
|
||||
<td>' . $pl['voln'] . '</td>
|
||||
<td>' . $ret . '</td>
|
||||
<td>»»</td>
|
||||
</tr>';
|
||||
$j++;
|
||||
}
|
||||
$i++;
|
||||
}*/
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
@ -107,11 +78,12 @@ if( $pl['uid'] == 1000000 ) {
|
||||
<table width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td valign="top"><fieldset>
|
||||
<td valign="top">
|
||||
<fieldset>
|
||||
<legend>
|
||||
<h5><?= $lvl_name ?> - ëó÷øèå çà ìåñÿö</h5>
|
||||
</legend>
|
||||
<? if( $r1 != '' ) { ?>
|
||||
<?php if ($r1 != '') { ?>
|
||||
<table align="center">
|
||||
<tbody>
|
||||
<tr>
|
||||
@ -124,15 +96,17 @@ if( $pl['uid'] == 1000000 ) {
|
||||
<?= $r1 ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<? }else{
|
||||
<?php } else {
|
||||
echo 'Èñòîðèÿ ïóñòà, ñêîðåå âñåãî íå íàøëîñü ñìåëü÷àêîâ...';
|
||||
} ?>
|
||||
</fieldset></td>
|
||||
<td valign="top"><fieldset>
|
||||
</fieldset>
|
||||
</td>
|
||||
<td valign="top">
|
||||
<fieldset>
|
||||
<legend>
|
||||
<h5>Áûâàëûå - ëó÷øèå çà äåíü</h5>
|
||||
</legend>
|
||||
<? if( $r2 != '' ) { ?>
|
||||
<?php if ($r2 != '') { ?>
|
||||
<table align="center">
|
||||
<tbody>
|
||||
<tr>
|
||||
@ -145,10 +119,11 @@ if( $pl['uid'] == 1000000 ) {
|
||||
<?= $r2 ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<? }else{
|
||||
<?php } else {
|
||||
echo 'Èñòîðèÿ ïóñòà, ñêîðåå âñåãî íå íàøëîñü ñìåëü÷àêîâ...';
|
||||
} ?>
|
||||
</fieldset></td>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
170
buttons.php
170
buttons.php
@ -1,30 +1,17 @@
|
||||
<?php
|
||||
define('GAME', true);
|
||||
const GAME = true;
|
||||
function er($e)
|
||||
{
|
||||
global $c;
|
||||
die('<html><head><meta name="msapplication-config" content="browserconfig.xml"><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><meta http-equiv="Content-Language" content="ru"><TITLE>Ïðîèçîøëà îøèáêà</TITLE></HEAD><BODY text="#FFFFFF"><p><font color=black>Ïðîèçîøëà îøèáêà: <pre>' . $e . '</pre><b><p><a href="https://' . $c[0] . '/">Íàçàä</b></a><HR><p align="right">(c) <a href="https://' . $c[0] . '/">' . $c[1] . '</a></p></body></html>');
|
||||
exit('<html><head><meta name="msapplication-config" content="browserconfig.xml"><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><meta http-equiv="Content-Language" content="ru"><TITLE>Ïðîèçîøëà îøèáêà</TITLE></HEAD><BODY text="#FFFFFF"><p><font color=black>Ïðîèçîøëà îøèáêà: <pre>' . $e . '</pre><b><p><a href="https://' . $c[0] . '/">Íàçàä</b></a><HR><p align="right">(c) <a href="https://' . $c[0] . '/">' . $c[1] . '</a></p></body></html>');
|
||||
}
|
||||
|
||||
function GetRealIp()
|
||||
{
|
||||
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
|
||||
$ip = $_SERVER['HTTP_CLIENT_IP'];
|
||||
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
|
||||
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
|
||||
} else {
|
||||
$ip = $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
return $ip;
|
||||
}
|
||||
|
||||
define('IP', GetRealIp());
|
||||
|
||||
include_once('_incl_data/__config.php');
|
||||
include_once('_incl_data/class/__db_connect.php');
|
||||
include_once('_incl_data/class/__user.php');
|
||||
include_once('_incl_data/class/__filter_class.php');
|
||||
include_once('_incl_data/class/__chat_class.php');
|
||||
define('IP', UserIp::get());
|
||||
$u = User::start();
|
||||
$filter = new Filter();
|
||||
$chat = new Chat();
|
||||
|
||||
ini_set('max_execution_time', '120');
|
||||
|
||||
@ -47,8 +34,11 @@ if ($u->info['joinIP'] == 1 && $u->info['ip'] != IP) {
|
||||
}
|
||||
|
||||
if ($u->info['online'] < time() - 60) {
|
||||
$filter->setOnline($u->info['online'], $u->info['id'], 0);
|
||||
mysql_query("UPDATE `users` SET `online`='" . time() . "',`timeMain`='" . time() . "' WHERE `id`='" . $u->info['id'] . "' LIMIT 1");
|
||||
$filter->setOnline($u->info['online'], $u->info['id']);
|
||||
mysql_query(
|
||||
"UPDATE `users` SET `online`='" . time() . "',`timeMain`='" . time(
|
||||
) . "' WHERE `id`='" . $u->info['id'] . "' LIMIT 1"
|
||||
);
|
||||
}
|
||||
|
||||
$u->stats = $u->getStats($u->info['id'], 0);
|
||||
@ -144,11 +134,14 @@ if ($u->info['activ'] > 0) {
|
||||
<script type="text/javascript" src="js/onlineList.js"></script>
|
||||
<script type="text/javascript" src="js/hpregen.js"></script>
|
||||
<script type="text/javascript" src="js/jquery-fireHint.js"></script>
|
||||
|
||||
<script type="text/javascript" src="js/trainingModals/registration/index.js"></script>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
if (!isset($_COOKIE['d1c'])) {
|
||||
include('_incl_data/class/mobile.php');
|
||||
$detect = new Mobile_Detect;
|
||||
$detect = new MobileDetect;
|
||||
$deviceType = ($detect->isMobile() ? ($detect->isTablet() ? 'tablet' : 'phone') : 'computer');
|
||||
$_COOKIE['d1c'] = $deviceType;
|
||||
setcookie('d1c', $deviceType, (time() + 86400));
|
||||
@ -176,6 +169,9 @@ if ($u->info['activ'] > 0) {
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<link href="./js/trainingModals/registration/trainingModalStyles.css" rel="stylesheet" type="text/css"/>
|
||||
|
||||
<style type="text/css">
|
||||
/* Additional classes examples */
|
||||
.woman a {
|
||||
@ -268,7 +264,8 @@ if ($u->info['activ'] > 0) {
|
||||
</style>
|
||||
<script>
|
||||
function chatHello() {
|
||||
chat.sendMsg(["new", "<?=time()?>", "1", "", "<?=$u->info['login']?>", "global:<b style='background-color:#ffcccc'> Ïðèâåòñòâóåì â èãðå, íå çàáûâàåì ïîçäîðîâàòüñÿ è ïðî÷åñòü íîâîñòè ïðîåêòà! <a href='https://new-combats.com/n' target='_blank'>÷èòàòü íîâîñòè</a> </b>", "red", "1", "1", "0"]);
|
||||
chat.sendMsg(["new", "<?=time(
|
||||
)?>", "1", "", "<?=$u->info['login']?>", "global:<b style='background-color:#ffcccc'> Ïðèâåòñòâóåì â èãðå, íå çàáûâàåì ïîçäîðîâàòüñÿ è ïðî÷åñòü íîâîñòè ïðîåêòà! <a href='https://new-combats.com/n' target='_blank'>÷èòàòü íîâîñòè</a> </b>", "red", "1", "1", "0"]);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
@ -704,7 +701,8 @@ if ($u->info['bithday'] == '01.01.1800') {
|
||||
</SELECT>
|
||||
<input name="chcf9" type="checkbox" id="chcf9" value="1"><small>Ïî óáûâàíèþ</small></div>
|
||||
<div><input name="chcf12" type="checkbox" id="chcf12" value="1"> Ýêîíîìèÿ òðàôèêà</div>
|
||||
<div style="display:<?php if ($u->info['admin'] > 0 || ($u->info['align'] > 1 && $u->info['align'] < 2) || ($u->info['align'] > 3 && $u->info['align'] < 4)) {
|
||||
<div style="display:<?php
|
||||
if ($u->info['admin'] > 0 || ($u->info['align'] > 1 && $u->info['align'] < 2) || ($u->info['align'] > 3 && $u->info['align'] < 4)) {
|
||||
echo '';
|
||||
} else {
|
||||
echo 'none;';
|
||||
@ -728,7 +726,8 @@ if ($u->info['bithday'] == '01.01.1800') {
|
||||
<div id="reline2" onselectstart="return false"></div>
|
||||
<!-- ðåñàéçû -->
|
||||
<div id="upbox" onselectstart="return false"></div>
|
||||
<div style="position:absolute; top:0; left:0; height:37px; width:100%;" onselectstart="return false">
|
||||
<div id="mainHeader" style="position:absolute; top:0; left:0; height:37px; width:100%;"
|
||||
onselectstart="return false">
|
||||
<div title="Íîâàÿ ïî÷òà"
|
||||
style="display:none; position:absolute; left: 198px; top: 13px; width:24px; height:15px; background-image:url(https://img.new-combats.com/i/mail2.gif);"
|
||||
class="postdiv" id="postdiv"></div>
|
||||
@ -818,7 +817,8 @@ if ($u->info['bithday'] == '01.01.1800') {
|
||||
href="main.php?titul" target="main" class="menutop"
|
||||
style="color:green"> Äîñòèæåíèÿ</a> | <a
|
||||
href="/main.php?skills=1&side=5" target="main"
|
||||
class="menutop">Óìåíèÿ</a> | <a href="/main.php?zayvka=1"
|
||||
class="menutop">Óìåíèÿ</a> | <a
|
||||
href="/main.php?zayvka=1"
|
||||
target="main"
|
||||
class="menutop">Ïîåäèíêè</a> | <a
|
||||
href="/forum/?read=10957&rnd=1" target="_blank"
|
||||
@ -842,10 +842,12 @@ if ($u->info['bithday'] == '01.01.1800') {
|
||||
</div>
|
||||
<table class="deleteStyles" width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="15" height="6"><img class="db" src="https://img.new-combats.com/i/lite/_lit_20.gif" width="15"
|
||||
<td width="15" height="6"><img class="db" src="https://img.new-combats.com/i/lite/_lit_20.gif"
|
||||
width="15"
|
||||
height="6"/></td>
|
||||
<td background="https://img.new-combats.com/i/lite/_top_20s.gif"></td>
|
||||
<td width="24" height="6"><img class="db" src="https://img.new-combats.com/i/lite/_lit_27.gif" width="24"
|
||||
<td width="24" height="6"><img class="db" src="https://img.new-combats.com/i/lite/_lit_27.gif"
|
||||
width="24"
|
||||
height="6"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -881,7 +883,8 @@ if ($u->info['bithday'] == '01.01.1800') {
|
||||
<div id="chat_menus" unselectable="on" onselectstart="return false;"
|
||||
style="display:block;position:absolute; right:0; top:3px; padding-right:20px; height:18px; text-align:right; white-space:nowrap;">
|
||||
<!-- -->
|
||||
<table border="0" style="margin-top:-3px;" align="right" cellpadding="0" cellspacing="0">
|
||||
<table border="0" style="margin-top:-3px;" align="right" cellpadding="0"
|
||||
cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<div id="chat_menu" style="text-align:right; white-space:nowrap;">
|
||||
@ -900,9 +903,11 @@ if ($u->info['bithday'] == '01.01.1800') {
|
||||
echo '<center><small>Íîâûå ñìàéëèêè âîçìîæíî êóïèòü â <a href="/ekr.php" target="_blank">Êîììåð÷åñêîì Îòäåëå</a><br>Îáíîâèòå ñòðàíèöó, åñëè êóïëåííûé ñìàéëèê íå îòîáðàçèëñÿ</small></center><hr>';
|
||||
//
|
||||
if ($u->info['add_smiles'] == '') { ?>
|
||||
<center><br><br><br><br><br><br><br><font color="grey">Ó âàñ íåò ëè÷íûõ ñìàéëèêîâ</font>
|
||||
<center><br><br><br><br><br><br><br><font color="grey">Ó âàñ íåò ëè÷íûõ
|
||||
ñìàéëèêîâ</font>
|
||||
</center>
|
||||
<?php } else {
|
||||
<?php
|
||||
} else {
|
||||
|
||||
$ex = explode(',', $u->info['add_smiles']);
|
||||
$i = 0;
|
||||
@ -930,6 +935,10 @@ if ($u->info['bithday'] == '01.01.1800') {
|
||||
<div id="chat_list" style="cursor:default;">
|
||||
<div id="canals">
|
||||
<div id="canal5"></div>
|
||||
<div id="canal4"></div>
|
||||
<div id="canal2"></div>
|
||||
<div id="canal7"></div>
|
||||
<div id="canal3"></div>
|
||||
<div id="canal6" style="display:none;"></div>
|
||||
</div>
|
||||
</div>
|
||||
@ -942,7 +951,8 @@ if ($u->info['bithday'] == '01.01.1800') {
|
||||
<button TYPE=button class="btn"
|
||||
onClick="window.open('https://new-combats.com/monitoring', 'monitoring', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')"
|
||||
title="Ìîíèòîð çàÿâîê\òóðíèðîâ"><img
|
||||
src="https://img.new-combats.com/i/fighttype0.gif" width="20" height="20">
|
||||
src="https://img.new-combats.com/i/fighttype0.gif" width="20"
|
||||
height="20">
|
||||
</button>
|
||||
</div>
|
||||
<font class="db" style="padding:0 0 8px 0;font-size: 10pt; color:#8f0000;"><b
|
||||
@ -968,8 +978,10 @@ if ($u->info['bithday'] == '01.01.1800') {
|
||||
<td height="30" bgcolor="#E9E9E9" background="https://img.new-combats.com/i/buttons/chat_bg.gif">
|
||||
<table width="100%" height="26" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="30">
|
||||
<img <?php if ($u->info['admin'] > 0) { ?> onclick="top.frames['main'].location.href='map.php';" <?php } ?>
|
||||
<td id="chatLeftIcon" width="30">
|
||||
<img <?php
|
||||
if ($u->info['admin'] > 0) { ?> onclick="top.frames['main'].location.href='map.php';" <?php
|
||||
} ?>
|
||||
class="db" src="https://img.new-combats.com/b___.gif" width="30" height="30"
|
||||
title="×àò"></td>
|
||||
<td style="display:none;" width="100" align="center" id="trader1">
|
||||
@ -982,7 +994,8 @@ if ($u->info['bithday'] == '01.01.1800') {
|
||||
style="width:100%;font-size:11pt;margin-bottom:2px; border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px;"/>
|
||||
</td>
|
||||
<td width="6"> </td>
|
||||
<td width="30"><img onClick="chat.subSend();" src="https://img.new-combats.com/1x1.gif"
|
||||
<td id="sendButtonTextMsg" width="30"><img onClick="chat.subSend();"
|
||||
src="https://img.new-combats.com/1x1.gif"
|
||||
class="db cp chatBtn2_1"></td>
|
||||
<td width="5">
|
||||
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
|
||||
@ -993,20 +1006,18 @@ if ($u->info['bithday'] == '01.01.1800') {
|
||||
<param name="quality" value="high"/>
|
||||
<param name="scale" value="noscale"/>
|
||||
<param name="wmode" value="transparent"/>
|
||||
<embed src="flash/Sound2.1.swf" quality="high" scale="noscale" wmode="transparent" width="1"
|
||||
<embed src="flash/Sound2.1.swf" quality="high" scale="noscale" wmode="transparent"
|
||||
width="1"
|
||||
height="1" name="Sound" id="Sound2" align="middle" allowScriptAccess="always"
|
||||
type="application/x-shockwave-flash"
|
||||
pluginspage="https://www.macromedia.com/go/getflashplayer"/>
|
||||
</object>
|
||||
</td>
|
||||
<?php if ($u->info['level'] > 9) { ?>
|
||||
<td width="30">
|
||||
<button onClick="chat.voiceMessage()" title="Çàïèñàòü ãîëîñîâîå ñîîáùåíèå" id="record">
|
||||
Çàïèñü
|
||||
</button>
|
||||
</td>
|
||||
|
||||
<?php } ?>
|
||||
<td width="30"><img onClick="chat.clear();" class="db cp" title="Î÷èñòèòü ñòðîêó ââîäà"
|
||||
src="https://img.new-combats.com/i/buttons/chatBtn3.gif"></td>
|
||||
<td width="30"><img onClick="chat.filterMsg();" id="chbtn1"
|
||||
@ -1015,7 +1026,8 @@ if ($u->info['bithday'] == '01.01.1800') {
|
||||
<td width="30"><img onClick="chat.systemMsg();" id="chbtn4"
|
||||
title="Ïîêàçûâàòü â ÷àòå ñèñòåìíûå ñîîáùåíèÿ"
|
||||
src="https://img.new-combats.com/1x1.gif"
|
||||
class="db cp chatBtn4_<?php if (isset($_COOKIE['citySys']) && $_COOKIE['citySys'] == 1) {
|
||||
class="db cp chatBtn4_<?php
|
||||
if (isset($_COOKIE['citySys']) && $_COOKIE['citySys'] == 1) {
|
||||
echo 2;
|
||||
} else {
|
||||
echo 1;
|
||||
@ -1023,21 +1035,27 @@ if ($u->info['bithday'] == '01.01.1800') {
|
||||
<td width="30"><img id="chbtn6" onClick="chat.translitChat()"
|
||||
title="Ïðåîáðàçîâûâàòü òðàíñëèò â ðóññêèé òåêñò"
|
||||
src="https://img.new-combats.com/1x1.gif" class="db cp chatBtn6_1"></td>
|
||||
<td width="30"><img id="chbtn7" onClick="chat.soundChat()" src="https://img.new-combats.com/1x1.gif"
|
||||
<td width="30"><img id="chbtn7" onClick="chat.soundChat()"
|
||||
src="https://img.new-combats.com/1x1.gif"
|
||||
title="Çâóêè" class="db cp chatBtn7_1"></td>
|
||||
<td width="10"> </td>
|
||||
<td width="30"><img id="chbtn8" class="db cp chatBtn8_1" onClick="chat.lookSmiles()"
|
||||
title="Ñìàéëèêè" src="https://img.new-combats.com/1x1.gif"></td>
|
||||
<td width="16" bgcolor="#BAB7B3"><img src="https://img.new-combats.com/i/buttons/chat_explode.gif"
|
||||
<td width="16" bgcolor="#BAB7B3"><img
|
||||
src="https://img.new-combats.com/i/buttons/chat_explode.gif"
|
||||
width="16" height="30" class="db"/></td>
|
||||
<td width="30"><img onclick="top.getUrl('main','main.php?inv=1&rnd='+c.rnd);" class="db cp"
|
||||
title="Èíâåíòàðü" src="https://img.new-combats.com/i/buttons/chatBtn13.gif">
|
||||
</td>
|
||||
<?php if ($u->info['level'] > 7) { ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?transfer=1&rnd='+c.rnd);" class="db cp"
|
||||
title="Ïåðåäà÷è" src="https://img.new-combats.com/i/buttons/chatBtn16.gif">
|
||||
<?php
|
||||
if ($u->info['level'] > 7) { ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?transfer=1&rnd='+c.rnd);"
|
||||
class="db cp"
|
||||
title="Ïåðåäà÷è"
|
||||
src="https://img.new-combats.com/i/buttons/chatBtn16.gif">
|
||||
</td>
|
||||
<?php } ?>
|
||||
<?php
|
||||
} ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?add_eff=1&rnd='+c.rnd);" class="db cp"
|
||||
title="Îáêàñò" src="https://img.new-combats.com/i/buttons/chatBtn151.gif">
|
||||
</td>
|
||||
@ -1045,57 +1063,76 @@ if ($u->info['bithday'] == '01.01.1800') {
|
||||
if ($u->info['align'] == 50 || $u->info['align2'] == 50 || $u->info['admin'] == 1) { ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?alhp=1&rnd='+c.rnd);" class="db cp"
|
||||
src="https://img.new-combats.com/i/buttons/chatBtn20.gif"></td>
|
||||
<?php }
|
||||
<?php
|
||||
}
|
||||
if ($u->info['align'] >= 1.1 && $u->info['align'] < 2) { ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?light=1&rnd='+c.rnd);" class="db cp"
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?light=1&rnd='+c.rnd);"
|
||||
class="db cp"
|
||||
title="Ïàíåëü Ïàëàäèíà"
|
||||
src="https://img.new-combats.com/i/buttons/chatBtn15.gif"></td>
|
||||
<?php }
|
||||
<?php
|
||||
}
|
||||
if ($u->info['align'] >= 3.01 && $u->info['align'] < 4) { ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?dark=1&rnd='+c.rnd);" class="db cp"
|
||||
title="Ïàíåëü Òàðìàíà"
|
||||
src="https://img.new-combats.com/i/buttons/chatBtn10.gif"></td>
|
||||
<?php }
|
||||
if ($u->info['vip'] > time() || $u->stats['silvers'] > 0 || $u->stats['bronze'] > 0 || $u->stats['gold'] > 0) { ?>
|
||||
<?php
|
||||
}
|
||||
if ($u->info['vip'] > time(
|
||||
) || $u->stats['silvers'] > 0 || $u->stats['bronze'] > 0 || $u->stats['gold'] > 0) { ?>
|
||||
<!-- VIP -->
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?vip=1&rnd='+c.rnd);" class="db cp"
|
||||
src="https://img.new-combats.com/i/buttons/a___ang17.gif"
|
||||
onMouseOver="top.hi(this,'<b>Ïàíåëü Áëàãîäàòè Àíãåëà <?= $u->info['login'] ?></b>',event,3,0,1,0,'');"
|
||||
onMouseOut="top.hic();" onMouseDown="top.hic();"></td></td>
|
||||
|
||||
<?php } ?>
|
||||
<?php
|
||||
} ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?friends=1&rnd='+c.rnd);" class="db cp"
|
||||
title="Äðóçüÿ" src="https://img.new-combats.com/i/buttons/chatBtn12.gif">
|
||||
</td>
|
||||
<?php if ($u->info['align'] >= 1 && $u->info['align'] < 2) { ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?1_panel=1&rnd='+c.rnd);" class="db cp"
|
||||
<?php
|
||||
if ($u->info['align'] >= 1 && $u->info['align'] < 2) { ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?1_panel=1&rnd='+c.rnd);"
|
||||
class="db cp"
|
||||
title="Ïàíåëü ñâåòà"
|
||||
src="https://img.new-combats.com/i/buttons/chatBtn15.gif"></td>
|
||||
<?php }
|
||||
<?php
|
||||
}
|
||||
if ($u->info['align'] >= 3 && $u->info['align'] < 4) { ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?3_panel=1&rnd='+c.rnd);" class="db cp"
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?3_panel=1&rnd='+c.rnd);"
|
||||
class="db cp"
|
||||
title="Ïàíåëü òüìû"
|
||||
src="https://img.new-combats.com/i/buttons/chatBtn10.gif"></td>
|
||||
<?php }
|
||||
<?php
|
||||
}
|
||||
if ($u->info['align'] == 7) { ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?7_panel=1&rnd='+c.rnd);" class="db cp"
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?7_panel=1&rnd='+c.rnd);"
|
||||
class="db cp"
|
||||
title="Ïàíåëü íåéòðàëèòåòà"
|
||||
src="https://img.new-combats.com/i/buttons/a___neutral.gif"></td>
|
||||
<?php }
|
||||
<?php
|
||||
}
|
||||
if ($u->info['bukmeker'] == 1 || $u->info['admin'] == 1) { ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?bukmeker=1&rnd='+c.rnd);" class="db cp"
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?bukmeker=1&rnd='+c.rnd);"
|
||||
class="db cp"
|
||||
title="Ïàíåëü Áóêìåêåðà "
|
||||
src="https://img.new-combats.com/i/buttons/bukmek.gif"></td>
|
||||
<?php }
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($u->info['clan'] > 0) { ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?clan=1&rnd='+c.rnd);" class="db cp"
|
||||
title="Êëàí" src="https://img.new-combats.com/i/buttons/chatBtn14.gif"></td>
|
||||
<?php }
|
||||
title="Êëàí" src="https://img.new-combats.com/i/buttons/chatBtn14.gif">
|
||||
</td>
|
||||
<?php
|
||||
}
|
||||
if ($u->info['admin'] > 0) { ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?admin=1&rnd='+c.rnd);" class="db cp"
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?admin=1&rnd='+c.rnd);"
|
||||
class="db cp"
|
||||
src="https://img.new-combats.com/i/buttons/chatBtn19.gif"></td>
|
||||
<?php } ?>
|
||||
<?php
|
||||
} ?>
|
||||
<td width="30"><img onclick="window.open('ekr.php')" class="db cp" title="Ïîêóïêà ÅâðîÊðåäèòîâ"
|
||||
src="https://img.new-combats.com/i/buttons/a___nak.gif"></td>
|
||||
|
||||
@ -1274,4 +1311,3 @@ if ($u->info['active'] != '' && $u->info['mail'] != 'No E-mail') {
|
||||
</html>
|
||||
<?php
|
||||
unset($db);
|
||||
?>
|
||||
|
@ -1,986 +0,0 @@
|
||||
<?php
|
||||
define('GAME',true);
|
||||
function er($e)
|
||||
{
|
||||
global $c;
|
||||
die('<html><head><meta name="msapplication-config" content="browserconfig.xml"><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><meta http-equiv="Content-Language" content="ru"><TITLE>Ïðîèçîøëà îøèáêà</TITLE></HEAD><BODY text="#FFFFFF"><p><font color=black>Ïðîèçîøëà îøèáêà: <pre>'.$e.'</pre><b><p><a href="https://'.$c[0].'/">Íàçàä</b></a><HR><p align="right">(c) <a href="https://'.$c[0].'/">'.$c[1].'</a></p></body></html>');
|
||||
}
|
||||
|
||||
function GetRealIp()
|
||||
{
|
||||
if (!empty($_SERVER['HTTP_CLIENT_IP']))
|
||||
{
|
||||
$ip=$_SERVER['HTTP_CLIENT_IP'];
|
||||
}
|
||||
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
|
||||
{
|
||||
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$ip=$_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
return $ip;
|
||||
}
|
||||
define('IP',GetRealIp());
|
||||
|
||||
include_once('_incl_data/__config.php');
|
||||
include_once('_incl_data/class/__db_connect.php');
|
||||
include_once('_incl_data/class/__user.php');
|
||||
include_once('_incl_data/class/__filter_class.php');
|
||||
include_once('_incl_data/class/__chat_class.php');
|
||||
|
||||
ini_set( 'max_execution_time', '120' );
|
||||
|
||||
if(isset($_GET['showcode']))
|
||||
{
|
||||
include('show_reg_img/security.php');
|
||||
die();
|
||||
}
|
||||
|
||||
if($u->info['joinIP']==1 && $u->info['ip']!=IP)
|
||||
{
|
||||
er('#Ïîæàëóéñòà àâòîðèçèðóéòåñü ñ ãëàâíîé ñòðàíèöû');
|
||||
}elseif(isset($_GET['exit']))
|
||||
{
|
||||
setcookie('login','',time()-60*60*24*30,'',$c['host']);
|
||||
setcookie('pass','',time()-60*60*24*30,'',$c['host']);
|
||||
setcookie('login','',time()-60*60*24*30);
|
||||
setcookie('pass','',time()-60*60*24*30);
|
||||
mysql_query('UPDATE `users` SET `online` = "'.(time()-420).'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1'); //520
|
||||
die('<script>top.location = "https://'.$c['host'].'/";</script>');
|
||||
}elseif(!isset($u->info['id']))
|
||||
{
|
||||
|
||||
/*setcookie('login','',time()-60*60*24*30,'',$c['host']);
|
||||
setcookie('pass','',time()-60*60*24*30,'',$c['host']);
|
||||
setcookie('login','',time()-60*60*24*30);
|
||||
setcookie('pass','',time()-60*60*24*30);*/
|
||||
|
||||
er('Âîçíèêëà ïðîáëåìà ñ îïðåäåëåíèåì id ïåðñîíàæà<br>Àâòîðèçèðóéòåñü ñ ãëàâíîé ñòðàíèöû.');
|
||||
}
|
||||
|
||||
if($u->info['online'] < time()-60)
|
||||
{
|
||||
$filter->setOnline($u->info['online'],$u->info['id'],0);
|
||||
mysql_query("UPDATE `users` SET `online`='".time()."',`timeMain`='".time()."' WHERE `id`='".$u->info['id']."' LIMIT 1");
|
||||
}
|
||||
|
||||
$u->stats = $u->getStats($u->info['id'],0);
|
||||
|
||||
if($u->info['activ']>0) {
|
||||
include('activnew.php');
|
||||
die();
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru-RU">
|
||||
<head>
|
||||
<meta charset="windows-1251" />
|
||||
<title>Íîâûé Áîéöîâñêèé Êëóá</title>
|
||||
<meta name="description" content="Íîâàÿ áðàóçåðíàÿ èãðà combats âåðñèè 2. Âîçìîæíîñòü èãðàòü â Áîéöîâñêèé Êëóá ñ òåëåôîíà. Èãðàéòå áåç äîíàòîâ è âëèâàíèé â ïîäàþùèé íàäåæäû ïðîåêò ñòàðîãî ÁÊ." />
|
||||
<meta name="keywords" content="áîéöîâñêèé êëóá èãðà, áîéöîâñêèé êëóá èãðàòü, èãðà áîéöîâñêèé êëóá, ñòàðûé áîéöîâñêèé Êëóá, áîéöîâñêèé êëóá îíëàéí èãðà, áîéöîâñêèé êëóá áðàóçåðíàÿ èãðà, èãðàòü â áîéöîâñêèé êëóá, èãðà áê, áê èãðà, ñòàðûé áê, èãðàòü â áê, áê îíëàéí èãðà, íîâûé áê, Ëåãåíäàðíûé Áîéöîâñêèé Êëóá, ëåãåíäàðíûé áê, combats, êîìáàòñ, combats ru, combats com, OldBK, oldbk ru, oldbk com, îëäáê, old bk, îëä áê, mycombats, rebk, recombats, oldcombats, obk2"/>
|
||||
<meta name="msapplication-config" content="browserconfig.xml" />
|
||||
<link href="https://img.new-combats.com/css/main.css" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" type="text/css" href="css/clu0b.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/windows.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/hack.css" />
|
||||
<!--[if IE]>
|
||||
<script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
<script>
|
||||
var des = <?=(0+$u->info['design'])?>;
|
||||
var c = {
|
||||
noEr:0,
|
||||
noErTmr:0,
|
||||
url:'<?=$c['host']?>',
|
||||
img:'img.new-combats.com',
|
||||
uid:<?=(0+$u->info['id'])?>,
|
||||
login:'<?=$u->info['login']?>',
|
||||
city:'<?=$u->info['city']?>',
|
||||
lvl:<?=$u->info['level']?>,
|
||||
rnd:'<?=$code?>',
|
||||
filter:0,
|
||||
time:<?=time()?>,
|
||||
pl:0,
|
||||
align:<?=$u->info['align']?>,
|
||||
clan:<?=$u->info['clan']?>,
|
||||
admin:<?=$u->info['admin']?>,
|
||||
sound:0,
|
||||
money:<?=$u->info['money']?>
|
||||
}, sd4key = "<?=$u->info['nextAct']?>", lafstReg = {},enterUse = 0;
|
||||
|
||||
function ctest(city) {
|
||||
if(city != c['city']) {
|
||||
top.location = '/bk';
|
||||
}
|
||||
}
|
||||
|
||||
function testKey(event)
|
||||
{
|
||||
if(event.keyCode==10 || event.keyCode==13)
|
||||
{
|
||||
if(top.enterUse == 0)
|
||||
{
|
||||
chat.subSend();
|
||||
top.enterUse = 1;
|
||||
setTimeout('top.enterUse = 0',1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
setInterval('c.time++',1000);
|
||||
</script>
|
||||
<script type="text/javascript" src="js/jquery.js"></script>
|
||||
<script>
|
||||
$.ajaxSetup({cache: false});
|
||||
$(window).error(function(){
|
||||
return true;
|
||||
});
|
||||
var iusrno = {};
|
||||
function ignoreUser(u) {
|
||||
if( iusrno[u] == undefined || iusrno[u] == 0 ) {
|
||||
//top.iusrno[u] = 1;
|
||||
$('#main').attr({'src':'main.php?friends=1&ignore=' + u + ''});
|
||||
}else{
|
||||
//top.iusrno[u] = 0;
|
||||
$('#main').attr({'src':'main.php?friends=1&ignore=' + u + ''});
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript" src="js/jqueryrotate.js"></script>
|
||||
<script type="text/javascript" src="js/jquery.zclip.js"></script>
|
||||
<script type="text/javascript" src="js/jquery.cookie.js"></script>
|
||||
<script type="text/javascript" src="js/title.js"></script>
|
||||
|
||||
<script type="text/javascript" src="js/gameEngine.js?<?=time()?>"></script>
|
||||
<!-- <script type="text/javascript" src="js/chat-engine.js"></script> -->
|
||||
<script type="text/javascript" src="js/interface.js"></script>
|
||||
<script type="text/javascript" src="js/dataCenter.js"></script>
|
||||
|
||||
<script type="text/javascript" src="js/onlineList.js"></script>
|
||||
<script type="text/javascript" src="js/hpregen.js"></script>
|
||||
<script type="text/javascript" src="js/jquery-fireHint.js"></script>
|
||||
<?
|
||||
//
|
||||
/*
|
||||
$fpi = mysql_fetch_array(mysql_query('SELECT * FROM `fastpanel` WHERE `uid` = "'.$u->info['id'].'" LIMIT 1'));
|
||||
if(isset($fpi['id'])) {
|
||||
$i = 0;
|
||||
$fpv = explode('|',$fpi['data']);
|
||||
$fph = '';
|
||||
while( $i <= 10 ) {
|
||||
$id = $fpv[$i];
|
||||
$id = mysql_fetch_array(mysql_query('SELECT * FROM `items_users` WHERE `id` = "'.mysql_real_escape_string($id).'" AND `delete` = 0 AND `inShop` = 0 LIMIT 1'));
|
||||
if(isset($id['id'])) {
|
||||
//åñòü èòåì
|
||||
$idm = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "'.mysql_real_escape_string($id['item_id']).'" LIMIT 1'));
|
||||
$idd = mysql_fetch_array(mysql_query('SELECT * FROM `items_main_data` WHERE `items_id` = "'.mysql_real_escape_string($idm['id']).'" LIMIT 1'));
|
||||
//$po = ;
|
||||
$fph .= 'top.addfastpanel(\''.$idm['id'].'\',\''.$idm['name'].'\',\''.$idm['type'].'\',\''.$id['1price'].'\',\''.$id['2price'].'\',\''.$u->city_name[$id['maidin']].'\',\''.$idm['img'].'\',\''.$id['item_id'].'\',\''.$idm['iznosNOW'].'\',\''.$idm['iznosMAX'].'\',\'1\',\'1\',\'1\',\'1\');';
|
||||
}else{
|
||||
//ïóñòî
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
echo '<script>'.$fph.'</script>';
|
||||
}*/
|
||||
//
|
||||
if( !isset($_COOKIE['d1c']) ) {
|
||||
include('_incl_data/class/mobile.php');
|
||||
$detect = new Mobile_Detect;
|
||||
$deviceType = ($detect->isMobile() ? ($detect->isTablet() ? 'tablet' : 'phone') : 'computer');
|
||||
$_COOKIE['d1c'] = $deviceType;
|
||||
setcookie('d1c',$deviceType,(time()+86400));
|
||||
}else{
|
||||
$deviceType = $_COOKIE['d1c'];
|
||||
}
|
||||
|
||||
if( $deviceType == 'tablet' || $deviceType == 'phone' ) {
|
||||
echo '<script type="text/javascript" src="js/jquery.nicescroll.js"></script>';
|
||||
?>
|
||||
<style type="text/css">
|
||||
#touchmain {
|
||||
padding: 0px;
|
||||
border: 0;
|
||||
overflow: auto;
|
||||
margin: 0px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#touchmain").niceScroll("#main",{autohidemode:false,boxzoom:false});
|
||||
});
|
||||
</script>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
<style type="text/css">
|
||||
/* Additional classes examples */
|
||||
.woman a {
|
||||
color:#C33;
|
||||
}
|
||||
.woman a:hover {
|
||||
color:#ff0000;
|
||||
}
|
||||
img { vertical-align:bottom; }
|
||||
#tgf_loadingLine {
|
||||
height:18px;
|
||||
width:100%;
|
||||
color:#776b4a;
|
||||
background-color:#ddd5bf;
|
||||
position:relative;
|
||||
}
|
||||
.tfpgs {
|
||||
padding:5px;
|
||||
background-color:#d4cbb4;
|
||||
border-bottom:1px solid #988e73;
|
||||
border-top:1px solid #eae3d0;
|
||||
cursor:default;
|
||||
text-align:center;
|
||||
}
|
||||
.tgf_msg0 {
|
||||
padding:5px;
|
||||
background-color:#c6b893;
|
||||
border-bottom:1px solid #988e73;
|
||||
border-top:1px solid #eae3d0;
|
||||
cursor:default;
|
||||
}
|
||||
.tgf_msg1 {
|
||||
padding:5px;
|
||||
background-color:#d4cbb4;
|
||||
border-bottom:1px solid #988e73;
|
||||
border-top:1px solid #eae3d0;
|
||||
cursor:default;
|
||||
}
|
||||
.tgf_msgt {
|
||||
color:#988e73;
|
||||
padding-left:2px;
|
||||
padding-right:2px;
|
||||
border-right:1px solid #b1a993;
|
||||
}
|
||||
.tf_btn1 {
|
||||
background-color:#ddd5bf;
|
||||
padding-left:10px;
|
||||
padding-right:10px;
|
||||
padding-bottom:3px;
|
||||
padding-top:3px;
|
||||
margin:1px;
|
||||
color:#988e73;
|
||||
cursor:pointer;
|
||||
-moz-border-radius: 4px;
|
||||
-webkit-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.tf_btn1:hover {
|
||||
background-color:#b7ae96;
|
||||
color:#ddd5bf;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.tf_btn11 {
|
||||
background-color:#988e73;
|
||||
padding-left:10px;
|
||||
padding-right:10px;
|
||||
padding-bottom:3px;
|
||||
padding-top:3px;
|
||||
margin:1px;
|
||||
color:#ddd5bf;
|
||||
cursor:pointer;
|
||||
-moz-border-radius: 4px;
|
||||
-webkit-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.qel0 {
|
||||
dispaly:none;
|
||||
position:absolute;
|
||||
z-index:100000;
|
||||
border:4px solid #f5cc50;
|
||||
border-top-left-radius: 4px;
|
||||
border-top-right-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
border-bottom-left-radius: 4px;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
function chatHello() {
|
||||
<? if( $u->info['level'] <= 10) { ?>
|
||||
chat.sendMsg(["new","<?=time()?>","1","","<?=$u->info['login']?>","global:<b style='background-color:#ffcccc'> Áëàãîäàòü Àíãåëà(<a href='https://new-combats.com/n/87/' target='_blank'>÷èòàòü</a>). </b>","blue","1","1","0"]);
|
||||
chat.sendMsg(["new","<?=time()?>","1","","<?=$u->info['login']?>","global:<b style='background-color:#ffcccc'> Ðåëèêâèè Àíãåëà(<a href='https://new-combats.com/n/262/' target='_blank'>÷èòàòü</a>). </b>","blue","1","1","0"]);
|
||||
chat.sendMsg(["new","<?=time()?>","1","","<?=$u->info['login']?>","global:<b style='background-color:#ffcccc'> Óñèëÿþùèå Ñóìêè(<a href='https://new-combats.com/n/248/' target='_blank'>÷èòàòü</a>). </b>","blue","1","1","0"]);
|
||||
chat.sendMsg(["new","<?=time()?>","1","","<?=$u->info['login']?>","global:<b style='background-color:#ffcccc'> Íîâûå Áîíóñû ñòàòîâ (<a href='https://new-combats.com/stats_bonus.php' target='_blank'>÷èòàòü</a>). </b>","blue","1","1","0"]);
|
||||
chat.sendMsg(["new","<?=time()?>","1","","<?=$u->info['login']?>","global:<b style='background-color:#ffcccc'> Ãîðîäñêèå Ìîíñòðû è íàãðàäà çà èõ óáèéñòâî(<a href='https://new-combats.com/n/136/' target='_blank'>÷èòàòü</a>). </b>","blue","1","1","0"]);
|
||||
chat.sendMsg(["new","<?=time()?>","1","","<?=$u->info['login']?>","global:<b style='background-color:#ffcccc'> Íîâûå Áàôôû ïèòîìöåâ (<a href='https://new-combats.com/n/276/' target='_blank'>÷èòàòü</a>). </b>","blue","1","1","0"]);
|
||||
chat.sendMsg(["new","<?=time()?>","1","","<?=$u->info['login']?>","global:<b style='background-color:#ffcccc'> Õðàì çíàíèé/Ïåùåðíûé äðîï/Ðóíû (<a href='https://new-combats.com/n/606/' target='_blank'>÷èòàòü</a>). </b>","blue","1","1","0"]);
|
||||
chat.sendMsg(["new","<?=time()?>","1","","<?=$u->info['login']?>","global:<b style='background-color:#ffcccc'> Ãåðîè÷åñêèå Ñðàæåíèÿ (<a href='https://new-combats.com/n/567/' target='_blank'>÷èòàòü</a>). </b>","blue","1","1","0"]);
|
||||
chat.sendMsg(["new","<?=time()?>","1","","<?=$u->info['login']?>","global:<b style='background-color:#ffcccc'> Åæåäíåâíûå Çàäàíèÿ è íàãðàäà çà èõ âûïîëíåíèå (<a href='https://new-combats.com/n/389/' target='_blank'>÷èòàòü</a>). </b>","blue","1","1","0"]);
|
||||
chat.sendMsg(["new","<?=time()?>","1","","<?=$u->info['login']?>","global:<b style='background-color:#ffcccc'> Äîñòèæåíèÿ Ïåðñîíàæåé (<a href='https://new-combats.com/n/749/' target='_blank'>÷èòàòü</a>). </b>","blue","1","1","0"]);
|
||||
chat.sendMsg(["new","<?=time()?>","1","","<?=$u->info['login']?>","global:<b style='background-color:#ffcccc'> Ñâèòêè ×àðîâàíèÿ Âåùåé (<a href='https://new-combats.com/n/792/' target='_blank'>÷èòàòü</a>). </b>","blue","1","1","0"]);
|
||||
chat.sendMsg(["new","<?=time()?>","1","","<?=$u->info['login']?>","global:<b style='background-color:#ffcccc'> Íîâîå Ïîäçåìåëüå - Òðîïà Èíêâèçèöèè (<a href='https://new-combats.com/n/986/' target='_blank'>÷èòàòü</a>). </b>","red","1","1","0"]);
|
||||
chat.sendMsg(["new","<?=time()?>","1","","<?=$u->info['login']?>","global:<b style='background-color:#ffcccc'> Íîâûé Ïèòîìåö - Äðàêîí (<a href='https://new-combats.com/n/1032/' target='_blank'>÷èòàòü</a>). </b>","red","1","1","0"]);
|
||||
<? }?>
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body onLoad="bodyLoaded();chatHello();">
|
||||
<div style="display:none" class="qel0" id="qel0"></div>
|
||||
<noscript>Â âàøåì áðàóçåðå îòñóòñòâóåò ïîääåðæêà <strong>javascript<strong></noscript>
|
||||
<style>
|
||||
/* öâåòà êîìàíä */
|
||||
.CSSteam0 { font-weight: bold; cursor:pointer; }
|
||||
.CSSteam1 { font-weight: bold; color: #6666CC; cursor:pointer; }
|
||||
.CSSteam2 { font-weight: bold; color: #B06A00; cursor:pointer; }
|
||||
.CSSteam3 { font-weight: bold; color: #269088; cursor:pointer; }
|
||||
.CSSteam4 { font-weight: bold; color: #A0AF20; cursor:pointer; }
|
||||
.CSSteam5 { font-weight: bold; color: #0F79D3; cursor:pointer; }
|
||||
.CSSteam6 { font-weight: bold; color: #D85E23; cursor:pointer; }
|
||||
.CSSteam7 { font-weight: bold; color: #5C832F; cursor:pointer; }
|
||||
.CSSteam8 { font-weight: bold; color: #842B61; cursor:pointer; }
|
||||
.CSSteam9 { font-weight: bold; color: navy; cursor:pointer; }
|
||||
.CSSvs { font-weight: bold; }
|
||||
.buttons:hover { background-color:#EFEFEF; }
|
||||
.buttons:active { color:#777777; }
|
||||
.buttons { background-color:#E9E9E9; }
|
||||
.menutop2{color:#003366;} .menutop2:hover{
|
||||
color:#446B93;
|
||||
}
|
||||
.klan { font-weight:bold; color: green; background-color: #99FFCC;}
|
||||
.redColor {
|
||||
color: #FF0000;
|
||||
font-weight: bold;
|
||||
}
|
||||
.borderWhite {
|
||||
border: 1px solid #f2f0f0;
|
||||
}
|
||||
.date21 {
|
||||
font-family: Courier;
|
||||
font-size: 8pt;
|
||||
text-decoration:underline;
|
||||
font-weight:normal;
|
||||
color: #007000;
|
||||
background-color: #00FFAA
|
||||
}
|
||||
|
||||
|
||||
.zoneCh_no {
|
||||
float:left;
|
||||
overflow:hidden;
|
||||
height: 18px;
|
||||
width: 18px;
|
||||
}
|
||||
|
||||
.inpBtl {
|
||||
color: #000000;
|
||||
text-decoration: none;
|
||||
background-color: #ECE9D8;
|
||||
border: 1px solid #000000;
|
||||
}
|
||||
|
||||
.zoneCh_yes {
|
||||
float:left;
|
||||
overflow:hidden;
|
||||
height: 18px;
|
||||
width: 18px;
|
||||
background-color: #A9AFB1;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #e8e8e8;
|
||||
}
|
||||
.st1222 {
|
||||
font-size: 18px;
|
||||
color: #990000;
|
||||
font-weight: bold;
|
||||
}
|
||||
.crop {
|
||||
float:left;
|
||||
overflow:hidden;
|
||||
height: 18px;
|
||||
width: 18px;
|
||||
}
|
||||
|
||||
.radio_off {
|
||||
margin-left:0px;
|
||||
}
|
||||
|
||||
.radio_on {
|
||||
margin-left:-18px;
|
||||
}
|
||||
|
||||
.battle_hod_style {
|
||||
border-bottom-width: 1px;
|
||||
border-bottom-style: solid;
|
||||
border-bottom-color: #AEAEAE;
|
||||
}
|
||||
.zbtn1l{ width:9px; height:18px; background: url(https://new-combats.com/tab.png) 0px 0px repeat-x;}
|
||||
.zbtn1r { width:9px; height:18px; background: url(https://new-combats.com/tab.png) -18px 0px repeat-x;}
|
||||
.zbtn1r2 { width:9px; height:18px; background: url(https://new-combats.com/tab.png) 18px 0px repeat-x;}
|
||||
.zbtn2l{ width:9px; height:18px; background: url(https://new-combats.com/tab.png) -36px 0px repeat-x;}
|
||||
.zbtn2r { width:9px; height:18px; background: url(https://new-combats.com/tab.png) -54px 0px repeat-x;}
|
||||
.zbtn2r2 { width:9px; height:18px; background: url(https://new-combats.com/tab.png) -90px 0px repeat-x;}
|
||||
.zbtn2r3 { width:9px; height:18px; background: url(https://new-combats.com/tab.png) 54px 0px repeat-x;}
|
||||
.zbtn1c{ background-color: #808080; border-top-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-bottom-style: solid; border-top-color: #000000; border-bottom-color: #000000; color: #FFFFFF; cursor:default; padding-left:5px; padding-right:5px; FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif;}
|
||||
.zbtn2c{
|
||||
background-color: #D5D2C9;
|
||||
border-bottom-width: 1px;
|
||||
border-bottom-style: solid;
|
||||
border-bottom-color: #000000;
|
||||
color: #000000;
|
||||
cursor:default;
|
||||
padding-left:5px;
|
||||
padding-right:5px;
|
||||
FONT-FAMILY: Verdana, Arial, Helvetica, Tahoma, sans-serif;
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
<?
|
||||
/*$yes = $u->testAction('`uid` = "'.$u->info['id'].'" AND `vars` = "user_yes" LIMIT 1',1);
|
||||
if(!isset($yes['id']))
|
||||
{
|
||||
//Ïîëüçîâàòåëüñêîå ñîãëàøåíèå
|
||||
if(isset($_GET['yes']))
|
||||
{
|
||||
//ñîãëàñåí
|
||||
$u->addAction(time(),'user_yes','');
|
||||
header('location: https://'.$c[$u->info['city']].'/bk');
|
||||
die();
|
||||
}
|
||||
/*echo '<table width="100%" height="100%" style="position:absolute;z-index:100000;background-color:#d6d6d6;color:#333333" border="0" cellspacing="0" cellpadding="0"><tr><td align="center" valign="middle"><table width="700" border="0" cellspacing="0" cellpadding="0"><tr><td>
|
||||
<div align="left">
|
||||
<b>Íàâåðíîå Âû óäèâëåíû ÷òî ýòî çà òåêñò?<br>Ïîæàëóéñòà óäåëèòå îäíó ìèíóòó Âàøåãî äðàãîöåííîãî âðåìåíè è ïðî÷èòàéòå åãî:</b><br><br>
|
||||
Äîáðûé äåíü, âå÷åð èëè äàæå íî÷ü! Âû íàâåðíîå èãðàëè â Áîéöîâñêèé Êëóá? Äà, òî÷íî èãðàëè, ïî êðàéíåé ìåðå â ïðîåêòû êîòîðûå
|
||||
ñåáÿ íàçûâàþò "Ëó÷øèé Êëîí ÁÊ" è ò.ä., à ïî ôàêòó, ïðîñòèòå, ýòî õóéíÿ èç ïîä êîíÿ. Ñåé÷àñ ìíîãî ïðîåêòîâ
|
||||
êîòîðûå ñîçäàþòñÿ ëþáèòåëÿìè, êîòîðûå ïîëüçóþòñÿ ãîòîâûìè äâèæêàìè. Ñêà÷àòü è óñòàíîâèòü òàêîé ñàéò
|
||||
ìîæåò ëþáîé øêîëüíèê, äàæå áåçãðàìîòíûé! Íàø ïðîåêò íå òàêîé! Ïîñòîÿííîå ðàçâèòèå, óëó÷øåíèå, ýêøåí,
|
||||
äà è ê òîìó-æå óíèêàëüíîñòü íàøåãî äâèæêà íå ñìîæåò îñïîðèòü íè îäèí ÷åëîâåê. Íàäååìñÿ ÷òî Âàì ïîíðàâèòñÿ
|
||||
íàø ïðîåêò è Âû áóäåòå èãðàòü çäåñü äî ïîñëåäíåãî äíÿ ïðîåêòà!<br>
|
||||
Ñîãëàøàÿñü ñ ýòèì òåêñòîì Âû îòêàçûâàåòñÿ îò âñåãî ýòîãî äåðüìà â èíòåðíåòå è âñòóïàåòå â êðóã ëþäåé êîòîðûå
|
||||
çà êà÷åñòâî è îòñóòñòâèå îäíîîáðàçèÿ! Âàñ æäåò ìíîæåñòâî óäèâèòåëüíûõ âåùåé, â òî âðåìÿ êàê äðóãèå ïîòàêàþò íåêà÷åñòâåííîìó ïðîäóêòó.
|
||||
<br><br><center><a href="club.php?yes='.$code.'">ß ïîëíîñòüþ ñîãëàñåí ñ íàïèñàííûì âûøå òåêñòîì</a></center><br><br>Åñëè ïî êàêèì-ëèáî ïðè÷èíàì Âû íå ñîãëàñíû, òî ïîæàëóéñòà çàêðîéòå íàø ñàéò è áîëåå íå îòêðûâàéòå! Ñïàñèáî! ;-)
|
||||
</div></td></tr></table></td></tr></table>';*/
|
||||
//}
|
||||
?>
|
||||
<script>
|
||||
if(window.top !== window.self)
|
||||
{
|
||||
document.write = "";
|
||||
window.top.location = window.self.location;
|
||||
setTimeout(function(){ document.body.innerHTML='Îøèáêà äîñòóïà.'; },500);
|
||||
window.self.onload=function(evt){
|
||||
document.body.innerHTML='Îøèáêà äîñòóïà.';};
|
||||
}
|
||||
function cc(el) {
|
||||
$(window).resize(function(){
|
||||
$(el).css({
|
||||
position:'absolute',
|
||||
left: ($(document).width() - $(el).outerWidth())/2,
|
||||
top: ($(document).height() - $(el).outerHeight())/2
|
||||
});
|
||||
});
|
||||
$(window).resize();
|
||||
}
|
||||
</script>
|
||||
<?
|
||||
if($u->info['bithday'] == '01.01.1800') {
|
||||
?>
|
||||
<script>
|
||||
function startRegistration() {
|
||||
//if( goodread >= 9 ) {
|
||||
$.post( 'reg.php' , {
|
||||
'ajax_reg':true,
|
||||
'reg_login':$('#reg_login').val(),
|
||||
'reg_mail':$('#reg_mail').val(),
|
||||
'reg_dd':$('#reg_dd').val(),
|
||||
'reg_mm':$('#reg_mm').val(),
|
||||
'reg_yy':$('#reg_yy').val(),
|
||||
'reg_sex':$('#reg_sex').val(),
|
||||
'reg_pass':$('#reg_pass').val(),
|
||||
'reg_pass2':$('#reg_pass2').val(),
|
||||
'mail_post':$('#mail_post').attr('checked')
|
||||
} , function(data) {
|
||||
$('#errorreg').html( data );
|
||||
});
|
||||
/*}else{
|
||||
alert('Îçíàêîìüòåñü ñ "Ïåðâûìè øàãàìè íîâè÷êà" ñïðàâà! \n Ýòà èíôîðìàöèÿ áóäåò ïîëåçíà Âàì! \n Âû ïðî÷èòàëè '+goodread+' èç 9 ñòðàíèö!');
|
||||
}*/
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.proza {
|
||||
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=87); /* IE 5.5+*/
|
||||
-moz-opacity: 0.87; /* Mozilla 1.6 è íèæå */
|
||||
-khtml-opacity: 0.87; /* Konqueror 3.1, Safari 1.1 */
|
||||
opacity: 0.87; /* CSS3 - Mozilla 1.7b +, Firefox 0.9 +, Safari 1.2+, Opera 9+ */
|
||||
}
|
||||
.nobtn12 {
|
||||
border:0;
|
||||
bottom:80px;
|
||||
left:225px;
|
||||
position:absolute;
|
||||
}
|
||||
.nobtn12:active {
|
||||
bottom:79px;
|
||||
}
|
||||
.inpreg1 {
|
||||
padding:2px;
|
||||
font-size:14px;
|
||||
color:#003144;
|
||||
background-color:#f6f4ec;
|
||||
border:1px solid #d1cdb8;
|
||||
width:178px;
|
||||
}
|
||||
.inpreg2 {
|
||||
font-size:12px;
|
||||
color:#003144;
|
||||
background-color:#f6f4ec;
|
||||
border:1px solid #d1cdb8;
|
||||
}
|
||||
#errorreg {
|
||||
position:absolute;
|
||||
width:680px;
|
||||
top:0;
|
||||
left:0;
|
||||
text-align:center;
|
||||
color:red;
|
||||
font-weight:bold;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
cc('#regblock');
|
||||
</script>
|
||||
<?
|
||||
}elseif($u->info['active']!='' && $u->info['mail']=='No E-mail') {
|
||||
if($error!='') {
|
||||
echo '<script>alert("'.$error.'");</script>';
|
||||
}
|
||||
?>
|
||||
<!-- ACTIVE -->
|
||||
<?
|
||||
}
|
||||
?>
|
||||
<script>
|
||||
var lasts = [-1,-1];
|
||||
function myexpLineTop27(e1,e2) {
|
||||
$('#exp23mkrtkm').attr('title',"Îïûò ïåðñîíàæà"+"\n"+e1+" / "+e2);
|
||||
$('#exp23mkrtkm').html(Math.ceil(e1/e2*100)+'%!');
|
||||
if( Math.ceil(e1/e2*100) < 1 ) {
|
||||
$('#myexplin233').attr('width','1%');
|
||||
}else{
|
||||
if( lasts[1] < e2 ) {
|
||||
$('#myexplin233').css('width','1%');
|
||||
}
|
||||
if( lasts[0] != e1 || lasts[1] != e2 ) {
|
||||
$('#myexplin233').animate({'width':Math.ceil(e1/e2*100)+'%'},3000);
|
||||
}
|
||||
}
|
||||
lasts[0] = e1;
|
||||
lasts[1] = e2;
|
||||
}
|
||||
var smlk1 = 0;
|
||||
function smiles1load() {
|
||||
if( smlk1 == 0 ) {
|
||||
$('#btnsmlrz').html('<small> Îáùèå ñìàéëèêè </small>');
|
||||
smlk1 = 1;
|
||||
$('#smilesDiv').hide();
|
||||
$('#smilesDiv2').show();
|
||||
$('#smilesDiv3').hide();
|
||||
}else{
|
||||
$('#btnsmlrz').html('<small> Ëè÷íûå ñìàéëèêè </small>');
|
||||
smlk1 = 0;
|
||||
$('#smilesDiv').show();
|
||||
$('#smilesDiv2').hide();
|
||||
$('#smilesDiv3').hide();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
#qsst {
|
||||
position:absolute;
|
||||
z-index:10000000;
|
||||
cursor:default;
|
||||
display:none;
|
||||
}
|
||||
#onbon {
|
||||
position:absolute;
|
||||
z-index:100;
|
||||
cursor:default;
|
||||
display:none;
|
||||
bottom:30px;
|
||||
left:18px;
|
||||
}
|
||||
#mini_qsst {
|
||||
position:absolute;
|
||||
z-index:100;
|
||||
cursor:default;
|
||||
display:none;
|
||||
bottom:10px;
|
||||
right:18px;
|
||||
}
|
||||
</style>
|
||||
<div id="qsst"></div>
|
||||
<div id="ttl" class="ttl_css" style="display:none;z-index:1111;" /></div>
|
||||
<div id="nfml" style="display:none;position:absolute;" /></div>
|
||||
<div id="persmenu" style="display:none;z-index:1110;" /></div>
|
||||
<div id="windows" style="position:absolute;z-index:1101;"></div>
|
||||
<div id="wupbox" onmouseup="win.WstopDrag()" onmousemove="win.WmoveDrag(event)" onselectstart="return false"></div>
|
||||
<div id="chconfig">
|
||||
<center><b>Íàñòðîéêè ÷àòà</b></center>
|
||||
<img title="Ýïè÷åñêàÿ ëèíèÿ (o_O)" src="https://<?=$c['img'];?>/1x1.gif" class="eLine"><br>
|
||||
Ñêîðîñòü îáíîâëåíèÿ: <SELECT id="chcf0"><OPTION value='-1'>íèêîãäà</OPTION><OPTION value='1'>15 ñåê.</OPTION><OPTION selected value='2'>30 ñåê.</OPTION><OPTION value='3'>1 ìèí.</OPTION><OPTION value='4'>5 ìèí.</OPTION></SELECT><br>
|
||||
<div>Ñîðòèðîâêà ñïèñêà îíëàéí: <SELECT id="chcf8"><OPTION value='0' selected>Ïî ëîãèíó</OPTION><OPTION value='1'>Ïî óðîâíþ</OPTION><OPTION value='2'>Ïî ñêëîíîñòè</OPTION><OPTION value='3'>Ïî êëàíó</OPTION></SELECT>
|
||||
<input name="chcf9" type="checkbox" id="chcf9" value="1"><small>Ïî óáûâàíèþ</small></div>
|
||||
<div><input name="chcf12" type="checkbox" id="chcf12" value="1"> Ýêîíîìèÿ òðàôèêà</div>
|
||||
<div style="display:<? if($u->info['admin']>0 || ($u->info['align']>1 && $u->info['align']<2) || ($u->info['align']>3 && $u->info['align']<4)) { echo ''; }else{ echo 'none;'; } ?>"><input name="chcf7" type="checkbox" id="chcf7" value="1"> <span title="Ïîëó÷àòü ñîîáùåíèÿ îò ïåðñîíàæåé íà êîòîðûõ íàëîæåíî çàêëÿòèå ìîë÷àíèÿ">Ñîîáùåíèÿ ñ ìîë÷àíêîé</span></div>
|
||||
<img title="Ýïè÷åñêàÿ ëèíèÿ (o_O)" src="https://<?=$c['img'];?>/1x1.gif" class="eLine">
|
||||
<div> <span><a href="javascript:void(0)" onclick="chat.ignorListOpen();chconf();">Ñïèñîê èãíîðèðóåìûõ</a></span></div>
|
||||
</div>
|
||||
<!-- <div id="counters"></div> -->
|
||||
<!-- ðåñàéçû -->
|
||||
<div id="actionDiv" style="position:absolute;"></div>
|
||||
<!--<div id="reline3" onselectstart="return false">
|
||||
<img src="https://img.new-combats.com/1x1.gif" width="9" height="4" style="float:left; display:block; position:absolute; background-image:url(https://img.new-combats.com/i/lite/_top_24.gif);">
|
||||
<img src="https://img.new-combats.com/1x1.gif" width="10" height="4" style="float:right; display:block; background-image:url(https://img.new-combats.com/i/lite/_top_28.gif);">
|
||||
</div>-->
|
||||
<div id="reline1" onselectstart="return false">
|
||||
|
||||
<img src="https://img.new-combats.com/1x1.gif" width="9" height="4" style="float:left; display:block; position:absolute; background-image:url(https://img.new-combats.com/i/lite/_top_24.gif);">
|
||||
<img src="https://img.new-combats.com/1x1.gif" width="10" height="4" style="float:right; display:block; background-image:url(https://img.new-combats.com/i/lite/_top_28.gif);">
|
||||
</div>
|
||||
<div id="reline2" onselectstart="return false"></div>
|
||||
<!-- ðåñàéçû -->
|
||||
<div id="upbox" onselectstart="return false"></div>
|
||||
<div style="position:absolute; top:0; left:0; height:37px; width:100%;" onselectstart="return false">
|
||||
<div title="Íîâàÿ ïî÷òà" style="display:none; position:absolute; left: 198px; top: 13px; width:24px; height:15px; background-image:url(https://img.new-combats.com/i/mail2.gif);" class="postdiv" id="postdiv"></div>
|
||||
<div style="background: url(https://img.new-combats.com/i/lite/capitalcity/top_lite_cap_11.gif) repeat-x bottom; ">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="background: url(https://img.new-combats.com/i/lite/top_lite_cap_03.gif) repeat-x top; ">
|
||||
<tr>
|
||||
<td align="left"><img src="https://img.new-combats.com/i/lite/capitalcity/top_lite_cap_01.gif" width="64" height="14" class="db" style="padding-left:15px;" /></td>
|
||||
<td align="right" class="main_text" style="position: relative; width:225px"><table cellspacing="0" cellpadding="0" border="0" width="565">
|
||||
<tr valign="bottom" align="center">
|
||||
<td width="31" height="14"><img class="db" height="14" src="https://img.new-combats.com/i/lite/mennu112_06_lite.gif" width="31" /></td>
|
||||
<td align="center"><table height="14" cellspacing="0" cellpadding="0" width="100%" background="https://img.new-combats.com/i/lite/mennu112_06.gif" border="0">
|
||||
<tr align="middle">
|
||||
<td id="el1" class="main_text" onClick="this.style.backgroundColor='#404040'; this.style.color='#FFFFFF'; showtable('1');" align="center">Çíàíèÿ</td>
|
||||
<td width="1"><img class="db" height="11" src="https://img.new-combats.com/i/lite/mennu112_09.gif" width="1" /></td>
|
||||
<td id="el2" class="main_text" onClick="this.style.backgroundColor='#404040'; this.style.color='#FFFFFF'; showtable('2');" style="background:#404040; color:#FFFFFF;" align="center">Ïåðñîíàæ</td>
|
||||
<td width="1"><img class="db" height="11" src="https://img.new-combats.com/i/lite/mennu112_09.gif" width="1" /></td>
|
||||
<td id="el3" class="main_text" onClick="if(confirm('Âûéòè èç èãðû?')){ top.location = '/bk?exit&rnd=<?=$code?>'; }" align="center">Âûõîä</td>
|
||||
</tr>
|
||||
</table></td>
|
||||
<td width="38"><img class="db" height="14" src="https://img.new-combats.com/i/lite/mennu112_04_lite.gif" width="37" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left"><img style="display:block; float:left; margin-left:17px;" src="https://img.new-combats.com/i/lite/top_lite_cap_07.gif" width="15" height="17" /><img src="https://img.new-combats.com/i/lite/capitalcity/top_lite_cap_08.gif" width="152" height="17" class="db" /></td>
|
||||
<td align="right">
|
||||
<table cellspacing="0" cellpadding="0" width="565" style="background-image:url(https://img.new-combats.com/i/lite/top_lite_cap_15.gif);" border="0">
|
||||
<tr>
|
||||
<td align="right" class="menutop"><table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="20"><img class="db" src="https://img.new-combats.com/i/lite/top_lite_13.gif" width="20" height="17" /></td>
|
||||
<td align="center" valign="top" background="https://img.new-combats.com/i/lite/top_lite_low_15.gif" style="font-size:10px;">
|
||||
<span style="display:none; text-align:center;" id="menu1"> <a href="/main.php?referals" target="main" class="menutop" style="color:green">Ðåôåðàë</a> | <a href="https://new-combats.com/forum/" target="_blank" class="menutop">Ôîðóì</a> | <a href="https://new-combats.com/encicl/law.html" target="_blank" class="menutop"><font color=red>Çàêîíû</font></a> | <a href="https://new-combats.com/rating_pers" target="_blank" class="menutop">Ðåéòèíã</a> | <a href="https://new-combats.com/rating_clans" target="_blank" class="menutop">Êëàíû</a> | <a href="main.php?security" target="main" class="menutop" style="color:green">Áåçîïàñíîñòü</a> | <a href="https://new-combats.com/news_script/lib/pisheri.html" target="_blank" class="menutop"><font color=darkgreen>Âñ¸ î ïåùåðàõ</font></a> </span>
|
||||
<span style="display:; text-align:center;" id="menu2"><a href="/main.php?inv=1&rn=<?=$c[9]?>" target="main" class="menutop">Èíâåíòàðü</a> |<span style="display:; text-align:center;" id="menu2"><a href="main.php?titul" target="main" class="menutop" style="color:green"> Äîñòèæåíèÿ</a> | <a href="/main.php?skills=1&side=5" target="main" class="menutop">Óìåíèÿ</a> | <a href="/main.php?zayvka=1" target="main" class="menutop">Ïîåäèíêè</a> | <a href="/forum/?read=10957&rnd=1" target="_blank" class="menutop" style="color:red">Âñåì èãðîêàì</a> | <a href="/n" target="_blank" class="menutop" style="color:blue">Íîâîñòè</a> | <a href="settings" target="_blank" class="menutop">Àíêåòà</a></span>
|
||||
</td>
|
||||
<td width="22"><img class="db" src="https://img.new-combats.com/i/lite/top_lite_18.gif" width="22" height="17" /></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="15" height="6"><img class="db" src="https://img.new-combats.com/i/lite/_lit_20.gif" width="15" height="6" /></td>
|
||||
<td background="https://img.new-combats.com/i/lite/_top_20s.gif"></td>
|
||||
<td width="24" height="6"><img class="db" src="https://img.new-combats.com/i/lite/_lit_27.gif" width="24" height="6" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- -->
|
||||
</div>
|
||||
<table id="globalMain" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="31" width="9" bgcolor="#D6D6D6"></td>
|
||||
<td height="31" bgcolor="#D6D6D6"> </td>
|
||||
<td height="31" width="12" bgcolor="#D6D6D6"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#D6D6D6" background="https://img.new-combats.com/i/lite/_top_24.gif"></td>
|
||||
<td valign="top" bgcolor="#e2e0e0" id="main_td">
|
||||
<div id="touchmain" style="margin-top:3px;">
|
||||
<iframe id="main" name="main" src="main.php" frameborder="0" style="display:block;padding-top:0px;padding:0;margin:0;width:100%;border:0;" scrolling="auto"></iframe>
|
||||
</div>
|
||||
</td>
|
||||
<td bgcolor="#D6D6D6" background="https://img.new-combats.com/i/lite/_top_28.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#D6D6D6" background="https://img.new-combats.com/i/lite/_top_24.gif"></td>
|
||||
<td id="chat" valign="top" height="40%" bgcolor="#eeeeee">
|
||||
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" style="border-top:1px solid #CCCCCC">
|
||||
<tr>
|
||||
<td valign="top" id="chat_block" style="position:relative;border-top:1px solid #808080"><!-- display:block;-->
|
||||
<div id="mini_qsst" onClick="top.qn_slk()" style="cursor:pointer"></div>
|
||||
<div id="onbon"></div>
|
||||
<div id="chat_menus" unselectable="on" onselectstart="return false;" style="display:block;position:absolute; right:0px; top:3px; padding-right:20px; height:18px; text-align:right; white-space:nowrap;">
|
||||
<!-- -->
|
||||
<table border="0" style="margin-top:-3px;" align="right" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<div id="chat_menu" style="text-align:right; white-space:nowrap;">
|
||||
<? /*<div id="addbs" style="float:left;display:;"><a href="javascript:top.add_cb(0,'new',0,0);"><img src="addmn.gif" width="16" height="16" title="Äîáàâèòü íîâóþ âêëàäêó" /></a></div>*/ ?>
|
||||
</div>
|
||||
</td>
|
||||
<td style="display:none;" id="scroll_none" width="3"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- -->
|
||||
</div>
|
||||
|
||||
<div id="ttSmiles" onselectstart="return false" style="display:none;z-index:1100;" />
|
||||
<div id="smilesDiv">Çàãðóçêà ñìàéëèêîâ</div>
|
||||
<div id="smilesDiv2" style="display:none">
|
||||
<?
|
||||
echo '<center><small>Íîâûå ñìàéëèêè âîçìîæíî êóïèòü â <a href="/ekr.php" target="_blank">Êîììåð÷åñêîì Îòäåëå</a><br>Îáíîâèòå ñòðàíèöó, åñëè êóïëåííûé ñìàéëèê íå îòîáðàçèëñÿ</small></center><hr>';
|
||||
//
|
||||
if( $u->info['add_smiles'] == '' ) { ?>
|
||||
<center><br><br><br><br><br><br><br><font color="grey">Ó âàñ íåò ëè÷íûõ ñìàéëèêîâ</font></center>
|
||||
<? }else{
|
||||
|
||||
$ex = explode(',',$u->info['add_smiles']);
|
||||
$i = 0;
|
||||
while( $i < count($ex) ) {
|
||||
echo '<img src="https://img.new-combats.com/i/smile/'.$ex[$i].'.gif" title=":'.$ex[$i].':" style="cursor:pointer" onclick="chat.addSmile(\''.$ex[$i].'\');"> ';
|
||||
$i++;
|
||||
}
|
||||
|
||||
} ?>
|
||||
</div>
|
||||
<div id="smilesDiv3" style="display:none">
|
||||
|
||||
</div>
|
||||
<div align="center" style="padding-left:5px; padding-right:5px;">
|
||||
<button class="btn fl" style="display:none; padding:0; margin:0; margin-top:5px; margin-right:2px;" disabled="disabled"><small> Êóïèòü </small></button>
|
||||
<button class="btn fl" style="padding:0; margin:0; margin-top:5px;" id="btnsmlrz" onClick="smiles1load();"><small> Ëè÷íûå ñìàéëèêè </small></button>
|
||||
<button class="btn fr" style="padding:0; margin:0; margin-top:5px;" onClick="chat.lookSmiles()"><small> Çàêðûòü </small></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="chat_list" style="cursor:default;">
|
||||
<div id="canals">
|
||||
<div id="canal5"></div>
|
||||
<div id="canal6" style="display:none;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td width="350" valign="top" bgcolor="#faf2f2" style="border-left:2px solid #CCCCCC;border-top:1px solid #808080" id="online">
|
||||
<div id="online_list" style="cursor:default;">
|
||||
<div align="center" style="margin-top:5px;">
|
||||
<button class="btn" id="robtn" onClick="chat.reflesh()">Îáíîâèòü</button>
|
||||
<button TYPE=button class="btn" onClick="window.open('https://new-combats.com/monitoring', 'monitoring', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" title="Ìîíèòîð çàÿâîê\òóðíèðîâ"><img src="https://img.new-combats.com/i/fighttype0.gif" width="20" height="20"></button>
|
||||
</div>
|
||||
<font class="db" style="padding:0px 0 8px 0;font-size: 10pt; color:#8f0000;"><b id="roomName"></b></font>
|
||||
<div id="onlist"></div>
|
||||
<div style="padding:5px;margin-top:5px;">
|
||||
<!-- <div><label><input type="checkbox" value="1" <? if( $u->info['level'] < 8 ) { ?>checked<? } ?> id="autoRefOnline">Îáíîâëÿòü àâòîìàò.</label></div>-->
|
||||
<div><label><input type="checkbox" value="1" checked id="autoRefOnline">Îáíîâëÿòü àâòîìàò.</label></div>
|
||||
<? if( $u->info['admin'] > 0 ) { ?>
|
||||
<!--<div><label><input name="chcf10" type="checkbox" id="chcf10" <? if( $u->info['level'] < 8 ) { ?>checked<? } ?> value="0">Ïîêàçàòü âñåõ èãðîêîâ</label></div>-->
|
||||
<div><label><input name="chcf10" type="checkbox" id="chcf10" checked value="0">Ïîêàçàòü âñåõ èãðîêîâ</label></div>
|
||||
<? } ?>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td bgcolor="#D6D6D6" background="https://img.new-combats.com/i/lite/_top_28.gif"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30" valign="bottom"><img class="db" src="https://img.new-combats.com/i/lite/bkf_l_r1_02.gif" width="9" height="30"></td>
|
||||
<td height="30" bgcolor="#E9E9E9" background="https://img.new-combats.com/i/buttons/chat_bg.gif">
|
||||
<table width="100%" height="26" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="30"><img <? if( $u->info['admin'] > 0 ) { ?> onclick="top.frames['main'].location.href='map.php';" <? } ?> class="db" src="https://img.new-combats.com/b___.gif" width="30" height="30" title="×àò"></td>
|
||||
<td style="display:none;" width="100" align="center" id="trader1"><div id="trader" style="border:1px solid #CCCCCC;padding:2px; margin-left:-2px; width:90%;" class="klan"><small id="moneyGM"><b>Òîðãîâûé ÷àò</b></small></div></td>
|
||||
<td><input type="hidden" name="trader" id="trader_val" value="0"><input onmouseup="top.chat.inObj=undefined;" type="text" name="textmsg" id="textmsg" maxlength="240" onKeyPress="top.testKey(event)" style="width:100%;font-size:11pt;margin-bottom:2px; border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px;" /></td>
|
||||
<td width="6"> </td>
|
||||
<td width="30"><img onClick="chat.subSend();" src="https://img.new-combats.com/1x1.gif" class="db cp chatBtn2_1"></td>
|
||||
<td width="5">
|
||||
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="1" height="1" id="Sound" align="middle">
|
||||
<param name="allowScriptAccess" value="always" />
|
||||
<param name="movie" value="flash/Sound2.1.swf" />
|
||||
<param name="quality" value="high" />
|
||||
<param name="scale" value="noscale" />
|
||||
<param name="wmode" value="transparent" />
|
||||
<embed src="flash/Sound2.1.swf" quality="high" scale="noscale" wmode="transparent" width="1" height="1" name="Sound" id="Sound2" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" />
|
||||
</object>
|
||||
</td>
|
||||
<?if($u->info['level']>9){ ?>
|
||||
<td width="30"><img onclick="window.open('audio/index.php')" class="db cp" title="Ãîëîñîâîå ñîîáùåíèå" src="https://img.new-combats.com/b___.gif"></td>
|
||||
<? } ?>
|
||||
<td width="30"><img onClick="chat.clear();" class="db cp" title="Î÷èñòèòü ñòðîêó ââîäà" src="https://img.new-combats.com/i/buttons/chatBtn3.gif"></td>
|
||||
<td width="30"><img onClick="chat.filterMsg();" id="chbtn1" title="Ïîêàçûâàòü â ÷àòå òîëüêî ñîîáùåíèÿ àäðåñîâàííûå ìíå" src="https://img.new-combats.com/1x1.gif" class="db cp chatBtn1_1"></td>
|
||||
<td width="30"><img onClick="chat.systemMsg();" id="chbtn4" title="Ïîêàçûâàòü â ÷àòå ñèñòåìíûå ñîîáùåíèÿ" src="https://img.new-combats.com/1x1.gif" class="db cp chatBtn4_<? if(isset($_COOKIE['citySys']) && $_COOKIE['citySys']==1){ echo 2; }else{ echo 1; } ?>"></td>
|
||||
<td width="30"><img id="chbtn6" onClick="chat.translitChat()" title="Ïðåîáðàçîâûâàòü òðàíñëèò â ðóññêèé òåêñò" src="https://img.new-combats.com/1x1.gif" class="db cp chatBtn6_1"></td>
|
||||
<td width="30"><img id="chbtn7" onClick="chat.soundChat()" src="https://img.new-combats.com/1x1.gif" title="Çâóêè" class="db cp chatBtn7_1"></td>
|
||||
<td width="10"> </td>
|
||||
<td width="30"><img id="chbtn8" class="db cp chatBtn8_1" onClick="chat.lookSmiles()" title="Ñìàéëèêè" src="https://img.new-combats.com/1x1.gif"></td>
|
||||
<!--<td width="30"><img id="chbtn8" class="cp" title="Ïàíåëü áûñòðîãî äîñòóïà" onClick="fastpanel()" src="https://img.new-combats.com/b___cl1.gif"></td>-->
|
||||
<td width="16" bgcolor="#BAB7B3"><img src="https://img.new-combats.com/i/buttons/chat_explode.gif" width="16" height="30" class="db" /></td>
|
||||
<td width="30"><img onclick="top.getUrl('main','main.php?inv=1&rnd='+c.rnd);" class="db cp" title="Èíâåíòàðü" src="https://img.new-combats.com/i/buttons/chatBtn13.gif"></td>
|
||||
<? if($u->info['level']>7){ ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?transfer=1&rnd='+c.rnd);" class="db cp" title="Ïåðåäà÷è" src="https://img.new-combats.com/i/buttons/chatBtn16.gif"></td>
|
||||
<? } if($u->info['level']>=0){ ?>
|
||||
<!--Àëõèìèêè online
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?alh=1&rnd='+c.rnd);" class="db cp" src="https://img.new-combats.com/i/buttons/chatBtn9.gif"></td>-->
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?add_eff=1&rnd='+c.rnd);" class="db cp" title="Îáêàñò" src="https://img.new-combats.com/i/buttons/chatBtn151.gif"></td>
|
||||
<? } if($u->info['align']==50 || $u->info['align2']==50 || $u->info['admin'] == 1) {?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?alhp=1&rnd='+c.rnd);" class="db cp" src="https://img.new-combats.com/i/buttons/chatBtn20.gif"></td>
|
||||
<?} if($u->info['align']>=1.1 && $u->info['align']<2 ){ ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?light=1&rnd='+c.rnd);" class="db cp" title="Ïàíåëü Ïàëàäèíà" src="https://img.new-combats.com/i/buttons/chatBtn15.gif"></td>
|
||||
<? } if($u->info['align']>=3.01 && $u->info['align']<4){ ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?dark=1&rnd='+c.rnd);" class="db cp" title="Ïàíåëü Òàðìàíà" src="https://img.new-combats.com/i/buttons/chatBtn10.gif"></td>
|
||||
<? } if($u->info['vip']>time() || $u->stats['silvers']>0 || $u->stats['bronze']>0 || $u->stats['gold']>0 ){ ?>
|
||||
<!-- VIP -->
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?vip=1&rnd='+c.rnd);" class="db cp" src="https://img.new-combats.com/i/buttons/a___ang17.gif" onMouseOver="top.hi(this,'<b>Ïàíåëü Áëàãîäàòè Àíãåëà <?=$u->info['login']?></b>',event,3,0,1,0,'');" onMouseOut="top.hic();" onMouseDown="top.hic();"> </td></td>
|
||||
|
||||
<? } if($u->info['level']>= 0){ ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?friends=1&rnd='+c.rnd);" class="db cp" title="Äðóçüÿ" src="https://img.new-combats.com/i/buttons/chatBtn12.gif"></td>
|
||||
<?} if($u->info['align']>=1 && $u->info['align']<2){ ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?1_panel=1&rnd='+c.rnd);" class="db cp" title="Ïàíåëü ñâåòà" src="https://img.new-combats.com/i/buttons/chatBtn15.gif"></td>
|
||||
<?} if($u->info['align']>=3 && $u->info['align']<4){ ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?3_panel=1&rnd='+c.rnd);" class="db cp" title="Ïàíåëü òüìû" src="https://img.new-combats.com/i/buttons/chatBtn10.gif"></td>
|
||||
<?} if($u->info['align']==7) { ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?7_panel=1&rnd='+c.rnd);" class="db cp" title="Ïàíåëü íåéòðàëèòåòà" src="https://img.new-combats.com/i/buttons/a___neutral.gif"></td>
|
||||
<? } if($u->info['bukmeker']==1 || $u->info['admin']==1){ ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?bukmeker=1&rnd='+c.rnd);" class="db cp" title="Ïàíåëü Áóêìåêåðà " src="https://img.new-combats.com/i/buttons/bukmek.gif"></td>
|
||||
<? } if($u->info['admin'] > 0 || $u->info['align'] == 50){ ?>
|
||||
<!--Áëîêíîò
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?notepad=1&rnd='+c.rnd);" class="db cp" src="https://img.new-combats.com/b_notepad.gif"></td>-->
|
||||
<? } if($u->info['level']>-1){ ?>
|
||||
|
||||
<? } if($u->info['clan']>0){ ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?clan=1&rnd='+c.rnd);" class="db cp" title="Êëàí" src="https://img.new-combats.com/i/buttons/chatBtn14.gif"></td>
|
||||
<? } if($u->info['admin']>0){ ?>
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?admin=1&rnd='+c.rnd);" class="db cp" src="https://img.new-combats.com/i/buttons/chatBtn19.gif"></td>
|
||||
<? } ?>
|
||||
<!--
|
||||
<td width="30"><img onClick="top.getUrl('main','main.php?bagreport=1&rnd='+c.rnd);" class="db cp" src="https://img.new-combats.com/i/buttons/chatBtnBugs.gif"></td>
|
||||
-->
|
||||
<!--<td width="30"><img onClick="if(confirm('Âûéòè èç èãðû?')){ top.location = '/bk?exit&rnd=<?=$code?>'; }" class="db cp" src="https://img.new-combats.com/i/buttons/chatBtn11.gif"></td>-->
|
||||
<td width="30"><img onclick="window.open('ekr2.php')" class="db cp" title="Ïîêóïêà ÅâðîÊðåäèòîâ" src="https://img.new-combats.com/i/buttons/a___nak.gif"></td>
|
||||
<!-- <td width="70">
|
||||
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="70" height="25">
|
||||
<param name="movie" value="flash/clock.swf?hours=<?=date("H")?>&minutes=<?=date("i")?>&sec=<?=date("s")?>">
|
||||
<param name="quality" value="high">
|
||||
<embed src="flash/clock.swf?hours=<?=date("H")?>&minutes=<?=date("i")?>&sec=<?=date("s")?>" quality="high" pluginspage="https://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="70" height="25"></embed>
|
||||
</object>
|
||||
</td> -->
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td height="30" align="right" bgcolor="#D6D6D6"><img class="db" src="https://img.new-combats.com/i/lite/bkf_l_r1_06.gif" width="9" height="30"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5" bgcolor="#D6D6D6" style="background:url(https://img.new-combats.com/sand_mid_31.png);"></td>
|
||||
<td height="5" bgcolor="#D6D6D6" style="background:url(https://img.new-combats.com/sand_mid_31.png);"><!-- iFrames zone --></td>
|
||||
<td height="5" bgcolor="#D6D6D6" style="background:url(https://img.new-combats.com/sand_mid_31.png);"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?
|
||||
if($u->info['active']!='' && $u->info['mail']!='No E-mail')
|
||||
{
|
||||
$yes = $u->testAction('`uid` = "'.$u->info['id'].'" AND `vars` = "user_active_good" LIMIT 1',1);
|
||||
$yes2 = $u->testAction('`uid` = "'.$u->info['id'].'" AND `vars` = "user_active_send" LIMIT 1',1);
|
||||
if($u->info['login'] != '-LEL-')
|
||||
{
|
||||
mysql_query('UPDATE `stats` SET `active` = "" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
||||
}
|
||||
|
||||
/*
|
||||
function send_mime_mail($name_from, // èìÿ îòïðàâèòåëÿ
|
||||
$email_from, // email îòïðàâèòåëÿ
|
||||
$name_to, // èìÿ ïîëó÷àòåëÿ
|
||||
$email_to, // email ïîëó÷àòåëÿ
|
||||
$data_charset, // êîäèðîâêà ïåðåäàííûõ äàííûõ
|
||||
$send_charset, // êîäèðîâêà ïèñüìà
|
||||
$subject, // òåìà ïèñüìà
|
||||
$body // òåêñò ïèñüìà
|
||||
)
|
||||
{
|
||||
$to = mime_header_encode($name_to, $data_charset, $send_charset)
|
||||
. ' <' . $email_to . '>';
|
||||
$subject = mime_header_encode($subject, $data_charset, $send_charset);
|
||||
$from = mime_header_encode($name_from, $data_charset, $send_charset)
|
||||
.' <' . $email_from . '>';
|
||||
if($data_charset != $send_charset) {
|
||||
$body = iconv($data_charset, $send_charset, $body);
|
||||
}
|
||||
$headers = "From: $from\r\n";
|
||||
$headers .= "Content-type: text/plain; charset=$send_charset\r\n";
|
||||
|
||||
return mail($to, $subject, $body, $headers);
|
||||
}
|
||||
|
||||
function mime_header_encode($str, $data_charset, $send_charset) {
|
||||
if($data_charset != $send_charset) {
|
||||
$str = iconv($data_charset, $send_charset, $str);
|
||||
}
|
||||
return '=?' . $send_charset . '?B?' . base64_encode($str) . '?=';
|
||||
}
|
||||
|
||||
if(!isset($yes2['id']))
|
||||
{
|
||||
//îòïðàâëÿåì ïèñüìî
|
||||
echo '<script>chat.sendMsg(["new","'.time().'","6","","'.$u->info['login'].'","<small>Íà Âàø ïî÷òîâûé ÿùèê <b>'.$u->info['mail'].'</b> îòïðàâëåíî ïèñüìî ñ èíñòðóêöèåé ïî àêòèâàöèè àêêàóíòà. (Ïèñüìî ïðèéäòè â òå÷åíèè 15 ìèíóò, à òàê-æå ïðîâåðüòå ðàçäåë "Ñïàì")</small>","Black","1","1","0"]);</script>';
|
||||
//$u->addAction(time(),'user_active_send',$u->info['mail']);
|
||||
// ïîëó÷àòåëè
|
||||
send_mime_mail('www.new-combats.com',
|
||||
'support@new-combats.com',
|
||||
''.$u->info['login'].'',
|
||||
$u->info['mail'],
|
||||
'CP1251', // êîäèðîâêà, â êîòîðîé íàõîäÿòñÿ ïåðåäàâàåìûå ñòðîêè
|
||||
'KOI8-R', // êîäèðîâêà, â êîòîðîé áóäåò îòïðàâëåíî ïèñüìî
|
||||
'Àêòèâàöèÿ ïåðñîíàæà '.$u->info['login'].'',
|
||||
"Çäðàâñòâóéòå! Ìû î÷åíü ðàäû íîâîìó ïåðñîíàæó â íàøåì Ìèðå! \r\n Âàø ïåðñîíàæ: ".$u->info['login']." [0] \r\n Ññûëêà äëÿ àêòèâàöèè: https://capitalcity.new-combats.com/bk?active=".$u->info['active'].".\r\n\r\nÑ óâàæåíèåì, Àäìèíèñòðàöèÿ!");
|
||||
$u->addAction(time(),'user_active_send',$u->info['mail']);
|
||||
|
||||
}elseif(!isset($yes['id']))
|
||||
{
|
||||
//Ïîëüçîâàòåëüñêîå ñîãëàøåíèå
|
||||
if(isset($_GET['active']) && $u->info['active'] == $_GET['active'])
|
||||
{
|
||||
//ñîãëàñåí
|
||||
$u->addAction(time(),'user_active_good',$u->info['mail']);
|
||||
mysql_query('UPDATE `stats` SET `active` = "" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
||||
die('<script>top.location = "https://'.$c[$u->info['city']].'/bk";</script>');
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
?>
|
||||
<script>
|
||||
startEngine();
|
||||
chat.testTimer(false);
|
||||
//setTimeout('chat.nozpros=0;',20);
|
||||
<? if( $u->info['design'] == 1 ) { ?>
|
||||
/*
|
||||
top.add_cb(1,'×àò',1,'ch1','<br>');
|
||||
top.add_cb(5,'×àò',1,'ch5','<br>');
|
||||
top.add_cb(3,'Ëîã',1,'ch3','<br><div id="battle_logg"></div>');
|
||||
top.add_cb(4,'Ñèñòåìíûå ñîîáùåíèÿ',1,'ch4','<br>');
|
||||
*/
|
||||
|
||||
<? } ?>
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
<?
|
||||
unset($db);
|
||||
?>
|
229
clans_inf.php
229
clans_inf.php
@ -1,29 +1,34 @@
|
||||
<?
|
||||
<?php
|
||||
include_once('_incl_data/__config.php');
|
||||
define('GAME',true);
|
||||
const GAME = true;
|
||||
include_once('_incl_data/class/__db_connect.php');
|
||||
include_once('_incl_data/class/__user.php');
|
||||
define('LOWERCASE',3);
|
||||
define('UPPERCASE',1);
|
||||
|
||||
$uplogin = explode('&', $_SERVER['QUERY_STRING']);
|
||||
$uplogin = $uplogin[0];
|
||||
$uplogin = preg_replace('/%20/', " ", $uplogin);
|
||||
if(!isset($_GET['id']))
|
||||
{
|
||||
if (!isset($_GET['id'])) {
|
||||
$_GET['id'] = 0;
|
||||
}
|
||||
if(!isset($upLogin)){ $upLogin = ''; }
|
||||
if (!isset($upLogin)) {
|
||||
$upLogin = '';
|
||||
}
|
||||
$utf8Login = '';
|
||||
$utf8Login2 = '';
|
||||
$utf8Login = iconv("utf-8", "windows-1251", $uplogin);
|
||||
if($uplogin == 'delete' || $utf8Login == 'delete' || $utf8Login2 == 'delete') {
|
||||
|
||||
}else{
|
||||
$clan = mysql_fetch_array(mysql_query('SELECT `u`.* FROM `clan` AS `u` WHERE (`u`.`id`="'.mysql_real_escape_string($_GET['id']).'" OR `u`.`id`="'.mysql_real_escape_string($uplogin).'" OR `u`.`name`="'.mysql_real_escape_string($uplogin).'") LIMIT 1'));
|
||||
if ($uplogin != 'delete' && $utf8Login != 'delete' && $utf8Login2 != 'delete') {
|
||||
$clan = mysql_fetch_array(
|
||||
mysql_query(
|
||||
'SELECT `u`.* FROM `clan` AS `u` WHERE (`u`.`id`="' . mysql_real_escape_string(
|
||||
$_GET['id']
|
||||
) . '" OR `u`.`id`="' . mysql_real_escape_string(
|
||||
$uplogin
|
||||
) . '" OR `u`.`name`="' . mysql_real_escape_string($uplogin) . '") LIMIT 1'
|
||||
)
|
||||
);
|
||||
}
|
||||
if (!isset($clan['id'])) {
|
||||
die('<html><head>
|
||||
die(
|
||||
'<html><head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
|
||||
<meta http-equiv="Content-Language" content="ru">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
|
||||
@ -33,13 +38,28 @@ define('UPPERCASE',1);
|
||||
<HR>
|
||||
<p align="right">(c) <a href="index.html">' . $c['title'] . '</a></p>
|
||||
' . $c['counters'] . '
|
||||
</body></html>');
|
||||
</body></html>'
|
||||
);
|
||||
}
|
||||
|
||||
$xu = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `users` WHERE `real` = 1 AND `clan` = "'.$clan['id'].'" LIMIT 1'));
|
||||
$xu = mysql_fetch_array(
|
||||
mysql_query('SELECT COUNT(`id`) FROM `users` WHERE `real` = 1 AND `clan` = "' . $clan['id'] . '" LIMIT 1')
|
||||
);
|
||||
$xu = 0 + $xu[0];
|
||||
$r1 = mysql_fetch_array(mysql_query('SELECT * FROM `aaa_clan_reting_list` WHERE `clan` = "'.$clan['id'].'" AND `date` = "'.date('dmY').'" LIMIT 1'));
|
||||
$r2 = mysql_fetch_array(mysql_query('SELECT * FROM `aaa_clan_reting_list` WHERE `clan` = "'.$clan['id'].'" AND `date` != "'.date('dmY').'" ORDER BY `id` DESC LIMIT 1'));
|
||||
$r1 = mysql_fetch_array(
|
||||
mysql_query(
|
||||
'SELECT * FROM `aaa_clan_reting_list` WHERE `clan` = "' . $clan['id'] . '" AND `date` = "' . date(
|
||||
'dmY'
|
||||
) . '" LIMIT 1'
|
||||
)
|
||||
);
|
||||
$r2 = mysql_fetch_array(
|
||||
mysql_query(
|
||||
'SELECT * FROM `aaa_clan_reting_list` WHERE `clan` = "' . $clan['id'] . '" AND `date` != "' . date(
|
||||
'dmY'
|
||||
) . '" ORDER BY `id` DESC LIMIT 1'
|
||||
)
|
||||
);
|
||||
|
||||
$vid = '';
|
||||
if (isset($r2['pos'])) {
|
||||
@ -58,9 +78,13 @@ define('UPPERCASE',1);
|
||||
$vid1 = '';
|
||||
if (isset($r2['pos'])) {
|
||||
if (round($r2['global'] / (15678 + $r2['level']), 3) < round($r1['global'] / (15678 + $r1['level']), 3)) {
|
||||
$vid1 = ' <sup><span style=\'color:green;\'>+'.(round($r1['global']/(15678+$r1['level']),3) - round($r2['global']/(15678+$r2['level']),3)).'</span></sup>';
|
||||
$vid1 = ' <sup><span style=\'color:green;\'>+' . (round($r1['global'] / (15678 + $r1['level']), 3) - round(
|
||||
$r2['global'] / (15678 + $r2['level']), 3
|
||||
)) . '</span></sup>';
|
||||
} elseif (round($r2['global'] / (15678 + $r2['level']), 3) > round($r1['global'] / (15678 + $r1['level']), 3)) {
|
||||
$vid1 = ' <sup><span style=\'color:red;\'>-'.(round($r2['global']/(15678+$r2['level']),3) - round($r1['global']/(15678+$r1['level']),3)).'</span></sup>';
|
||||
$vid1 = ' <sup><span style=\'color:red;\'>-' . (round($r2['global'] / (15678 + $r2['level']), 3) - round(
|
||||
$r1['global'] / (15678 + $r1['level']), 3
|
||||
)) . '</span></sup>';
|
||||
}
|
||||
}
|
||||
|
||||
@ -101,24 +125,31 @@ define('UPPERCASE',1);
|
||||
}
|
||||
|
||||
$timday = strtotime('now 00:00:00');
|
||||
$clanw = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `battle` WHERE `type` = 250 AND `time_over` > "'.$timday.'" AND ((`team_win`=1 AND `clan1` = "'.$clan['id'].'") OR (`team_win`=2 AND `clan2` = "'.$clan['id'].'")) LIMIT 1'));
|
||||
$clanw = mysql_fetch_array(
|
||||
mysql_query(
|
||||
'SELECT COUNT(`id`) FROM `battle` WHERE `type` = 250 AND `time_over` > "' . $timday . '" AND ((`team_win`=1 AND `clan1` = "' . $clan['id'] . '") OR (`team_win`=2 AND `clan2` = "' . $clan['id'] . '")) LIMIT 1'
|
||||
)
|
||||
);
|
||||
$clanw = $clanw[0];
|
||||
|
||||
$clanl = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `battle` WHERE `type` = 250 AND `time_over` > "'.$timday.'" AND ((`team_win`=2 AND `clan1` = "'.$clan['id'].'") OR (`team_win`=1 AND `clan2` = "'.$clan['id'].'")) LIMIT 1'));
|
||||
$clanl = mysql_fetch_array(
|
||||
mysql_query(
|
||||
'SELECT COUNT(`id`) FROM `battle` WHERE `type` = 250 AND `time_over` > "' . $timday . '" AND ((`team_win`=2 AND `clan1` = "' . $clan['id'] . '") OR (`team_win`=1 AND `clan2` = "' . $clan['id'] . '")) LIMIT 1'
|
||||
)
|
||||
);
|
||||
$clanl = $clanl[0];
|
||||
|
||||
$clanwar = mysql_query('SELECT * FROM `clan_wars` WHERE (`clan1`="'.$clan['id'].'" OR `clan2`="'.$clan['id'].'") AND `time_finish` > "'.time().'"');
|
||||
$clanwar = mysql_query(
|
||||
'SELECT * FROM `clan_wars` WHERE (`clan1`="' . $clan['id'] . '" OR `clan2`="' . $clan['id'] . '") AND `time_finish` > "' . time(
|
||||
) . '"'
|
||||
);
|
||||
$clwe = "";
|
||||
while($clanwa = mysql_fetch_array($clanwar))
|
||||
{
|
||||
if ($clanwa['clan1'] == $clan['id'])
|
||||
{
|
||||
while ($clanwa = mysql_fetch_array($clanwar)) {
|
||||
if ($clanwa['clan1'] == $clan['id']) {
|
||||
$clw = mysql_fetch_array(mysql_query('SELECT * FROM `clan` WHERE `id` = "' . $clanwa['clan2'] . '" LIMIT 1'));
|
||||
|
||||
$clwe .= '<img style="vertical-align:bottom" src="https://img.new-combats.com/i/clan/' . $clw['name'] . '.gif"><b>' . $clw['name'] . ' </b>';
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
$clw = mysql_fetch_array(mysql_query('SELECT * FROM `clan` WHERE `id` = "' . $clanwa['clan1'] . '" LIMIT 1'));
|
||||
$clwe .= '<img style="vertical-align:bottom" src="https://img.new-combats.com/i/clan/' . $clw['name'] . '.gif"><b>' . $clw['name'] . ' </b>';
|
||||
|
||||
@ -126,8 +157,6 @@ define('UPPERCASE',1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<HTML>
|
||||
<HEAD>
|
||||
@ -144,66 +173,120 @@ define('UPPERCASE',1);
|
||||
</HEAD>
|
||||
<body style="margin:10px; margin-top:5px; background-repeat:no-repeat; background-position: top right" bgcolor=e2e0e0>
|
||||
<div id="main" style="margin: 5px 5px 0 5px;">
|
||||
<table width=100%><tr>
|
||||
<table width=100%>
|
||||
<tr>
|
||||
<td style="background: #C7C7C7; border: 1px solid #A6A5A3; padding: 4px 20px 4px 20px;">
|
||||
<h3 style="width: 250px; float: left;"><?= $clan['name'] ?></h3>
|
||||
<h3 style="width: 250px; float: right;"><a href="/rating_clans#<?=$clan['id']?>" target="_blank">Ïîçèöèÿ: <?=(0+$r1['pos'])?></a> <sup><?=$vid?></sup></h3>
|
||||
<h3 style="width: 250px; float: right;"><a href="/rating_clans#<?= $clan['id'] ?>" target="_blank">Ïîçèöèÿ: <?= (0 + $r1['pos']) ?></a>
|
||||
<sup><?= $vid ?></sup></h3>
|
||||
<h3>Ðåéòèíã: <?= round($r1['global'] / (15678 + $r1['level']), 3) . $vid1 ?></sup></h3>
|
||||
</td>
|
||||
</tr></table>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align="left" valign="top">
|
||||
<div style="padding-right:60px;">
|
||||
<fieldset id="aboutclan" style="border: 1px solid white; display: block; float:left; clear: left; width:100%;min-height:20px; padding:10px; margin-top:15px;">
|
||||
<legend style='font-weight:bold; color:#8F0000;'>Èíôîðìàöèÿ î Êëàíå <?=$clan['name']?></legend>
|
||||
<fieldset id="aboutclan"
|
||||
style="border: 1px solid white; display: block; float:left; clear: left; width:100%;min-height:20px; padding:10px; margin-top:15px;">
|
||||
<legend style='font-weight:bold; color:#8F0000;'>Èíôîðìàöèÿ î
|
||||
Êëàíå <?= $clan['name'] ?></legend>
|
||||
<?= $clan_info['info'] ?>
|
||||
</fieldset>
|
||||
<fieldset id="aboutclan" style="border: 1px solid white; display: block; float:left; clear: left; width:100%;min-height:20px; padding:10px; margin-top:15px;">
|
||||
<legend style='font-weight:bold; color:#8F0000;'>Êëàí ñàéò:</legend> <a href="<?=$clan['site'];?>" target="_blank"> <?=$clan['site'];?> </a>
|
||||
<fieldset id="aboutclan"
|
||||
style="border: 1px solid white; display: block; float:left; clear: left; width:100%;min-height:20px; padding:10px; margin-top:15px;">
|
||||
<legend style='font-weight:bold; color:#8F0000;'>Êëàí ñàéò:</legend>
|
||||
<a href="<?= $clan['site']; ?>" target="_blank"> <?= $clan['site']; ?> </a>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<fieldset id="statclan" style="border: 1px solid white; display: block; float:left; clear: left; width:100%;min-height:100px; padding: 10px; margin-top:15px;margin-bottom: 15px;">
|
||||
<fieldset id="statclan"
|
||||
style="border: 1px solid white; display: block; float:left; clear: left; width:100%;min-height:100px; padding: 10px; margin-top:15px;margin-bottom: 15px;">
|
||||
<legend style='font-weight:bold; color:#8F0000;'>Ñòàòèñòèêà Êëàíà</legend>
|
||||
<table width="100%" cellpadding="0" cellspacing="0">
|
||||
<tr><td width="150"><b>Ðåéòèíã:</b></td>
|
||||
<td><?=round($r1['global']/(15678+$r1['level']),3).$vid1?></td></tr>
|
||||
<tr><td colspan="2"> </td></tr>
|
||||
<tr><td width="150"><b>Îïûò:</b></td>
|
||||
<td><?=number_format($r1['exp_real'], 0, ",", " ").$vid2?></td></tr>
|
||||
<tr><td width="150"><b>Ïîçèöèÿ:</b></td><td><span title="Ïîçèöèÿ êëàíà â îáùåì ðåéòèíãå"><a href="/rating_clans#<?=$clan['id']?>" target="_blank"><?=(0+$r1['pos'])?></a></span> <sup title="Èçìåíåíèå ïîçèöèè êëàíà çà äåíü"><?=$vid?></sup></td></tr>
|
||||
<tr><td colspan="2"> </td></tr>
|
||||
<tr><td colspan="2"><b><font color=green>Ñòàòèñòèêà ïåðñîíàæåé:</font></b></td></tr>
|
||||
<tr><td width="150"><b>Ïîáåä:</b></td>
|
||||
<td><?=number_format($r1['win'], 0, ",", " ").$vid3?></td></tr>
|
||||
<tr><td width="150"><b>Ïîðàæåíèé:</b></td>
|
||||
<td><?=number_format($r1['lose'], 0, ",", " ").$vid4?></td></tr>
|
||||
<tr><td width="150"><b>Íè÷üèõ:</b></td>
|
||||
<td><?=number_format($r1['nich'], 0, ",", " ").$vid5?></td></tr>
|
||||
<tr><td colspan="2"> </td></tr>
|
||||
<tr><td colspan="2"><b><font color=#A00>Ñòàòèñòèêà âîéí:</font></b></td></tr>
|
||||
<tr><td width="150"><b>Òåêóùèå âîéíû:</b></td>
|
||||
<td><span><? echo $clwe;?></span></td></tr>
|
||||
<tr><td width="150"><b>Ïîáåä:</b></td>
|
||||
<td><span><? echo $clanw;?></span></td></tr>
|
||||
<tr><td width="150"><b>Ïîðàæåíèé:</b></td>
|
||||
<td><span><? echo $clanl;?></span></td></tr>
|
||||
<tr><td colspan="2"> </td></tr>
|
||||
<tr><td width="150"><b>Îæèäàåìûé ðåéòèíã:</b></td><td><span><?echo ($clanw-$clanl)*10000;?></span></td></tr>
|
||||
<tr><td colspan="2"> </td></tr>
|
||||
<tr><td width="150"><b>Äàòà ðåãèñòðàöèè:</b></td><td><span title="Äàòà ðåãèñòðàöèè êëàíà"><?=date('d.m.Y',$clan['time_reg'])?></span></td></tr>
|
||||
<tr>
|
||||
<td width="150"><b>Ðåéòèíã:</b></td>
|
||||
<td><?= round($r1['global'] / (15678 + $r1['level']), 3) . $vid1 ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="150"><b>Îïûò:</b></td>
|
||||
<td><?= number_format($r1['exp_real'], 0, ",", " ") . $vid2 ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="150"><b>Ïîçèöèÿ:</b></td>
|
||||
<td><span title="Ïîçèöèÿ êëàíà â îáùåì ðåéòèíãå"><a
|
||||
href="/rating_clans#<?= $clan['id'] ?>"
|
||||
target="_blank"><?= (0 + $r1['pos']) ?></a></span> <sup
|
||||
title="Èçìåíåíèå ïîçèöèè êëàíà çà äåíü"><?= $vid ?></sup></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><b><font color=green>Ñòàòèñòèêà ïåðñîíàæåé:</font></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="150"><b>Ïîáåä:</b></td>
|
||||
<td><?= number_format($r1['win'], 0, ",", " ") . $vid3 ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="150"><b>Ïîðàæåíèé:</b></td>
|
||||
<td><?= number_format($r1['lose'], 0, ",", " ") . $vid4 ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="150"><b>Íè÷üèõ:</b></td>
|
||||
<td><?= number_format($r1['nich'], 0, ",", " ") . $vid5 ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><b><font color=#A00>Ñòàòèñòèêà âîéí:</font></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="150"><b>Òåêóùèå âîéíû:</b></td>
|
||||
<td><span><?php echo $clwe; ?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="150"><b>Ïîáåä:</b></td>
|
||||
<td><span><?php echo $clanw; ?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="150"><b>Ïîðàæåíèé:</b></td>
|
||||
<td><span><?php echo $clanl; ?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="150"><b>Îæèäàåìûé ðåéòèíã:</b></td>
|
||||
<td><span><?php echo ($clanw - $clanl) * 10000; ?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="150"><b>Äàòà ðåãèñòðàöèè:</b></td>
|
||||
<td><span title="Äàòà ðåãèñòðàöèè êëàíà"><?= date('d.m.Y', $clan['time_reg']) ?></span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</td>
|
||||
<td width="400" align="left" valign="top">
|
||||
<div style="width:390px;display: block;">
|
||||
<fieldset id="clansostav" style="width:390px; border: 1px solid white; display: block; clear:right; float: right; padding: 10px;margin-top:15px;">
|
||||
<fieldset id="clansostav"
|
||||
style="width:390px; border: 1px solid white; display: block; clear:right; float: right; padding: 10px;margin-top:15px;">
|
||||
<legend style='font-weight:bold; color:#8F0000;'>Ñîñòàâ</legend>
|
||||
|
||||
<?
|
||||
$sp = mysql_query('SELECT * FROM `users` WHERE `clan` = "'.$clan['id'].'" AND `clan_prava` = "glava" ORDER BY `login` ASC');
|
||||
<?php
|
||||
$sp = mysql_query(
|
||||
'SELECT * FROM `users` WHERE `clan` = "' . $clan['id'] . '" AND `clan_prava` = "glava" ORDER BY `login` ASC'
|
||||
);
|
||||
$html = '';
|
||||
while ($pl = mysql_fetch_array($sp)) {
|
||||
if ($pl['online'] < time() - 520) {
|
||||
@ -228,7 +311,10 @@ define('UPPERCASE',1);
|
||||
|
||||
$html .= '<br>';
|
||||
|
||||
$sp = mysql_query('SELECT * FROM `users` WHERE `clan` = "'.$clan['id'].'" AND `clan_prava` != "glava" AND `online` > "'.(time()-520).'" ORDER BY `login` ASC');
|
||||
$sp = mysql_query(
|
||||
'SELECT * FROM `users` WHERE `clan` = "' . $clan['id'] . '" AND `clan_prava` != "glava" AND `online` > "' . (time(
|
||||
) - 520) . '" ORDER BY `login` ASC'
|
||||
);
|
||||
while ($pl = mysql_fetch_array($sp)) {
|
||||
$html .= '<div>';
|
||||
$html .= '<img src="https://img.new-combats.com/i/align/align' . $pl['align'] . '.gif"> ';
|
||||
@ -241,7 +327,10 @@ define('UPPERCASE',1);
|
||||
$html .= ' <small>- ' . $pl['mod_zvanie'] . '</small>';
|
||||
$html .= '</div>';
|
||||
}
|
||||
$sp = mysql_query('SELECT * FROM `users` WHERE `clan` = "'.$clan['id'].'" AND `clan_prava` != "glava" AND `online` <= "'.(time()-520).'" ORDER BY `login` ASC');
|
||||
$sp = mysql_query(
|
||||
'SELECT * FROM `users` WHERE `clan` = "' . $clan['id'] . '" AND `clan_prava` != "glava" AND `online` <= "' . (time(
|
||||
) - 520) . '" ORDER BY `login` ASC'
|
||||
);
|
||||
while ($pl = mysql_fetch_array($sp)) {
|
||||
$html .= '<div style="color:grey">';
|
||||
$html .= '<img src="https://img.new-combats.com/i/align/align' . $pl['align'] . '.gif"> ';
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?
|
||||
include('_incl_data/__config.php');
|
||||
require_once('_incl_data/__config.php');
|
||||
?>
|
||||
<HTML><HEAD>
|
||||
<link rel=stylesheet type="text/css" href="https://img.new-combats.com/css/main.css">
|
||||
|
@ -4,7 +4,8 @@
|
||||
<meta charset="windows-1251">
|
||||
<title>Íîâûé «Áîéöîâñêèé Êëóá» - ëåãåíäàðíàÿ áðàóçåðíàÿ îíëàéí èãðà</title>
|
||||
<meta name="description" content="Áðàóçåðíàÿ èãðà ñòàðûé ÁÊ. Ñòàðûé Áîéöîâñêèé Êëóá. Íîâûé Áîéöîâñêèé Êëóá."/>
|
||||
<meta name="keywords" content="Бойцовский клуб играть, бойцовский клуб, Combats.com, старый бойцовский клуб, игра бойцовский клуб, играть в комбатс, комбатс, браузерная онлайн игра, Acombats, старый БК, играть в старый БК, oldcombats, онлайн мир, маг, likebk, Comabts, legbk, acomabts.com, гайд крит, гайд уворот, гайд танк, гайд крит"/>
|
||||
<meta name="keywords"
|
||||
content="Áîéöîâñêèé êëóá èãðàòü, áîéöîâñêèé êëóá, Combats.com, ñòàðûé áîéöîâñêèé êëóá, èãðà áîéöîâñêèé êëóá, èãðàòü â êîìáàòñ, êîìáàòñ, áðàóçåðíàÿ îíëàéí èãðà, Acombats, ñòàðûé ÁÊ, èãðàòü â ñòàðûé ÁÊ, oldcombats, îíëàéí ìèð, ìàã, likebk, Comabts, legbk, acomabts.com, ãàéä êðèò, ãàéä óâîðîò, ãàéä òàíê, ãàéä êðèò"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0"/>
|
||||
<meta http-equiv="Cache-Control" content="max-age=3600"/>
|
||||
<meta name="msapplication-config" content="browserconfig.xml"/>
|
||||
@ -12,30 +13,31 @@
|
||||
<!-- capcha google counter -->
|
||||
</head>
|
||||
<body>
|
||||
<div class="page-background"><img class="img1" src="werhr.jpg" alt="Старый бойцовский клуб играть и общаться вместе с нами new-combats.com">
|
||||
<div align="center">
|
||||
<div class="page-background">
|
||||
<img class="img1" src="werhr.jpg" alt="Ñòàðûé áîéöîâñêèé êëóá èãðàòü è îáùàòüñÿ âìåñòå ñ íàìè new-combats.com">
|
||||
<div style="text-align: center; margin-bottom: 50px;">
|
||||
<a href='/news' target="_blank">Íîâîñòè ïðîåêòà</a>
|
||||
<a href='/repass'>Âîññòàíîâëåíèå ïàðîëÿ</a>
|
||||
<a href='/register'>Ðåãèñòðàöèÿ â èãðå</a>
|
||||
<a href='/forum' target="_blank">Ôîðóì ïðîåêòà</a>
|
||||
<a href="/rating_pers" target="_blank">Ðåéòèíã ïåðñîíàæåé</a>
|
||||
<a href="/rating_clans" target="_blank">Ðåéòèíã êëàíîâ</a>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
</div>
|
||||
<h1>Êîíòàêòû</h1>
|
||||
|
||||
<p align="center">Контактная информация <br>
|
||||
<div style="text-align: center; margin-bottom: 50px;">
|
||||
Êîíòàêòíàÿ èíôîðìàöèÿ <br>
|
||||
Ìû ðàñïîëîæåíû ïî àäðåñó: ã. Ìîñêâà, óë. Íàó÷íûé ïðîåçä ä.8 ñòð.1 <br>
|
||||
Äëÿ ñâÿçè: +79107779911 <br>
|
||||
График работы: ПН-ПТ 10:00 – 18:00, СБ-ВС - выходной<strong></p><br><br><br>
|
||||
<div align="center">
|
||||
Ãðàôèê ðàáîòû: ÏÍ-ÏÒ 10:00 – 18:00, ÑÁ-ÂÑ - âûõîäíîé
|
||||
</div>
|
||||
<div style="text-align: center; font-weight: bold;">
|
||||
<a href="/encicl/law2.html" target="_blank">Ïîëüçîâàòåëüñêîå Ñîãëàøåíèå</a>
|
||||
<a href="/encicl/law3.html" target="_blank">Ïîëèòèêà Êîíôèåäåíöàëüíîñòè</a>
|
||||
<a href="/encicl/law4.html" target="_blank">Ïóáëè÷íûé äîãîâîð îôåðòû</a>
|
||||
<a href="/support/index.php" target="_blank">Ïîääåðæêà</a>
|
||||
<a href="/support/index.php" target="_blank">Êîíòàêòû</a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,62 +1,32 @@
|
||||
<?php
|
||||
define('GAME',true);
|
||||
setlocale(LC_CTYPE ,"ru_RU.CP1251");
|
||||
include('/home/newcom1/public_html/_incl_data/__config.php');
|
||||
const GAME = true;
|
||||
include('/home/newcom1/public_html/_incl_data/class/__db_connect.php');
|
||||
include('/home/newcom1/public_html/_incl_data/class/__user.php');
|
||||
//11. ÷èñòêà è ñáðîñ ñ÷åò÷èêîâ ïðè îòñóòñòâèè áîåâ ÷òîá íå ëàìàëñß ëîã
|
||||
$test = 0;
|
||||
while( $test == 0 )
|
||||
{
|
||||
while ($test == 0) {
|
||||
|
||||
$tbtl=mysql_fetch_array(mysql_query('SELECT * FROM `battle` WHERE `team_win`=-1 ORDER BY `id` ASC LIMIT 1'));
|
||||
$tbtl = mysql_fetch_array(mysql_query('SELECT * FROM `battle` WHERE `team_win`=-1 ORDER BY `id` LIMIT 1'));
|
||||
echo "<EFBFBD>îé: ";
|
||||
echo $tbtl['id'] . "<br>";
|
||||
if (isset($tbtl['id']))
|
||||
{
|
||||
if (isset($tbtl['id'])) {
|
||||
sleep(2);
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
mysql_query('UPDATE `users` SET `battle` = 0 WHERE `battle` > 0');
|
||||
mysql_query('LOCK TABLES `battle_act` WRITE,`battle_end` WRITE,`battle_last` WRITE,`battle_out` WRITE,`battle_stat` WRITE,`battle_users` WRITE,`battle` WRITE,`battle_logs` WRITE,`battle_logs_save` WRITE,`zayvki` WRITE');
|
||||
|
||||
mysql_query(
|
||||
'LOCK TABLES `battle_act` WRITE,`battle_end` WRITE,`battle_last` WRITE,`battle_out` WRITE,`battle_stat` WRITE,`battle_users` WRITE,`battle` WRITE,`battle_logs` WRITE,`battle_logs_save` WRITE,`zayvki` WRITE'
|
||||
);
|
||||
mysql_query('TRUNCATE TABLE `battle_act`');
|
||||
//mysql_query('OPTIMIZE TABLE `battle_act`');
|
||||
|
||||
mysql_query('TRUNCATE TABLE `battle_end`');
|
||||
//mysql_query('OPTIMIZE TABLE `battle_end`');
|
||||
|
||||
mysql_query('TRUNCATE TABLE `battle_last`');
|
||||
//mysql_query('OPTIMIZE TABLE `battle_last`');
|
||||
|
||||
mysql_query('TRUNCATE TABLE `battle_out`');
|
||||
//mysql_query('OPTIMIZE TABLE `battle_out`');
|
||||
|
||||
mysql_query('TRUNCATE TABLE `battle_stat`');
|
||||
//mysql_query('OPTIMIZE TABLE `battle_stat`');
|
||||
|
||||
mysql_query('TRUNCATE TABLE `battle_users`');
|
||||
//mysql_query('OPTIMIZE TABLE `battle_users`');
|
||||
|
||||
mysql_query('TRUNCATE TABLE `battle`');
|
||||
//mysql_query('OPTIMIZE TABLE `battle`');
|
||||
|
||||
|
||||
mysql_query('TRUNCATE TABLE `battle_logs`');
|
||||
//mysql_query('OPTIMIZE TABLE `battle_logs`');
|
||||
|
||||
mysql_query('TRUNCATE TABLE `battle_logs_save`');
|
||||
//mysql_query('OPTIMIZE TABLE `battle_logs_save`');
|
||||
|
||||
mysql_query('TRUNCATE TABLE `zayvki`');
|
||||
//mysql_query('OPTIMIZE TABLE `zayvki`');
|
||||
|
||||
mysql_query('UNLOCK TABLES');
|
||||
|
||||
$test = 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -1,10 +1,7 @@
|
||||
<?php
|
||||
|
||||
define('GAME',true);
|
||||
setlocale(LC_CTYPE ,"ru_RU.CP1251");
|
||||
include('/home/newcom1/public_html/_incl_data/__config.php');
|
||||
const GAME = true;
|
||||
include('/home/newcom1/public_html/_incl_data/class/__db_connect.php');
|
||||
include('/home/newcom1/public_html/_incl_data/class/__user.php');
|
||||
|
||||
/*
|
||||
|
||||
@ -33,12 +30,10 @@ while( $pl = mysql_fetch_array($sp) ) {
|
||||
{
|
||||
mysql_query('UPDATE `battle` SET `timeout` = "60" WHERE `id` = "'.$pl['id'].'" LIMIT 1');
|
||||
}
|
||||
elseif ($test['count'] >= 8 && $test['count'] < 12)
|
||||
elseif ($test['count'] < 12)
|
||||
{
|
||||
mysql_query('UPDATE `battle` SET `timeout` = "120" WHERE `id` = "'.$pl['id'].'" LIMIT 1');
|
||||
}
|
||||
elseif ($test['count'] >= 12)
|
||||
{
|
||||
} else {
|
||||
mysql_query('UPDATE `battle` SET `timeout` = "180" WHERE `id` = "' . $pl['id'] . '" LIMIT 1');
|
||||
}
|
||||
|
||||
@ -47,7 +42,6 @@ while( $pl = mysql_fetch_array($sp) ) {
|
||||
// batle cache
|
||||
|
||||
mysql_query('DELETE FROM `battle_cache` WHERE `time` < "'.(time()-3600).'"');
|
||||
//mysql_query('OPTIMIZE TABLE `battle_cache`');
|
||||
|
||||
//âûòàñêèâàåì ïåðñîâ èç ïðèç õàîòà åñëè çàñòðßëè (1-5 ìèíóò îêîí÷àíèå)
|
||||
$sp = mysql_fetch_array(mysql_query('SELECT * FROM `battle` WHERE `type` = 33 AND `time_over` < "'.(time()-120).'" AND `time_over` > "'.(time() - 360).'" AND `time_over` != 0 ORDER BY `battle`.`time_over` DESC LIMIT 1'));
|
||||
@ -84,4 +78,3 @@ while( $pl = mysql_fetch_array($sps))
|
||||
//÷èñòèì ïàìßòü
|
||||
unset($sp,$sps,$pl,$test);
|
||||
|
||||
?>
|
||||
|
@ -1,9 +1,6 @@
|
||||
<?php
|
||||
define('GAME',true);
|
||||
setlocale(LC_CTYPE ,"ru_RU.CP1251");
|
||||
include('/home/newcom1/public_html/_incl_data/__config.php');
|
||||
const GAME = true;
|
||||
include('/home/newcom1/public_html/_incl_data/class/__db_connect.php');
|
||||
include('/home/newcom1/public_html/_incl_data/class/__user.php');
|
||||
|
||||
/*
|
||||
|
||||
@ -127,4 +124,3 @@ mysql_query('DELETE FROM `actions` WHERE `vals`= "loto"');
|
||||
|
||||
mysql_query('DELETE FROM `uploads` WHERE `id` > 0');
|
||||
|
||||
?>
|
||||
|
@ -1,9 +1,6 @@
|
||||
<?php
|
||||
define('GAME',true);
|
||||
setlocale(LC_CTYPE ,"ru_RU.CP1251");
|
||||
include('/home/newcom1/public_html/_incl_data/__config.php');
|
||||
const GAME = true;
|
||||
include('/home/newcom1/public_html/_incl_data/class/__db_connect.php');
|
||||
include('/home/newcom1/public_html/_incl_data/class/__user.php');
|
||||
|
||||
if( isset($_GET['actions']) ) {
|
||||
//
|
||||
|
@ -4,7 +4,6 @@
|
||||
* Åñëè ïðåäìåò âèñèò óæå 2 è áîëåå íåäåëü, ïðîäàâàòü ïðåäìåò çà 50% îò åãî ñòîèìîñòè ñ ó÷åòîì èçíîñà.
|
||||
* Äåíüãè îòñûëàþòñÿ íà ïî÷òó.
|
||||
* @var PDO $pdo
|
||||
* @var user $u
|
||||
* @author Insallah
|
||||
*/
|
||||
const GAME = true;
|
||||
@ -14,7 +13,7 @@ const SHOP_TYPE = 'Shop.comission';
|
||||
setlocale(LC_CTYPE, "ru_RU.CP1251");
|
||||
include('/home/newcom1/public_html/_incl_data/__config.php');
|
||||
include('/home/newcom1/public_html/_incl_data/class/__db_connect.php');
|
||||
include('/home/newcom1/public_html/_incl_data/class/__user.php');
|
||||
$u = User::start();
|
||||
|
||||
$q = 'select items_main.id, uid, inGroup, item_id, price1, name from items_users left join items_main on items_main.id = item_id where inShop = 30 and `delete` = 0';
|
||||
foreach ($pdo->query($q) as $row) {
|
||||
|
@ -3,7 +3,6 @@ define('GAME',true);
|
||||
setlocale(LC_CTYPE ,"ru_RU.CP1251");
|
||||
include('_incl_data/__config.php');
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
include('_incl_data/class/__user.php');
|
||||
|
||||
if( isset($_GET['actions']) ) {
|
||||
//
|
||||
@ -141,7 +140,7 @@ while( $pl = mysql_fetch_array($sp) ) {
|
||||
|
||||
//5. Î÷èñòêà ìîíñòðîâ
|
||||
$i = 0;
|
||||
$sp = mysql_query('SELECT * FROM `users` WHERE `real` = 0 ORDER BY `id` ASC LIMIT 100000');
|
||||
$sp = mysql_query('SELECT * FROM `users` WHERE `real` = 0 ORDER BY `id` LIMIT 100000');
|
||||
while( $pl = mysql_fetch_array($sp) ) {
|
||||
$btl = mysql_fetch_array(mysql_query('SELECT * FROM `battle` WHERE `id` = "'.$pl['battle'].'" LIMIT 1'));
|
||||
$clon = mysql_fetch_array(mysql_query('SELECT `id` FROM `users` WHERE `inUser` = "'.$pl['id'].'" LIMIT 1'));
|
||||
@ -159,9 +158,3 @@ mysql_query('DELETE FROM `items_users` WHERE `delete` > `time_create` AND `delet
|
||||
|
||||
//6. Î÷èñòêà ëè÷íîãî äåëà
|
||||
mysql_query('DELETE FROM `users_delo` WHERE `time` < "'.(time()-86400*30).'" LIMIT 10000');
|
||||
|
||||
//echo '<div>Î÷èùåíî áîòîâ\ìîíñòðîâ: '.$i.'/'.$x.'</div>';
|
||||
/*if( $i > 0 ) {
|
||||
die('<script>function test(){ top.location = top.location; } setTimeout("test()",1000);</script>');
|
||||
}*/
|
||||
?>
|
@ -1,39 +1,18 @@
|
||||
<?php
|
||||
|
||||
define('GAME',true);
|
||||
const GAME = true;
|
||||
setlocale(LC_CTYPE ,"ru_RU.CP1251");
|
||||
include('/home/newcom1/public_html/_incl_data/__config.php');
|
||||
include('/home/newcom1/public_html/_incl_data/class/__db_connect.php');
|
||||
include('/home/newcom1/public_html/_incl_data/class/__user.php');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$sp = mysql_query('SELECT * FROM `stats` WHERE `priemslot` > 10');
|
||||
while( $pl = mysql_fetch_array($sp) ) {
|
||||
$test = mysql_fetch_array(mysql_query('SELECT * FROM `rep` WHERE `id` = "'.$pl['id'].'" LIMIT 1'));
|
||||
$userst = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `id` = "'.$pl['id'].'" LIMIT 1'));
|
||||
if($test['add_slot']>0)
|
||||
{
|
||||
|
||||
// echo "íèê:".$userst['login']." êîëè÷åñòâî ñëîòîâ:".$pl['priemslot']." êîëè÷åñòâî äîáàâëåííûõ ñ ïîäçåìêè ñëîòîâ:".$test['add_slot']."<br>";
|
||||
|
||||
}
|
||||
$kolvo = mysql_fetch_array(mysql_query('SELECT COUNT(*) FROM `actions` WHERE `uid` ="'.$pl['id'].'" AND `vars` ="read"'));
|
||||
|
||||
$overtop=$pl['priemslot']-10-$test['add_slot']-($kolvo['COUNT(*)']+1);
|
||||
|
||||
$overtopkorrect=$pl['priemslot']-10-$test['add_slot'];
|
||||
|
||||
if($overtop>8)
|
||||
{
|
||||
$prevish = $overtop -8;
|
||||
} else {$prevish =0;}
|
||||
|
||||
$prevish = $overtop > 8 ? $overtop - 8 : 0;
|
||||
if ($overtopkorrect>8){$overtopkorrect=8;}
|
||||
|
||||
$resultslot= 10 + $test['add_slot'] + $overtopkorrect;
|
||||
if($overtop>0)
|
||||
{
|
||||
@ -41,7 +20,6 @@ while( $pl = mysql_fetch_array($sp) ) {
|
||||
echo "íà÷àëî!!! íèê:".$userst['login']." êîëè÷åñòâî ñëîòîâ:".$pl['priemslot']." äîëæíî áûòü:".$resultslot." êîëè÷åñòâî äîáàâëåííûõ ñ ïîäçåìêè ñëîòîâ:".$test['add_slot']." êîëè÷åñòâî ïðî÷èòàíûõ êíèã:".$kolvo['COUNT(*)']." ðåçóëüòàò:".$overtop." ïðåâûøåíèå:".$prevish." íóæíî ïðî÷èòàòü:".$overtopkorrect."<br>";
|
||||
|
||||
mysql_query('UPDATE `stats` SET `priemslot` = "'.$resultslot.'" WHERE `id` = "'.$pl['id'].'"');
|
||||
// mysql_query('UPDATE `stats` SET `priemslot` = "'.$resultslot.'" WHERE `id` = "'.$pl['id'].'"');
|
||||
mysql_query('DELETE FROM `actions` WHERE `uid` = "'.$pl['id'].'" AND `vars` = "read" ');
|
||||
|
||||
if($overtopkorrect==5){$overtopkorrect=6;}
|
||||
@ -110,7 +88,3 @@ while( $pl = mysql_fetch_array($sp) ) {
|
||||
echo "ðåçóëüòàò!!! íèê:".$userst['login']." êîëè÷åñòâî ñëîòîâ:".$resultslot." êîëè÷åñòâî äîáàâëåííûõ ñ ïîäçåìêè ñëîòîâ:".$test['add_slot']." êîëè÷åñòâî ïðî÷èòàíûõ êíèã:".$overtopkorrect."<br>";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
@ -24,8 +24,8 @@ if(getIP() != $_SERVER['SERVER_ADDR'] && getIP() != '127.0.0.1' && getIP() != ''
|
||||
|
||||
define('GAME',true);
|
||||
|
||||
include('_incl_data/__config.php');
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
require_once('_incl_data/__config.php');
|
||||
require_once('_incl_data/class/__db_connect.php');
|
||||
|
||||
function e($t) {
|
||||
mysql_query('INSERT INTO `chat` (`text`,`city`,`to`,`type`,`new`,`time`) VALUES ("core #'.date('d.m.Y').' %'.date('H:i:s').' (Êðèòè÷åñêàÿ îøèáêà): <b>'.mysql_real_escape_string($t).'</b>","capitalcity","LEL","6","1","-1")');
|
||||
|
@ -1,44 +1,46 @@
|
||||
<?php
|
||||
|
||||
//die('×òî-òî òóò íå òàê...');
|
||||
|
||||
function getIP() {
|
||||
if(isset($_SERVER['HTTP_X_REAL_IP'])) return $_SERVER['HTTP_X_REAL_IP'];
|
||||
return $_SERVER['REMOTE_ADDR'];
|
||||
function getIP()
|
||||
{
|
||||
return getIPblock();
|
||||
}
|
||||
|
||||
# Ïîëó÷àåì IP
|
||||
function getIPblock() {
|
||||
if(isset($_SERVER['HTTP_X_REAL_IP'])) return $_SERVER['HTTP_X_REAL_IP'];
|
||||
return $_SERVER['REMOTE_ADDR'];
|
||||
function getIPblock()
|
||||
{
|
||||
return isset($_SERVER['HTTP_X_REAL_IP']) ? $_SERVER['HTTP_X_REAL_IP'] : $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
|
||||
# Âûïîëíÿåì ïðîâåðêó áåçîïàñíîñòè.
|
||||
|
||||
//if( $_SERVER['HTTP_CF_CONNECTING_IP'] != $_SERVER['SERVER_ADDR'] && $_SERVER['HTTP_CF_CONNECTING_IP'] != '127.0.0.1' ) { die('Hello pussy!'); }
|
||||
if(getIPblock() != $_SERVER['SERVER_ADDR'] && getIPblock() != '127.0.0.1' && getIPblock() != '' && getIPblock() != '31.131.97.206') {
|
||||
if (getIPblock() != $_SERVER['SERVER_ADDR'] && getIPblock() != '127.0.0.1' && getIPblock() != '' && getIPblock(
|
||||
) != '31.131.97.206') {
|
||||
die(getIPblock() . '<br>' . $_SERVER['SERVER_ADDR']);
|
||||
}
|
||||
|
||||
define('GAME',true);
|
||||
const GAME = true;
|
||||
|
||||
include('_incl_data/__config.php');
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
include('_incl_data/class/__user.php');
|
||||
$u = User::start();
|
||||
|
||||
function e($t) {
|
||||
mysql_query('INSERT INTO `chat` (`text`,`city`,`to`,`type`,`new`,`time`) VALUES ("core #'.date('d.m.Y').' %'.date('H:i:s').' (Êðèòè÷åñêàÿ îøèáêà): <b>'.mysql_real_escape_string($t).'</b>","capitalcity","LEL","6","1","-1")');
|
||||
}
|
||||
|
||||
$sp = mysql_query('SELECT `u`.*,`s`.*,`u`.`id`,`s`.`id` FROM `users` AS `u` LEFT JOIN `stats` AS `s` ON ( `s`.`id` = `u`.`id` AND `s`.`bot` = 0 ) WHERE `login` = "Crowley"');
|
||||
$sp = mysql_query(
|
||||
'SELECT `u`.*,`s`.*,`u`.`id`,`s`.`id` FROM `users` AS `u` LEFT JOIN `stats` AS `s` ON ( `s`.`id` = `u`.`id` AND `s`.`bot` = 0 ) WHERE `login` = "Crowley"'
|
||||
);
|
||||
while ($pl = mysql_fetch_array($sp)) {
|
||||
if ($pl['inUser'] > 0 && $pl['inTurnir'] > 0) {
|
||||
$txt = '<font color=red>Âíèìàíèå!</font><b><font color=darkgreen><u>Âñå ïîäçåìåëüÿ çàêðûòû, íà÷èíàåòñÿ ìÿñîðóáêà!</u></font></b>';
|
||||
mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`typeTime`) VALUES (1,'".$u->info['city']."','".$u->info['room']."','','','".$txt."','".time()."','6','0','1')");
|
||||
mysql_query(
|
||||
"INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`typeTime`) VALUES (1,'" . $u->info['city'] . "','" . $u->info['room'] . "','','','" . $txt . "','" . time(
|
||||
) . "','6','0','1')"
|
||||
);
|
||||
}
|
||||
if ($pl['dnow'] > 0) {
|
||||
//ñîõðàíÿåì êîîðäèíàòû è ïåùåðó â êîòîðîé áûë äî ìÿñîðóáêè
|
||||
mysql_query('INSERT INTO `save_dungeon` (`x`,`y`,`dnow`,`time`,`uid`) VALUES ("'.$pl['x'].'","'.$pl['y'].'","'.$pl['dnow'].'","'.time().'","'.$pl['id'].'")');
|
||||
mysql_query(
|
||||
'INSERT INTO `save_dungeon` (`x`,`y`,`dnow`,`time`,`uid`) VALUES ("' . $pl['x'] . '","' . $pl['y'] . '","' . $pl['dnow'] . '","' . time(
|
||||
) . '","' . $pl['id'] . '")'
|
||||
);
|
||||
//
|
||||
mysql_query('UPDATE `stats` SET `dnow` = "0" WHERE `id` = "' . $pl['id'] . '"');
|
||||
mysql_query('UPDATE `users` SET `room` = "9",`battle` = "0" WHERE `id` = "' . $pl['id'] . '"');
|
||||
@ -46,7 +48,9 @@ $sp = mysql_query('SELECT `u`.*,`s`.*,`u`.`id`,`s`.`id` FROM `users` AS `u` LEFT
|
||||
mysql_query('DELETE FROM `eff_users` WHERE `uid` = "' . $pl['id'] . '" AND `v1` = "priem" AND `delete` = "0"');
|
||||
mysql_query('DELETE FROM `battle` WHERE `id` = "' . $pl['battle'] . '"');
|
||||
mysql_query('DELETE FROM `battle_act` WHERE `battle` = "' . $pl['battle'] . '"');
|
||||
mysql_query('DELETE FROM `battle_actions` WHERE `btl` = "'.$pl['battle'].'" AND `uid` = "'.$pl['id'].'"');
|
||||
mysql_query(
|
||||
'DELETE FROM `battle_actions` WHERE `btl` = "' . $pl['battle'] . '" AND `uid` = "' . $pl['id'] . '"'
|
||||
);
|
||||
mysql_query('DELETE FROM `battle_end` WHERE `battle_id` = "' . $pl['battle'] . '"');
|
||||
mysql_query('DELETE FROM `battle_last` WHERE `battle_id` = "' . $pl['battle'] . '"');
|
||||
mysql_query('DELETE FROM `battle_logs` WHERE `battle` = "' . $pl['battle'] . '"');
|
||||
@ -55,7 +59,9 @@ $sp = mysql_query('SELECT `u`.*,`s`.*,`u`.`id`,`s`.`id` FROM `users` AS `u` LEFT
|
||||
mysql_query('DELETE FROM `battle_users` WHERE `battle` = "' . $pl['battle'] . '"');
|
||||
} else {
|
||||
$txt = '<font color=red><b>Âíèìàíèå!</b></font><font color=darkgreen><b> Âñå ïîäçåìåëüÿ çàêðûòû ñ 22:00 äî 00:00! Ïîëó÷àåìûé îïûò íà Öåíòðàëüíîé ïëîùàäè +100%, â Õàîòè÷íûõ ïîåäèíêàõ, ïîáåäèòåëåé æäåò õîðîøàÿ íàãðàäà!';
|
||||
mysql_query("INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`typeTime`) VALUES (1,'".$pl['city']."','','','','".$txt."','".time()."','6','0','1')");
|
||||
mysql_query(
|
||||
"INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`typeTime`) VALUES (1,'" . $pl['city'] . "','','','','" . $txt . "','" . time(
|
||||
) . "','6','0','1')"
|
||||
);
|
||||
}
|
||||
}
|
||||
?>
|
@ -1,40 +0,0 @@
|
||||
<?php
|
||||
|
||||
die();
|
||||
|
||||
function getIP() {
|
||||
if(isset($_SERVER['HTTP_X_REAL_IP'])) return $_SERVER['HTTP_X_REAL_IP'];
|
||||
return $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
|
||||
if(!isset($_GET['test'])) {
|
||||
if( $_SERVER['HTTP_CF_CONNECTING_IP'] != $_SERVER['SERVER_ADDR'] && $_SERVER['HTTP_CF_CONNECTING_IP'] != '127.0.0.1' ) { die('Hello pussy!'); }
|
||||
if(getIP() != $_SERVER['SERVER_ADDR'] && getIP() != '127.0.0.1' && getIP() != '' && getIP() != '5.187.7.71') {
|
||||
die(getIP().'<br>'.$_SERVER['SERVER_ADDR']);
|
||||
}
|
||||
}
|
||||
|
||||
define('GAME',true);
|
||||
setlocale(LC_CTYPE ,"ru_RU.CP1251");
|
||||
include('_incl_data/__config.php');
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
include('_incl_data/class/__user.php');
|
||||
include('_incl_data/class/__magic.php');
|
||||
|
||||
//Ïîäàåì òóðíèð äëÿ 2-3 óðîâíåé
|
||||
$inc = mysql_query('INSERT INTO `zayvki` (
|
||||
`comment`,`noatack`,`city`,`creator`,`type`,`time_start`,`timeout`,`min_lvl_1`,`min_lvl_2`,`max_lvl_1`,`max_lvl_2`,`noinc`,`razdel`,`time`,`fastfight`,`maxplayers`
|
||||
) VALUES
|
||||
|
||||
( "<i><font color=green>Àâòîçàÿâêà! </b>(Áåç ÅÊÐ)<b></font></i>","1","capitalcity","0","51","300","120","8","8","8","8","1","5","'.time().'","0","30" ),
|
||||
( "<i><font color=green>Àâòîçàÿâêà! </b>(Áåç ÅÊÐ)<b></font></i>","1","capitalcity","0","51","300","120","8","8","21","21","1","5","'.time().'","0","30" )
|
||||
|
||||
|
||||
');
|
||||
|
||||
if($inc) {
|
||||
echo 'true';
|
||||
}else{
|
||||
echo 'false';
|
||||
}
|
||||
?>
|
@ -1,64 +1,43 @@
|
||||
<?php
|
||||
/*
|
||||
function getIP() {
|
||||
if(isset($_SERVER['HTTP_X_REAL_IP'])) return $_SERVER['HTTP_X_REAL_IP'];
|
||||
return $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
*/
|
||||
//if( $_SERVER['HTTP_CF_CONNECTING_IP'] != $_SERVER['SERVER_ADDR']) { die('<center><br><h3>Òàê íå ïîéäåò;)</h3><img src="i/fack.jpg">'); }
|
||||
/*
|
||||
if(getIP() != $_SERVER['SERVER_ADDR'] && getIP() != '127.0.0.1' && getIP() != '' && getIP() != '31.131.97.206' && !isset($_GET['robot'])) {
|
||||
die(getIP().'<br>'.$_SERVER['SERVER_ADDR']);
|
||||
}
|
||||
*/
|
||||
|
||||
error_reporting(0);
|
||||
ini_set('display_errors', 'Off');
|
||||
|
||||
define('GAME',true);
|
||||
const GAME = true;
|
||||
|
||||
setlocale(LC_CTYPE, "ru_RU.CP1251");
|
||||
|
||||
include('_incl_data/__config.php');
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
include('_incl_data/class/__user.php');
|
||||
include('_incl_data/class/bot.priem.php');
|
||||
include('_incl_data/class/bot.logic.php');
|
||||
|
||||
|
||||
|
||||
function e($t) {
|
||||
mysql_query('INSERT INTO `chat` (`text`,`city`,`to`,`type`,`new`,`time`) VALUES ("core #'.date('d.m.Y').' %'.date('H:i:s').' (Êðèòè÷åñêàÿ îøèáêà): <b>'.mysql_real_escape_string($t).'</b>","capitalcity","Àðáèäîë","6","1","-1")');
|
||||
}
|
||||
|
||||
function inuser_go_btl($id) {
|
||||
function inuser_go_btl($id)
|
||||
{
|
||||
if (isset($id['id'])) {
|
||||
echo '[go]';
|
||||
echo file_get_contents('https://new-combats.com/jx/battle/refresh.php?uid='.$id['id'].'&cron_core='.md5($id['id'].'_brfCOreW@!_'.$id['pass']).'&pass='.$id['pass']);
|
||||
echo file_get_contents(
|
||||
'https://new-combats.com/jx/battle/refresh.php?uid=' . $id['id'] . '&cron_core=' . md5(
|
||||
$id['id'] . '_brfCOreW@!_' . $id['pass']
|
||||
) . '&pass=' . $id['pass']
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/*$sp = mysql_query('SELECT `id` FROM `users` WHERE `host_reg` = "real_bot_user" AND `login` != "delete" AND `banned` = "0" ORDER BY `online` DESC LIMIT 300');
|
||||
while($pl = mysql_fetch_array($sp)) {
|
||||
botLogic::start( $pl['id'] );
|
||||
}*/
|
||||
//$sp = mysql_query('SELECT `u`.* , `s`.* FROM `stats` AS `s` LEFT JOIN `users` AS `u` ON `u`.`id` = `s`.`id` WHERE ( /*( `s`.`bot` > 0 AND `u`.`battle` > 0 ) OR*/ `u`.`pass` = "saintlucia" ) ORDER BY `s`.`nextAct` ASC LIMIT 20');
|
||||
$ii = 0;
|
||||
while ($ii<6)
|
||||
{
|
||||
$count = array(
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
while ($ii < 6) {
|
||||
$count = [0, 0, 0, 0, 0, 0];
|
||||
$sp = mysql_query(
|
||||
'SELECT `u`.* , `s`.* FROM `stats` AS `s` LEFT JOIN `users` AS `u` ON `u`.`id` = `s`.`id` WHERE `u`.`pass` = "saintlucia" OR `u`.`no_ip` = "trupojor" ORDER BY `s`.`nextAct` ASC LIMIT 100'
|
||||
);
|
||||
$sp = mysql_query('SELECT `u`.* , `s`.* FROM `stats` AS `s` LEFT JOIN `users` AS `u` ON `u`.`id` = `s`.`id` WHERE `u`.`pass` = "saintlucia" OR `u`.`no_ip` = "trupojor" ORDER BY `s`.`nextAct` ASC LIMIT 100');
|
||||
$btltest = array(); $btl_ref = array();
|
||||
$btltest = [];
|
||||
$btl_ref = [];
|
||||
while ($pl = mysql_fetch_array($sp)) {
|
||||
$i++;
|
||||
if ($pl['zv'] > 0) {
|
||||
$zv = mysql_fetch_array(mysql_query('SELECT `id`,`time`,`razdel` FROM `zayvki` WHERE `id` = "'.$pl['zv'].'" AND `btl_id` = 0 LIMIT 1'));
|
||||
$zv = mysql_fetch_array(
|
||||
mysql_query(
|
||||
'SELECT `id`,`time`,`razdel` FROM `zayvki` WHERE `id` = "' . $pl['zv'] . '" AND `btl_id` = 0 LIMIT 1'
|
||||
)
|
||||
);
|
||||
if (!isset($zv['id']) || $zv['razdel'] != 5) {
|
||||
$pl['zv'] = 0;
|
||||
mysql_query('UPDATE `stats` SET `zv` = "0" WHERE `id` = "' . $pl['id'] . '" LIMIT 1');
|
||||
@ -70,11 +49,11 @@ while($pl = mysql_fetch_array($sp)) {
|
||||
$pl['battle'] = 0;
|
||||
$pl['ipreg'] = 0;
|
||||
}
|
||||
if( date('i') == 5 || date('i') == 6 || date('i') == 15 || date('i') == 16 || date('i') == 25 || date('i') == 26 || date('i') == 35 || date('i') == 36 || date('i') == 45 ) {
|
||||
if( $pl['zv'] == 0 ) {
|
||||
if ((date('i') == 5 || date('i') == 6 || date('i') == 15 || date('i') == 16 || date('i') == 25 || date(
|
||||
'i'
|
||||
) == 26 || date('i') == 35 || date('i') == 36 || date('i') == 45) && $pl['zv'] == 0) {
|
||||
mysql_query('UPDATE `users` SET `ipreg` = 0 WHERE `id` = "' . $pl['id'] . '" LIMIT 1');
|
||||
}
|
||||
}
|
||||
|
||||
if ((!isset($btltest2[$pl['battle']]) || $btltest2[$pl['battle']] == 0) && $pl['battle'] > 0) {
|
||||
$btltest2[$pl['battle']]++;
|
||||
@ -115,11 +94,12 @@ while($pl = mysql_fetch_array($sp)) {
|
||||
}
|
||||
|
||||
mysql_query('UPDATE `stats` SET `nextAct` = "' . time() . '" WHERE `id` = "' . $pl['id'] . '" LIMIT 1');
|
||||
mysql_query('UPDATE `users` SET `online` = "'.time().'",`afk` = "" WHERE `id` = "'.$pl['id'].'" LIMIT 1');
|
||||
mysql_query(
|
||||
'UPDATE `users` SET `online` = "' . time() . '",`afk` = "" WHERE `id` = "' . $pl['id'] . '" LIMIT 1'
|
||||
);
|
||||
|
||||
botLogic::start( $pl['id'] );
|
||||
BotLogic::start($pl['id']);
|
||||
|
||||
//botLogic::e( $pl['battle'] .' -> '.$btltest[$pl['battle']] );
|
||||
} else {
|
||||
if ($pl['timereg'] == 0) {
|
||||
mysql_query('UPDATE `users` SET `timereg` = "' . time() . '" WHERE `id` = "' . $pl['id'] . '" LIMIT 1');
|
||||
@ -157,4 +137,3 @@ echo 'TEST:'.$ii;
|
||||
unset($btltest, $btl_ref, $btltest2);
|
||||
sleep(4);
|
||||
}
|
||||
?>
|
||||
|
@ -27,9 +27,9 @@ if(getIPblock() != $_SERVER['SERVER_ADDR'] && getIPblock() != '127.0.0.1' && get
|
||||
|
||||
define('GAME',true);
|
||||
setlocale(LC_CTYPE ,"ru_RU.CP1251");
|
||||
include('_incl_data/__config.php');
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
//include('_incl_data/class/__user.php');
|
||||
require_once('_incl_data/__config.php');
|
||||
require_once('_incl_data/class/__db_connect.php');
|
||||
//require_once('_incl_data/class/__user.php');
|
||||
|
||||
function send($text) {
|
||||
return mysql_query('INSERT INTO `chat` (`new`,`type`,`to`,`text`,`time`) VALUES (1,6,"Èãðîìèð","'.$text.'",'.time().')');
|
||||
|
@ -22,10 +22,10 @@ function getIPblock() {
|
||||
define('GAME', true);
|
||||
setlocale(LC_CTYPE ,"ru_RU.CP1251");
|
||||
|
||||
include('_incl_data/__config.php');
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
//include('_incl_data/class/__user.php');
|
||||
//include('_incl_data/class/__dungeon.php');
|
||||
require_once('_incl_data/__config.php');
|
||||
require_once('_incl_data/class/__db_connect.php');
|
||||
//require_once('_incl_data/class/__user.php');
|
||||
//require_once('_incl_data/class/__dungeon.php');
|
||||
|
||||
# çàïóñê ñêðèïòà.
|
||||
function start() {
|
||||
|
@ -3,39 +3,26 @@
|
||||
# ïåðåìåùåíèÿ áîòîâ ïî ïåùåðå
|
||||
# à òàê-æå íàïåäåíèÿ, êîãäà èãðîê ðÿäîì
|
||||
|
||||
# Ïîëó÷àåì IP
|
||||
function getIP() {
|
||||
if(isset($_SERVER['HTTP_X_REAL_IP'])) return $_SERVER['HTTP_X_REAL_IP'];
|
||||
return $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
|
||||
# Âûïîëíÿåì ïðîâåðêó áåçîïàñíîñòè.
|
||||
/*if( $_SERVER['HTTP_CF_CONNECTING_IP'] != $_SERVER['SERVER_ADDR'] && $_SERVER['HTTP_CF_CONNECTING_IP'] != '127.0.0.1' ) { die('Hello pussy!'); }
|
||||
if(getIP() != $_SERVER['SERVER_ADDR'] && getIP() != '127.0.0.1' && getIP() != '' && getIP() != '5.187.7.71') {
|
||||
die(getIP().'<br>'.$_SERVER['SERVER_ADDR']);
|
||||
}*/
|
||||
|
||||
define('GAME', true);
|
||||
const GAME = true;
|
||||
setlocale(LC_CTYPE, "ru_RU.CP1251");
|
||||
|
||||
include('_incl_data/__config.php');
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
include('_incl_data/class/__user.php');
|
||||
//include('_incl_data/class/__dungeon.php');
|
||||
|
||||
function e($t) {
|
||||
mysql_query('INSERT INTO `chat` (`text`,`city`,`to`,`type`,`new`,`time`) VALUES ("core #'.date('d.m.Y').' %'.date('H:i:s').' (Êðèòè÷åñêàÿ îøèáêà): <b>'.mysql_real_escape_string($t).'</b>","capitalcity","LEL","6","1","-1")');
|
||||
}
|
||||
|
||||
# Ñîâåðøàåì äåéñòâèå -> Íàïàäåíèå íà èãðîêà.
|
||||
function botAttack ( $bot, $user ){
|
||||
function botAttack($bot, $user)
|
||||
{
|
||||
if ($user['userBattle'] > 0) {
|
||||
$battleID = mysql_fetch_array(mysql_query('SELECT `id` FROM `battle` WHERE `id` = "'.$user['userBattle'].'" AND `team_win` = "-1" LIMIT 1'));
|
||||
$battleID = mysql_fetch_array(
|
||||
mysql_query(
|
||||
'SELECT `id` FROM `battle` WHERE `id` = "' . $user['userBattle'] . '" AND `team_win` = "-1" LIMIT 1'
|
||||
)
|
||||
);
|
||||
}
|
||||
if (!isset($battleID['id'])) { //Ñîçäàåì ïîåäèíîê
|
||||
$btl_id = 0;
|
||||
$expB = 0;
|
||||
$btl = array('players'=>'', 'timeout'=>180, 'type'=>0, 'invis'=>0, 'noinc'=>0, 'travmChance'=>0, 'typeBattle'=>0, 'addExp'=>$expB, 'money'=>0 );
|
||||
$btl = ['players' => '', 'timeout' => 180, 'type' => 0, 'invis' => 0, 'noinc' => 0, 'travmChance' => 0, 'typeBattle' => 0, 'addExp' => $expB, 'money' => 0];
|
||||
|
||||
$ins = mysql_query(
|
||||
'INSERT INTO `battle`
|
||||
@ -62,14 +49,18 @@ function botAttack ( $bot, $user ){
|
||||
|
||||
if ($btl_id > 0) { //Äîáàâëÿåì áîòîâ
|
||||
$j = 0;
|
||||
$logins_bot = array();
|
||||
mysql_query('UPDATE `dungeon_bots` SET `inBattle` = "'.$btl_id.'" WHERE `id2` = "'.$bot['id2'].'" LIMIT 1');
|
||||
$logins_bot = [];
|
||||
mysql_query(
|
||||
'UPDATE `dungeon_bots` SET `inBattle` = "' . $btl_id . '" WHERE `id2` = "' . $bot['id2'] . '" LIMIT 1'
|
||||
);
|
||||
$jui = 1;
|
||||
while ($jui <= $bot['colvo']) {
|
||||
$k = botAddBattle($bot, $logins_bot);
|
||||
$logins_bot = $k['logins_bot'];
|
||||
if ($k != false) {
|
||||
$upd = mysql_query('UPDATE `users` SET `battle` = "'.$btl_id.'" WHERE `id` = "'.$k['id'].'" LIMIT 1');
|
||||
$upd = mysql_query(
|
||||
'UPDATE `users` SET `battle` = "' . $btl_id . '" WHERE `id` = "' . $k['id'] . '" LIMIT 1'
|
||||
);
|
||||
if ($upd) {
|
||||
$upd = mysql_query('UPDATE `stats` SET `team` = "2" WHERE `id` = "' . $k['id'] . '" LIMIT 1');
|
||||
if ($upd) {
|
||||
@ -81,20 +72,26 @@ function botAttack ( $bot, $user ){
|
||||
}
|
||||
unset($logins_bot);
|
||||
if ($j > 0) {
|
||||
mysql_query('UPDATE `users` SET `battle` = "'.$btl_id.'" WHERE `id` = "'.$user['userId'].'" LIMIT 1');
|
||||
mysql_query(
|
||||
'UPDATE `users` SET `battle` = "' . $btl_id . '" WHERE `id` = "' . $user['userId'] . '" LIMIT 1'
|
||||
);
|
||||
mysql_query('UPDATE `stats` SET `team` = "1" WHERE `id` = "' . $user['userId'] . '" LIMIT 1');
|
||||
}
|
||||
}
|
||||
} else { # Âìåøèâàåìñÿ â ïîåäèíîê.
|
||||
$j = 0;
|
||||
$logins_bot = array();
|
||||
$logins_bot_text =array();
|
||||
$logins_bot_vars =array('time1='.time().'');
|
||||
$logins_bot_inBattle = mysql_query('SELECT SUBSTRING_INDEX(`login`, " (", 1) as login2, count(`login`) as count, `login` FROM `battle_users` WHERE `battle` = "'.$battleID['id'].'" AND `team`=2 GROUP BY `login2`');
|
||||
$logins_bot = [];
|
||||
$logins_bot_text = [];
|
||||
$logins_bot_vars = ['time1=' . time() . ''];
|
||||
$logins_bot_inBattle = mysql_query(
|
||||
'SELECT SUBSTRING_INDEX(`login`, " (", 1) as login2, count(`login`) as count, `login` FROM `battle_users` WHERE `battle` = "' . $battleID['id'] . '" AND `team`=2 GROUP BY `login2`'
|
||||
);
|
||||
while ($row = mysql_fetch_array($logins_bot_inBattle)) {
|
||||
$logins_bot[$row['login2']] = (int)$row['count'];
|
||||
}
|
||||
mysql_query('UPDATE `dungeon_bots` SET `inBattle` = "'.$battleID['id'].'" WHERE `id2` = "'.$bot['id2'].'" LIMIT 1');
|
||||
mysql_query(
|
||||
'UPDATE `dungeon_bots` SET `inBattle` = "' . $battleID['id'] . '" WHERE `id2` = "' . $bot['id2'] . '" LIMIT 1'
|
||||
);
|
||||
$jui = 1;
|
||||
while ($jui <= $bot['colvo']) {
|
||||
$k = botAddBattle($bot, $logins_bot);
|
||||
@ -102,7 +99,9 @@ function botAttack ( $bot, $user ){
|
||||
|
||||
$logins_bot_text[] = ' <strong>' . $k['login'] . '</strong>';
|
||||
if ($k != false) {
|
||||
$upd = mysql_query('UPDATE `users` SET `battle` = "'.$battleID['id'].'" WHERE `id` = "'.$k['id'].'" LIMIT 1');
|
||||
$upd = mysql_query(
|
||||
'UPDATE `users` SET `battle` = "' . $battleID['id'] . '" WHERE `id` = "' . $k['id'] . '" LIMIT 1'
|
||||
);
|
||||
if ($upd) {
|
||||
$upd = mysql_query('UPDATE `stats` SET `team` = "2" WHERE `id` = "' . $k['id'] . '" LIMIT 1');
|
||||
if ($upd) {
|
||||
@ -115,14 +114,23 @@ function botAttack ( $bot, $user ){
|
||||
if ($j > 0) {
|
||||
$logins_bot_text = '{tm1} Â ïîåäèíîê âìåøàëèñü: ' . implode(', ', $logins_bot_text) . '.';
|
||||
$logins_bot_vars = implode('||', $logins_bot_vars);
|
||||
$battle_log = mysql_fetch_array(mysql_query('SELECT * FROM `battle_logs` WHERE `battle`='.$battleID['id'].' ORDER BY `id_hod` DESC LIMIT 1'));
|
||||
$battle_log = mysql_fetch_array(
|
||||
mysql_query(
|
||||
'SELECT * FROM `battle_logs` WHERE `battle`=' . $battleID['id'] . ' ORDER BY `id_hod` DESC LIMIT 1'
|
||||
)
|
||||
);
|
||||
if ($battle_log['id_hod'] > 0) {
|
||||
mysql_query('INSERT INTO `battle_logs` (`time`,`battle`,`id_hod`,`text`,`vars`,`zona1`,`zonb1`,`zona2`,`zonb2`,`type`) VALUES ("'.time().'","'.$battleID['id'].'","'.($battle_log['id_hod']+1).'","'.$logins_bot_text.'","'.$logins_bot_vars.'","","","","",1)');
|
||||
mysql_query(
|
||||
'INSERT INTO `battle_logs` (`time`,`battle`,`id_hod`,`text`,`vars`,`zona1`,`zonb1`,`zona2`,`zonb2`,`type`) VALUES ("' . time(
|
||||
) . '","' . $battleID['id'] . '","' . ($battle_log['id_hod'] + 1) . '","' . $logins_bot_text . '","' . $logins_bot_vars . '","","","","",1)'
|
||||
);
|
||||
}
|
||||
}
|
||||
unset($logins_bot);
|
||||
if ($j > 0) {
|
||||
mysql_query('UPDATE `users` SET `battle` = "'.$battleID['id'].'" WHERE `id` = "'.$user['id'].'" LIMIT 1');
|
||||
mysql_query(
|
||||
'UPDATE `users` SET `battle` = "' . $battleID['id'] . '" WHERE `id` = "' . $user['id'] . '" LIMIT 1'
|
||||
);
|
||||
mysql_query('UPDATE `stats` SET `team` = "1" WHERE `id` = "' . $user['id'] . '" LIMIT 1');
|
||||
}
|
||||
unset($logins_bot_inBattle);
|
||||
@ -130,9 +138,11 @@ function botAttack ( $bot, $user ){
|
||||
}
|
||||
|
||||
# Ñîâåðøàåì íàïàäåíèå -> Äîáàâëÿåì Áîòîâ â ïîåäèíîê
|
||||
function botAddBattle( $bot, $logins_bot ) {
|
||||
function botAddBattle($bot, $logins_bot)
|
||||
{
|
||||
$add_bot = mysql_fetch_array(
|
||||
mysql_query('SELECT
|
||||
mysql_query(
|
||||
'SELECT
|
||||
`id`, `login`, `stats`, `obraz`, `level`, `sex`, `name`, `deviz`, `hobby`, `type`, `itemsUse`, `priemUse`, `align`, `clan`, `align_zvanie`, `bonus`, `clan_zvanie`, `time_reg`, `city_reg`, `upLevel`, `active`, `expB`, `p_items`, `agressor`, `priems`, `priems_z`, `award`
|
||||
FROM `test_bot`
|
||||
WHERE `id` = "' . $bot['id_bot'] . '"
|
||||
@ -154,7 +164,8 @@ function botAddBattle( $bot, $logins_bot ) {
|
||||
if ($add_bot['city_reg'] == '{thiscity}') {
|
||||
$add_bot['city_reg'] = $bot['userCity'];
|
||||
}
|
||||
$ins1 = mysql_query('INSERT INTO `users` (
|
||||
$ins1 = mysql_query(
|
||||
'INSERT INTO `users` (
|
||||
`align`,
|
||||
`login`,
|
||||
`level`,
|
||||
@ -182,12 +193,15 @@ function botAddBattle( $bot, $logins_bot ) {
|
||||
"' . $add_bot['time_reg'] . '",
|
||||
"' . $add_bot['obraz'] . '",
|
||||
"' . $bot['id_bot'] . '"
|
||||
)');
|
||||
)'
|
||||
);
|
||||
|
||||
# Åñëè áîò óñïåøíî ñîçäàí.
|
||||
if ($ins1) {
|
||||
$uid = mysql_insert_id();
|
||||
$ins2 = mysql_query('INSERT INTO `stats` (`id`,`stats`,`hpNow`,`upLevel`,`bot`) VALUES ("'.$uid.'","'.$add_bot['stats'].'","1000000","'.$add_bot['upLevel'].'","1")');
|
||||
$ins2 = mysql_query(
|
||||
'INSERT INTO `stats` (`id`,`stats`,`hpNow`,`upLevel`,`bot`) VALUES ("' . $uid . '","' . $add_bot['stats'] . '","1000000","' . $add_bot['upLevel'] . '","1")'
|
||||
);
|
||||
if ($ins2) {
|
||||
$add_bot['id'] = $uid;
|
||||
$add_bot['logins_bot'] = $logins_bot;
|
||||
@ -201,7 +215,9 @@ function botAddBattle( $bot, $logins_bot ) {
|
||||
while ($i < count($iu)) {
|
||||
if ($iu[$i] > 0) {
|
||||
$idiu = botAddItem($iu[$i], $add_bot['id'], $bot['userCity']);
|
||||
$islot = mysql_fetch_array(mysql_query('SELECT `id`,`inslot` FROM `items_main` WHERE `id` = "'.$iu[$i].'" LIMIT 1'));
|
||||
$islot = mysql_fetch_array(
|
||||
mysql_query('SELECT `id`,`inslot` FROM `items_main` WHERE `id` = "' . $iu[$i] . '" LIMIT 1')
|
||||
);
|
||||
if (isset($islot['id'])) {
|
||||
if ($islot['inslot'] == 3) {
|
||||
if ($w3b == 1) {
|
||||
@ -216,7 +232,11 @@ function botAddBattle( $bot, $logins_bot ) {
|
||||
} else {
|
||||
$islot = 2000;
|
||||
}
|
||||
if( isset($idiu, $islot) ) mysql_query('UPDATE `items_users` SET `inOdet` = "'.$islot.'" WHERE `id` = "'.$idiu.'" LIMIT 1');
|
||||
if (isset($idiu, $islot)) {
|
||||
mysql_query(
|
||||
'UPDATE `items_users` SET `inOdet` = "' . $islot . '" WHERE `id` = "' . $idiu . '" LIMIT 1'
|
||||
);
|
||||
}
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
@ -232,13 +252,25 @@ function botAddBattle( $bot, $logins_bot ) {
|
||||
}
|
||||
|
||||
#Âûäàåì ïðåäìåòû Áîòó.
|
||||
function botAddItem($item_id, $bot_uid, $city) {
|
||||
$i = mysql_fetch_array(mysql_query('SELECT `im`.`id`,`im`.`name`,`im`.`img`,`im`.`type`,`im`.`inslot`,`im`.`2h`,`im`.`2too`,`im`.`iznosMAXi`,`im`.`inRazdel`,`im`.`price1`,`im`.`price2`,`im`.`pricerep`,`im`.`magic_chance`,`im`.`info`,`im`.`massa`,`im`.`level`,`im`.`magic_inci`,`im`.`overTypei`,`im`.`group`,`im`.`group_max`,`im`.`geni`,`im`.`ts`,`im`.`srok`,`im`.`class`,`im`.`class_point`,`im`.`anti_class`,`im`.`anti_class_point`,`im`.`max_text`,`im`.`useInBattle`,`im`.`lbtl`,`im`.`lvl_itm`,`im`.`lvl_exp`,`im`.`lvl_aexp` FROM `items_main` AS `im` WHERE `im`.`id` = "'.mysql_real_escape_string($item_id).'" LIMIT 1'));
|
||||
function botAddItem($item_id, $bot_uid, $city)
|
||||
{
|
||||
$i = mysql_fetch_array(
|
||||
mysql_query(
|
||||
'SELECT `im`.`id`,`im`.`name`,`im`.`img`,`im`.`type`,`im`.`inslot`,`im`.`2h`,`im`.`2too`,`im`.`iznosMAXi`,`im`.`inRazdel`,`im`.`price1`,`im`.`price2`,`im`.`pricerep`,`im`.`magic_chance`,`im`.`info`,`im`.`massa`,`im`.`level`,`im`.`magic_inci`,`im`.`overTypei`,`im`.`group`,`im`.`group_max`,`im`.`geni`,`im`.`ts`,`im`.`srok`,`im`.`class`,`im`.`class_point`,`im`.`anti_class`,`im`.`anti_class_point`,`im`.`max_text`,`im`.`useInBattle`,`im`.`lbtl`,`im`.`lvl_itm`,`im`.`lvl_exp`,`im`.`lvl_aexp` FROM `items_main` AS `im` WHERE `im`.`id` = "' . mysql_real_escape_string(
|
||||
$item_id
|
||||
) . '" LIMIT 1'
|
||||
)
|
||||
);
|
||||
if (isset($i['id'])) {
|
||||
$d = mysql_fetch_array(mysql_query('SELECT `id`,`items_id`,`data` FROM `items_main_data` WHERE `items_id` = "'.$i['id'].'" LIMIT 1'));
|
||||
$d = mysql_fetch_array(
|
||||
mysql_query(
|
||||
'SELECT `id`,`items_id`,`data` FROM `items_main_data` WHERE `items_id` = "' . $i['id'] . '" LIMIT 1'
|
||||
)
|
||||
);
|
||||
//íîâàÿ äàòà
|
||||
$data = $d['data'];
|
||||
$ins = mysql_query('
|
||||
$ins = mysql_query(
|
||||
'
|
||||
INSERT INTO `items_users` (
|
||||
`overType`,`item_id`,`uid`,`data`,`iznosMAX`,`geniration`,`magic_inc`,`maidin`,`lastUPD`,`time_create`,`dn_delete`
|
||||
) VALUES (
|
||||
@ -253,7 +285,8 @@ function botAddItem($item_id, $bot_uid, $city) {
|
||||
"' . time() . '",
|
||||
"' . time() . '",
|
||||
"' . $i['dn_delete'] . '"
|
||||
)');
|
||||
)'
|
||||
);
|
||||
|
||||
# Åñëè ïðåäìåò óñïåøíî äîáàâëåí â áàçó äàííûõ.
|
||||
if ($ins) {
|
||||
@ -265,28 +298,38 @@ function botAddItem($item_id, $bot_uid, $city) {
|
||||
}
|
||||
return $rt;
|
||||
}
|
||||
function moveBots($direction, $b){
|
||||
|
||||
function moveBots($direction, $b)
|
||||
{
|
||||
$toGoX = 0;
|
||||
$toGoY = 0;
|
||||
|
||||
if (isset($b['noBot']) && $b['noBot'] != '0000') {
|
||||
if( $b['noBot'][0] != '0' ) $b['goTop'] = 0;
|
||||
if( $b['noBot'][1] != '0' ) $b['goLeft'] = 0;
|
||||
if( $b['noBot'][2] != '0' ) $b['goBottom'] = 0;
|
||||
if( $b['noBot'][3] != '0' ) $b['goRight'] = 0;
|
||||
if ($b['noBot'][0] != '0') {
|
||||
$b['goTop'] = 0;
|
||||
}
|
||||
$go = array(
|
||||
1 => array ('d'=>(int)$b['goTop'], 'go1'=>(int)$b['goLeft'], 'go2'=>(int)$b['goRight'], 'x' => (int)$b['x'], 'y' => (int)$b['y'], 's' => (int)$b['s']),
|
||||
2 => array ('d'=>(int)$b['goLeft'], 'go1'=>(int)$b['goBottom'], 'go2'=>(int)$b['goTop'], 'x' => (int)$b['x'], 'y' => (int)$b['y'], 's' => (int)$b['s']),
|
||||
3 => array ('d'=>(int)$b['goBottom'], 'go1'=>(int)$b['goRight'], 'go2'=>(int)$b['goLeft'], 'x' => (int)$b['x'], 'y' => (int)$b['y'], 's' => (int)$b['s']),
|
||||
4 => array ('d'=>(int)$b['goRight'], 'go1'=>(int)$b['goTop'], 'go2'=>(int)$b['goBottom'], 'x' => (int)$b['x'], 'y' => (int)$b['y'], 's' => (int)$b['s'])
|
||||
);
|
||||
$dir = array(
|
||||
1 => array('moveForward' => array( 'x' => '0', 'y' => '1' ), 'moveBack' => array( 'x' => '0', 'y' => '-1' ),'moveGo1' => array( 'x' => '-1', 'y' => '0' ),'moveGo2' => array( 'x' => '1', 'y' => '0' )),
|
||||
2 => array('moveForward' => array( 'x' => '-1', 'y' => '0' ),'moveBack' => array( 'x' => '1', 'y' => '0' ),'moveGo1' => array( 'x' => '0', 'y' => '-1' ),'moveGo2' => array( 'x' => '0', 'y' => '1' )),
|
||||
3 => array('moveForward' => array( 'x' => '0', 'y' => '-1' ),'moveBack' => array( 'x' => '0', 'y' => '1' ),'moveGo1' => array( 'x' => '1', 'y' => '0' ),'moveGo2' => array( 'x' => '-1', 'y' => '0' )),
|
||||
4 => array('moveForward' => array( 'x' => '1', 'y' => '0' ),'moveBack' => array( 'x' => '-1', 'y' => '0' ),'moveGo1' => array( 'x' => '0', 'y' => '1' ),'moveGo2' => array( 'x' => '0', 'y' => '-1' ))
|
||||
);
|
||||
if ($b['noBot'][1] != '0') {
|
||||
$b['goLeft'] = 0;
|
||||
}
|
||||
if ($b['noBot'][2] != '0') {
|
||||
$b['goBottom'] = 0;
|
||||
}
|
||||
if ($b['noBot'][3] != '0') {
|
||||
$b['goRight'] = 0;
|
||||
}
|
||||
}
|
||||
$go = [
|
||||
1 => ['d' => (int)$b['goTop'], 'go1' => (int)$b['goLeft'], 'go2' => (int)$b['goRight'], 'x' => (int)$b['x'], 'y' => (int)$b['y'], 's' => (int)$b['s']],
|
||||
2 => ['d' => (int)$b['goLeft'], 'go1' => (int)$b['goBottom'], 'go2' => (int)$b['goTop'], 'x' => (int)$b['x'], 'y' => (int)$b['y'], 's' => (int)$b['s']],
|
||||
3 => ['d' => (int)$b['goBottom'], 'go1' => (int)$b['goRight'], 'go2' => (int)$b['goLeft'], 'x' => (int)$b['x'], 'y' => (int)$b['y'], 's' => (int)$b['s']],
|
||||
4 => ['d' => (int)$b['goRight'], 'go1' => (int)$b['goTop'], 'go2' => (int)$b['goBottom'], 'x' => (int)$b['x'], 'y' => (int)$b['y'], 's' => (int)$b['s']],
|
||||
];
|
||||
$dir = [
|
||||
1 => ['moveForward' => ['x' => '0', 'y' => '1'], 'moveBack' => ['x' => '0', 'y' => '-1'], 'moveGo1' => ['x' => '-1', 'y' => '0'], 'moveGo2' => ['x' => '1', 'y' => '0']],
|
||||
2 => ['moveForward' => ['x' => '-1', 'y' => '0'], 'moveBack' => ['x' => '1', 'y' => '0'], 'moveGo1' => ['x' => '0', 'y' => '-1'], 'moveGo2' => ['x' => '0', 'y' => '1']],
|
||||
3 => ['moveForward' => ['x' => '0', 'y' => '-1'], 'moveBack' => ['x' => '0', 'y' => '1'], 'moveGo1' => ['x' => '1', 'y' => '0'], 'moveGo2' => ['x' => '-1', 'y' => '0']],
|
||||
4 => ['moveForward' => ['x' => '1', 'y' => '0'], 'moveBack' => ['x' => '-1', 'y' => '0'], 'moveGo1' => ['x' => '0', 'y' => '1'], 'moveGo2' => ['x' => '0', 'y' => '-1']],
|
||||
];
|
||||
$go = $go[$direction];
|
||||
$dir = $dir[$direction];
|
||||
if ($go['d'] == 1) {
|
||||
@ -329,14 +372,17 @@ function moveBots($direction, $b){
|
||||
}
|
||||
}
|
||||
unset($dir, $go, $direction, $a);
|
||||
return array( 'x'=>(int)$toGoX, 'y'=>(int)$toGoY );
|
||||
return ['x' => (int)$toGoX, 'y' => (int)$toGoY];
|
||||
}
|
||||
|
||||
|
||||
# çàïóñê ñêðèïòà.
|
||||
function start(){
|
||||
function start()
|
||||
{
|
||||
# Ñòðàíèöà ñîçäàíà 0.0000
|
||||
$mtime = microtime();$mtime = explode(" ",$mtime);$tstart = $mtime[1] + $mtime[0];
|
||||
$mtime = microtime();
|
||||
$mtime = explode(" ", $mtime);
|
||||
$tstart = $mtime[1] + $mtime[0];
|
||||
|
||||
# Âûáèðàåì âñåõ áîòîâ.
|
||||
#  âûáîðêó âêëþ÷åíî: Ïîçèöèÿ áîòà, Íàïðàâëåíèå êóäà îí ìîæåò èäòè, Ñóùåñòâóåò ëè ðÿäîì Èãðîê, åãî êîîðäèíàòû è â ïîåäèíêå ëè îí.
|
||||
@ -399,19 +445,24 @@ function start(){
|
||||
}
|
||||
|
||||
if (isset($bot['userId'], $bot['userPosY'], $bot['userPosX']) && $bot['userId'] != '' && $bot['agressor'] == 1 && (
|
||||
($bot['userPosY']==$bot['y']+1 && $bot['userPosX']==$bot['x']) OR
|
||||
($bot['userPosY']==$bot['y']-1 && $bot['userPosX']==$bot['x']) OR
|
||||
($bot['userPosY']==$bot['y'] && $bot['userPosX']==$bot['x']-1) OR
|
||||
($bot['userPosY'] == $bot['y'] + 1 && $bot['userPosX'] == $bot['x']) or
|
||||
($bot['userPosY'] == $bot['y'] - 1 && $bot['userPosX'] == $bot['x']) or
|
||||
($bot['userPosY'] == $bot['y'] && $bot['userPosX'] == $bot['x'] - 1) or
|
||||
($bot['userPosY'] == $bot['y'] && $bot['userPosX'] == $bot['x'] + 1)
|
||||
)) {
|
||||
bot['userPosY']=$yFrom; $bot['userPosX']=$xFrom;
|
||||
mysql_query('UPDATE `stats` SET `x` = "'.$xFrom.'" , `y` = "'.$yFrom.'" WHERE `id` = "'.$bot['userId'].'" LIMIT 1');
|
||||
bot['userPosY'] = $yFrom;
|
||||
$bot['userPosX'] = $xFrom;
|
||||
mysql_query(
|
||||
'UPDATE `stats` SET `x` = "' . $xFrom . '" , `y` = "' . $yFrom . '" WHERE `id` = "' . $bot['userId'] . '" LIMIT 1'
|
||||
);
|
||||
botAttack($bot, $bot);
|
||||
} elseif (isset($bot['userId'], $bot['userPosY'], $bot['userPosX']) && $bot['userId'] != '' && $inSight == 1 && $yTo == $bot['userPosY'] && $xTo == $bot['userPosX'] && $bot['atack'] == 1) {
|
||||
botAttack($bot, $bot);
|
||||
} elseif ($inSight == 1) { // Ïåðåäâèæåíèå áîòîâ.
|
||||
$bot['go_bot'] = time() + rand(7, 15);
|
||||
mysql_query('UPDATE `dungeon_bots` SET `x` = "'.$xTo.'",`y` = "'.$yTo.'", `s` = "'.$sTo.'", `go_bot` = "'.$bot['go_bot'].'" WHERE `id2` = "'.$bot['id2'].'" LIMIT 1 ');
|
||||
mysql_query(
|
||||
'UPDATE `dungeon_bots` SET `x` = "' . $xTo . '",`y` = "' . $yTo . '", `s` = "' . $sTo . '", `go_bot` = "' . $bot['go_bot'] . '" WHERE `id2` = "' . $bot['id2'] . '" LIMIT 1 '
|
||||
);
|
||||
}
|
||||
unset($xFrom, $yFrom, $xTo, $yTo, $inSight, $sNext, $sTo);
|
||||
}
|
||||
@ -420,7 +471,9 @@ function start(){
|
||||
unset($query, $bot);
|
||||
|
||||
$mtime = microtime();
|
||||
$mtime = explode(" ",$mtime);$mtime = $mtime[1] + $mtime[0];$totaltime = ($mtime - $tstart);
|
||||
$mtime = explode(" ", $mtime);
|
||||
$mtime = $mtime[1] + $mtime[0];
|
||||
$totaltime = ($mtime - $tstart);
|
||||
printf("Ñòðàíèöà ñãåíåðèðîâàíà çà %f ñåêóíä !", $totaltime);
|
||||
}
|
||||
|
||||
|
@ -1,42 +1,19 @@
|
||||
<?php
|
||||
|
||||
//die('×òî-òî òóò íå òàê...');
|
||||
|
||||
function getIP() {
|
||||
if(isset($_SERVER['HTTP_X_REAL_IP'])) return $_SERVER['HTTP_X_REAL_IP'];
|
||||
return $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
|
||||
# Ïîëó÷àåì IP
|
||||
function getIPblock() {
|
||||
if(isset($_SERVER['HTTP_X_REAL_IP'])) return $_SERVER['HTTP_X_REAL_IP'];
|
||||
return $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
|
||||
# Âûïîëíÿåì ïðîâåðêó áåçîïàñíîñòè.
|
||||
|
||||
/*if( $_SERVER['HTTP_CF_CONNECTING_IP'] != $_SERVER['SERVER_ADDR'] && $_SERVER['HTTP_CF_CONNECTING_IP'] != '127.0.0.1' ) { die('Hello pussy!'); }
|
||||
if(getIPblock() != $_SERVER['SERVER_ADDR'] && getIPblock() != '127.0.0.1' && getIPblock() != '' && getIPblock() != '5.187.7.71') {
|
||||
die(getIPblock().'<br>'.$_SERVER['SERVER_ADDR']);
|
||||
}*/
|
||||
|
||||
|
||||
define('GAME',true);
|
||||
const GAME = true;
|
||||
|
||||
include('_incl_data/__config.php');
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
include('_incl_data/class/__user.php');
|
||||
|
||||
function e($t) {
|
||||
mysql_query('INSERT INTO `chat` (`text`,`city`,`to`,`type`,`new`,`time`) VALUES ("core #'.date('d.m.Y').' %'.date('H:i:s').' (Êðèòè÷åñêàÿ îøèáêà): <b>'.mysql_real_escape_string($t).'</b>","capitalcity","LEL","6","1","-1")');
|
||||
}
|
||||
|
||||
$sp = mysql_query('SELECT `u`.*,`s`.*,`u`.`id`,`s`.`id` FROM `users` AS `u` LEFT JOIN `stats` AS `s` ON ( `s`.`id` = `u`.`id` AND `s`.`bot` = 0 ) WHERE `login` = "Crowley"');
|
||||
$sp = mysql_query(
|
||||
'SELECT `u`.*,`s`.*,`u`.`id`,`s`.`id` FROM `users` AS `u` LEFT JOIN `stats` AS `s` ON ( `s`.`id` = `u`.`id` AND `s`.`bot` = 0 ) WHERE `login` = "Crowley"'
|
||||
);
|
||||
while ($pl = mysql_fetch_array($sp)) {
|
||||
$last_dnow = mysql_fetch_array(mysql_query('SELECT * FROM `save_dungeon` WHERE `uid` = "' . $pl['id'] . '"'));
|
||||
if (isset($last_dnow['id'])) {
|
||||
mysql_query('UPDATE `users` SET `room` = "405" WHERE `id` = "' . $last_dnow['uid'] . '"');
|
||||
mysql_query('UPDATE `stats` SET `dnow` = "'.$last_dnow['dnow'].'",`x` = "'.$last_dnow['x'].'",`y` = "'.$last_dnow['y'].'" WHERE `id` = "'.$last_dnow['uid'].'"');
|
||||
mysql_query(
|
||||
'UPDATE `stats` SET `dnow` = "' . $last_dnow['dnow'] . '",`x` = "' . $last_dnow['x'] . '",`y` = "' . $last_dnow['y'] . '" WHERE `id` = "' . $last_dnow['uid'] . '"'
|
||||
);
|
||||
}
|
||||
}
|
||||
?>
|
@ -23,8 +23,8 @@ if(getIPblock() != $_SERVER['SERVER_ADDR'] && getIPblock() != '127.0.0.1' && get
|
||||
|
||||
define('GAME',true);
|
||||
|
||||
include('_incl_data/__config.php');
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
require_once('_incl_data/__config.php');
|
||||
require_once('_incl_data/class/__db_connect.php');
|
||||
|
||||
function e($t) {
|
||||
mysql_query('INSERT INTO `chat` (`text`,`city`,`to`,`type`,`new`,`time`) VALUES ("core #'.date('d.m.Y').' %'.date('H:i:s').' (Êðèòè÷åñêàÿ îøèáêà): <b>'.mysql_real_escape_string($t).'</b>","capitalcity","ENERGY STAR","6","1","-1")');
|
||||
|
@ -2,40 +2,54 @@
|
||||
|
||||
die('×òî-òî òóò íå òàê...');
|
||||
|
||||
function getIP() {
|
||||
if(isset($_SERVER['HTTP_X_REAL_IP'])) return $_SERVER['HTTP_X_REAL_IP'];
|
||||
return $_SERVER['REMOTE_ADDR'];
|
||||
function getIP()
|
||||
{
|
||||
return getIPblock();
|
||||
}
|
||||
|
||||
# Ïîëó÷àåì IP
|
||||
function getIPblock() {
|
||||
if(isset($_SERVER['HTTP_X_REAL_IP'])) return $_SERVER['HTTP_X_REAL_IP'];
|
||||
return $_SERVER['REMOTE_ADDR'];
|
||||
function getIPblock()
|
||||
{
|
||||
return isset($_SERVER['HTTP_X_REAL_IP']) ? $_SERVER['HTTP_X_REAL_IP'] : $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
|
||||
# Âûïîëíÿåì ïðîâåðêó áåçîïàñíîñòè.
|
||||
|
||||
if( $_SERVER['HTTP_CF_CONNECTING_IP'] != $_SERVER['SERVER_ADDR'] && $_SERVER['HTTP_CF_CONNECTING_IP'] != '127.0.0.1' ) { die('Hello pussy!'); }
|
||||
if(getIPblock() != $_SERVER['SERVER_ADDR'] && getIPblock() != '127.0.0.1' && getIPblock() != '' && getIPblock() != '5.187.7.71') {
|
||||
if ($_SERVER['HTTP_CF_CONNECTING_IP'] != $_SERVER['SERVER_ADDR'] && $_SERVER['HTTP_CF_CONNECTING_IP'] != '127.0.0.1') {
|
||||
die('Hello pussy!');
|
||||
}
|
||||
if (getIPblock() != $_SERVER['SERVER_ADDR'] && getIPblock() != '127.0.0.1' && getIPblock() != '' && getIPblock(
|
||||
) != '5.187.7.71') {
|
||||
die(getIPblock() . '<br>' . $_SERVER['SERVER_ADDR']);
|
||||
}
|
||||
|
||||
|
||||
define('GAME',true);
|
||||
const GAME = true;
|
||||
|
||||
include('_incl_data/__config.php');
|
||||
include('_incl_data/class/__db_connect.php');
|
||||
include('_incl_data/class/__user.php');
|
||||
|
||||
function e($t) {
|
||||
mysql_query('INSERT INTO `chat` (`text`,`city`,`to`,`type`,`new`,`time`) VALUES ("core #'.date('d.m.Y').' %'.date('H:i:s').' (Êðèòè÷åñêàÿ îøèáêà): <b>'.mysql_real_escape_string($t).'</b>","capitalcity","LEL","6","1","-1")');
|
||||
function e($t)
|
||||
{
|
||||
mysql_query(
|
||||
'INSERT INTO `chat` (`text`,`city`,`to`,`type`,`new`,`time`) VALUES ("core #' . date('d.m.Y') . ' %' . date(
|
||||
'H:i:s'
|
||||
) . ' (Êðèòè÷åñêàÿ îøèáêà): <b>' . mysql_real_escape_string($t) . '</b>","capitalcity","LEL","6","1","-1")'
|
||||
);
|
||||
}
|
||||
|
||||
function send_chat($type,$from,$text,$time) {
|
||||
mysql_query('INSERT INTO `chat` (`text`,`city`,`login`,`to`,`type`,`new`,`time`,`room`) VALUES ("'.mysql_real_escape_string($text).'","capitalcity","'.mysql_real_escape_string($from).'","","'.$type.'","1","'.mysql_real_escape_string($time).'","3")');
|
||||
function send_chat($type, $from, $text, $time)
|
||||
{
|
||||
mysql_query(
|
||||
'INSERT INTO `chat` (`text`,`city`,`login`,`to`,`type`,`new`,`time`,`room`) VALUES ("' . mysql_real_escape_string(
|
||||
$text
|
||||
) . '","capitalcity","' . mysql_real_escape_string(
|
||||
$from
|
||||
) . '","","' . $type . '","1","' . mysql_real_escape_string($time) . '","3")'
|
||||
);
|
||||
}
|
||||
|
||||
$kp = array(
|
||||
$kp = [
|
||||
0 => 1,
|
||||
1 => 1,
|
||||
2 => 3,
|
||||
@ -57,10 +71,11 @@ $kp = array(
|
||||
18 => 90,
|
||||
19 => 90,
|
||||
20 => 90,
|
||||
21 => 90
|
||||
);
|
||||
21 => 90,
|
||||
];
|
||||
|
||||
function addUser($userData) {
|
||||
function addUser($userData)
|
||||
{
|
||||
$query = "INSERT INTO `users_kill` ( " .
|
||||
mysql_real_escape_string(implode(' , ', array_keys($userData))) .
|
||||
" ) VALUES ( '" .
|
||||
@ -77,7 +92,9 @@ mysql_query('DELETE FROM `items_users` WHERE `delete` > "1392211522" AND `delete
|
||||
$lvl = 0;
|
||||
while ($lvl <= 21) {
|
||||
$last_time = round(time() - (2 * $kp[$lvl] * 86400));
|
||||
$sp = mysql_query('SELECT `u`.*,`s`.*,`u`.`id` AS `id1`,`s`.`id` AS `id2` FROM `users` AS `u` LEFT JOIN `stats` AS `s` ON ( `s`.`id` = `u`.`id` AND `s`.`bot` = 0 ) WHERE `u`.`admin` = 0 AND `u`.`pass` != "" AND `u`.`no_ip` = "" AND `u`.`level` = "'.$lvl.'" AND `align` != 50 AND `u`.`online` < '.$last_time.' LIMIT 1000');
|
||||
$sp = mysql_query(
|
||||
'SELECT `u`.*,`s`.*,`u`.`id` AS `id1`,`s`.`id` AS `id2` FROM `users` AS `u` LEFT JOIN `stats` AS `s` ON ( `s`.`id` = `u`.`id` AND `s`.`bot` = 0 ) WHERE `u`.`admin` = 0 AND `u`.`pass` != "" AND `u`.`no_ip` = "" AND `u`.`level` = "' . $lvl . '" AND `align` != 50 AND `u`.`online` < ' . $last_time . ' LIMIT 1000'
|
||||
);
|
||||
while ($pl = mysql_fetch_array($sp)) {
|
||||
|
||||
if ($pl['id'] < 1) {
|
||||
@ -89,17 +106,25 @@ while( $lvl <= 21 ) {
|
||||
}
|
||||
|
||||
//Ñîáèðàåì äàííûå ñêîëüêî öåííîñòåé áûëî íà ïåðñîíàæå
|
||||
$pl['bank'] = mysql_fetch_array(mysql_query('SELECT SUM(`money1`),SUM(`money2`) FROM `bank` WHERE `uid` = "'.$pl['id'].'" LIMIT 1'));
|
||||
$pl['bank'] = mysql_fetch_array(
|
||||
mysql_query('SELECT SUM(`money1`),SUM(`money2`) FROM `bank` WHERE `uid` = "' . $pl['id'] . '" LIMIT 1')
|
||||
);
|
||||
$pl['money'] += $pl['bank'][0];
|
||||
$pl['money2'] += $pl['bank'][1];
|
||||
$sitm = mysql_query('SELECT `id`,`item_id`,`1price`,`2price` FROM `items_users` WHERE (`delete` = 1000 OR `delete` = 0) AND `delete` = "0" AND `data` NOT LIKE "%|frompisher=%" AND `uid` = "'.$pl['id'].'"');
|
||||
$sitm = mysql_query(
|
||||
'SELECT `id`,`item_id`,`1price`,`2price` FROM `items_users` WHERE (`delete` = 1000 OR `delete` = 0) AND `delete` = "0" AND `data` NOT LIKE "%|frompisher=%" AND `uid` = "' . $pl['id'] . '"'
|
||||
);
|
||||
while ($pitm = mysql_fetch_array($sitm)) {
|
||||
if ($pitm['1price'] != 0) {
|
||||
$pl['money'] += $pitm['1price'];
|
||||
} elseif ($pitm['2price'] != 0) {
|
||||
$pl['money'] += $pitm['2price'];
|
||||
} else {
|
||||
$pitems = mysql_fetch_array(mysql_query('SELECT `price1`,`price2` FROM `items_main` WHERE `id` = "'.$sitm['item_id'].'" LIMIT 1'));
|
||||
$pitems = mysql_fetch_array(
|
||||
mysql_query(
|
||||
'SELECT `price1`,`price2` FROM `items_main` WHERE `id` = "' . $sitm['item_id'] . '" LIMIT 1'
|
||||
)
|
||||
);
|
||||
if ($pitems['price2'] > 0) {
|
||||
$pl['money'] += $pitems['price2'];
|
||||
} else {
|
||||
@ -133,7 +158,9 @@ while( $lvl <= 21 ) {
|
||||
mysql_query('DELETE FROM `feerverks` WHERE `uid` = "' . $pl['id'] . '"');
|
||||
mysql_query('DELETE FROM `fontan` WHERE `uid` = "' . $pl['id'] . '"');
|
||||
mysql_query('DELETE FROM `fontan_hp` WHERE `uid` = "' . $pl['id'] . '"');
|
||||
mysql_query('DELETE FROM `friends` WHERE `user` = "'.$pl['id'].'" OR `friend` = "'.$pl['id'].'" OR `enemy` = "'.$pl['id'].'" OR `notinlist` = "'.$pl['id'].'"');
|
||||
mysql_query(
|
||||
'DELETE FROM `friends` WHERE `user` = "' . $pl['id'] . '" OR `friend` = "' . $pl['id'] . '" OR `enemy` = "' . $pl['id'] . '" OR `notinlist` = "' . $pl['id'] . '"'
|
||||
);
|
||||
mysql_query('DELETE FROM `house` WHERE `owner` = "' . $pl['id'] . '"');
|
||||
mysql_query('DELETE FROM `items_img` WHERE `uid` = "' . $pl['id'] . '"');
|
||||
mysql_query('DELETE FROM `items_users` WHERE `uid` = "' . $pl['id'] . '"');
|
||||
@ -160,7 +187,7 @@ while( $lvl <= 21 ) {
|
||||
}
|
||||
|
||||
//Çàíîñèì äàííûå â áàçó
|
||||
$usrData = array(
|
||||
$usrData = [
|
||||
'`uid`' => $pl['id'],
|
||||
'`money1`' => $pl['money'],
|
||||
'`money2`' => $pl['money2'],
|
||||
@ -188,10 +215,9 @@ while( $lvl <= 21 ) {
|
||||
'`name`' => $pl['name'],
|
||||
'`obraz`' => $pl['obraz'],
|
||||
'`bithday`' => $pl['bithday'],
|
||||
'`host_reg`' => $pl['host_reg']
|
||||
);
|
||||
'`host_reg`' => $pl['host_reg'],
|
||||
];
|
||||
mysql_query(addUser($usrData));
|
||||
}
|
||||
$lvl++;
|
||||
}
|
||||
?>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user