dev-php74 #30
35
404.html
35
404.html
@ -1,23 +1,24 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<title>404</title>
|
||||
<style>
|
||||
body{
|
||||
background-color:#444;
|
||||
font-size:14px;
|
||||
}
|
||||
h3{
|
||||
font-size:60px;
|
||||
color:#eee;
|
||||
text-align:center;
|
||||
padding-top:30px;
|
||||
font-weight:normal;
|
||||
}
|
||||
</style>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<title>404</title>
|
||||
<style>
|
||||
body {
|
||||
background-color: #444;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 60px;
|
||||
color: #eee;
|
||||
text-align: center;
|
||||
padding-top: 30px;
|
||||
font-weight: normal;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
19
AI.php
19
AI.php
@ -141,14 +141,9 @@ if (isset($_GET['test'])) {
|
||||
die();
|
||||
}
|
||||
|
||||
function getIP()
|
||||
{
|
||||
return isset($_SERVER['HTTP_X_REAL_IP']) ? $_SERVER['HTTP_X_REAL_IP'] : $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
|
||||
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']);
|
||||
if (!isset($_GET['robot']) && UserIp::get() != $_SERVER['SERVER_ADDR'] && UserIp::get() != '127.0.0.1' && UserIp::get(
|
||||
) != '' && UserIp::get() != '31.131.116.166') {
|
||||
die(UserIp::get() . '<br>' . $_SERVER['SERVER_ADDR']);
|
||||
}
|
||||
|
||||
|
||||
@ -189,14 +184,14 @@ while ($pl = mysql_fetch_array($sp)) {
|
||||
if ($pl['timereg'] == 0) {
|
||||
mysql_query('UPDATE `users` SET `timereg` = "' . time() . '" WHERE `id` = "' . $pl['id'] . '" LIMIT 1');
|
||||
} else {
|
||||
mysql_query('UPDATE `users` SET `online` = "' . time() . '" WHERE `id` = "' . $pl['id'] . '" LIMIT 1');
|
||||
User::setOnline($pl['id']);
|
||||
}
|
||||
|
||||
if ($pl['bot'] == 0) {
|
||||
mysql_query('UPDATE `stats` SET `bot` = "2" WHERE `id` = "' . $pl['id'] . '" LIMIT 1');
|
||||
}
|
||||
|
||||
mysql_query('UPDATE `users` SET `online` = "' . time() . '" WHERE `id` = "' . $pl['id'] . '" LIMIT 1');
|
||||
User::setOnline($pl['id']);
|
||||
|
||||
BotLogic::start($pl['id']);
|
||||
|
||||
@ -209,14 +204,14 @@ while ($pl = mysql_fetch_array($sp)) {
|
||||
if ($pl['timereg'] == 0) {
|
||||
mysql_query('UPDATE `users` SET `timereg` = "' . time() . '" WHERE `id` = "' . $pl['id'] . '" LIMIT 1');
|
||||
} else {
|
||||
mysql_query('UPDATE `users` SET `online` = "' . time() . '" WHERE `id` = "' . $pl['id'] . '" LIMIT 1');
|
||||
User::setOnline($pl['id']);
|
||||
}
|
||||
|
||||
if ($pl['bot'] == 0) {
|
||||
mysql_query('UPDATE `stats` SET `bot` = "2" WHERE `id` = "' . $pl['id'] . '" LIMIT 1');
|
||||
}
|
||||
mysql_query('UPDATE `stats` SET `nextAct` = "' . time() . '" WHERE `id` = "' . $pl['id'] . '" LIMIT 1');
|
||||
mysql_query('UPDATE `users` SET `online` = "' . time() . '" WHERE `id` = "' . $pl['id'] . '" LIMIT 1');
|
||||
User::setOnline($pl['id']);
|
||||
|
||||
echo '*';
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
deny from all
|
||||
deny from all
|
||||
|
@ -1,85 +1,25 @@
|
||||
<?php
|
||||
|
||||
use Core\Config;
|
||||
use Insallah\Tournaments\Tournament;
|
||||
|
||||
error_reporting(E_ALL ^ E_NOTICE);
|
||||
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
|
||||
@ -94,3 +34,10 @@ spl_autoload_register(function ($className) {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$code = '1';
|
||||
Config::init();
|
||||
$c = Config::get();
|
||||
|
||||
//Tournament::startAllBattles();
|
||||
|
||||
|
46
_incl_data/autoload.php
Normal file
46
_incl_data/autoload.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
const GAME = true; // Для совместимости с этой "защитой".
|
||||
const GAME_VERSION = 'alpha-7.4';
|
||||
// Новая автозагрузка.
|
||||
// ВНИМАНИЕ! Не введено в эксплуатацию!
|
||||
|
||||
require_once 'mysql_override.php';
|
||||
require_once 'class/Insallah/Config.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;
|
||||
});
|
File diff suppressed because it is too large
Load Diff
@ -865,9 +865,9 @@ class BotLogic
|
||||
$se = 1;
|
||||
}
|
||||
|
||||
$r = ['name' => '_', 'city_real' => '', 'deviz' => '', 'chatColor' => 'Black'];
|
||||
$r = ['name' => '_', 'chatColor' => 'Black'];
|
||||
|
||||
$ins = mysql_query("INSERT INTO `users` (`fnq`,`host_reg`,`room`,`login`,`pass`,`ipreg`,`ip`,`city`,`cityreg`,`name`,`sex`,`city_real`,`deviz`,`chatColor`,`timereg`) VALUES (
|
||||
$ins = mysql_query("INSERT INTO `users` (`fnq`,`host_reg`,`room`,`login`,`pass`,`ipreg`,`ip`,`city`,`cityreg`,`name`,`sex`,`chatColor`,`timereg`) VALUES (
|
||||
'0',
|
||||
'real_bot_user',
|
||||
'0',
|
||||
@ -879,8 +879,6 @@ class BotLogic
|
||||
'capitalcity',
|
||||
'" . $r['name'] . "',
|
||||
'" . mysql_real_escape_string($sex) . "',
|
||||
'" . $r['city_real'] . "',
|
||||
'" . $r['deviz'] . "',
|
||||
'" . $r['chatColor'] . "',
|
||||
'" . time() . "')");
|
||||
if ($ins) {
|
||||
|
@ -1,63 +0,0 @@
|
||||
<?php
|
||||
/** Ïîëó÷àåì íà âõîä ñòðîêó, à íà âûõîä ðåçóëüòàò ìàòåìàòè÷åñêîé îïåðàöèè â ñòðîêå. */
|
||||
class CalculateFromString
|
||||
{
|
||||
const PATTERN = '/(?:\-?\d+(?:\.?\d+)?[\+\-\*\/])+\-?\d+(?:\.?\d+)?/';
|
||||
const PARENTHESIS_DEPTH = 10;
|
||||
|
||||
public function calculate($input){
|
||||
if(strpos($input, '+') != null || strpos($input, '-') != null || strpos($input, '/') != null || strpos($input, '*') != null){
|
||||
// Remove white spaces and invalid math chars
|
||||
$input = str_replace(',', '.', $input);
|
||||
$input = str_replace(' ', '', $input);
|
||||
$input = preg_replace('[^0-9\.\+\-\*\/\(\)]', '', $input);
|
||||
|
||||
// Calculate each of the parenthesis from the top
|
||||
$i = 0;
|
||||
while(strpos($input, '(') || strpos($input, ')')){
|
||||
$input = preg_replace_callback('/\(([^\(\)]+)\)/', 'self::callback', $input);
|
||||
|
||||
$i++;
|
||||
if($i > self::PARENTHESIS_DEPTH){
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Calculate the result
|
||||
if(preg_match(self::PATTERN, $input, $match)){
|
||||
return $this->compute($match[0]);
|
||||
}
|
||||
// To handle the special case of expressions surrounded by global parenthesis like "(1+1)"
|
||||
if(is_numeric($input)){
|
||||
return $input;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
return $input;
|
||||
}
|
||||
|
||||
private function compute($input){
|
||||
$compute = create_function('', 'return '.$input.';');
|
||||
|
||||
return 0 + $compute();
|
||||
}
|
||||
|
||||
private function callback($input){
|
||||
if(is_numeric($input[1])){
|
||||
return $input[1];
|
||||
}
|
||||
elseif(preg_match(self::PATTERN, $input[1], $match)){
|
||||
return $this->compute($match[0]);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
$Cal = new CalculateFromString();
|
||||
$xyz='(100 * 25000) + (250 * 25000) + ((500/100) * 25000)';
|
||||
$result = $Cal->calculate($xyz);
|
||||
echo $result;
|
||||
|
File diff suppressed because one or more lines are too long
102
_incl_data/class/Core/Config.php
Normal file
102
_incl_data/class/Core/Config.php
Normal file
@ -0,0 +1,102 @@
|
||||
<?php
|
||||
|
||||
namespace Core;
|
||||
|
||||
class Config
|
||||
{
|
||||
private static self $instance;
|
||||
private function __construct()
|
||||
{
|
||||
error_reporting(E_ALL ^ E_NOTICE);
|
||||
setlocale(LC_CTYPE, "ru_RU.CP1251");
|
||||
|
||||
ini_set('display_errors', 'Off');
|
||||
ini_set('default_charset', 'windows-1251');
|
||||
ini_set('date.timezone', 'Europe/Moscow');
|
||||
|
||||
header('Cache-Control: no-cache, no-store, must-revalidate');
|
||||
header('Pragma: no-cache');
|
||||
header('Expires: 0');
|
||||
}
|
||||
|
||||
public static function get(?string $key = null)
|
||||
{
|
||||
$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
|
||||
$c['footer'] = $c['name'] . ' © 2013-' . date('Y');
|
||||
|
||||
//Сервера
|
||||
$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['https'] = 'https://' . $c['host'] . DIRECTORY_SEPARATOR;
|
||||
$c['exit'] = '<script>top.location.href="' . $c['https'] . '";</script>';
|
||||
$c['support'] = 'support@' . $c['host'];
|
||||
|
||||
|
||||
//Валюта
|
||||
$c['curency_name'] = 'RUB';
|
||||
$c['curency_value'] = 30;
|
||||
|
||||
//Бот клон
|
||||
$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');
|
||||
|
||||
$c['counters'] = '';
|
||||
$c['counters_noFrm'] = '';
|
||||
$c['securetime'] = 0; //Время последнего возможного взлома персов (подбор пароля по базам данных других игр)
|
||||
|
||||
$c['copyright'] = 'Copyright © ' . date('Y') . ' « Новый Бойцовский Клуб »';
|
||||
$c['db_user'] = 'newcom1_abk';
|
||||
$c['db_name'] = 'newcom1_abk';
|
||||
$c['db_password'] = '4nWYsIM[c?}P';
|
||||
return $c[$key] ?? $c;
|
||||
}
|
||||
|
||||
public static function init(): Config
|
||||
{
|
||||
if (!isset(self::$instance)) {
|
||||
self::$instance = new static();
|
||||
}
|
||||
return self::$instance;
|
||||
}
|
||||
}
|
51
_incl_data/class/Core/Database.php
Normal file
51
_incl_data/class/Core/Database.php
Normal file
@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
namespace Core;
|
||||
|
||||
use PDO;
|
||||
|
||||
class Database
|
||||
{
|
||||
private static self $instance;
|
||||
protected static PDO $db;
|
||||
|
||||
/**
|
||||
* Singleton.
|
||||
*/
|
||||
private function __construct() {
|
||||
mysql_select_db(Config::get('db_name'), mysql_connect('localhost', Config::get('db_user'), Config::get('db_password')));
|
||||
mysql_query('SET NAMES cp1251');
|
||||
}
|
||||
|
||||
/**
|
||||
* Для совместимости со старыми функциями mysql_*.
|
||||
* @return Database
|
||||
*/
|
||||
public static function init(): Database
|
||||
{
|
||||
if (!isset(self::$instance)) {
|
||||
self::$instance = new static();
|
||||
}
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Новое подключение к БД.
|
||||
* @return PDO
|
||||
*/
|
||||
public static function pdoinit(): PDO
|
||||
{
|
||||
return new PDO(
|
||||
'mysql:host=localhost;dbname=' . Config::get('db_name'),
|
||||
Config::get('db_user'),
|
||||
Config::get('db_password'),
|
||||
[
|
||||
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
|
||||
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
|
||||
PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES cp1251",
|
||||
PDO::ATTR_STRINGIFY_FETCHES => false,
|
||||
PDO::ATTR_EMULATE_PREPARES => false,
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
144
_incl_data/class/Core/Db.php
Normal file
144
_incl_data/class/Core/Db.php
Normal file
@ -0,0 +1,144 @@
|
||||
<?php
|
||||
|
||||
namespace Core;
|
||||
|
||||
use Exception;
|
||||
use PDO;
|
||||
use PDOException;
|
||||
use PDOStatement;
|
||||
|
||||
class Db
|
||||
{
|
||||
|
||||
private static PDO $db;
|
||||
private static self $instance;
|
||||
|
||||
/**
|
||||
* DB constructor.
|
||||
* @throws Exception
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
try {
|
||||
self::$db = Database::pdoinit();
|
||||
} catch (PDOException $e) {
|
||||
throw new Exception($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
private static function init(): void
|
||||
{
|
||||
self::$instance ??= new self();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $stmt
|
||||
* @return PDOStatement
|
||||
*/
|
||||
private static function query(string $stmt): PDOStatement
|
||||
{
|
||||
self::init();
|
||||
return self::$db->query($stmt);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $stmt
|
||||
* @return PDOStatement
|
||||
*/
|
||||
public static function prepare(string $stmt): PDOStatement
|
||||
{
|
||||
self::init();
|
||||
return self::$db->prepare($stmt);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $query
|
||||
* @return int
|
||||
*/
|
||||
static public function exec(string $query): int
|
||||
{
|
||||
self::init();
|
||||
return self::$db->exec($query);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
static public function lastInsertId(): string
|
||||
{
|
||||
self::init();
|
||||
return self::$db->lastInsertId();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $query
|
||||
* @param array $args
|
||||
* @return PDOStatement
|
||||
*/
|
||||
public static function run(string $query, array $args = []): PDOStatement
|
||||
{
|
||||
try {
|
||||
if (!$args) {
|
||||
return self::query($query);
|
||||
}
|
||||
$stmt = self::prepare($query);
|
||||
$stmt->execute($args);
|
||||
return $stmt;
|
||||
} catch (PDOException $e) {
|
||||
throw new PDOException($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $query
|
||||
* @param array $args
|
||||
* @return mixed
|
||||
*/
|
||||
public static function getRow(string $query, array $args = [])
|
||||
{
|
||||
return self::run($query, $args)->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $query
|
||||
* @param array $args
|
||||
* @return array
|
||||
*/
|
||||
public static function getRows(string $query, array $args = []): array
|
||||
{
|
||||
return self::run($query, $args)->fetchAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $query
|
||||
* @param array $args
|
||||
* @return mixed
|
||||
*/
|
||||
public static function getValue(string $query, array $args = [])
|
||||
{
|
||||
$result = self::getRow($query, $args);
|
||||
if (!empty($result)) {
|
||||
$result = array_shift($result);
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $query
|
||||
* @param array $args
|
||||
* @return array
|
||||
*/
|
||||
public static function getColumn(string $query, array $args = []): array
|
||||
{
|
||||
return self::run($query, $args)->fetchAll(PDO::FETCH_COLUMN);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $query
|
||||
* @param array $args
|
||||
*/
|
||||
public static function sql(string $query, array $args = [])
|
||||
{
|
||||
self::run($query, $args);
|
||||
}
|
||||
}
|
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;
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -2,11 +2,14 @@
|
||||
|
||||
namespace Insallah;
|
||||
|
||||
use Core\Db;
|
||||
use User;
|
||||
|
||||
class Achievements
|
||||
{
|
||||
private $user;
|
||||
private User $user;
|
||||
private $info;
|
||||
private $data = [
|
||||
private array $data = [
|
||||
'zb' => [
|
||||
'questname' => 'Åæåäí.Çàäàíèÿ',
|
||||
'quest' => 'Âûïîëíèòü çàäàíèÿ áàáêè.',
|
||||
@ -93,41 +96,51 @@ 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']]);
|
||||
}
|
||||
|
||||
private function prizeName($int, $string)
|
||||
//fixme: ñþäà èíîãäà ïðèõîäèò (NULL, NULL).
|
||||
private function prizeName(?int $int, ?string $string): string
|
||||
{
|
||||
return in_array($string, ['åêð.', 'êð.']) ? $int . ' ' . $string : $string . ' ' . $int;
|
||||
}
|
||||
|
||||
private function drawSunduk($nagr, $whatInside, $tier)
|
||||
private function drawSunduk($nagr, $whatInside, $tier): string
|
||||
{
|
||||
return vsprintf('<img onclick="%s" onmouseover="%s" onmouseout="%s" onmousedown="%s" class="cp" src="%s" alt="Ñóíäóê">',
|
||||
return vsprintf(
|
||||
'<img onclick="%s" onmouseover="%s" onmouseout="%s" onmousedown="%s" class="cp" src="%s" alt="Ñóíäóê">',
|
||||
[
|
||||
"location.href='\main.php?titul&nagr=$nagr'",
|
||||
"top.hi(this, '<b>Ñóíäóê $tier ðàíãà<hr>Ñîäåðæèò:<hr> $whatInside</b>', event, 2, 0, 1, 1, 'max-width:307px')",
|
||||
"top.hic();",
|
||||
"top.hic();",
|
||||
"https://img.new-combats.com/i/titul/nagr$tier.gif"
|
||||
]);
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
public function getList()
|
||||
public function getList(): string
|
||||
{
|
||||
$string = '';
|
||||
$this->calculateCurrent(1);
|
||||
|
||||
foreach ($this->data as $key => $value) {
|
||||
|
||||
//Áëÿ, êàêóþ õåðíþ ïðèõîäèòñÿ ãîðîäèòü!
|
||||
//Ïåðâîå ÷èñëî = òðåáîâàíèå ñëåäóþùåãî òèðà ìèíóñ òðåáîâàíèå òåêóùåãî òèðà (íàäî íàáðàòü)
|
||||
//Âòîðîå ÷èñëî = êîëè÷åñòâî äîñòèæåíèé ìèíóñ òðåáîâàíèå òåêóùåãî òèðà (íàáðàë)
|
||||
//Òðåáîâàíèÿ òåêóùåãî òèðà îòíèìàþòñÿ ÷òîáû êàæäûé òèð íà÷èíàë ñ÷èòàòü ïðîöåíò ñ 0.
|
||||
//Ïèçäû äàòü òîìó, êòî òàê óåáàíñêè íàçûâàåò ïåðåìåííûå, ÷òî íóæíî ïîëäíÿ âúåçæàòü ÷òî ïðîèñõîäèò.
|
||||
//È õåð ïîìåíÿåøü - âñ¸ ñëîìàåòñÿ. FFUUUUUUUUUUUUUU!!! Ins.
|
||||
|
||||
if (!is_numeric($value['check'][$this->info['klas' . $key]])) {
|
||||
// Ïîòîìû ÷òî ïåðâûé ýëåìåíò ìàññèâà - ñëîâî. Â ÐÍÐ5.4 ïðîêàòûâàëî, â ÐÍÐ7.4 - íåò.
|
||||
$value['check'][$this->info['klas' . $key]] = 0;
|
||||
}
|
||||
|
||||
$percentToSuccess = Math::get100Percentage(
|
||||
$value['check'][$this->info['klas' . $key] + 1] - $value['check'][$this->info['klas' . $key]],
|
||||
$this->info[$key] - $value['check'][$this->info['klas' . $key]]
|
||||
@ -136,7 +149,8 @@ class Achievements
|
||||
$string .= '<h4>' . $questname . '</h4>';
|
||||
$string .= '<strong>' . $value['quest'] . '</strong><br>';
|
||||
$string .= 'Òåêóùèé Ðàíã: <strong>' . $this->info['klas' . $key] . '</strong> ';
|
||||
$string .= 'Êîëè÷åñòâî ' . mb_strtolower($value['check'][0]) . ': <strong>' . $this->info[$key] . ' =' . $percentToSuccess . '%</strong>';
|
||||
$string .= 'Êîëè÷åñòâî ' . mb_strtolower($value['check'][0]) . ': <strong>' . $this->info[$key] . ' = ' . $percentToSuccess . '%</strong>';
|
||||
//$string .= '<progress value="' . $percentToSuccess . '" max="100" style="accent-color:green; appearance: none;">' . $percentToSuccess . '</progress>';
|
||||
|
||||
$string .= Table::get([
|
||||
['Ðàíãè', 1, 2, 3, 4, 5],
|
||||
@ -182,6 +196,10 @@ class Achievements
|
||||
continue;
|
||||
}
|
||||
|
||||
if (is_null($this->info[$k])) {
|
||||
$this->info[$k] = 0;
|
||||
}
|
||||
|
||||
$this->info["klas$k"] = 0;
|
||||
$this->info["name$k"] = $this->data[$k]['questname'];
|
||||
$this->info["klasP$k"] = Math::get100Percentage($this->data[$k]['check'][1], $this->info[$k]);
|
||||
@ -203,10 +221,10 @@ class Achievements
|
||||
}
|
||||
}
|
||||
|
||||
public function getInfo($user_id = null)
|
||||
public function getInfo(?int $uid = null)
|
||||
{
|
||||
if (!is_null($user_id)) {
|
||||
$this->info = Db::getRow('select * from users_achiv where id = ?', [$user_id]);
|
||||
if (!is_null($uid)) {
|
||||
$this->info = \Core\Db::getRow('select * from users_achiv where id = ?', [$uid]);
|
||||
}
|
||||
$this->calculateCurrent();
|
||||
return $this->info;
|
||||
@ -220,7 +238,7 @@ class Achievements
|
||||
|
||||
private function addOne($name)
|
||||
{
|
||||
Db::sql("update users_achiv set $name = $name + 1 where id = ?", [$this->user->info['id']]);
|
||||
\Core\Db::sql("update users_achiv set $name = $name + 1 where id = ?", [$this->user->info['id']]);
|
||||
}
|
||||
|
||||
public function updateTier($name)
|
||||
@ -240,12 +258,12 @@ class Achievements
|
||||
/**
|
||||
* @return array[]
|
||||
*/
|
||||
public function getData()
|
||||
public function getData(): array
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
public function hasNoTier4Access($nagr)
|
||||
public function hasNoTier4Access($nagr): bool
|
||||
{
|
||||
return $this->user->info['level'] < 9 && in_array($nagr, [14, 15, 24, 25, 34, 35, 44, 45, 54, 55, 64, 65, 74, 75, 84, 85, 94, 95, 104, 105]);
|
||||
}
|
||||
@ -257,7 +275,7 @@ class Achievements
|
||||
}
|
||||
}
|
||||
|
||||
public function getTypes()
|
||||
public function getTypes(): array
|
||||
{
|
||||
return array_keys($this->data);
|
||||
}
|
||||
|
@ -1,16 +1,16 @@
|
||||
<?php
|
||||
|
||||
use Insallah\Tournament;
|
||||
//use Insallah\Tournament;
|
||||
|
||||
require_once 'Core/Db.php';
|
||||
//require_once 'Core/Db.php';
|
||||
require_once 'Core/Math.php';
|
||||
require_once 'Core/Table.php';
|
||||
require_once 'Runes/Runes.php';
|
||||
require_once 'Tournament/Tournament.php';
|
||||
require_once 'Tournament/TournamentModel.php';
|
||||
//require_once 'Tournament/Tournament.php';
|
||||
//require_once 'Tournament/TournamentModel.php';
|
||||
require_once 'Achievements.php';
|
||||
|
||||
//Âìåñòî êðîíà äëÿ òóðíèðà.
|
||||
if (Tournament::IS_ENABLED) {
|
||||
(new Tournament())->startAllBattles();
|
||||
}
|
||||
//if (Tournament::IS_ENABLED) {
|
||||
// (new Tournament())->startAllBattles();
|
||||
//}
|
@ -1,170 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Insallah;
|
||||
|
||||
use Exception;
|
||||
use http\Message;
|
||||
use PDO;
|
||||
use PDOException;
|
||||
use PDOStatement;
|
||||
|
||||
class Db
|
||||
{
|
||||
/**
|
||||
* Íàñòðîéêè ïîäêëþ÷åíèÿ
|
||||
* Ëó÷øå âûíîñèòü â êîíôèã
|
||||
* self::DB_HOST -> Config::DB_HOST
|
||||
*/
|
||||
const DB_HOST = '127.0.0.1'; // localhost
|
||||
const DB_USER = 'newcom1_abk';
|
||||
const DB_PASSWORD = '4nWYsIM[c?}P';
|
||||
const DB_NAME = 'newcom1_abk';
|
||||
const CHARSET = 'cp1251';
|
||||
const DB_PREFIX = '';
|
||||
|
||||
/**
|
||||
* @var PDO
|
||||
*/
|
||||
static private $db;
|
||||
|
||||
/**
|
||||
* @var null
|
||||
*/
|
||||
protected static $instance = null;
|
||||
|
||||
/**
|
||||
* DB constructor.
|
||||
* @throws Exception
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
if (self::$instance === null) {
|
||||
try {
|
||||
self::$db = new PDO(
|
||||
'mysql:host=' . self::DB_HOST . ';dbname=' . self::DB_PREFIX . self::DB_NAME,
|
||||
self::DB_USER,
|
||||
self::DB_PASSWORD,
|
||||
[
|
||||
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
|
||||
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
|
||||
PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES " . self::CHARSET,
|
||||
]
|
||||
);
|
||||
} catch (PDOException $e) {
|
||||
throw new Exception ($e->getMessage());
|
||||
}
|
||||
}
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $stmt
|
||||
* @return PDOStatement
|
||||
*/
|
||||
public static function query($stmt)
|
||||
{
|
||||
return self::$db->query($stmt);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $stmt
|
||||
* @return PDOStatement
|
||||
*/
|
||||
public static function prepare($stmt)
|
||||
{
|
||||
return self::$db->prepare($stmt);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $query
|
||||
* @return int
|
||||
*/
|
||||
static public function exec($query)
|
||||
{
|
||||
return self::$db->exec($query);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
static public function lastInsertId()
|
||||
{
|
||||
return self::$db->lastInsertId();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $query
|
||||
* @param array $args
|
||||
* @return PDOStatement
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function run($query, $args = [])
|
||||
{
|
||||
try {
|
||||
if (!$args) {
|
||||
return self::query($query);
|
||||
}
|
||||
$stmt = self::prepare($query);
|
||||
$stmt->execute($args);
|
||||
return $stmt;
|
||||
} catch (PDOException $e) {
|
||||
throw new Exception($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $query
|
||||
* @param array $args
|
||||
* @return mixed
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function getRow($query, $args = [])
|
||||
{
|
||||
return self::run($query, $args)->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $query
|
||||
* @param array $args
|
||||
* @return array
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function getRows($query, $args = [])
|
||||
{
|
||||
return self::run($query, $args)->fetchAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $query
|
||||
* @param array $args
|
||||
* @return mixed
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function getValue($query, $args = [])
|
||||
{
|
||||
$result = self::getRow($query, $args);
|
||||
if (!empty($result)) {
|
||||
$result = array_shift($result);
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $query
|
||||
* @param array $args
|
||||
* @return array
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function getColumn($query, $args = [])
|
||||
{
|
||||
return self::run($query, $args)->fetchAll(PDO::FETCH_COLUMN);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function sql($query, $args = [])
|
||||
{
|
||||
self::run($query, $args);
|
||||
}
|
||||
}
|
165
_incl_data/class/Insallah/Core/Dbold.php
Normal file
165
_incl_data/class/Insallah/Core/Dbold.php
Normal file
@ -0,0 +1,165 @@
|
||||
<?php
|
||||
|
||||
namespace Insallah;
|
||||
|
||||
//use Core\Database;
|
||||
use Exception;
|
||||
//use http\Message;
|
||||
use PDO;
|
||||
use PDOException;
|
||||
use PDOStatement;
|
||||
|
||||
class DbOld
|
||||
{
|
||||
/**
|
||||
* Íàñòðîéêè ïîäêëþ÷åíèÿ
|
||||
* Ëó÷øå âûíîñèòü â êîíôèã
|
||||
* self::DB_HOST -> Config::DB_HOST
|
||||
*/
|
||||
const DB_HOST = '127.0.0.1'; // localhost
|
||||
const DB_USER = 'newcom1_abk';
|
||||
const DB_PASSWORD = '4nWYsIM[c?}P';
|
||||
const DB_NAME = 'newcom1_abk';
|
||||
const CHARSET = 'cp1251';
|
||||
const DB_PREFIX = '';
|
||||
|
||||
/**
|
||||
* @var PDO
|
||||
*/
|
||||
static private $db;
|
||||
|
||||
/**
|
||||
* @var null
|
||||
*/
|
||||
protected static $instance = null;
|
||||
|
||||
/**
|
||||
* DB constructor.
|
||||
* @throws Exception
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
if (self::$instance === null) {
|
||||
try {
|
||||
self::$db = new PDO(
|
||||
'mysql:host=' . self::DB_HOST . ';dbname=' . self::DB_PREFIX . self::DB_NAME,
|
||||
self::DB_USER,
|
||||
self::DB_PASSWORD,
|
||||
[
|
||||
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
|
||||
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
|
||||
PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES " . self::CHARSET,
|
||||
]
|
||||
);
|
||||
// self::$db = Database::pdoinit();
|
||||
} catch (PDOException $e) {
|
||||
throw new Exception($e->getMessage());
|
||||
}
|
||||
}
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $stmt
|
||||
* @return PDOStatement
|
||||
*/
|
||||
public static function query($stmt)
|
||||
{
|
||||
return self::$db->query($stmt);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $stmt
|
||||
* @return PDOStatement
|
||||
*/
|
||||
public static function prepare($stmt)
|
||||
{
|
||||
return self::$db->prepare($stmt);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $query
|
||||
* @return int
|
||||
*/
|
||||
static public function exec($query)
|
||||
{
|
||||
return self::$db->exec($query);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
static public function lastInsertId()
|
||||
{
|
||||
return self::$db->lastInsertId();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $query
|
||||
* @param array $args
|
||||
* @return PDOStatement
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function run($query, $args = [])
|
||||
{
|
||||
try {
|
||||
if (!$args) {
|
||||
return self::query($query);
|
||||
}
|
||||
$stmt = self::prepare($query);
|
||||
$stmt->execute($args);
|
||||
return $stmt;
|
||||
} catch (PDOException $e) {
|
||||
throw new Exception($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $query
|
||||
* @param array $args
|
||||
* @return mixed
|
||||
*/
|
||||
public static function getRow($query, $args = [])
|
||||
{
|
||||
return self::run($query, $args)->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $query
|
||||
* @param array $args
|
||||
* @return array
|
||||
*/
|
||||
public static function getRows($query, $args = [])
|
||||
{
|
||||
return self::run($query, $args)->fetchAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $query
|
||||
* @param array $args
|
||||
* @return mixed
|
||||
*/
|
||||
public static function getValue($query, $args = [])
|
||||
{
|
||||
$result = self::getRow($query, $args);
|
||||
if (!empty($result)) {
|
||||
$result = array_shift($result);
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $query
|
||||
* @param array $args
|
||||
* @return array
|
||||
*/
|
||||
public static function getColumn($query, $args = [])
|
||||
{
|
||||
return self::run($query, $args)->fetchAll(PDO::FETCH_COLUMN);
|
||||
}
|
||||
|
||||
public static function sql($query, $args = [])
|
||||
{
|
||||
self::run($query, $args);
|
||||
}
|
||||
}
|
@ -5,19 +5,30 @@ namespace Insallah;
|
||||
/** All raw mathematics in one place. */
|
||||
class Math
|
||||
{
|
||||
public static function getPercentage($total, $number)
|
||||
/**
|
||||
* @param float|int $total
|
||||
* @param int|null $number
|
||||
* @return float
|
||||
*/
|
||||
public static function getPercentage($total, ?int $number): float
|
||||
{
|
||||
if (is_null($number)) {
|
||||
return 0;
|
||||
}
|
||||
return $total > 0 ? round(($number * 100) / $total, 2) : 0;
|
||||
}
|
||||
|
||||
|
||||
public static function get100Percentage($total, $number)
|
||||
public static function get100Percentage($total, ?int $number)
|
||||
{
|
||||
if (is_null($number)) {
|
||||
return 0;
|
||||
}
|
||||
return min(self::getPercentage($total, $number), 100);
|
||||
}
|
||||
|
||||
/** Number-20% and Number+20% */
|
||||
public static function get20PercentRange($number)
|
||||
public static function get20PercentRange($number): array
|
||||
{
|
||||
return [
|
||||
'min' => $number * ((100 - 20) / 100),
|
||||
|
37
_incl_data/class/Insallah/Math.php
Normal file
37
_incl_data/class/Insallah/Math.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Insallah;
|
||||
|
||||
/** All raw mathematics in one place. */
|
||||
class Math
|
||||
{
|
||||
/**
|
||||
* @param float|int $total
|
||||
* @param int|null $number
|
||||
* @return float
|
||||
*/
|
||||
public static function getPercentage($total, int $number): float
|
||||
{
|
||||
return $total > 0 ? round(($number * 100) / $total, 2) : 0;
|
||||
}
|
||||
|
||||
|
||||
public static function get100Percentage($total, int $number)
|
||||
{
|
||||
return min(self::getPercentage($total, $number), 100);
|
||||
}
|
||||
|
||||
/** Number-20% and Number+20% */
|
||||
public static function get20PercentRange($number): array
|
||||
{
|
||||
return [
|
||||
'min' => $number * ((100 - 20) / 100),
|
||||
'max' => $number * ((100 + 20) / 100),
|
||||
];
|
||||
}
|
||||
|
||||
public static function addPercent($num, $percent)
|
||||
{
|
||||
return $num + (($percent / 100) * $num);
|
||||
}
|
||||
}
|
@ -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 = urldecode(http_build_query($resultText, '', ', '));
|
||||
$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;
|
||||
}
|
||||
|
22
_incl_data/class/Insallah/Table.php
Normal file
22
_incl_data/class/Insallah/Table.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Insallah;
|
||||
|
||||
class Table
|
||||
{
|
||||
public static function get($rows, $class = '', $fill = false)
|
||||
{
|
||||
$c = '';
|
||||
$max_rows = sizeof(max($rows));
|
||||
|
||||
|
||||
foreach ($rows as $row) {
|
||||
if ($fill && sizeof($row) < $max_rows) {
|
||||
$row = array_merge($row, array_fill(0, $max_rows - sizeof($row), ''));
|
||||
}
|
||||
$c .= '<tr><td>' . implode('</td><td>', $row) . '</td></tr>';
|
||||
}
|
||||
|
||||
return (!empty($class) ? "<table class='$class'>" : '<table>') . $c . '</table>' . PHP_EOL;
|
||||
}
|
||||
}
|
@ -5,17 +5,17 @@ namespace Insallah;
|
||||
class Tournament
|
||||
{
|
||||
const IS_ENABLED = true;
|
||||
const SEND_CHAT_MESSAGE = 3;
|
||||
const START_TOURNAMENT = 5;
|
||||
const PRIZE1 = 25;
|
||||
const PRIZE2 = 10;
|
||||
const PRIZE3 = 5;
|
||||
private const SEND_CHAT_MESSAGE = 3;
|
||||
private const START_TOURNAMENT = 5;
|
||||
private const PRIZE1 = 25;
|
||||
private const PRIZE2 = 10;
|
||||
private const PRIZE3 = 5;
|
||||
const MIN_EXP = 175000;
|
||||
const CHAT_MESSAGE = 'Âíèìàíèå! Òóðíèð äëÿ %d óðîâíÿ îòêðûò! Ïîñïåøèòå ïðèíÿòü ó÷àñòèå â Çàëå Âîèíîâ!';
|
||||
const VICTORY_MESSAGE = 'Òóðíèð äëÿ %d óðîâíåé çàâåðø¸í! Ïåðâîå ìåñòî: %s. Âòîðîå ìåñòî: %s. Òðåòüå ìåñòî: %s.';
|
||||
const DELAY1 = '+12hour';
|
||||
const DELAY2 = '+6hour';
|
||||
const DELAY3 = '+3hour';
|
||||
private const CHAT_MESSAGE = 'Âíèìàíèå! Òóðíèð äëÿ %d óðîâíÿ îòêðûò! Ïîñïåøèòå ïðèíÿòü ó÷àñòèå â Çàëå Âîèíîâ!';
|
||||
private const VICTORY_MESSAGE = 'Òóðíèð äëÿ %d óðîâíåé çàâåðø¸í! Ïåðâîå ìåñòî: %s. Âòîðîå ìåñòî: %s. Òðåòüå ìåñòî: %s.';
|
||||
private const DELAY1 = '+12hour';
|
||||
private const DELAY2 = '+6hour';
|
||||
private const DELAY3 = '+3hour';
|
||||
|
||||
/** Ôîðìóëà ðàññ÷¸òà ðàçðåø¸ííîé ñòîèìîñòè îäåòûõ ïðåäìåòîâ.
|
||||
*
|
||||
@ -23,7 +23,7 @@ class Tournament
|
||||
*
|
||||
* @return float|int
|
||||
*/
|
||||
public static function ekrOverpriceFormula($int)
|
||||
public static function ekrOverpriceFormula(int $int): int
|
||||
{
|
||||
return ($int - 7) * 151;
|
||||
}
|
||||
@ -31,20 +31,20 @@ class Tournament
|
||||
/**
|
||||
* Ïðîâåðÿåì ìîæåò ëè èãðîê ó÷àâñòâîâàòü â òóðíèðå è ëèáî ïðèñîåäèíÿåì åãî, ëèáî îáëàìûâàåì.
|
||||
*
|
||||
* @param int $user_id
|
||||
* @param int $uid
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function join($user_id)
|
||||
public function join(int $uid): void
|
||||
{
|
||||
/** Âîçâðàùàåò level, èëè 0 åñëè ïðîâàëåíû ïðîâåðêè. */
|
||||
$userLevel = TournamentModel::getUserLevel($user_id);
|
||||
$userLevel = TournamentModel::getUserLevel($uid);
|
||||
if (
|
||||
$userLevel === 0 ||
|
||||
TournamentModel::isEkrOverpriced($user_id, $userLevel) ||
|
||||
!TournamentModel::isEnoughExperience($user_id) ||
|
||||
TournamentModel::IsRestrictedToJoin($user_id) ||
|
||||
TournamentModel::isStarted($user_id)
|
||||
TournamentModel::isEkrOverpriced($uid, $userLevel) ||
|
||||
!TournamentModel::isEnoughExperience($uid) ||
|
||||
TournamentModel::isRestrictedToJoin($uid) ||
|
||||
TournamentModel::isStarted($uid)
|
||||
) {
|
||||
return;
|
||||
}
|
||||
@ -54,7 +54,7 @@ class Tournament
|
||||
TournamentModel::createTournament($userLevel);
|
||||
}
|
||||
|
||||
TournamentModel::joinTournament($user_id, $userLevel);
|
||||
TournamentModel::joinTournament($uid, $userLevel);
|
||||
$mq++;
|
||||
|
||||
if ($mq == self::SEND_CHAT_MESSAGE) {
|
||||
@ -70,19 +70,21 @@ class Tournament
|
||||
* Ïðîâåðêà äëÿ êðîíà\êîíôèãà. Âûáèâàåò ïðîèãðàâøèõ è ïåðåçàïóñêàåò ïîåäèíêè âî âñåõ òóðíèðàõ.
|
||||
* @return void
|
||||
*/
|
||||
public function startAllBattles()
|
||||
public function startAllBattles(): void
|
||||
{
|
||||
$db = new Db();
|
||||
$db::sql('delete from tournaments where start_time + date_add(start_time,interval 30 minute) < unix_timestamp()');
|
||||
$db::sql(
|
||||
'delete from tournaments where start_time + date_add(start_time,interval 30 minute) < unix_timestamp()'
|
||||
);
|
||||
TournamentModel::removeFighter(TournamentModel::getLooser());
|
||||
$tournament_levels = $db::getColumn('select tid from tournaments where start_time = -1');
|
||||
foreach ($tournament_levels as $level) {
|
||||
$alive_fighters = TournamentModel::getFreeFighters($level);
|
||||
if (count($alive_fighters) > 1) {
|
||||
shuffle($alive_fighters);
|
||||
$this->start_battle($alive_fighters);
|
||||
} elseif (count($alive_fighters) === 1) {
|
||||
TournamentModel::removeFighter($alive_fighters[0], true);
|
||||
$tournamentLevels = $db::getColumn('select tid from tournaments where start_time = -1');
|
||||
foreach ($tournamentLevels as $level) {
|
||||
$aliveFighters = TournamentModel::getFreeFighters($level);
|
||||
if (count($aliveFighters) > 1) {
|
||||
shuffle($aliveFighters);
|
||||
$this->startBattle($aliveFighters);
|
||||
} elseif (count($aliveFighters) === 1) {
|
||||
TournamentModel::removeFighter($aliveFighters[0], true);
|
||||
$this->victory($level);
|
||||
}
|
||||
}
|
||||
@ -91,13 +93,13 @@ class Tournament
|
||||
/**
|
||||
* Ïîëó÷àåì ïàðû áîéöîâ è íà÷èíàåì èõ ïîåäèíêè.
|
||||
*
|
||||
* @param array $fighters_list
|
||||
* @param array $fightersList
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
private function start_battle(array $fighters_list)
|
||||
private function startBattle(array $fightersList): void
|
||||
{
|
||||
$teams = TournamentModel::getFightersTeams($fighters_list);
|
||||
$teams = TournamentModel::getFightersTeams($fightersList);
|
||||
foreach ($teams as $team) {
|
||||
if (count($team) === 2) {
|
||||
TournamentModel::startBattle($team[0], $team[1]);
|
||||
@ -108,13 +110,13 @@ class Tournament
|
||||
/**
|
||||
* Íàãðàæäàåì ïîáåäèòåëåé òóðíèðà, ÷èñòèì áàçó.
|
||||
*
|
||||
* @param int $tournament_id
|
||||
* @param int $tid
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
private function victory($tournament_id)
|
||||
private function victory(int $tid): void
|
||||
{
|
||||
$winners = TournamentModel::getWinners($tournament_id);
|
||||
$winners = TournamentModel::getWinners($tid);
|
||||
sleep(1);
|
||||
TournamentModel::givePrizeItems($winners[1], self::PRIZE1);
|
||||
TournamentModel::givePrizeItems($winners[2], self::PRIZE2);
|
||||
@ -124,12 +126,16 @@ class Tournament
|
||||
TournamentModel::giveDelay($winners[2], strtotime(self::DELAY2));
|
||||
TournamentModel::giveDelay($winners[3], strtotime(self::DELAY3));
|
||||
sleep(1);
|
||||
TournamentModel::sysMessage(sprintf(self::VICTORY_MESSAGE,
|
||||
$tournament_id,
|
||||
TournamentModel::uidToLogin($winners[1]),
|
||||
TournamentModel::uidToLogin($winners[2]),
|
||||
TournamentModel::uidToLogin($winners[3])));
|
||||
TournamentModel::sysMessage(
|
||||
sprintf(
|
||||
self::VICTORY_MESSAGE,
|
||||
$tid,
|
||||
TournamentModel::uidToLogin($winners[1]),
|
||||
TournamentModel::uidToLogin($winners[2]),
|
||||
TournamentModel::uidToLogin($winners[3])
|
||||
)
|
||||
);
|
||||
sleep(3);
|
||||
TournamentModel::destroyTournament($tournament_id);
|
||||
TournamentModel::destroyTournament($tid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ class TournamentModel
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public static function getUserLevel($uid)
|
||||
public static function getUserLevel(int $uid): int
|
||||
{
|
||||
$db = new Db();
|
||||
$level = $db::getValue('select level from users where id = ? and level between 8 and 12 and battle = 0', [$uid]);
|
||||
@ -21,12 +21,12 @@ class TournamentModel
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $uid
|
||||
* @param int $level
|
||||
* @param int $uid
|
||||
* @param int|null $level
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function isEkrOverpriced($uid, $level = null)
|
||||
public static function isEkrOverpriced(int $uid, ?int $level = null): bool
|
||||
{
|
||||
$db = new Db();
|
||||
if (is_null($level)) {
|
||||
@ -41,7 +41,7 @@ class TournamentModel
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function isEnoughExperience($uid)
|
||||
public static function isEnoughExperience(int $uid): bool
|
||||
{
|
||||
$db = new Db();
|
||||
return $db::getValue('select exp from stats where id = ?', [$uid]) >= Tournament::MIN_EXP;
|
||||
@ -52,23 +52,21 @@ class TournamentModel
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function IsRestrictedToJoin($uid)
|
||||
public static function isRestrictedToJoin(int $uid): bool
|
||||
{
|
||||
$db = new Db();
|
||||
$delayEffect = $db::getValue('select count(*) from eff_users where uid = ? and id_eff = 486 and `delete` = 0', [$uid]);
|
||||
return (bool)$delayEffect;
|
||||
return $db::getValue('select count(*) from eff_users where uid = ? and id_eff = 486 and `delete` = 0', [$uid]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $tid
|
||||
* @param int $tid
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function isStarted($tid)
|
||||
public static function isStarted(int $tid): bool
|
||||
{
|
||||
$db = new Db();
|
||||
$status = $db::getValue('select count(*) from tournaments where start_time = -1 and tid = ?', [$tid]);
|
||||
return (bool)$status;
|
||||
return $db::getValue('select count(*) from tournaments where start_time = -1 and tid = ?', [$tid]);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -78,7 +76,7 @@ class TournamentModel
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public static function getWaitingMembersQuantity($tid)
|
||||
public static function getWaitingMembersQuantity(int $tid): int
|
||||
{
|
||||
$db = new Db();
|
||||
return $db::getValue('select count(*) from tournaments_users where tid = ?', [$tid]);
|
||||
@ -91,7 +89,7 @@ class TournamentModel
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function createTournament($tid)
|
||||
public static function createTournament(int $tid): void
|
||||
{
|
||||
$db = new Db();
|
||||
$db::sql('insert into tournaments (tid) values (?)', [$tid]);
|
||||
@ -105,13 +103,13 @@ class TournamentModel
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function joinTournament($uid, $tid)
|
||||
public static function joinTournament(int $uid, int $tid): void
|
||||
{
|
||||
/** Êàñòîìíûå êîìíàòû 25008 - 25012. */
|
||||
$room_id = 25000 + $tid;
|
||||
$roomId = 25000 + $tid;
|
||||
$db = new Db();
|
||||
$db::sql('insert into tournaments_users (tid, uid) values (?, ?)', [$tid, $uid]);
|
||||
self::teleport($uid, $room_id);
|
||||
self::teleport($uid, $roomId);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -121,7 +119,7 @@ class TournamentModel
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function startTournament($tid)
|
||||
public static function startTournament(int $tid): void
|
||||
{
|
||||
$db = new Db();
|
||||
$db::sql('update tournaments set start_time = -1 where tid = ?', [$tid]);
|
||||
@ -134,7 +132,7 @@ class TournamentModel
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function destroyTournament($tid)
|
||||
public static function destroyTournament(int $tid): void
|
||||
{
|
||||
$db = new Db();
|
||||
//Óáåäèòüñÿ ÷òî â áàçå íàñòðîåí foreign_keys è ïîñëåäóåò àâòîî÷èñòêà tournaments_users !!!
|
||||
@ -144,14 +142,14 @@ class TournamentModel
|
||||
/**
|
||||
* Ïîëó÷àåì ñïèñîê áîéöîâ è áü¸ì èõ íà ïàðû. Âîçâðàùàåì ñïèñêè ïàð + 1 ïîñëåäíèé áåç ïàðû åñëè åñòü.
|
||||
*
|
||||
* @param array $fighters_list
|
||||
* @param array $fightersList
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getFightersTeams(array $fighters_list)
|
||||
public static function getFightersTeams(array $fightersList): array
|
||||
{
|
||||
$db = new Db();
|
||||
$query = sprintf("select id from users where battle = 0 and id in (%s)", implode(', ', $fighters_list));
|
||||
$query = sprintf("select id from users where battle = 0 and id in (%s)", implode(', ', $fightersList));
|
||||
return array_chunk($db::getColumn($query), 2);
|
||||
}
|
||||
|
||||
@ -162,7 +160,7 @@ class TournamentModel
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getFreeFighters($tid)
|
||||
public static function getFreeFighters(int $tid): array
|
||||
{
|
||||
$db = new Db();
|
||||
return $db::getColumn('select uid from tournaments_users where tid = ? and death_time = 0 order by uid', [$tid]);
|
||||
@ -175,7 +173,7 @@ class TournamentModel
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getWinners($tid)
|
||||
public static function getWinners(int $tid): array
|
||||
{
|
||||
$db = new Db();
|
||||
$winners = $db::getColumn('select uid from tournaments_users where tid = ? order by death_time desc limit 3', [$tid]);
|
||||
@ -193,18 +191,18 @@ class TournamentModel
|
||||
public static function getLooser()
|
||||
{
|
||||
$query = '
|
||||
select uid, battle
|
||||
from
|
||||
battle_users,
|
||||
(select id, team_win
|
||||
from battle
|
||||
where
|
||||
team_win > 0 and
|
||||
typeBattle = 25000
|
||||
order by time_over desc
|
||||
limit 1) as last_battle
|
||||
where
|
||||
battle_users.battle = last_battle.id and
|
||||
select uid, battle
|
||||
from
|
||||
battle_users,
|
||||
(select id, team_win
|
||||
from battle
|
||||
where
|
||||
team_win > 0 and
|
||||
typeBattle = 25000
|
||||
order by time_over desc
|
||||
limit 1) as last_battle
|
||||
where
|
||||
battle_users.battle = last_battle.id and
|
||||
battle_users.team != last_battle.team_win and
|
||||
battle_users.uid in (select uid from tournaments_users where death_time = 0)';
|
||||
|
||||
@ -214,19 +212,21 @@ class TournamentModel
|
||||
where typeBattle = 25000 and death_time = 0 order by b.time_start desc limit 1';
|
||||
$db = new Db;
|
||||
$row = $db::getRow($query);
|
||||
return $row['uid'];
|
||||
return $row['uid'] ?? 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Âûáûâøèé èç òóðíèðà ïîêèäàåò êîìíàòó è ïîëó÷àåò âðåìÿ ñìåðòè.
|
||||
*
|
||||
* @param int $uid
|
||||
*
|
||||
* @param int $uid
|
||||
* @param bool $winner
|
||||
* @return void
|
||||
*/
|
||||
public static function removeFighter($uid, $winner = false)
|
||||
public static function removeFighter(int $uid, bool $winner = false): void
|
||||
{
|
||||
if (!$uid) return;
|
||||
if (!$uid) {
|
||||
return;
|
||||
}
|
||||
//$winner_timer_add = $winner? 500 : 0; # Ïîñëåäíûé ÄÎËÆÅÍ áûòü ïîñëåäíèì.
|
||||
$db = new Db();
|
||||
$db::sql('update tournaments_users set death_time = unix_timestamp() + 500 where death_time = 0 and uid = ?', [$uid]);
|
||||
@ -243,7 +243,7 @@ class TournamentModel
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public static function getTournamentIdByUserId($uid)
|
||||
public static function getTournamentIdByUserId(int $uid)
|
||||
{
|
||||
$db = new Db();
|
||||
return $db::getValue('select tid from tournaments_users where uid = ?', [$uid]);
|
||||
@ -260,15 +260,15 @@ class TournamentModel
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function startBattle($uid1, $uid2)
|
||||
public static function startBattle(int $uid1, int $uid2): void
|
||||
{
|
||||
$db = new Db();
|
||||
$check = Db::getValue('select count(*) from users where id in (?, ?) and battle = 0', [$uid1, $uid2]);
|
||||
if ((int)$check !== 2) {
|
||||
if ($check !== 2) {
|
||||
return;
|
||||
}
|
||||
|
||||
$db::exec('insert into battle (city, time_start, timeout, type, invis, noinc, travmChance, typeBattle)
|
||||
$db::exec('insert into battle (city, time_start, timeout, type, invis, noinc, travmChance, typeBattle)
|
||||
values (\'capitalcity\', unix_timestamp(), 60, 0, 1, 1, 0, 25000)');
|
||||
$bid = $db::lastInsertId(); // ÂÀÆÍÎ!
|
||||
$db::sql('update stats set team = 1, hpNow = hpAll, mpNow = mpAll where id = ?', [$uid1]);
|
||||
@ -283,7 +283,7 @@ class TournamentModel
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public static function uidToLogin($uid)
|
||||
public static function uidToLogin(int $uid)
|
||||
{
|
||||
$db = new Db();
|
||||
return $db::getValue('select login from users where id = ?', [$uid]);
|
||||
@ -293,14 +293,14 @@ class TournamentModel
|
||||
* Òåëåïîðò ïî êîìíàòàì.
|
||||
*
|
||||
* @param int $uid
|
||||
* @param int $room_id
|
||||
* @param int $roomId
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
private static function teleport($uid, $room_id)
|
||||
private static function teleport(int $uid, int $roomId): void
|
||||
{
|
||||
$db = new Db();
|
||||
$db::sql('update users set room = ? where id = ?', [$room_id, $uid]);
|
||||
$db::sql('update users set room = ? where id = ?', [$roomId, $uid]);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -310,7 +310,7 @@ class TournamentModel
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function sysMessage($message)
|
||||
public static function sysMessage(string $message): void
|
||||
{
|
||||
if (!empty($message)) {
|
||||
$db = new Db();
|
||||
@ -327,9 +327,9 @@ class TournamentModel
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function givePrizeItems($uid, $quantity)
|
||||
public static function givePrizeItems(int $uid, int $quantity): void
|
||||
{
|
||||
$query = 'insert into items_users (item_id, uid, data, iznosMAX, lastUPD, time_create)
|
||||
$query = 'insert into items_users (item_id, uid, data, iznosMAX, lastUPD, time_create)
|
||||
values (4754, :uid, :data, 1, unix_timestamp(), unix_timestamp())';
|
||||
$args = [
|
||||
'uid' => $uid,
|
||||
@ -343,16 +343,16 @@ class TournamentModel
|
||||
}
|
||||
|
||||
/** Ýôôåêò-îãðàíè÷èòåëü íà ó÷àñòèå â òóðíèðå.
|
||||
* @param $uid
|
||||
* @param $unix_time
|
||||
* @param int $uid
|
||||
* @param int $unixtime
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function giveDelay($uid, $unix_time)
|
||||
public static function giveDelay(int $uid, int $unixtime): void
|
||||
{
|
||||
$db = new Db();
|
||||
$query = 'insert into eff_users (id_eff, uid, name, timeUse) VALUES (?,?,?,?)';
|
||||
$args = [486, $uid, 'Ïðèç¸ð ãîðîäñêîãî òóðíèðà!', $unix_time];
|
||||
$args = [486, $uid, 'Ïðèç¸ð ãîðîäñêîãî òóðíèðà!', $unixtime];
|
||||
$db::sql($query, $args);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
35
_incl_data/class/Insallah/Tournaments/Config.php
Normal file
35
_incl_data/class/Insallah/Tournaments/Config.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace Insallah\Tournaments;
|
||||
|
||||
class Config
|
||||
{
|
||||
const IS_ENABLED = true;
|
||||
const SEND_CHAT_MESSAGE = 3;
|
||||
const START_TOURNAMENT = 5;
|
||||
const PRIZE1 = 25;
|
||||
const PRIZE2 = 10;
|
||||
const PRIZE3 = 5;
|
||||
const MIN_EXP = 175000;
|
||||
const CHAT_MESSAGE = 'Âíèìàíèå! Òóðíèð äëÿ %d óðîâíÿ îòêðûò! Ïîñïåøèòå ïðèíÿòü ó÷àñòèå â Çàëå Âîèíîâ!';
|
||||
const VICTORY_MESSAGE = 'Òóðíèð äëÿ %d óðîâíåé çàâåðø¸í! Ïåðâîå ìåñòî: %s. Âòîðîå ìåñòî: %s. Òðåòüå ìåñòî: %s.';
|
||||
const DELAY1 = '+12hour';
|
||||
const DELAY2 = '+6hour';
|
||||
const DELAY3 = '+3hour';
|
||||
const STEP_EKR = 151;
|
||||
const DELAY_EFFECT_ID = 486;
|
||||
const CUSTOM_BATTLE_ID = 25000;
|
||||
const PRIZE_ITEM_ID = 4754;
|
||||
const RETURN_ROOM = 9;
|
||||
const MINIMUM_USER_LEVEL = 8;
|
||||
|
||||
/** Ôîðìóëà ðàññ÷¸òà ðàçðåø¸ííîé ñòîèìîñòè îäåòûõ ïðåäìåòîâ.
|
||||
*
|
||||
* @param $level
|
||||
* @return float|int
|
||||
*/
|
||||
public static function ekrOverpriceFormula($level)
|
||||
{
|
||||
return max(($level - ($level - 1)) * self::STEP_EKR, 0);
|
||||
}
|
||||
}
|
173
_incl_data/class/Insallah/Tournaments/Model/GameConnector.php
Normal file
173
_incl_data/class/Insallah/Tournaments/Model/GameConnector.php
Normal file
@ -0,0 +1,173 @@
|
||||
<?php
|
||||
|
||||
namespace Insallah\Tournaments\Model;
|
||||
|
||||
use Insallah\Db;
|
||||
use Insallah\Tournaments\Config;
|
||||
|
||||
class GameConnector
|
||||
{
|
||||
private array $u;
|
||||
|
||||
public function setUser(int $uid): GameConnector
|
||||
{
|
||||
$this->u = Db::getRow('select id, `level`, login, battle from users where id = ?', [$uid]);
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getAllowedLevel(): int
|
||||
{
|
||||
return $this->u['level'] >= Config::MINIMUM_USER_LEVEL && $this->u['battle'] === 0 ? $this->u['level'] : 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isEkrOverpriced(): bool
|
||||
{
|
||||
return Db::getValue('select sum(2price) from items_users where inOdet > 0 and uid = ?', [$this->u['id']])
|
||||
> Config::ekrOverpriceFormula($this->u['level']);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isEnoughExperience(): bool
|
||||
{
|
||||
return Db::getValue('select exp from stats where id = ?', [$this->u['id']]) >= Config::MIN_EXP;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isRestrictedToJoin(): bool
|
||||
{
|
||||
return Db::getValue('select count(*) from eff_users where uid = ? and id_eff = ? and `delete` = 0', [
|
||||
$this->u['id'], Config::DELAY_EFFECT_ID,]
|
||||
) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Óçíà¸ì ëîãèí ïåðñîíàæà ïî åãî id.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function uidToLogin()
|
||||
{
|
||||
return $this->u['login'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Òåëåïîðò ïî êîìíàòàì.
|
||||
*
|
||||
* @param bool $out - îáðàòíûé òåëåïîðò.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function teleport(bool $out = false)
|
||||
{
|
||||
$roomId = $out ? Config::RETURN_ROOM : Config::CUSTOM_BATTLE_ID + $this->u['level'];
|
||||
Db::sql('update users set room = ? where id = ?', [$roomId, $this->u['id']]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ïîëó÷àåì ñïèñîê áîéöîâ è áü¸ì èõ íà ïàðû, ìåæäó êîòîðûìè ñòàðòóþò ïîåäèíêè 1õ1.
|
||||
* noinc - çàïðåò íà âìåøàòåëüñòâî
|
||||
* invis - íåâèäèìûé áîé
|
||||
*
|
||||
* @param array $fightersList
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function startBattle(array $fightersList)
|
||||
{
|
||||
$teamsq = sprintf("select id from users where battle = 0 and id in (%s)", implode(', ', $fightersList));
|
||||
$teams = array_chunk(Db::getColumn($teamsq), 2);
|
||||
foreach ($teams as $team) {
|
||||
if (count($team) !== 2) {
|
||||
continue;
|
||||
}
|
||||
Db::exec(
|
||||
'insert into battle (city, time_start, timeout, type, invis, noinc, travmChance, typeBattle)
|
||||
values (\'capitalcity\', unix_timestamp(), 60, 0, 1, 1, 0, ' . Config::CUSTOM_BATTLE_ID . ')'
|
||||
);
|
||||
$battleId = Db::lastInsertId();
|
||||
Db::sql('update stats set team = 1, zv = 0, hpNow = hpAll, mpNow = mpAll where id = ?', [$team[0]]);
|
||||
Db::sql('update stats set team = 2, zv = 0, hpNow = hpAll, mpNow = mpAll where id = ?', [$team[1]]);
|
||||
$query = sprintf('update users set battle = %d where id in (%d, %d)', $battleId, $team[0], $team[1]);
|
||||
Db::exec($query);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Ãåíåðèðóåò ìíîæåñòâåííûé çàïðîñ ñðàçó íà $quantity îäíîòèïíûõ ïðåäìåòîâ â èíâåíòàðü ïîëüçîâàòåëÿ $uid.
|
||||
*
|
||||
* @param int $quantity
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function givePrizeItems(int $quantity)
|
||||
{
|
||||
$query = 'insert into items_users (item_id, uid, `data`, iznosMAX, lastUPD, time_create)
|
||||
values (' . Config::PRIZE_ITEM_ID . ', :uid, :data, 1, unix_timestamp(), unix_timestamp())';
|
||||
$args = [
|
||||
'uid' => $this->u['id'],
|
||||
'data' => 'nosale=1|musor=1|sudba=' . $this->uidToLogin() . '|lvl=8|tr_s1=0|tr_s2=0|tr_s3=0|tr_s4=0',
|
||||
];
|
||||
$stmt = Db::prepare($query);
|
||||
for ($i = 0; $i < $quantity; $i++) {
|
||||
$stmt->execute($args);
|
||||
}
|
||||
}
|
||||
|
||||
/** Ýôôåêò-îãðàíè÷èòåëü íà ó÷àñòèå â òóðíèðå.
|
||||
*
|
||||
* @param int $unixtime
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function giveDelay(int $unixtime)
|
||||
{
|
||||
$query = 'insert into eff_users (id_eff, uid, `name`, timeUse) select id2, ?, mname, ? from eff_main where id2 = ?';
|
||||
$args = [Config::DELAY_EFFECT_ID, $this->u['id'], strtotime($unixtime)];
|
||||
Db::sql($query, $args);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ïðîáóåì âûêóñèòü ïðîèãðàâøåãî â ïîñëåäíåé òóðíèðíîé áèòâå è óäàëèòü ýòó ñàìóþ áèòâó âî èçáåæàíèå.
|
||||
* @return mixed
|
||||
*/
|
||||
public static function getLooser(): int
|
||||
{
|
||||
$query = '
|
||||
select uid
|
||||
from
|
||||
battle_users,
|
||||
(select id, team_win
|
||||
from battle
|
||||
where
|
||||
team_win > 0 and
|
||||
typeBattle = ' . Config::CUSTOM_BATTLE_ID . '
|
||||
order by time_over desc
|
||||
limit 1) as last_battle
|
||||
where
|
||||
battle_users.battle = last_battle.id and
|
||||
battle_users.team != last_battle.team_win';
|
||||
return Db::getValue($query);
|
||||
}
|
||||
|
||||
/**
|
||||
* Íåò ïðîâåðîê $message ïîòîìó ÷òî îíî âñåãäà çàäà¸òñÿ â êîäå è èãðîê íà íåãî íå âëèÿåò.
|
||||
*
|
||||
* @param string $message
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function sysMessage(string $message)
|
||||
{
|
||||
if (empty($message)) {
|
||||
return;
|
||||
}
|
||||
Db::sql('insert into chat (`time`, type, `text`, new, da) values (unix_timestamp(), 6, ?, 1, 1)', [$message]);
|
||||
}
|
||||
}
|
114
_incl_data/class/Insallah/Tournaments/Model/Tournament.php
Normal file
114
_incl_data/class/Insallah/Tournaments/Model/Tournament.php
Normal file
@ -0,0 +1,114 @@
|
||||
<?php
|
||||
|
||||
namespace Insallah\Tournaments\Model;
|
||||
|
||||
use Insallah\Db;
|
||||
|
||||
class Tournament
|
||||
{
|
||||
private array $t;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->t = Db::getRows('select * from tournaments') ?? [];
|
||||
}
|
||||
|
||||
public function getAllStarted(): array
|
||||
{
|
||||
$tidList = [];
|
||||
foreach ($this->t as $row) {
|
||||
if ($row['start_time'] === -1) {
|
||||
$tidList[] = $row['tid'];
|
||||
}
|
||||
}
|
||||
return $tidList;
|
||||
}
|
||||
|
||||
public function isStarted(int $tid): bool
|
||||
{
|
||||
foreach ($this->t as $row) {
|
||||
if ($row['start_time'] === -1 && $row['tid'] === $tid) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getList(): string
|
||||
{
|
||||
$list = '';
|
||||
$tournamentMembersId = new User();
|
||||
foreach ($this->t as $row) {
|
||||
$time = $row['start_time'] === -1 ? 'Òóðíèð óæå íà÷àëñÿ!' : date('G:i', $row['start_time']);
|
||||
$members = [];
|
||||
foreach ($tournamentMembersId->getAlive($row['tid']) as $member) {
|
||||
$members[] = (new GameConnector())->setUser($member)->uidToLogin();
|
||||
}
|
||||
$list .= sprintf(
|
||||
"<li>Òóðíèð äëÿ %d óðîâíåé.<br>Âðåìÿ ïîäà÷è çàÿâêè: %s<br>Ó÷àñòíèêè: %s</li>",
|
||||
$row['tid'],
|
||||
$time,
|
||||
implode(', ', $members)
|
||||
);
|
||||
}
|
||||
return $list ? "<div><strong>Àêòèâíûå òóðíèðû.</strong><br><ul>$list</ul></div>" : '';
|
||||
}
|
||||
|
||||
public function getOne(int $tid): string
|
||||
{
|
||||
$str = '';
|
||||
$tournamentMembersId = new User();
|
||||
foreach ($this->t as $row) {
|
||||
if ($this->t['tid'] === $tid) {
|
||||
$time = $row['start_time'] === -1 ? 'Òóðíèð óæå íà÷àëñÿ!' : date('G:i', $row['start_time']);
|
||||
$members = [];
|
||||
foreach ($tournamentMembersId->getAlive($row['tid']) as $member) {
|
||||
$members[] = (new GameConnector())->setUser($member)->uidToLogin();
|
||||
}
|
||||
$str = sprintf(
|
||||
"<div>Òóðíèð äëÿ %d óðîâíåé.<br>Âðåìÿ ïîäà÷è çàÿâêè: %s<br>Ó÷àñòíèêè: %s</div>",
|
||||
$row['tid'],
|
||||
$time,
|
||||
implode(', ', $members)
|
||||
);
|
||||
}
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
|
||||
/**
|
||||
* Ñîçäàíèå íîâîãî òóðíèðà.
|
||||
*
|
||||
* @param int $tid
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function create(int $tid)
|
||||
{
|
||||
Db::sql('insert into tournaments (tid) values (?)', [$tid]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ñòàðò òóðíèðà.
|
||||
*
|
||||
* @param int $tid
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function start(int $tid)
|
||||
{
|
||||
Db::sql('update tournaments set start_time = -1 where tid = ?', [$tid]);
|
||||
}
|
||||
|
||||
/**
|
||||
* ×èñòèì áàçû îò ïðîøåäøåãî òóðíèðà.
|
||||
*
|
||||
* @param int $tid
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function destroy(int $tid)
|
||||
{
|
||||
Db::sql('delete from tournaments where tid = ?', [$tid]);
|
||||
}
|
||||
}
|
128
_incl_data/class/Insallah/Tournaments/Model/User.php
Normal file
128
_incl_data/class/Insallah/Tournaments/Model/User.php
Normal file
@ -0,0 +1,128 @@
|
||||
<?php
|
||||
|
||||
namespace Insallah\Tournaments\Model;
|
||||
|
||||
use Insallah\Db;
|
||||
|
||||
class User
|
||||
{
|
||||
private array $u;
|
||||
private int $waitingUsers = 0;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->u = Db::getRows('select * from tournaments_users');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Ñ÷èòàåì ñêîëüêî èãðîêîâ æäóò â çàÿâêå íà òóðíèð.
|
||||
*
|
||||
* @param int $tid
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getWaitingQuantity(int $tid): int
|
||||
{
|
||||
foreach ($this->u as $row) {
|
||||
if ($row['tid'] === $tid) {
|
||||
$this->addWaitingUser();
|
||||
}
|
||||
}
|
||||
return $this->waitingUsers;
|
||||
}
|
||||
|
||||
public function addWaitingUser()
|
||||
{
|
||||
$this->waitingUsers++;
|
||||
}
|
||||
|
||||
/**
|
||||
* Èãðîê ïðèñîåäèíÿåòñÿ ê òóðíèðó è òåëåïîðòèðóåòñÿ â òóðíèðíóþ êîìíàòó.
|
||||
*
|
||||
* @param int $uid
|
||||
* @param int $tid
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function joinTournament(int $uid, int $tid)
|
||||
{
|
||||
Db::sql('insert into tournaments_users (tid, uid) values (?, ?)', [$tid, $uid]);
|
||||
(new GameConnector())->setUser($uid)->teleport();
|
||||
}
|
||||
|
||||
/**
|
||||
* Âûáèðàåì æèâûõ áîéöîâ íå ñðàæàþùèõñÿ â äàííûé ìîìåíò.
|
||||
*
|
||||
* @param int $tid
|
||||
* @param bool $shuffle - óñòàíîâèòü true åñëè íóæíî ïåðåòàñîâàòü ìàññèâ.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getAlive(int $tid, bool $shuffle = false): array
|
||||
{
|
||||
$arr = [];
|
||||
foreach ($this->u as $row) {
|
||||
if ($row['tid'] === $tid && $row['death_time'] === 0) {
|
||||
$arr[] = $row['uid'];
|
||||
}
|
||||
}
|
||||
if ($shuffle) {
|
||||
shuffle($arr);
|
||||
}
|
||||
return $arr;
|
||||
}
|
||||
|
||||
/**
|
||||
* Âûáèðàåì ïîáåäèòåëåé.
|
||||
*
|
||||
* @param int $tid
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getWinners(int $tid): array
|
||||
{
|
||||
$users = [];
|
||||
$dt = [];
|
||||
foreach ($this->u as $item) {
|
||||
if ($item['tid'] === $tid) {
|
||||
$users[]['uid'] = $item['uid'];
|
||||
$users[]['death_time'] = $item['death_time'];
|
||||
}
|
||||
}
|
||||
foreach ($users as $k => $v) {
|
||||
$dt[$k] = $v['death_time'];
|
||||
}
|
||||
array_multisort($dt, SORT_DESC, $users);
|
||||
return [
|
||||
1 => $users[0],
|
||||
2 => $users[1],
|
||||
3 => $users[2]
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Âûáûâøèé èç òóðíèðà ïîêèäàåò êîìíàòó è ïîëó÷àåò âðåìÿ ñìåðòè.
|
||||
*
|
||||
* @param int $uid
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function remove(int $uid)
|
||||
{
|
||||
Db::sql('update tournaments_users set death_time = unix_timestamp() where death_time = 0 and uid = ?', [$uid]);
|
||||
(new GameConnector())->setUser($uid)->teleport(true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Óçíà¸ì id òóðíèðà ïî id èãðîêà.
|
||||
*
|
||||
* @param int $uid
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public static function getTournamentIdByUserId(int $uid): int
|
||||
{
|
||||
return Db::getValue('select tid from tournaments_users where uid = ?', [$uid]);
|
||||
}
|
||||
}
|
104
_incl_data/class/Insallah/Tournaments/Tournament.php
Normal file
104
_incl_data/class/Insallah/Tournaments/Tournament.php
Normal file
@ -0,0 +1,104 @@
|
||||
<?php
|
||||
|
||||
namespace Insallah\Tournaments;
|
||||
|
||||
class Tournament
|
||||
{
|
||||
/**
|
||||
* Ïðîâåðÿåì ìîæåò ëè èãðîê ó÷àâñòâîâàòü â òóðíèðå è ëèáî ïðèñîåäèíÿåì åãî, ëèáî îáëàìûâàåì.
|
||||
*
|
||||
* @param int $uid
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function join(int $uid)
|
||||
{
|
||||
/** Âîçâðàùàåò level, èëè 0 åñëè ïðîâàëåíû ïðîâåðêè. */
|
||||
$checks = new Model\GameConnector();
|
||||
$tournament = new Model\Tournament();
|
||||
$userLevel = $checks->setUser($uid)->getAllowedLevel();
|
||||
|
||||
if (
|
||||
$userLevel === 0 ||
|
||||
$checks->isEkrOverpriced() ||
|
||||
!$checks->isEnoughExperience() ||
|
||||
$checks->isRestrictedToJoin() ||
|
||||
$tournament->isStarted($uid)
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
$user = new Model\User();
|
||||
|
||||
if (empty($user->getWaitingQuantity($userLevel))) {
|
||||
Model\Tournament::create($userLevel);
|
||||
}
|
||||
|
||||
$user->joinTournament($uid, $userLevel);
|
||||
$user->addWaitingUser();
|
||||
|
||||
if ($user->getWaitingQuantity($userLevel) == Config::SEND_CHAT_MESSAGE) {
|
||||
Model\GameConnector::sysMessage(sprintf(Config::CHAT_MESSAGE, $userLevel));
|
||||
}
|
||||
|
||||
if ($user->getWaitingQuantity($userLevel) == Config::START_TOURNAMENT) {
|
||||
Model\Tournament::start($userLevel);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Ïðîâåðêà äëÿ êðîíà\êîíôèãà. Âûáèâàåò ïðîèãðàâøèõ è ïåðåçàïóñêàåò ïîåäèíêè âî âñåõ òóðíèðàõ.
|
||||
* @return void
|
||||
*/
|
||||
public static function startAllBattles()
|
||||
{
|
||||
if (!Config::IS_ENABLED) {
|
||||
return;
|
||||
}
|
||||
$tournamentlevels = new Model\Tournament();
|
||||
$alivefighters = new Model\User();
|
||||
Model\User::remove(Model\GameConnector::getLooser());
|
||||
foreach ($tournamentlevels->getAllStarted() as $level) {
|
||||
$count = count($alivefighters->getAlive($level, true));
|
||||
if ($count > 1) {
|
||||
Model\GameConnector::startBattle($alivefighters->getAlive($level, true));
|
||||
} elseif ($count === 1) {
|
||||
Model\User::remove($alivefighters->getAlive($level, true)[0]);
|
||||
self::victory($level);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Íàãðàæäàåì ïîáåäèòåëåé òóðíèðà, ÷èñòèì áàçó.
|
||||
*
|
||||
* @param int $tid
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
private static function victory(int $tid)
|
||||
{
|
||||
$u = new Model\User();
|
||||
$uid = new Model\GameConnector();
|
||||
sleep(1);
|
||||
$uid->setUser($u->getWinners($tid)[1])->givePrizeItems(Config::PRIZE1);
|
||||
$uid->setUser($u->getWinners($tid)[2])->givePrizeItems(Config::PRIZE2);
|
||||
$uid->setUser($u->getWinners($tid)[3])->givePrizeItems(Config::PRIZE3);
|
||||
sleep(1);
|
||||
$uid->setUser($u->getWinners($tid)[1])->giveDelay(Config::DELAY1);
|
||||
$uid->setUser($u->getWinners($tid)[2])->giveDelay(Config::DELAY2);
|
||||
$uid->setUser($u->getWinners($tid)[3])->giveDelay(Config::DELAY3);
|
||||
sleep(1);
|
||||
Model\GameConnector::sysMessage(
|
||||
sprintf(
|
||||
Config::VICTORY_MESSAGE,
|
||||
$tid,
|
||||
$uid->setUser($u->getWinners($tid)[1])->uidToLogin(),
|
||||
$uid->setUser($u->getWinners($tid)[2])->uidToLogin(),
|
||||
$uid->setUser($u->getWinners($tid)[3])->uidToLogin()
|
||||
)
|
||||
);
|
||||
sleep(3);
|
||||
Model\Tournament::destroy($tid);
|
||||
}
|
||||
}
|
52
_incl_data/class/Insallah/Tournaments/View/TList.php
Normal file
52
_incl_data/class/Insallah/Tournaments/View/TList.php
Normal file
@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Insallah\Tournaments\View;
|
||||
|
||||
use Insallah\Tournaments\Config;
|
||||
use Insallah\Tournaments\Model\GameConnector;
|
||||
use Insallah\Tournaments\Model\Tournament;
|
||||
use Insallah\Tournaments\Model\User;
|
||||
|
||||
class TList
|
||||
{
|
||||
private string $str;
|
||||
|
||||
public function __construct($user)
|
||||
{
|
||||
if (!Config::IS_ENABLED) {
|
||||
$this->str = '<div><strong style="color: crimson;">Â äàííûé ìîìåíò òóðíèðû íå ïðîâîäÿòñÿ!</strong></div>';
|
||||
return;
|
||||
}
|
||||
$tournamentstatus = new Tournament();
|
||||
$this->str = '<div>
|
||||
<strong style="color: crimson;">Âíèìàíèå!</strong>
|
||||
<ul>
|
||||
<li>Ïðèñîåäèíÿÿñü ê òóðíèðó ïîêèíóòü çàÿâêó <u>íåâîçìîæíî</u>!</li>';
|
||||
if ((new GameConnector())->setUser($user->info['id'])->isEkrOverpriced()) {
|
||||
$this->str .= '<li>Ñòîèìîñòü ïðåäìåòîâ, îäåòûõ íà âàñ íå äîëæíà
|
||||
ïðåâûøàòü ' . Config::ekrOverpriceFormula($user->info['level']) . ' åâðîêðåäèòîâ.
|
||||
</li>';
|
||||
}
|
||||
if ($user->info['exp'] < Config::MIN_EXP) {
|
||||
$this->str .= '<li>Ó âàñ äîëæíî áûòü íå ìåíåå ' . Config::MIN_EXP . ' îïûòà.</li>';
|
||||
}
|
||||
$this->str .= '<li>Òóðíèð íà÷í¸òñÿ, êîãäà â çàÿâêå
|
||||
íàáåð¸òñÿ ' . Config::START_TOURNAMENT . ' ÷åëîâåê.</li>
|
||||
</ul>
|
||||
</div>';
|
||||
$this->str .= $tournamentstatus->getList();
|
||||
if (!User::getTournamentIdByUserId($user->info['id']) || !$tournamentstatus->isStarted($user->info['level'])) {
|
||||
$this->str .= '<form method="post">
|
||||
<input type="submit" name="tournament_start" value="Ïðèíÿòü ó÷àñòèå â òóðíèðå">
|
||||
<input type="hidden" name="key" value="' . $_SESSION['bypass'] . '">
|
||||
</form>';
|
||||
} else {
|
||||
$this->str .= 'Âû ó÷àâñòâóåòå.';
|
||||
}
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
return $this->str;
|
||||
}
|
||||
}
|
46
_incl_data/class/Learming.php
Normal file
46
_incl_data/class/Learming.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
use Core\Db;
|
||||
|
||||
class Learming
|
||||
{
|
||||
private $uid;
|
||||
private $shouldStartLearning;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
/** @var User $user */
|
||||
$user = User::start();
|
||||
$this->uid = $user->info['id'];
|
||||
$this->shouldStartLearning = $user->info['shouldStartLearning'];
|
||||
}
|
||||
|
||||
public function getLearningStatus()
|
||||
{
|
||||
if (!isset($this->shouldStartLearning)) {
|
||||
Db::sql('insert into users_learming (uid) value (?)' ,
|
||||
[$this->uid]);
|
||||
return 1;
|
||||
}
|
||||
return (bool)$this->shouldStartLearning;
|
||||
}
|
||||
|
||||
public function hasLearned()
|
||||
{
|
||||
if (!isset($this->shouldStartLearning)) {
|
||||
return false;
|
||||
}
|
||||
$this->shouldStartLearning = 0;
|
||||
$this->save();
|
||||
return true;
|
||||
}
|
||||
|
||||
private function save()
|
||||
{
|
||||
if (empty($this->uid) || empty($this->shouldStartLearning)) {
|
||||
return;
|
||||
}
|
||||
Db::sql('replace into users_learming (uid, shouldStartLearming) values (?,?)',
|
||||
[$this->uid, $this->shouldStartLearning]);
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
22
_incl_data/class/PassGen.php
Normal file
22
_incl_data/class/PassGen.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
class PassGen
|
||||
{
|
||||
public static function new($length = 8)
|
||||
{
|
||||
return substr(
|
||||
preg_replace(
|
||||
"/[^a-zA-Z0-9]/",
|
||||
"",
|
||||
base64_encode(openssl_random_pseudo_bytes($length + 1))
|
||||
),
|
||||
0,
|
||||
$length
|
||||
);
|
||||
}
|
||||
|
||||
public static function intCode($length = 8): int
|
||||
{
|
||||
return mt_rand(10 ** ($length - 1), 10 ** $length - 1);
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
use Insallah\Db;
|
||||
use Core\Db;
|
||||
use Insallah\Math;
|
||||
|
||||
/*
|
||||
@ -179,6 +179,7 @@ class Priems
|
||||
public function hodUsePriem($eff, $pr)
|
||||
{
|
||||
global $btl;
|
||||
$u = $this->u; // Äëÿ ïðèñîåäèÿíåìûõ ôàéëîâ.
|
||||
$return_main = true;
|
||||
$ue = Db::getRow(
|
||||
'select * from users left join stats on (users.id = stats.id) where users.id = ? and battle = ? and hpNow > 0',
|
||||
@ -1310,7 +1311,8 @@ class Priems
|
||||
|
||||
public function pruse($id)
|
||||
{
|
||||
global $u, $c, $code, $btl, $ue;
|
||||
global $btl;
|
||||
$u = $this->u; // Äëÿ ïðèñîåäèÿíåìûõ ôàéëîâ.
|
||||
if ($id == 100500 && $this->u->info['animal'] > 0) {
|
||||
$use_lst = $this->u->testAction(
|
||||
'`uid` = "' . $this->u->info['id'] . '" AND `vars` = "animal_use' . $btl->info['id'] . '" LIMIT 1',
|
||||
@ -1344,7 +1346,7 @@ class Priems
|
||||
);
|
||||
if (isset($id['id']) && $btl->info['type'] != 500) {
|
||||
$b = $this->u->addNewbot($id['id'], null, null);
|
||||
if ($b > 0 && $b != false) {
|
||||
if ($b > 0 && $b) {
|
||||
$a['eda'] -= 4;
|
||||
if ($a['eda'] < 0) {
|
||||
$a['eda'] = 0;
|
||||
@ -1424,7 +1426,7 @@ class Priems
|
||||
`u`.`id`,`u`.`login`,`u`.`login2`,`u`.`online`,`u`.`admin`,`u`.`city`,`u`.`cityreg`,`u`.`align`,`u`.`clan`,
|
||||
`u`.`level`,`u`.`money`,`u`.`money3`,`u`.`money4`,`u`.`battle`,`u`.`sex`,`u`.`obraz`,`u`.`win`,`u`.`win_t`,
|
||||
`u`.`lose`,`u`.`lose_t`,`u`.`nich`,`u`.`timeMain`,`u`.`invis`,`u`.`bot_id`,`u`.`animal`,`u`.`type_pers`,
|
||||
`u`.`notrhod`,`u`.`bot_room`,`u`.`inUser`,`u`.`inTurnir`,`u`.`inTurnirnew`,`u`.`activ`,`u`.`stopexp`,`u`.`real`,
|
||||
`u`.`notrhod`,`u`.`bot_room`,`u`.`inUser`,`u`.`inTurnir`,`u`.`inTurnirnew`,`u`.`stopexp`,`u`.`real`,
|
||||
|
||||
`st`.*
|
||||
|
||||
@ -1453,7 +1455,7 @@ class Priems
|
||||
`u`.`id`,`u`.`login`,`u`.`login2`,`u`.`online`,`u`.`admin`,`u`.`city`,`u`.`cityreg`,`u`.`align`,`u`.`clan`,
|
||||
`u`.`level`,`u`.`money`,`u`.`money3`,`u`.`money4`,`u`.`battle`,`u`.`sex`,`u`.`obraz`,`u`.`win`,`u`.`win_t`,
|
||||
`u`.`lose`,`u`.`lose_t`,`u`.`nich`,`u`.`timeMain`,`u`.`invis`,`u`.`bot_id`,`u`.`animal`,`u`.`type_pers`,
|
||||
`u`.`notrhod`,`u`.`bot_room`,`u`.`inUser`,`u`.`inTurnir`,`u`.`inTurnirnew`,`u`.`activ`,`u`.`stopexp`,`u`.`real`,
|
||||
`u`.`notrhod`,`u`.`bot_room`,`u`.`inUser`,`u`.`inTurnir`,`u`.`inTurnirnew`,`u`.`stopexp`,`u`.`real`,
|
||||
|
||||
`st`.*
|
||||
|
||||
@ -1479,9 +1481,6 @@ class Priems
|
||||
if ($this->u->info['team'] == $this->ue['team']) {
|
||||
$notr++;
|
||||
}
|
||||
} elseif ($pl['team'] == 0) {
|
||||
//ëþáàÿ êîìàíäà
|
||||
|
||||
}
|
||||
} else {
|
||||
$ga = mysql_fetch_assoc(
|
||||
@ -1583,7 +1582,7 @@ class Priems
|
||||
|
||||
private function rezadEff($uid, $mg)
|
||||
{
|
||||
global $u, $btl, $c, $code;
|
||||
global $btl;
|
||||
//$this->rezadEff($this->u->info['id'],'wis_fire_');
|
||||
$md = '';
|
||||
$md2 = '';
|
||||
@ -2067,7 +2066,7 @@ class Priems
|
||||
//âûâîäèì ïðèåìû $id - 1 (âíå áîÿ), 2 - â áîþ
|
||||
public function seeMy($t)
|
||||
{
|
||||
global $u, $c, $code, $btl;
|
||||
global $btl;
|
||||
$i = 0;
|
||||
$p = explode('|', $this->u->info['priems']);
|
||||
$lvar = '';
|
||||
@ -2521,7 +2520,7 @@ class Priems
|
||||
//âûâîäèì âñå äîñòóïíûå ïðèåìû èãðîêó íà åãî óðîâíå - 1, âûâîäèì âñå äîñòóïíûå ïðèåìû òîëüêî èãðîêó - 2
|
||||
public function seePriems($mt)
|
||||
{
|
||||
global $u, $c, $code;
|
||||
global $code;
|
||||
$t = $this->u->items['tr'];
|
||||
$nm = [1 => 'hit', 2 => 'krit', 3 => 'counter', 4 => 'block', 5 => 'parry', 6 => 'hp', 7 => 'spirit'];
|
||||
$lvlfe = $this->u->info['level'];
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
use Insallah\Db;
|
||||
use Core\Db;
|
||||
|
||||
class Season
|
||||
{
|
||||
|
@ -1,14 +1,13 @@
|
||||
<?php
|
||||
if (!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
|
||||
use Core\Db;
|
||||
|
||||
class Tournir
|
||||
{
|
||||
private $u;
|
||||
private $info;
|
||||
private $user;
|
||||
private $name = [0 => 'Âûæèòü ëþáîé öåíîé', 1 => 'Êàæäûé ñàì çà ñåáÿ', 2 => 'Çàõâàò êëþ÷à',];
|
||||
private User $u;
|
||||
private array $info;
|
||||
private array $user;
|
||||
private array $name = [0 => 'Âûæèòü ëþáîé öåíîé', 1 => 'Êàæäûé ñàì çà ñåáÿ', 2 => 'Çàõâàò êëþ÷à',];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
@ -19,24 +18,24 @@ class Tournir
|
||||
|
||||
private function start()
|
||||
{
|
||||
$this->info = mysql_fetch_array(mysql_query('SELECT * FROM `turnirs` WHERE `id` = "' . $this->u->info['inTurnirnew'] . '" LIMIT 1'));
|
||||
$this->user = mysql_fetch_array(mysql_query('SELECT * FROM `users_turnirs` WHERE `turnir` = "' . $this->u->info['inTurnirnew'] . '" AND `bot` = "' . $this->u->info['id'] . '" LIMIT 1'));
|
||||
$this->info = Db::getRow('select * from turnirs where id = ?', [$this->u->info['inTurnirnew']]);
|
||||
$this->user = Db::getRow('select * from users_turnirs where turnir = ? and bot = ?', [$this->u->info['inTurnirnew'], $this->u->info['id']]);
|
||||
}
|
||||
|
||||
private function startTurnir()
|
||||
{
|
||||
$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) {
|
||||
$row = Db::getValue('select count(*) from users where win = 0 and lose = 0 and nich = 0');
|
||||
if (!$row || $this->info['status'] == 3) {
|
||||
if ($this->info['status'] == 3) {
|
||||
$this->finishTurnir();
|
||||
}
|
||||
} else {
|
||||
mysql_query('UPDATE `turnirs` SET `status` = "3" WHERE `id` = "' . $this->info['id'] . '" LIMIT 1');
|
||||
Db::sql('update turnirs set status = 3 where id = ?', [$this->info['id']]);
|
||||
//Ñîçäàíèå ïîåäèíêà
|
||||
mysql_query('INSERT INTO `battle` (`city`,`time_start`,`timeout`,`type`,`turnir`) VALUES ("' . $this->u->info['city'] . '","' . time() . '","60","1","' . $this->info['id'] . '")');
|
||||
$uri = mysql_insert_id();
|
||||
Db::sql('insert into battle (city, time_start, timeout, type, turnir) values (?,unix_timestamp(),60,1,?)', [$this->u->info['city'], $this->info['id']]);
|
||||
$uri = Db::lastInsertId();
|
||||
//Çàêèäûâàåì ïåðñîíàæåé â ïîåäèíîê
|
||||
mysql_query('UPDATE `users` SET `battle` = "' . $uri . '" WHERE `inUser` = "0" AND `inTurnirnew` = "' . $this->info['id'] . '"');
|
||||
Db::sql('update users set battle = ? where inUser = 0 and inTurnirnew = ?', [$uri, $this->info['id']]);
|
||||
//Îáîçíà÷àåì çàâåðøåíèå òóðíèðà ïðè âûõîäå
|
||||
die('Ïåðåéòèäå â ðàçäåë "ïîåäèíêè"...');
|
||||
}
|
||||
@ -62,9 +61,6 @@ class Tournir
|
||||
}
|
||||
|
||||
if ($pl['team'] == $this->info['winner'] && $this->info['winner'] != 0) {
|
||||
|
||||
$inf['add_expn'] = 3000;
|
||||
|
||||
$inf['add_expp'] = [0, 1, 5, 10, 15, 25, 35, 70, 100, 150, 200, 300, 500, 700, 1000];
|
||||
|
||||
//ïîëó÷àåì îïûò (ñ 0 ïî 12 ëâë)
|
||||
@ -82,7 +78,6 @@ class Tournir
|
||||
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');
|
||||
}
|
||||
@ -172,7 +167,6 @@ class Tournir
|
||||
}
|
||||
|
||||
if ($addi == 1) {
|
||||
|
||||
$i = 0;
|
||||
while ($i <= 17) {
|
||||
if ($i == 10) {
|
||||
@ -468,7 +462,6 @@ class Tournir
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
}
|
||||
$r .= '<div align="left" style="height:1px; width:100%; margin:10px 0 10px 0; border-top:1px solid #999999;"></div>';
|
||||
$r .= '<table style="border:1px solid #99cccc" width="700" bgcolor="#bbdddd" border="0" align="center" cellpadding="5" cellspacing="0">
|
||||
|
@ -3,8 +3,8 @@
|
||||
/**
|
||||
* Åäèíàÿ ôóíêöèÿ äëÿ çàëèâêè ôàéëîâ íà ñåðâåð.
|
||||
*
|
||||
* @version 1
|
||||
* @author Ivor Barhansky <me@lopar.space>
|
||||
* @version 1
|
||||
*/
|
||||
|
||||
class Uploader
|
||||
@ -16,15 +16,15 @@ class Uploader
|
||||
private $extensions = 'jpg|png|jpeg|gif';
|
||||
private $extMatches = [];
|
||||
private $FILE;
|
||||
private $cnm = null;
|
||||
private $cnm;
|
||||
public static $error;
|
||||
|
||||
public function __construct($name, $cnm = null)
|
||||
{
|
||||
$this->FILE = $_FILES;
|
||||
if (!$this->FILE[$name]) {
|
||||
if (!isset($_FILES[$name])) {
|
||||
return;
|
||||
}
|
||||
$this->FILE = $_FILES[$name];
|
||||
$this->cnm = $cnm;
|
||||
}
|
||||
|
||||
@ -56,7 +56,7 @@ class Uploader
|
||||
*/
|
||||
public function setMaxFileSize($megabytes)
|
||||
{
|
||||
$this->maxFileSizeMb = $megabytes * (1024 * 1024);
|
||||
$this->maxFileSizeMb = $megabytes;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -65,7 +65,7 @@ class Uploader
|
||||
*/
|
||||
public function setSavePath($path)
|
||||
{
|
||||
$this->savePath = __DIR__ . '/' . $path;
|
||||
$this->savePath = $_SERVER['DOCUMENT_ROOT'] . '/' . $path;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -99,17 +99,20 @@ class Uploader
|
||||
private function hasNormalDimensions()
|
||||
{
|
||||
list($width, $height) = getimagesize($this->FILE['tmp_name']);
|
||||
if (!$width || !$height) {
|
||||
self::$error = 'Íå ïîäòÿíóëèñü ðàçìåðû ôàéëà.';
|
||||
return false;
|
||||
}
|
||||
if (
|
||||
$width < $this->width['min'] ||
|
||||
$width > $this->width['max'] ||
|
||||
$height < $this->height['min'] ||
|
||||
$height > $this->height['max']
|
||||
($width < $this->width['min'] || $width > $this->width['max']) ||
|
||||
($height < $this->height['min'] || $height > $this->height['max'])
|
||||
) {
|
||||
self::$error = "Òðåáîâàíèÿ ê ðàçìåðó [{$this->width['max']}x{$this->height['max']}] íå ñîáëþäåíû.";
|
||||
self::$error = 'Òðåáîâàíèÿ ê ðàçìåðó: ';
|
||||
if ($this->width['min'] !== $this->width['max'] || $this->height['min'] !== $this->height['max']) {
|
||||
self::$error .= " Ìèíèìóì [{$this->width['min']}x{$this->height['min']}].";
|
||||
self::$error .= "îò [{$this->width['min']} x {$this->height['min']}] äî ";
|
||||
}
|
||||
self::$error .= " <span style='color:red;'>[{$width}x$height]</span>";
|
||||
self::$error .= "[{$this->width['max']} x {$this->height['max']}].";
|
||||
self::$error .= " Òåêóùèé ðàçìåð [$width x $height]";
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@ -120,7 +123,7 @@ class Uploader
|
||||
if (!$this->maxFileSizeMb) {
|
||||
$this->setMaxFileSize(2);
|
||||
}
|
||||
if ($this->FILE['size'] > $this->maxFileSizeMb || $this->FILE['size'] <=0) {
|
||||
if ($this->FILE['size'] > $this->maxFileSizeMb * (1024 * 1024) || $this->FILE['size'] <= 0) {
|
||||
self::$error = 'Íåâåðíûé ðàçìåð ôàéëà. Ìàêñèìàëüíûé ðàçìåð ôàéëà ' . $this->maxFileSizeMb . ' ÌÁ';
|
||||
return false;
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
120
_incl_data/class/User/Confirmation.php
Normal file
120
_incl_data/class/User/Confirmation.php
Normal file
@ -0,0 +1,120 @@
|
||||
<?php
|
||||
|
||||
namespace User;
|
||||
|
||||
use Core\Config;
|
||||
use Core\Db;
|
||||
use Core\Mail;
|
||||
use UserIp;
|
||||
|
||||
class Confirmation
|
||||
{
|
||||
/**
|
||||
* Äëÿ îäíîòèïíûõ ïèñåì ñ ïîäòâåðæäåíèåì.
|
||||
* @param array $userinfo Äàííûå èç (User)->info.
|
||||
* @param mixed $value Íîâîå çíà÷åíèå
|
||||
* @param ?int $code Ïðîâåðî÷íûé êîä
|
||||
* @param string $type Òèï ìåíÿåìîãî çíà÷åíèÿ. Ñ ìàëåíüêîé áóêâû, èìåíèòåëüíûé ïàäåæ.
|
||||
* @return void
|
||||
*/
|
||||
public static function byEmail(array $userinfo, string $type, $value, ?int $code = null)
|
||||
{
|
||||
if ($type === 'pass2' && is_null($code)) {
|
||||
self::pass2ByEmailCustom($userinfo, $value);
|
||||
return;
|
||||
}
|
||||
$ip = UserIp::get();
|
||||
$date = date('d.m.y H:i');
|
||||
$https = Config::get('https');
|
||||
$support = Config::get('support');
|
||||
$activationLink = 'https://' . $userinfo['city'] . Config::get('host') .
|
||||
"/confirm.php?id={$userinfo['id']}&code=$code";
|
||||
$fulllogin = $userinfo['login'] . "[{$userinfo['level']}]";
|
||||
Mail::send(
|
||||
$userinfo['mail'],
|
||||
<<<HTML
|
||||
<html lang="ru">
|
||||
<head><title>Ñìåíèòü $type</title></head>
|
||||
<body>
|
||||
$date<br>
|
||||
Êòî-òî ñ IP: $ip ïûòàåòñÿ ñìåíèòü $type ê ïåðñîíàæó $fulllogin.<br>
|
||||
Ò.ê. â àíêåòå ó ýòîãî ïåðñîíàæà óêàçàí email: {$userinfo['mail']}, òî âû è ïîëó÷èëè ýòî ïèñüìî.<br>
|
||||
login: {$userinfo['login']}<br>
|
||||
Íîâûé $type: <span style="background-color: wheat; font-family: Consolas, monospace;">$value</span><br><br>
|
||||
Äëÿ òîãî ÷òîáû ñìåíèòü $type, ïåðåéäèòå ïî ññûëêå:<br>
|
||||
$activationLink<br>
|
||||
<br>--<br>
|
||||
Áîéöîâñêèé Êëóá $https<br>
|
||||
Àäìèíèñòðàöèÿ Áîéöîâñêîãî Êëóáà: $support<br>
|
||||
P.S. Äàííîå ïèñüìî ñãåíåðèðîâàíî àâòîìàòè÷åñêè, îòâå÷àòü íà íåãî íå íóæíî.
|
||||
</body>
|
||||
</html>
|
||||
HTML,
|
||||
"Ñìåíà $type ó ïåðñîíàæà $fulllogin"
|
||||
);
|
||||
}
|
||||
|
||||
private static function pass2ByEmailCustom(array $userinfo, string $pass2)
|
||||
{
|
||||
|
||||
$ip = UserIp::get();
|
||||
$fulllogin = $userinfo['login'] . "[{$userinfo['level']}]";
|
||||
Mail::send(
|
||||
$userinfo['mail'],
|
||||
<<<HTML
|
||||
<html lang="ru">
|
||||
<head><title>Âòîðîé ïàðîëü îò ïåðñîíàæà $fulllogin.</title></head>
|
||||
<body>
|
||||
Âàìè, ñ IP àäðåñà - $ip, áûë óñòàíîâëåí âòîðîé ïàðîëü â èãðå Áîéöîâñêèé Êëóá.<br>
|
||||
Åñëè ýòî áûëè íå Âû, ñâÿæèòåñü ñ àäìèíèñòðàöèåé ñàéòà.<br><br>
|
||||
------------------------------------------------------------------<br>
|
||||
Âàø ëîãèí | {$userinfo['login']}<br>
|
||||
Âòîðîé ïàðîëü | ' . $pass2 . '<br>
|
||||
------------------------------------------------------------------<br>
|
||||
<br><br>Æåëàåì Âàì ïðèÿòíîé èãðû.<br><br><i>Àäìèíèñòðàöèÿ</i>
|
||||
</body>
|
||||
HTML,
|
||||
"Âòîðîé ïàðîëü îò ïåðñîíàæà $fulllogin"
|
||||
);
|
||||
}
|
||||
|
||||
public static function byCode(int $uid, int $code): string
|
||||
{
|
||||
$status = '';
|
||||
|
||||
if ($uid <= 0 || $code <= 0) {
|
||||
return $status;
|
||||
}
|
||||
|
||||
$codes = Db::getRow(
|
||||
'select * from emailconfirmation where id = ? and code = ? and (active = 1 or pass = 1 or email = 1)',
|
||||
[$uid, $code]
|
||||
);
|
||||
if (!$codes['id']) {
|
||||
$status = 'Ññûëêà óñòàðåëà!';
|
||||
} elseif ($codes['active'] === 1) {
|
||||
Db::sql(
|
||||
'update users set emailconfirmation = 1, securetime = unix_timestamp() + 259200 where id = ?',
|
||||
[$codes['id']]
|
||||
);
|
||||
$status = "Ïîäòâåðæäåíèå ñìåíû ïàðîëÿ/email ÷åðåç ïî÷òó âêëþ÷åíî";
|
||||
} elseif ($codes['pass'] === 1) {
|
||||
Db::sql(
|
||||
'update users as u inner join emailconfirmation as e on u.id = e.id set u.pass = e.pa_em, u.securetime = unix_timestamp() + 259200 where u.id = ?',
|
||||
[$codes['id']]
|
||||
);
|
||||
$status = "Óäà÷íî ñìåíèëè ïàðîëü<";
|
||||
} elseif ($codes['email'] === 1) {
|
||||
Db::sql(
|
||||
'update users as u inner join emailconfirmation as e on u.id = e.id set u.mail = e.pa_em, u.securetime = unix_timestamp() + 259200 where u.id = ?',
|
||||
[$codes['id']]
|
||||
);
|
||||
$status = "Óäà÷íî ñìåíèëè email";
|
||||
}
|
||||
Db::sql('delete from emailconfirmation where id = ? and code = ?', [$_GET['id'], $_GET['code']]);
|
||||
if ($status) {
|
||||
$status = "<h3>$status</h3>";
|
||||
}
|
||||
return $status;
|
||||
}
|
||||
}
|
42
_incl_data/class/User/Email.php
Normal file
42
_incl_data/class/User/Email.php
Normal file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace User;
|
||||
|
||||
use Core\Db;
|
||||
use PassGen;
|
||||
use User;
|
||||
|
||||
class Email
|
||||
{
|
||||
private array $info = [];
|
||||
|
||||
public function __construct(array $userinfo)
|
||||
{
|
||||
$this->info = $userinfo ?? User::start()->info;
|
||||
}
|
||||
|
||||
public function change(string $old, string $new): string
|
||||
{
|
||||
if ($old === $new) {
|
||||
return $this->info['mail'];
|
||||
}
|
||||
|
||||
if ($this->info['emailconfirmation'] === 1) {
|
||||
$query = 'insert into emailconfirmation (id, code, pa_em, pass) values (?,?,?,1)';
|
||||
$args = [
|
||||
$this->info['id'],
|
||||
PassGen::intCode(10),
|
||||
$new
|
||||
];
|
||||
Confirmation::byEmail($this->info, 'email', $new, $args[1]);
|
||||
} else {
|
||||
$query = 'update users set mail = ?, securetime = unix_timestamp() + 259200 where id = ?';
|
||||
$args = [
|
||||
$new,
|
||||
$this->info['id']
|
||||
];
|
||||
}
|
||||
Db::sql($query, $args);
|
||||
return $new;
|
||||
}
|
||||
}
|
67
_incl_data/class/User/Password.php
Normal file
67
_incl_data/class/User/Password.php
Normal file
@ -0,0 +1,67 @@
|
||||
<?php
|
||||
|
||||
namespace User;
|
||||
|
||||
use Core\Db;
|
||||
use PassGen;
|
||||
use User;
|
||||
|
||||
class Password
|
||||
{
|
||||
private array $info = [];
|
||||
|
||||
public function __construct(array $userinfo)
|
||||
{
|
||||
$this->info = $userinfo ?? User::start()->info;
|
||||
}
|
||||
|
||||
public function changeFirst(string $old, string $new): string
|
||||
{
|
||||
if ($old === $new && password_verify($old, $this->info['pass'])) {
|
||||
if ($this->info['emailconfirmation'] === 1) {
|
||||
$query = 'insert into emailconfirmation (id, code, pa_em, pass) values (?,?,?,1)';
|
||||
$args = [
|
||||
$this->info['id'],
|
||||
PassGen::intCode(10),
|
||||
password_hash($new, PASSWORD_DEFAULT)
|
||||
];
|
||||
Confirmation::byEmail($this->info, 'ïàðîëü', $new, $args[1]);
|
||||
$hashedPass = $args[2];
|
||||
} else {
|
||||
$query = 'update users set pass = ?, repass = 0, securetime = unix_timestamp() + 259200 where id = ?';
|
||||
$args = [
|
||||
password_hash($new, PASSWORD_DEFAULT),
|
||||
$this->info['id']
|
||||
];
|
||||
$hashedPass = $args[0];
|
||||
}
|
||||
Db::sql($query, $args);
|
||||
return $hashedPass;
|
||||
}
|
||||
return $this->info['pass'];
|
||||
}
|
||||
|
||||
public function changeSecond(?int $passLength): array
|
||||
{
|
||||
if (in_array($passLength, [4,6,8])) {
|
||||
$query = 'update users set pass2 = ? where id = ?';
|
||||
$pass2 = PassGen::intCode($passLength);
|
||||
$args = [
|
||||
password_hash($pass2, PASSWORD_DEFAULT),
|
||||
$this->info['id']
|
||||
];
|
||||
Confirmation::byEmail($this->info, 'pass2', $pass2);
|
||||
$hash = $args[0];
|
||||
} else {
|
||||
$query = 'update users set pass2 = default where id = ?';
|
||||
$args = [$this->info['id']];
|
||||
}
|
||||
|
||||
Db::sql($query, $args);
|
||||
return [
|
||||
'pass2' => $pass2 ?? '',
|
||||
'hash' => $hash ?? null,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
16
_incl_data/class/UserIp.php
Normal file
16
_incl_data/class/UserIp.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
class UserIp
|
||||
{
|
||||
public static function get()
|
||||
{
|
||||
return $_SERVER['HTTP_CLIENT_IP']
|
||||
?? $_SERVER["HTTP_CF_CONNECTING_IP"] # when behind cloudflare
|
||||
?? $_SERVER['HTTP_X_FORWARDED']
|
||||
?? $_SERVER['HTTP_X_FORWARDED_FOR']
|
||||
?? $_SERVER['HTTP_FORWARDED']
|
||||
?? $_SERVER['HTTP_FORWARDED_FOR']
|
||||
?? $_SERVER['REMOTE_ADDR']
|
||||
?? '0.0.0.0';
|
||||
}
|
||||
}
|
@ -1,28 +1,119 @@
|
||||
<?php
|
||||
|
||||
use Core\Db;
|
||||
|
||||
class UserRegister
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
public function hasMixedLatCur(string $txt): bool
|
||||
{
|
||||
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'];
|
||||
}
|
||||
define('IP', $ip);
|
||||
if ($_SERVER['HTTP_REFERER'] == 'https://new-combats.com/' && $_COOKIE['acomb1'] != '2') {
|
||||
setcookie('acomb1', '1', time() + 60 * 60 * 24 * 3);
|
||||
}
|
||||
}
|
||||
|
||||
public function en_ru($txt)
|
||||
{
|
||||
$en = preg_match("/^(([0-9A-z _-])+)$/i", $txt);
|
||||
$en = preg_match("/^(([0-9A-z -])+)$/i", $txt);
|
||||
$ru = preg_match("/^(([0-9À-ÿ _-])+)$/i", $txt);
|
||||
return ($ru && $en) || (!$ru && !$en);
|
||||
}
|
||||
|
||||
public function hasGoodLogin(string $login): string
|
||||
{
|
||||
$isRestricted = in_array(
|
||||
$login,
|
||||
[
|
||||
'àíãåë', 'angel', 'àäìèíèñòðàöèÿ', 'administration', 'Êîììåíòàòîð',
|
||||
'Ìèðîçäàòåëü', 'Ìóñîðùèê', 'Ïàäàëüùèê', 'Ïîâåëèòåëü',
|
||||
'Àðõèâàðèóñ', 'Ïåðåñìåøíèê', 'Âîëûíùèê', 'Ëîðä Ðàçðóøèòåëü',
|
||||
'Ìèëîñåðäèå', 'Ñïðàâåäëèâîñòü', 'Èñêóøåíèå', 'Âîçíåñåíèå',
|
||||
]
|
||||
);
|
||||
$isRegistered = Db::getValue('select count(*) from users where login = ?', [$login]);
|
||||
//Áûâøèå â óïîòðåáëåíèè ëîãèíû. Äè÷ü, íî ëàäíî.
|
||||
$wasRegistered = Db::getValue('select count(*) from lastnames where login = ?', [$login]);
|
||||
|
||||
$login = str_replace(' ', ' ', $login);
|
||||
//Ëîãèí îò 4 äî 20 ñèìâîëîâ
|
||||
if (strlen($login) > 20) {
|
||||
$error = 'Ëîãèí äîëæåí ñîäåðæàòü íå áîëåå 20 ñèìâîëîâ.';
|
||||
}
|
||||
if (strlen($login) < 4) {
|
||||
$error = 'Ëîãèí äîëæåí ñîäåðæàòü íå ìåíåå 4 ñèìâîëîâ.';
|
||||
}
|
||||
if ($this->hasMixedLatCur($login)) {
|
||||
$error = 'Â ëîãèíå ðàçðåøåíî èñïîëüçîâàòü òîëüêî áóêâû îäíîãî àëôàâèòà ðóññêîãî èëè àíãëèéñêîãî. Íåëüçÿ ñìåøèâàòü.';
|
||||
}
|
||||
//Ðàçäåëèòåëè
|
||||
if (substr_count($login, ' ') + substr_count($login, '-') + substr_count($login, '_') > 2) {
|
||||
$error = 'Íå áîëåå äâóõ ðàçäåëèòåëåé îäíîâðåìåííî (ïðîáåë, òèðå, íèæíåå ïîä÷åðêèâàíèå).';
|
||||
}
|
||||
if (!empty($error)) {
|
||||
$error .= '<br> Ïðèìåð ïðàâèëüíîãî íèêíåéìà: Ïåòÿ Óáèâàòîð, Êîëÿ, xalop. <br> Ïðèìåð íåïðàâèëüíîãî íèêíåéìà: )))), kolÿ)=-/.';
|
||||
|
||||
}
|
||||
if ($isRegistered || $wasRegistered || $isRestricted) {
|
||||
$error = 'Ëîãèí ' . $login . ' óæå çàíÿò, âûáåðèòå äðóãîé.';
|
||||
}
|
||||
|
||||
return $error ?? '';
|
||||
}
|
||||
|
||||
public function hasGoodEmail(string $email): string
|
||||
{
|
||||
$isRegistered = Db::getValue('select count(*) from users where mail = ?', [$email]);
|
||||
$isBlocked = Db::getValue('select count(*) from ban_email where email = ?', [$email]);
|
||||
if (!filter_var($email, FILTER_VALIDATE_EMAIL) || $isRegistered) {
|
||||
$error = 'Íåïðàâèëüíûé email.';
|
||||
}
|
||||
if ($isBlocked) {
|
||||
$error = 'Àäðåñ çàáëîêèðîâàí.';
|
||||
}
|
||||
|
||||
$allowedDomains = Db::getColumn('select email from trust_email');
|
||||
$domain = explode('@', $email)[1];
|
||||
|
||||
if (!in_array($domain, $allowedDomains)) {
|
||||
$error = 'Äàííûé ïî÷òîâûé ñåðâèñ èñïîëüçîâàòü íåëüçÿ.';
|
||||
}
|
||||
|
||||
return $error ?? '';
|
||||
}
|
||||
|
||||
public function hasGoodEmailCode(string $email, int $code): string
|
||||
{
|
||||
$check = Db::getValue('select code from secure_code where email = ?', [$email]);
|
||||
if ($code !== $check) {
|
||||
return 'Íåâåðíûé ïðîâåðî÷íûé êîä.';
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
public function hasGoodPassword(string $password1, string $password2): string
|
||||
{
|
||||
if ($password1 !== $password2) {
|
||||
$error = 'Ïàðîëè íå ñîâïàäàþò';
|
||||
}
|
||||
if (strlen($password1 < 8)) {
|
||||
$error = 'Ïàðîëü äîëæåí áûòü áîëüøå 8 ñèìâîëîâ';
|
||||
$error .= 'Ìîæåòå èñïîëüçîâàòü ñãåíåðèðîâàííûé ïàðîëü: ' . PassGen::new();
|
||||
}
|
||||
return $error ?? '';
|
||||
}
|
||||
|
||||
public static function new(string $login, string $password, string $email, $ref, $birthday, $sex): string
|
||||
{
|
||||
$password = password_hash($password, PASSWORD_DEFAULT);
|
||||
$ip = UserIp::get();
|
||||
$sex = (int)$sex - 10; //Íà âõîäå 10\11, à ïåðåäàòü íàäî 0\1.
|
||||
Db::sql(
|
||||
'insert into users (users.real,login,host_reg,pass,ip,ipreg,room,timereg,mail,bithday,sex,fnq,molch2,level,hobby,clan_zv) values (1,?,?,?,?,?,9,unix_timestamp(),?,?,?,0,unix_timestamp() + 86400,8,\'\',0)',
|
||||
[
|
||||
$login,
|
||||
$ref ?? '',
|
||||
$password,
|
||||
$ip,
|
||||
$ip,
|
||||
$email,
|
||||
date('d.m.Y', strtotime($birthday)),
|
||||
$sex,
|
||||
]
|
||||
);
|
||||
|
||||
return Db::lastInsertId();
|
||||
}
|
||||
}
|
||||
|
@ -1,27 +1,25 @@
|
||||
<?php
|
||||
|
||||
use Insallah\Db;
|
||||
use Core\Db;
|
||||
|
||||
class UserStats
|
||||
{
|
||||
/**
|
||||
* Ñîáèðàåò ñóììû âñåõ áîíóñîâ ñ îäåòûõ ïðåäìåòîâ è àêòèâíûõ ýôåêòîâ.
|
||||
* @param $userId
|
||||
* @param int $userId
|
||||
* @param bool $showAll
|
||||
* @return array
|
||||
*/
|
||||
public static function getAllBonuses($userId, $showAll = false)
|
||||
public static function getAllBonuses(int $userId, bool $showAll = false): array
|
||||
{
|
||||
require_once '_incl_data/class/Insallah/Core/Db.php';
|
||||
$db = new Db();
|
||||
|
||||
$q = 'select data from items_users where uid = ? and inOdet > 0 and `delete` = 0
|
||||
union all select data from eff_users where uid = ? and `delete` = 0';
|
||||
$iData = $db::getColumn($q, [$userId, $userId]);
|
||||
$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);
|
||||
[$a, $b] = explode('=', $inner);
|
||||
if (strpos($a, 'add') !== false || strpos($a, 'sv') !== false || $showAll) {
|
||||
if (isset($params[$a])) {
|
||||
$params[$a] += $b;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -11,28 +11,8 @@ $db = [
|
||||
];
|
||||
$dsn = 'mysql:host=' . $db['s'] . ';dbname=' . $db['d'];
|
||||
|
||||
if (function_exists('date_default_timezone_set')) {
|
||||
date_default_timezone_set('Europe/Moscow');
|
||||
}
|
||||
include_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'mysql_override.php';
|
||||
|
||||
$dbgo = mysql_pconnect($db['s'], $db['u'], $db['p']);
|
||||
$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'];
|
||||
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
|
||||
return $_SERVER['HTTP_X_FORWARDED_FOR'];
|
||||
}
|
||||
return $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
|
||||
$ipban = GetRealIpTest();
|
||||
} else {
|
||||
$ipban = GetRealIp();
|
||||
}
|
||||
|
||||
$pdo = new PDO($dsn, $db['u'], $db['p'], [PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES cp1251"]);
|
@ -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>
|
@ -4,7 +4,7 @@ if(!defined('GAME'))
|
||||
die();
|
||||
}
|
||||
|
||||
class Magic2
|
||||
class Magic
|
||||
{
|
||||
|
||||
public $youuse = 0;
|
||||
|
@ -1,180 +1,176 @@
|
||||
<?
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
if( $u->info['twink'] != 0 )
|
||||
{
|
||||
$u->error = 'Íåâîçìîæíî èñïîëüçîâàòü "'.$itm['name'].'". Çàéäèòå íà îñíîâíîãî ïåðñîíàæà!';
|
||||
}
|
||||
elseif( $u->info['activ'] != 0 )
|
||||
{
|
||||
$u->error = 'Íåâîçìîæíî èñïîëüçîâàòü "'.$itm['name'].'". Àêòèâèðóéòå ïåðñîíàæà ÷åðåç E-mail!';
|
||||
}
|
||||
elseif( $itm['id'] > 0 && $itm['item_id']==10006 )
|
||||
{
|
||||
$repc='repcapitalcity';
|
||||
if ($u->rep[$repc]<25000)
|
||||
{
|
||||
$st['expUpg'] += 0;
|
||||
$u->rep[$repc] += $st['expUpg'];
|
||||
if ($u->rep[$repc]>25000)
|
||||
{
|
||||
$u->rep[$repc]=25000;
|
||||
}
|
||||
$u->error = 'Âû èñïîëüçîâàëè "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè óâåëè÷èëñÿ íà '.$st['expUpg'].' åä.!';
|
||||
//mysql_query('UPDATE `stats` SET `exp` = "'.$u->info['exp'].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
mysql_query('UPDATE `rep` SET `'.$repc.'` = "'.$u->rep[$repc].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
|
||||
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1');
|
||||
}
|
||||
else
|
||||
{
|
||||
$u->error = 'Âû íå ñìîãëè èñïîëüçîâàòü "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè äîñòèã ïðåäåëà 25000 åä.!';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
elseif( $itm['id'] > 0 && $itm['item_id']==10007 )
|
||||
{
|
||||
$repc='repsandcity';
|
||||
if ($u->rep[$repc]<25000)
|
||||
{
|
||||
$st['expUpg'] += 0;
|
||||
$u->rep[$repc] += $st['expUpg'];
|
||||
if ($u->rep[$repc]>25000)
|
||||
{
|
||||
$u->rep[$repc]=25000;
|
||||
}
|
||||
$u->error = 'Âû èñïîëüçîâàëè "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè óâåëè÷èëñÿ íà '.$st['expUpg'].' åä.!';
|
||||
//mysql_query('UPDATE `stats` SET `exp` = "'.$u->info['exp'].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
mysql_query('UPDATE `rep` SET `'.$repc.'` = "'.$u->rep[$repc].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
|
||||
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1');
|
||||
}
|
||||
else
|
||||
{
|
||||
$u->error = 'Âû íå ñìîãëè èñïîëüçîâàòü "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè äîñòèã ïðåäåëà 25000 åä.!';
|
||||
}
|
||||
}
|
||||
|
||||
elseif( $itm['id'] > 0 && $itm['item_id']==10008 )
|
||||
{
|
||||
$repc='repemeraldscity';
|
||||
if ($u->rep[$repc]<25000)
|
||||
{
|
||||
$st['expUpg'] += 0;
|
||||
$u->rep[$repc] += $st['expUpg'];
|
||||
if ($u->rep[$repc]>25000)
|
||||
{
|
||||
$u->rep[$repc]=25000;
|
||||
}
|
||||
$u->error = 'Âû èñïîëüçîâàëè "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè óâåëè÷èëñÿ íà '.$st['expUpg'].' åä.!';
|
||||
//mysql_query('UPDATE `stats` SET `exp` = "'.$u->info['exp'].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
mysql_query('UPDATE `rep` SET `'.$repc.'` = "'.$u->rep[$repc].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
|
||||
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1');
|
||||
}
|
||||
else
|
||||
{
|
||||
$u->error = 'Âû íå ñìîãëè èñïîëüçîâàòü "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè äîñòèã ïðåäåëà 25000 åä.!';
|
||||
}
|
||||
}
|
||||
|
||||
elseif( $itm['id'] > 0 && $itm['item_id']==10009 )
|
||||
{
|
||||
$repc='repabandonedplain';
|
||||
if ($u->rep[$repc]<25000)
|
||||
{
|
||||
$st['expUpg'] += 0;
|
||||
$u->rep[$repc] += $st['expUpg'];
|
||||
if ($u->rep[$repc]>25000)
|
||||
{
|
||||
$u->rep[$repc]=25000;
|
||||
}
|
||||
$u->error = 'Âû èñïîëüçîâàëè "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè óâåëè÷èëñÿ íà '.$st['expUpg'].' åä.!';
|
||||
//mysql_query('UPDATE `stats` SET `exp` = "'.$u->info['exp'].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
mysql_query('UPDATE `rep` SET `'.$repc.'` = "'.$u->rep[$repc].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
|
||||
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1');
|
||||
}
|
||||
else
|
||||
{
|
||||
$u->error = 'Âû íå ñìîãëè èñïîëüçîâàòü "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè äîñòèã ïðåäåëà 25000 åä.!';
|
||||
}
|
||||
}
|
||||
|
||||
elseif( $itm['id'] > 0 && $itm['item_id']==10010 )
|
||||
{
|
||||
$repc='repangelscity';
|
||||
if ($u->rep[$repc]<25000)
|
||||
{
|
||||
$st['expUpg'] += 0;
|
||||
$u->rep[$repc] += $st['expUpg'];
|
||||
if ($u->rep[$repc]>25000)
|
||||
{
|
||||
$u->rep[$repc]=25000;
|
||||
}
|
||||
$u->error = 'Âû èñïîëüçîâàëè "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè óâåëè÷èëñÿ íà '.$st['expUpg'].' åä.!';
|
||||
//mysql_query('UPDATE `stats` SET `exp` = "'.$u->info['exp'].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
mysql_query('UPDATE `rep` SET `'.$repc.'` = "'.$u->rep[$repc].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
|
||||
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1');
|
||||
}
|
||||
else
|
||||
{
|
||||
$u->error = 'Âû íå ñìîãëè èñïîëüçîâàòü "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè äîñòèã ïðåäåëà 25000 åä.!';
|
||||
}
|
||||
}
|
||||
|
||||
elseif( $itm['id'] > 0 && $itm['item_id']==10011 )
|
||||
{
|
||||
$repc='repdemonscity';
|
||||
if ($u->rep[$repc]<25000)
|
||||
{
|
||||
$st['expUpg'] += 0;
|
||||
$u->rep[$repc] += $st['expUpg'];
|
||||
if ($u->rep[$repc]>25000)
|
||||
{
|
||||
$u->rep[$repc]=25000;
|
||||
}
|
||||
$u->error = 'Âû èñïîëüçîâàëè "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè óâåëè÷èëñÿ íà '.$st['expUpg'].' åä.!';
|
||||
//mysql_query('UPDATE `stats` SET `exp` = "'.$u->info['exp'].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
mysql_query('UPDATE `rep` SET `'.$repc.'` = "'.$u->rep[$repc].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
|
||||
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1');
|
||||
}
|
||||
else
|
||||
{
|
||||
$u->error = 'Âû íå ñìîãëè èñïîëüçîâàòü "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè äîñòèã ïðåäåëà 25000 åä.!';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
elseif( $itm['id'] > 0 && $itm['item_id']==10012 )
|
||||
{
|
||||
$repc='repsuncity';
|
||||
if ($u->rep[$repc]<25000)
|
||||
{
|
||||
$st['expUpg'] += 0;
|
||||
$u->rep[$repc] += $st['expUpg'];
|
||||
if ($u->rep[$repc]>25000)
|
||||
{
|
||||
$u->rep[$repc]=25000;
|
||||
}
|
||||
$u->error = 'Âû èñïîëüçîâàëè "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè óâåëè÷èëñÿ íà '.$st['expUpg'].' åä.!';
|
||||
//mysql_query('UPDATE `stats` SET `exp` = "'.$u->info['exp'].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
mysql_query('UPDATE `rep` SET `'.$repc.'` = "'.$u->rep[$repc].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
|
||||
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1');
|
||||
}
|
||||
else
|
||||
{
|
||||
$u->error = 'Âû íå ñìîãëè èñïîëüçîâàòü "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè äîñòèã ïðåäåëà 25000 åä.!';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
<?
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
if( $u->info['twink'] != 0 )
|
||||
{
|
||||
$u->error = 'Íåâîçìîæíî èñïîëüçîâàòü "'.$itm['name'].'". Çàéäèòå íà îñíîâíîãî ïåðñîíàæà!';
|
||||
}
|
||||
elseif( $itm['id'] > 0 && $itm['item_id']==10006 )
|
||||
{
|
||||
$repc='repcapitalcity';
|
||||
if ($u->rep[$repc]<25000)
|
||||
{
|
||||
$st['expUpg'] += 0;
|
||||
$u->rep[$repc] += $st['expUpg'];
|
||||
if ($u->rep[$repc]>25000)
|
||||
{
|
||||
$u->rep[$repc]=25000;
|
||||
}
|
||||
$u->error = 'Âû èñïîëüçîâàëè "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè óâåëè÷èëñÿ íà '.$st['expUpg'].' åä.!';
|
||||
//mysql_query('UPDATE `stats` SET `exp` = "'.$u->info['exp'].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
mysql_query('UPDATE `rep` SET `'.$repc.'` = "'.$u->rep[$repc].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
|
||||
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1');
|
||||
}
|
||||
else
|
||||
{
|
||||
$u->error = 'Âû íå ñìîãëè èñïîëüçîâàòü "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè äîñòèã ïðåäåëà 25000 åä.!';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
elseif( $itm['id'] > 0 && $itm['item_id']==10007 )
|
||||
{
|
||||
$repc='repsandcity';
|
||||
if ($u->rep[$repc]<25000)
|
||||
{
|
||||
$st['expUpg'] += 0;
|
||||
$u->rep[$repc] += $st['expUpg'];
|
||||
if ($u->rep[$repc]>25000)
|
||||
{
|
||||
$u->rep[$repc]=25000;
|
||||
}
|
||||
$u->error = 'Âû èñïîëüçîâàëè "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè óâåëè÷èëñÿ íà '.$st['expUpg'].' åä.!';
|
||||
//mysql_query('UPDATE `stats` SET `exp` = "'.$u->info['exp'].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
mysql_query('UPDATE `rep` SET `'.$repc.'` = "'.$u->rep[$repc].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
|
||||
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1');
|
||||
}
|
||||
else
|
||||
{
|
||||
$u->error = 'Âû íå ñìîãëè èñïîëüçîâàòü "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè äîñòèã ïðåäåëà 25000 åä.!';
|
||||
}
|
||||
}
|
||||
|
||||
elseif( $itm['id'] > 0 && $itm['item_id']==10008 )
|
||||
{
|
||||
$repc='repemeraldscity';
|
||||
if ($u->rep[$repc]<25000)
|
||||
{
|
||||
$st['expUpg'] += 0;
|
||||
$u->rep[$repc] += $st['expUpg'];
|
||||
if ($u->rep[$repc]>25000)
|
||||
{
|
||||
$u->rep[$repc]=25000;
|
||||
}
|
||||
$u->error = 'Âû èñïîëüçîâàëè "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè óâåëè÷èëñÿ íà '.$st['expUpg'].' åä.!';
|
||||
//mysql_query('UPDATE `stats` SET `exp` = "'.$u->info['exp'].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
mysql_query('UPDATE `rep` SET `'.$repc.'` = "'.$u->rep[$repc].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
|
||||
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1');
|
||||
}
|
||||
else
|
||||
{
|
||||
$u->error = 'Âû íå ñìîãëè èñïîëüçîâàòü "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè äîñòèã ïðåäåëà 25000 åä.!';
|
||||
}
|
||||
}
|
||||
|
||||
elseif( $itm['id'] > 0 && $itm['item_id']==10009 )
|
||||
{
|
||||
$repc='repabandonedplain';
|
||||
if ($u->rep[$repc]<25000)
|
||||
{
|
||||
$st['expUpg'] += 0;
|
||||
$u->rep[$repc] += $st['expUpg'];
|
||||
if ($u->rep[$repc]>25000)
|
||||
{
|
||||
$u->rep[$repc]=25000;
|
||||
}
|
||||
$u->error = 'Âû èñïîëüçîâàëè "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè óâåëè÷èëñÿ íà '.$st['expUpg'].' åä.!';
|
||||
//mysql_query('UPDATE `stats` SET `exp` = "'.$u->info['exp'].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
mysql_query('UPDATE `rep` SET `'.$repc.'` = "'.$u->rep[$repc].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
|
||||
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1');
|
||||
}
|
||||
else
|
||||
{
|
||||
$u->error = 'Âû íå ñìîãëè èñïîëüçîâàòü "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè äîñòèã ïðåäåëà 25000 åä.!';
|
||||
}
|
||||
}
|
||||
|
||||
elseif( $itm['id'] > 0 && $itm['item_id']==10010 )
|
||||
{
|
||||
$repc='repangelscity';
|
||||
if ($u->rep[$repc]<25000)
|
||||
{
|
||||
$st['expUpg'] += 0;
|
||||
$u->rep[$repc] += $st['expUpg'];
|
||||
if ($u->rep[$repc]>25000)
|
||||
{
|
||||
$u->rep[$repc]=25000;
|
||||
}
|
||||
$u->error = 'Âû èñïîëüçîâàëè "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè óâåëè÷èëñÿ íà '.$st['expUpg'].' åä.!';
|
||||
//mysql_query('UPDATE `stats` SET `exp` = "'.$u->info['exp'].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
mysql_query('UPDATE `rep` SET `'.$repc.'` = "'.$u->rep[$repc].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
|
||||
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1');
|
||||
}
|
||||
else
|
||||
{
|
||||
$u->error = 'Âû íå ñìîãëè èñïîëüçîâàòü "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè äîñòèã ïðåäåëà 25000 åä.!';
|
||||
}
|
||||
}
|
||||
|
||||
elseif( $itm['id'] > 0 && $itm['item_id']==10011 )
|
||||
{
|
||||
$repc='repdemonscity';
|
||||
if ($u->rep[$repc]<25000)
|
||||
{
|
||||
$st['expUpg'] += 0;
|
||||
$u->rep[$repc] += $st['expUpg'];
|
||||
if ($u->rep[$repc]>25000)
|
||||
{
|
||||
$u->rep[$repc]=25000;
|
||||
}
|
||||
$u->error = 'Âû èñïîëüçîâàëè "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè óâåëè÷èëñÿ íà '.$st['expUpg'].' åä.!';
|
||||
//mysql_query('UPDATE `stats` SET `exp` = "'.$u->info['exp'].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
mysql_query('UPDATE `rep` SET `'.$repc.'` = "'.$u->rep[$repc].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
|
||||
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1');
|
||||
}
|
||||
else
|
||||
{
|
||||
$u->error = 'Âû íå ñìîãëè èñïîëüçîâàòü "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè äîñòèã ïðåäåëà 25000 åä.!';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
elseif( $itm['id'] > 0 && $itm['item_id']==10012 )
|
||||
{
|
||||
$repc='repsuncity';
|
||||
if ($u->rep[$repc]<25000)
|
||||
{
|
||||
$st['expUpg'] += 0;
|
||||
$u->rep[$repc] += $st['expUpg'];
|
||||
if ($u->rep[$repc]>25000)
|
||||
{
|
||||
$u->rep[$repc]=25000;
|
||||
}
|
||||
$u->error = 'Âû èñïîëüçîâàëè "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè óâåëè÷èëñÿ íà '.$st['expUpg'].' åä.!';
|
||||
//mysql_query('UPDATE `stats` SET `exp` = "'.$u->info['exp'].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
mysql_query('UPDATE `rep` SET `'.$repc.'` = "'.$u->rep[$repc].'" WHERE `id` = '.$u->info['id'].' LIMIT 1');
|
||||
|
||||
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1');
|
||||
}
|
||||
else
|
||||
{
|
||||
$u->error = 'Âû íå ñìîãëè èñïîëüçîâàòü "'.$itm['name'].'". Óðîâåíü Âàøåé ðåïóòàöèè äîñòèã ïðåäåëà 25000 åä.!';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
@ -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']);
|
||||
|
||||
?>
|
46
_incl_data/class/magic/sun_per_kruv.php
Normal file
46
_incl_data/class/magic/sun_per_kruv.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
$io .= '<i>Ïîäàðî÷íûé êîìïëåêò Óâîðîòà</i>, ';
|
||||
$this->addItem(4953,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4953,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4596,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4598,$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(4961,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4967,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4969,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4601,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4599,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4986,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4595,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4597,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4597,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
|
||||
$this->addItem(4597,$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(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(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(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(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(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(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(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(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(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(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(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(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(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);
|
||||
?>
|
@ -6,8 +6,6 @@ if(!defined('GAME'))
|
||||
|
||||
if( $u->info['twink'] != 0 ) {
|
||||
$u->error = 'Невозможно использовать "'.$itm['name'].'". Зайдите на основного персонажа!';
|
||||
}elseif( $u->info['activ'] != 0 ) {
|
||||
$u->error = 'Невозможно использовать "'.$itm['name'].'". Активируйте персонажа через E-mail!';
|
||||
}elseif( $itm['id'] > 0 ) {
|
||||
if ($u->info['exp']<469999999)
|
||||
{
|
||||
|
@ -1,69 +1,50 @@
|
||||
<?
|
||||
|
||||
if (!defined('GAME')) {
|
||||
die();
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
if ($itm['magic_inci'] == 'yarostzvezd') {
|
||||
$pvr = [];
|
||||
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
$pvr['trs7'] = 5;
|
||||
if ($u->stats['hpNow'] < 1) {
|
||||
$u->error = '<font color=red><b>Âû ïîãëèáëè è íå ìîæåòå âîñïîëüçîâàòüñÿ ñâèòêîì...</b></font>';
|
||||
} elseif ($u->info['tactic7'] < $pvr['trs7']) {
|
||||
$u->error = '<font color=red><b>Íåäîñòàòî÷íî äóõà, íåîáõîäèìî ' . $pvr['trs7'] . '...</b></font>';
|
||||
} elseif (isset($btl->info['id'])) {
|
||||
/*
|
||||
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $u->info['enemy'],
|
||||
'',
|
||||
'{tm1} {u1} èñïîëüçîâàë çàêëÿòèå "<b>'.$itm['name'].'</b>".',
|
||||
($btl->hodID)
|
||||
);
|
||||
*/
|
||||
|
||||
mysql_query('UPDATE `stats` SET `tactic7` = `tactic7` - "' . $pvr['trs7'] . '" WHERE `id` = "' . $u->info['id'] . '" LIMIT 1');
|
||||
$u->info['tactic7'] = $u->info['tactic7'] - $pvr['trs7'];
|
||||
$u->stats['tactic7'] = $u->stats['tactic7'] - $pvr['trs7'];
|
||||
|
||||
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);
|
||||
if( $itm['magic_inci'] == 'yarostzvezd' ) {
|
||||
|
||||
|
||||
|
||||
$pvr = array();
|
||||
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
$pvr['trs7'] = 5;
|
||||
if( $u->stats['hpNow'] < 1 ) {
|
||||
$u->error = '<font color=red><b>Âû ïîãëèáëè è íå ìîæåòå âîñïîëüçîâàòüñÿ ñâèòêîì...</b></font>';
|
||||
}elseif( $u->info['tactic7'] < $pvr['trs7'] ) {
|
||||
$u->error = '<font color=red><b>Íåäîñòàòî÷íî äóõà, íåîáõîäèìî '.$pvr['trs7'].'...</b></font>';
|
||||
}elseif( isset($btl->info['id']) ) {
|
||||
/*
|
||||
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $u->info['enemy'],
|
||||
'',
|
||||
'{tm1} {u1} èñïîëüçîâàë çàêëÿòèå "<b>'.$itm['name'].'</b>".',
|
||||
($btl->hodID)
|
||||
);
|
||||
*/
|
||||
|
||||
mysql_query('UPDATE `stats` SET `tactic7` = `tactic7` - "'.$pvr['trs7'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
||||
$u->info['tactic7'] = $u->info['tactic7']-$pvr['trs7'];
|
||||
$u->stats['tactic7'] = $u->stats['tactic7']-$pvr['trs7'];
|
||||
|
||||
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);
|
||||
");
|
||||
|
||||
$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>';
|
||||
}
|
||||
|
||||
//Îòíèìàåì òàêòèêè
|
||||
//$this->mintr($pl);
|
||||
|
||||
unset($pvr);
|
||||
|
||||
$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>';
|
||||
}
|
||||
|
||||
//Îòíèìàåì òàêòèêè
|
||||
//$this->mintr($pl);
|
||||
|
||||
unset($pvr);
|
||||
}
|
||||
?>
|
@ -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];
|
||||
|
@ -60,7 +60,11 @@ if( isset($pr_used_this) && isset($pr_moment) ) {
|
||||
mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1');
|
||||
//
|
||||
$pvr['hp'] = floor($pvr['hp']);
|
||||
|
||||
/*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], 'âîäŕ', 0 );
|
||||
$pvr['promah_type'] = $pvr['hp'][3];
|
||||
$pvr['promah'] = $pvr['hp'][2];
|
||||
$pvr['krit'] = $pvr['hp'][1];
|
||||
$pvr['hp'] = $pvr['hp'][0];*/
|
||||
$pvr['hpSee'] = '--';
|
||||
$pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']);
|
||||
$pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll'];
|
||||
|
@ -60,7 +60,11 @@ if( isset($pr_used_this) && isset($pr_moment) ) {
|
||||
mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1');
|
||||
//
|
||||
$pvr['hp'] = floor($pvr['hp']);
|
||||
|
||||
/*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], 'âîäŕ', 0 );
|
||||
$pvr['promah_type'] = $pvr['hp'][3];
|
||||
$pvr['promah'] = $pvr['hp'][2];
|
||||
$pvr['krit'] = $pvr['hp'][1];
|
||||
$pvr['hp'] = $pvr['hp'][0];*/
|
||||
$pvr['hpSee'] = '--';
|
||||
$pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']);
|
||||
$pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll'];
|
||||
@ -122,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];
|
||||
|
@ -60,7 +60,11 @@ if( isset($pr_used_this) && isset($pr_moment) ) {
|
||||
mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1');
|
||||
//
|
||||
$pvr['hp'] = floor($pvr['hp']);
|
||||
|
||||
/*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], 'âîäŕ', 0 );
|
||||
$pvr['promah_type'] = $pvr['hp'][3];
|
||||
$pvr['promah'] = $pvr['hp'][2];
|
||||
$pvr['krit'] = $pvr['hp'][1];
|
||||
$pvr['hp'] = $pvr['hp'][0];*/
|
||||
$pvr['hpSee'] = '--';
|
||||
$pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']);
|
||||
$pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll'];
|
||||
|
@ -60,7 +60,11 @@ if( isset($pr_used_this) && isset($pr_moment) ) {
|
||||
mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1');
|
||||
//
|
||||
$pvr['hp'] = floor($pvr['hp']);
|
||||
|
||||
/*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], 'âîäŕ', 0 );
|
||||
$pvr['promah_type'] = $pvr['hp'][3];
|
||||
$pvr['promah'] = $pvr['hp'][2];
|
||||
$pvr['krit'] = $pvr['hp'][1];
|
||||
$pvr['hp'] = $pvr['hp'][0];*/
|
||||
$pvr['hpSee'] = '--';
|
||||
$pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']);
|
||||
$pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll'];
|
||||
|
@ -60,7 +60,11 @@ if( isset($pr_used_this) && isset($pr_moment) ) {
|
||||
mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1');
|
||||
//
|
||||
$pvr['hp'] = floor($pvr['hp']);
|
||||
|
||||
/*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], 'âîäŕ', 0 );
|
||||
$pvr['promah_type'] = $pvr['hp'][3];
|
||||
$pvr['promah'] = $pvr['hp'][2];
|
||||
$pvr['krit'] = $pvr['hp'][1];
|
||||
$pvr['hp'] = $pvr['hp'][0];*/
|
||||
$pvr['hpSee'] = '--';
|
||||
$pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']);
|
||||
$pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll'];
|
||||
|
@ -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'];
|
||||
}
|
||||
@ -48,6 +48,7 @@ $pvr = array();
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$pvr['uid'],$pvr['hp'],0);
|
||||
|
||||
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
@ -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);
|
||||
?>
|
@ -59,9 +59,11 @@ if( isset($pr_used_this) && isset($pr_moment) && !isset($btl->info['id']) && !is
|
||||
mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1');
|
||||
//
|
||||
$pvr['hp'] = floor($pvr['hp']);
|
||||
//$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], 'âîäà', 0 );
|
||||
$pvr['promah_type'] = 0;
|
||||
$pvr['promah'] = false;
|
||||
$pvr['krit'] = false;
|
||||
//$pvr['hp'] = $pvr['hp'][0];
|
||||
$pvr['hpSee'] = '--';
|
||||
$pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']);
|
||||
$pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll'];
|
||||
|
@ -57,7 +57,11 @@ if( isset($pr_used_this) && isset($pr_moment) ) {
|
||||
mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1');
|
||||
//
|
||||
$pvr['hp'] = floor($pvr['hp']);
|
||||
|
||||
/*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], 'âîäŕ', 0 );
|
||||
$pvr['promah_type'] = $pvr['hp'][3];
|
||||
$pvr['promah'] = $pvr['hp'][2];
|
||||
$pvr['krit'] = $pvr['hp'][1];
|
||||
$pvr['hp'] = $pvr['hp'][0];*/
|
||||
$pvr['hpSee'] = '--';
|
||||
$pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']);
|
||||
$pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll'];
|
||||
|
@ -57,7 +57,11 @@ if( isset($pr_used_this) && isset($pr_moment) ) {
|
||||
mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1');
|
||||
//
|
||||
$pvr['hp'] = floor($pvr['hp']);
|
||||
|
||||
/*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], 'âîäŕ', 0 );
|
||||
$pvr['promah_type'] = $pvr['hp'][3];
|
||||
$pvr['promah'] = $pvr['hp'][2];
|
||||
$pvr['krit'] = $pvr['hp'][1];
|
||||
$pvr['hp'] = $pvr['hp'][0];*/
|
||||
$pvr['hpSee'] = '--';
|
||||
$pvr['hpNow'] = floor($btl->stats[$btl->uids[$u1]]['hpNow']);
|
||||
$pvr['hpAll'] = $btl->stats[$btl->uids[$u1]]['hpAll'];
|
||||
|
@ -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,5 +1,5 @@
|
||||
<?php
|
||||
/**@var $this Priems*/
|
||||
/**@var $this priems*/
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
|
@ -1,13 +1,7 @@
|
||||
<?php
|
||||
<?
|
||||
|
||||
/**
|
||||
* @var $this Priems
|
||||
* @var $btl Battle
|
||||
* @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'];
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
/**
|
||||
* Ïðèåì: Öåëü {ñòèõèÿ}
|
||||
* @var $this Priems
|
||||
* @var $btl Battle
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id
|
||||
* @var $pl
|
||||
*/
|
||||
|
@ -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) {
|
||||
|
@ -57,7 +57,11 @@ if( isset($pr_used_this) && isset($pr_moment) ) {
|
||||
mysql_query('UPDATE `eff_users` SET `data` = "'.$pvr['redata'].'" WHERE `id` = "'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'].'" LIMIT 1');
|
||||
//
|
||||
$pvr['mp'] = floor($pvr['mp']*$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['x']);
|
||||
|
||||
/*$pvr['hp'] = $priem->magatack( $u2, $u1, $pvr['hp'], 'âîäŕ', 0 );
|
||||
$pvr['promah_type'] = $pvr['hp'][3];
|
||||
$pvr['promah'] = $pvr['hp'][2];
|
||||
$pvr['krit'] = $pvr['hp'][1];
|
||||
$pvr['hp'] = $pvr['hp'][0];*/
|
||||
$pvr['mpSee'] = '--';
|
||||
$pvr['mpNow'] = floor($btl->stats[$btl->uids[$u1]]['mpNow']);
|
||||
$pvr['mpAll'] = $btl->stats[$btl->uids[$u1]]['mpAll'];
|
||||
|
@ -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; }
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
/**
|
||||
* Ïðèåì: Öåëü {ñòèõèÿ}
|
||||
* @var $this Priems
|
||||
* @var $btl Battle
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id
|
||||
* @var $pl
|
||||
*/
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?
|
||||
|
||||
if (!defined('GAME')) {
|
||||
die();
|
||||
@ -16,7 +16,7 @@ if ($pvr['x5']['x'] > 0) {
|
||||
$this->addEffPr($pl, $id);
|
||||
|
||||
$prv['color2'] = '0af';
|
||||
$prv['text'] = $btl->addlt(1, 19, $btl->users[$btl->uids[$this->u->info['id']]]['sex'], null);
|
||||
$prv['text'] = $btl->addlt(1, 19, $btl->users[$btl->uids[$u->info['id']]]['sex'], null);
|
||||
$prv['text2'] = '{tm1} ' . $prv['text'];
|
||||
$btl->priemAddLog($id, 1, 2, $u->info['id'], $this->ue['id'],
|
||||
'<font color^^^^#' . $prv['color2'] . '>Ñòàòèêà</font>',
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* Прием: Заряд: Поражение
|
||||
* @var Battle $btl
|
||||
* @var battleClass $btl
|
||||
* @var $id
|
||||
* @var $pl
|
||||
*/
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php /**@var $this Priems*/
|
||||
<?php /**@var $this priems*/
|
||||
if (!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
|
@ -1,10 +1,5 @@
|
||||
<?php
|
||||
/** Ïðèåì: Îëåäåíåíèå: Ðàçáèòü! (êàêîãî-òî õðåíà íåêîòîðûå ïðè¸ìû ïîëíîñòüþ óìèðàþò ïðè ïåðåíîñå â _cron_)
|
||||
* @var $this Priems
|
||||
* @var $btl Battle
|
||||
* @var $id int
|
||||
* @var $pl array
|
||||
*/
|
||||
/** Ïðèåì: Îëåäåíåíèå: Ðàçáèòü! @var $this priems */
|
||||
if (!$id) {
|
||||
exit();
|
||||
}
|
||||
@ -51,18 +46,28 @@ if (!isset($pvr['mg']['id'])) {
|
||||
|
||||
//Öâåò ïðèåìà
|
||||
if ($pvr['promah']) {
|
||||
$prv['color'] = $this->logColor['miss'];
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
} elseif ($pvr['krit']) {
|
||||
$prv['color'] = $this->logColor['crit'];
|
||||
$prv['color2'] = 'FF0000';
|
||||
$prv['color'] = 'FF0000';
|
||||
} else {
|
||||
$prv['color'] = $this->logColor[$this::WATER];
|
||||
$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['âîäà']];
|
||||
}
|
||||
}
|
||||
|
||||
$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[$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, $this->u->info['id'], $this->u->info['enemy'], '<font color^^^^#' . $prv['color'] . '>Îëåäåíåíèå: Ðàçáèòü!</font>', $prv['text2'], ($btl->hodID + 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'];
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
/** @var $this Priems*/
|
||||
/** @var $this priems*/
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
/**
|
||||
* Ïðèåì: Öåëü {ñòèõèÿ}
|
||||
* @var $this Priems
|
||||
* @var $btl Battle
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id
|
||||
* @var $pl
|
||||
*/
|
||||
|
@ -101,9 +101,11 @@ if( isset($pr_momental_this)) {
|
||||
//
|
||||
|
||||
//
|
||||
//$priem->addPriem($u1,278,'|add_yzm3=-'.($btl->users[$btl->uids[$u2]]['level']).'',2,77,2,$u2,100,'èíåéêàñàíèå',0,0,1);
|
||||
$pvr['x55'] = mysql_fetch_array(mysql_query('SELECT `id`,`x` FROM `eff_users` WHERE `uid` = "'.$u1.'" AND `v2` = 25 AND `delete` = 0 LIMIT 1'));
|
||||
if( $pvr['x55']['x'] <1 ) {
|
||||
$priem->addPriem($u1,25,-1,2,77,-1,$u2,5,'öåëüâîäû',0,0,1);
|
||||
//$priem->addPriem($u1,25,'|add_zm3=-20',2,77,-1,$u2,100,'öåëüâîäû',0,0,1);
|
||||
if( $pvr['used'] == 0 ) {
|
||||
$at['p'][$a]['atack'][$j]['yron']['plog'][] = '$this->priemAddLog( '.$id.', '.$b.', '.$a.', '.$u2.', '.$u1.',
|
||||
"<font color^^^^#'.$prv['color2'].'>Öåëü Âîäû</font>",
|
||||
|
@ -145,6 +145,8 @@ if( isset($pr_momental_this)) {
|
||||
}*/
|
||||
//}
|
||||
//
|
||||
//$priem->addPriem($u1,279,'|add_yzm3=-'.floor($btl->users[$btl->uids[$u2]]['level']*1.25).'',2,77,2,$u2,100,'číĺéęŕńŕíčĺ',0,0,1);
|
||||
//$priem->addPriem($u1,278,'|add_yzm3=-'.($btl->users[$btl->uids[$u2]]['level']).'',2,77,2,$u2,100,'číĺéęŕńŕíčĺ',0,0,1);
|
||||
$pvr['x5'] = mysql_fetch_array(mysql_query('SELECT `id`,`x` FROM `eff_users` WHERE `uid` = "'.$u1.'" AND `v2` = 25 AND `delete` = 0 LIMIT 1'));
|
||||
if( $pvr['x5']['x'] < 5 ) {
|
||||
$priem->addPriem($u1,25,'|add_zm3=-20',2,77,-1,$u2,100,'öåëüâîäû',0,0,1);
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user