Сихронизация с актуальной версией.
This commit is contained in:
parent
9306b5f5d8
commit
6cd7b13db0
@ -1,11 +1,12 @@
|
||||
<?php
|
||||
|
||||
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'
|
||||
'ver' => '1.8.3.7',
|
||||
];
|
||||
/* Конфигурации игры */
|
||||
$c['name'] = 'Бойцовский Клуб';
|
||||
@ -48,45 +49,16 @@ $c['expstop'] = 2999999; //9; //
|
||||
$c['expstopu'] = 2999999; //Опыт на котором останавливаемся
|
||||
$c['noobgade'] = false; //нуб квест (пещера)
|
||||
$c['bonusonline'] = true; //бонус за онлайн
|
||||
$c['bonusonline_kof'] = 1; //êîýôèöåíò êð çà ëâë
|
||||
$c['level_ransfer'] = 8; //С какого уровня разрешены передачи
|
||||
$c['znahar'] = true; //бесплатный знахарь
|
||||
$c['nolevel'] = false; //лимитирование уровней
|
||||
$c['noitembuy'] = false; //Не требует ресурсы для покупки
|
||||
$c['effz'] = 0; //Скольким секундам равен заряд
|
||||
$c['money_haot'] = true; //кр за хаоты
|
||||
$c['money_haot_proc'] = 0.10; //ñêîëüêî ïðîöåíòîâ îò ôóëëà âûäàåò â íàãðàäó
|
||||
$c['crtoecr'] = 500; //Курс обмена кр на екр (если 0, то выключено)
|
||||
$c['ecrtocr'] = 200; //Курс обмена екр на кр
|
||||
$c['bonuslevel'] = true; //Бонус уровня
|
||||
$c['bonussocial'] = false; //Бонус социальный
|
||||
$c['exp_limit_many'] = false; //Ëèìèò îïûòà, åñëè áîëåå 5 áîåâ, òî 0 îïûòà äàñò
|
||||
|
||||
$c['exp_mega'] = false; //Ïîâûøåííûé ëèìèò îïûòà
|
||||
$c['exp_mega_val'] = [
|
||||
0 => 1000,
|
||||
1 => 1000,
|
||||
2 => 1000,
|
||||
3 => 1000,
|
||||
4 => 1000,
|
||||
5 => 1000,
|
||||
6 => 1000,
|
||||
7 => 1500,
|
||||
8 => 0,
|
||||
9 => 0,
|
||||
10 => 0,
|
||||
11 => 0,
|
||||
12 => 0,
|
||||
13 => 0,
|
||||
14 => 0,
|
||||
15 => 0,
|
||||
16 => 0,
|
||||
17 => 0,
|
||||
18 => 0,
|
||||
19 => 0,
|
||||
20 => 0,
|
||||
21 => 0
|
||||
]; //Ïîâûøåííûé ëèìèò îïûòà
|
||||
|
||||
$c['w'] = date('w');
|
||||
$c['m'] = date('m');
|
||||
@ -105,5 +77,19 @@ if (isset($_GET['version'])) {
|
||||
// Для всех доработок, пока нет автозагрузки классов.
|
||||
require_once 'class/Insallah/Config.php';
|
||||
|
||||
//Âìåñòî êðîíà äëÿ òóðíèðà.
|
||||
if (\Insallah\Tournament::IS_ENABLED) (new \Insallah\Tournament())->startAllBattles();
|
||||
// Ïîïðîáóåì â àâòîçàãðóçêó.
|
||||
// Íèêîãäà íå çàðàáîòàåò ñ òàêèìè íàçâàíèÿìè êëàññîâ è ôàéëîâ!
|
||||
// "Íà ïîòîì."
|
||||
spl_autoload_register(function ($className) {
|
||||
# 1 with namespaces
|
||||
# 2 without
|
||||
$fileName = [
|
||||
__DIR__ . '/class/' . str_replace('\\', '/', $className . '.php'),
|
||||
__DIR__ . '/class/' . $className . '.php'
|
||||
];
|
||||
foreach ($fileName as $file)
|
||||
if (file_exists($file)) {
|
||||
require_once $file;
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
17
_incl_data/class/Insallah/Config.php
Normal file
17
_incl_data/class/Insallah/Config.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
use Insallah\Tournament;
|
||||
|
||||
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 'Achievements.php';
|
||||
|
||||
|
||||
//Âìåñòî êðîíà äëÿ òóðíèðà.
|
||||
if (Tournament::IS_ENABLED) {
|
||||
(new Tournament())->startAllBattles();
|
||||
}
|
@ -21,7 +21,12 @@ class Math
|
||||
{
|
||||
return [
|
||||
'min' => $number * ((100 - 20) / 100),
|
||||
'max' => $number * ((100 + 20) / 100)
|
||||
'max' => $number * ((100 + 20) / 100),
|
||||
];
|
||||
}
|
||||
|
||||
public static function addPercent($num, $percent)
|
||||
{
|
||||
return $num + (($percent / 100) * $num);
|
||||
}
|
||||
}
|
@ -207,6 +207,11 @@ class TournamentModel
|
||||
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)';
|
||||
|
||||
$query2 = 'select bu.uid from battle b
|
||||
inner join battle_users bu on b.team_win != bu.team and b.id = bu.battle
|
||||
inner join tournaments_users tu on bu.uid = tu.uid
|
||||
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'];
|
||||
@ -222,9 +227,9 @@ class TournamentModel
|
||||
public static function removeFighter($uid, $winner = false)
|
||||
{
|
||||
if (!$uid) return;
|
||||
$winner_timer_add = $winner? 500 : 0; # Ïîñëåäíûé ÄÎËÆÅÍ áûòü ïîñëåäíèì.
|
||||
//$winner_timer_add = $winner? 500 : 0; # Ïîñëåäíûé ÄÎËÆÅÍ áûòü ïîñëåäíèì.
|
||||
$db = new Db();
|
||||
$db::sql('update tournaments_users set death_time = unix_timestamp() + ? where death_time = 0 and uid = ?', [$winner_timer_add, $uid]);
|
||||
$db::sql('update tournaments_users set death_time = unix_timestamp() + 500 where death_time = 0 and uid = ?', [$uid]);
|
||||
self::teleport($uid, 9);
|
||||
//fixme: Êëàññû íå ïîäêëþ÷àþòñÿ äðóã ê äðóãó. Íóæíî ìåíÿòü àðõèòåêòóðó èãðû. :(
|
||||
Db::sql("update users_achiv set trn = trn + 1 where id = ?", [$uid]);
|
||||
|
14
_incl_data/class/PriemsMain.php
Normal file
14
_incl_data/class/PriemsMain.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
|
||||
class PriemsMain extends priems
|
||||
{
|
||||
/**
|
||||
* Отдльный файл для методов приёмов.
|
||||
* По закону жанра - ничерта не подключается самостоятльно,
|
||||
* потому что "инклюд инклюда класса", файл не знает откуда и куда подключаться.
|
||||
* Игра вызывает _cron_, _cron_ вызывает priems, priems вызывает N.php
|
||||
* N.php вызывает _cron_, _users, _battles.
|
||||
* Всё это в разных местах, скрипт не понимает в какой он папке и капут.
|
||||
*/
|
||||
}
|
36
_incl_data/class/UserStats.php
Normal file
36
_incl_data/class/UserStats.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Insallah\Db;
|
||||
|
||||
class UserStats
|
||||
{
|
||||
/**
|
||||
* Ñîáèðàåò ñóììû âñåõ áîíóñîâ ñ îäåòûõ ïðåäìåòîâ è àêòèâíûõ ýôåêòîâ.
|
||||
* @param $userId
|
||||
* @param bool $showAll
|
||||
* @return array
|
||||
*/
|
||||
public static function getAllBonuses($userId, $showAll = false)
|
||||
{
|
||||
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]);
|
||||
$params = [];
|
||||
$params2 = json_decode(str_replace(['=', '|'], ['":', ',"'], '{"' . $iData . '}'), true);
|
||||
foreach ($iData as $datum) {
|
||||
foreach (explode('|', $datum) as $inner) {
|
||||
list($a, $b) = explode('=', $inner);
|
||||
if (strpos($a, 'add') !== false || strpos($a, 'sv') !== false || $showAll) {
|
||||
if (isset($params[$a])) {
|
||||
$params[$a] += $b;
|
||||
} else {
|
||||
$params[$a] = $b;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return $params;
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
8360
_incl_data/class/__battle.php-cleared
Normal file
8360
_incl_data/class/__battle.php-cleared
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,35 +1,37 @@
|
||||
<?php
|
||||
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
use Insallah\Db;
|
||||
|
||||
if (!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
|
||||
class season {
|
||||
|
||||
public static $yy = array(
|
||||
1 => array( 1 , '01' , 'ßíâàðü' , 'ßíâàðüñêèé' ),
|
||||
2 => array( 2 , '02' , 'Ôåâðàëü' , 'Ôåâðàëüñêèé' ),
|
||||
3 => array( 3 , '03' , 'Ìàðò' , 'Ìàðòîâñêèé' ),
|
||||
4 => array( 4 , '04' , 'Àïðåëü' , 'Àïðåëüñêèé' ),
|
||||
5 => array( 5 , '05' , 'Ìàé' , 'Ìàéñêèé' ),
|
||||
6 => array( 6 , '06' , 'Èþíü' , 'Èþíüñêèé' ),
|
||||
7 => array( 7 , '07' , 'Èþëü' , 'Èþëüñêèé' ),
|
||||
8 => array( 8 , '08' , 'Àâãóñò' , 'Àâãóñòîâñêèé' ),
|
||||
9 => array( 9 , '09' , 'Ñåíòÿáðü' , 'Ñåíòÿáðüñêèé' ),
|
||||
10 => array( 10 , '10' , 'Îêòÿáðü' , 'Îêòÿáðüñêèé' ),
|
||||
11 => array( 11 , '11' , 'Íîÿáðü' , 'Íîÿáðüñêèé' ),
|
||||
12 => array( 12 , '12' , 'Äåêàáðü' , 'Äåêàáðüñêèé' ),
|
||||
);
|
||||
|
||||
public static $date = array( ), $m = array( );
|
||||
|
||||
public static function data( $val ) {
|
||||
self::$m = mysql_fetch_array(mysql_query('SELECT * FROM `sss_m` WHERE `id` = "'.mysql_real_escape_string((int)$val).'" LIMIT 1'));
|
||||
if( self::$m['s'] != self::$date['m'] ) {
|
||||
self::$m = array( );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
class season
|
||||
{
|
||||
|
||||
?>
|
||||
public static $yy = [
|
||||
1 => [1, '01', 'ίνβΰπό', 'ίνβΰπόρκθι'],
|
||||
2 => [2, '02', 'Τεβπΰλό', 'Τεβπΰλόρκθι'],
|
||||
3 => [3, '03', 'Μΰπς', 'Μΰπςξβρκθι'],
|
||||
4 => [4, '04', 'ΐοπελό', 'ΐοπελόρκθι'],
|
||||
5 => [5, '05', 'Μΰι', 'Μΰιρκθι'],
|
||||
6 => [6, '06', 'Θώνό', 'Θώνόρκθι'],
|
||||
7 => [7, '07', 'Θώλό', 'Θώλόρκθι'],
|
||||
8 => [8, '08', 'ΐβγσρς', 'ΐβγσρςξβρκθι'],
|
||||
9 => [9, '09', 'Ρενς<CEBD>από', 'Ρενς<CEBD>απόρκθι'],
|
||||
10 => [10, '10', 'Ξκς<CEBA>από', 'Ξκς<CEBA>απόρκθι'],
|
||||
11 => [11, '11', 'Νξ<CE9D>από', 'Νξ<CE9D>απόρκθι'],
|
||||
12 => [12, '12', 'Δεκΰαπό', 'Δεκΰαπόρκθι'],
|
||||
];
|
||||
|
||||
public static $date = [], $m = [];
|
||||
|
||||
public static function data($val)
|
||||
{
|
||||
self::$m = Db::getRow('select * from sss_m where id = ?', [$val]);
|
||||
if (self::$m['s'] != self::$date['m']) {
|
||||
self::$m = [];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -1,21 +0,0 @@
|
||||
<?php
|
||||
|
||||
if( !defined('GAME') ) {
|
||||
die();
|
||||
}
|
||||
|
||||
class botLogic {
|
||||
|
||||
public $bot = array( );
|
||||
|
||||
//Ïîëó÷åíèå èíôîðìàöèè î áîòå
|
||||
public function botInfo( $id ) {
|
||||
|
||||
self::$bot = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `id` = "'.mysql_real_escape_string($id).'" LIMIT 1'));
|
||||
if( !isset(self::$bot['id']) ) {
|
||||
self::$bot = 'stop';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
@ -1,294 +0,0 @@
|
||||
<?
|
||||
die('Что-то тут не так...');
|
||||
/*
|
||||
* Класс обработчика запроса от GameDealer.ru
|
||||
* by victor niko
|
||||
* niko@gamedealer.ru
|
||||
* skype: victornikoua
|
||||
* 14.09.2012
|
||||
*
|
||||
* $old = new Model_PartnerProjects_GamedealerReq;
|
||||
$result = $old->init();
|
||||
die((($result)));
|
||||
*/
|
||||
|
||||
|
||||
class Model_PartnerProjects_GamedealerReq{
|
||||
private $allowIp = array(
|
||||
'127.0.0.1'
|
||||
);
|
||||
private $gamedealerkey = '12345677';
|
||||
var $projectid = 1;
|
||||
|
||||
|
||||
|
||||
|
||||
function init(){
|
||||
|
||||
$ip = $_SERVER['REMOTE_ADDR'];
|
||||
if(!in_array($ip,$this->allowIp))return $this->xml(array('status'=>-10,'desc'=>'ErrIP'));
|
||||
|
||||
//рабочий режим
|
||||
//$xml = file_get_contents('php://input');
|
||||
|
||||
//тестовый режим. Параметры: check_balance / pay / getpacages / check_login
|
||||
$xml = $this->testxml('check_balance');
|
||||
|
||||
$result = $this->parse($xml);
|
||||
|
||||
if(!is_object($result))return $this->xml(array('status'=>-50,'desc'=>'ErrorInitParse'));
|
||||
|
||||
if(isset($result->method)){
|
||||
$methodname = 'gamedealer_'.(string)$result->method;
|
||||
if(!method_exists($this, $methodname))return $this->xml(array('status'=>-20,'desc'=>'ErrMethod'));
|
||||
try{
|
||||
|
||||
$resulttry = $this->$methodname($result);
|
||||
return $this->xml($resulttry);
|
||||
}catch(Exception $e){}
|
||||
}
|
||||
return $this->xml(array('status'=>-10,'desc'=>'MethodError '.$methodname.isset($e)?$e->getMessage():false));
|
||||
}
|
||||
|
||||
|
||||
|
||||
private function _sign($method,$params=array()){
|
||||
|
||||
return md5(implode($params).$method.md5($this->gamedealerkey));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*Генератор XML-ответа*/
|
||||
function xml($arr=false){
|
||||
header("Content-type: text/xml; charset=utf-8");
|
||||
|
||||
if(!$arr)$arr = array('status'=>-1,'desc'=>"ErrorXML");
|
||||
$xml = '<gdanswer>'."\n";
|
||||
foreach($arr as $k => $v){
|
||||
$xml .= '<'.$k.'>'."";
|
||||
if(is_array($v)){
|
||||
|
||||
|
||||
foreach($v as $itemkey => $itemvalue){
|
||||
if(is_array($itemvalue)){
|
||||
$xml .= ' <item ';
|
||||
foreach($itemvalue as $itemvalue_k => $itemvalue_v)$xml .= ' '.$itemvalue_k.'="'.$itemvalue_v.'" ';
|
||||
$xml .= '></item>'."\n";
|
||||
}else{
|
||||
$xml .= '<'.$itemkey.'>'.$itemvalue.'</'.$itemkey.'>'."\n";
|
||||
}
|
||||
}
|
||||
}else {
|
||||
$xml .= $v;
|
||||
}
|
||||
$xml .= '</'.$k.'>'."\n";
|
||||
|
||||
}
|
||||
$xml .= '</gdanswer>';
|
||||
return $xml;
|
||||
}
|
||||
|
||||
//проверка счета-акканта
|
||||
function gamedealer_check_login($params){
|
||||
|
||||
|
||||
$bank = isset($params->nick)?(int)$params->nick:false;
|
||||
$projectid = isset($params->projectid)?(int)$params->projectid:false;
|
||||
$sign = isset($params->sign)?(string)$params->sign:false;
|
||||
|
||||
$hash = $this->_sign('check_login',array($bank));
|
||||
if($sign!=$hash)return array('status'=>-10,'desc'=>'SignError');
|
||||
|
||||
$check = $this->checkLoginByBank($bank);
|
||||
if(isset($check['login'])){
|
||||
return array('status'=>1,'desc'=>'Счет указан верно','addinfo'=>$check['login']);
|
||||
}
|
||||
|
||||
|
||||
return array('status'=>-100,'desc'=>'Ошибка проверки счета');
|
||||
}
|
||||
|
||||
|
||||
//запрос на оплату
|
||||
function gamedealer_pay($params){
|
||||
|
||||
|
||||
|
||||
|
||||
$bank = isset($params->nick)?(int)$params->nick:false;
|
||||
|
||||
$projectid = isset($params->projectid)?(int)$params->projectid:false;
|
||||
$sign = isset($params->sign)?(string)$params->sign:false;
|
||||
$paymentid = isset($params->payid)?(int)$params->payid:false; // уникальный номер платежа
|
||||
$amount = isset($params->amount)?number_format((float)$params->amount,'2','.',''):false; //сумма в игровой валюте
|
||||
$pacageid = isset($params->pacageid)?(int)$params->pacageid:''; //идентификатор покупки опции в ГД. если нету - платеж на счет юзера
|
||||
$partneritemid = isset($params->partneritemid)?(int)$params->partneritemid:''; //идентификатор продукта в вашей системе
|
||||
$additemid = isset($params->additemid)?(int)$params->additemid:''; //дополнительный идентификатор пакета
|
||||
$paymethodid = isset($params->paymethodid)?(string)$params->paymethodid:false; //метод оплаты по системе геймдилер // может быть пустым)
|
||||
|
||||
|
||||
|
||||
$hash = $this->_sign('pay',array($bank,$projectid.$pacageid.$amount,$paymentid));
|
||||
if($sign!=$hash)return array('status'=>-10,'desc'=>'SignError');
|
||||
|
||||
if($amount<0.01)return array('status'=>-20,'desc'=>'сумма слишком маленькая');
|
||||
|
||||
$check = $this->checkLoginByBank($bank);
|
||||
if(!isset($check['login']))return array('status'=>-10,'desc'=>'Ошибка логина. счет неверный'); //логин перса добываем
|
||||
|
||||
return $this->oldbk_dopayment($paymentid,$bank,$projectid,$pacageid,$partneritemid,$amount,$check['login'],$additemid);
|
||||
|
||||
}
|
||||
|
||||
function gamedealer_check_balance($params){
|
||||
$projectid = isset($params->projectid)?(int)$params->projectid:false;
|
||||
$sign = isset($params->sign)?(string)$params->sign:false;
|
||||
$method = 'check_balance';
|
||||
|
||||
if($sign != $this->_sign($method,array('projectid'=>$projectid)))return array('status'=>-10,'desc'=>"errSign");
|
||||
$balance = 500;
|
||||
return array('status'=>1,'desc'=>"Balance: ".$balance,'balance'=>$balance); //баланс в игре
|
||||
}
|
||||
|
||||
function gamedealer_getpacages($params){
|
||||
$sign = isset($params->sign)?(string)$params->sign:false;
|
||||
$projectid = isset($params->projectid)?(int)$params->projectid:false;
|
||||
$method = 'getpacages';
|
||||
|
||||
|
||||
if($sign != $this->_sign($method,array('projectid'=>$projectid)))return array('status'=>-10,'desc'=>"errSign");
|
||||
|
||||
return array(
|
||||
'status'=>1,
|
||||
'desc'=>'Список снизу :)',
|
||||
'pacages'=>array(
|
||||
array(
|
||||
'title'=>'Название сильвера',
|
||||
'price'=>20,
|
||||
'partneritemid'=>1 //ид в системе игры
|
||||
),
|
||||
|
||||
array(
|
||||
'title'=>'Название сильвера 2',
|
||||
'price'=>20,
|
||||
'partneritemid'=>1 //ид в системе игры
|
||||
),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
function parse($xml){
|
||||
try{
|
||||
return simplexml_load_string($xml);
|
||||
}catch(Exception $e){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//тестовый интерфейс
|
||||
function testxml($method='check_login'){
|
||||
switch($method){
|
||||
case 'check_login':
|
||||
$nick = 243;
|
||||
|
||||
|
||||
return '<?xml version="1.0" encoding="utf-8"?>
|
||||
<gamedealer>
|
||||
<method>check_login</method>
|
||||
<nick>'.$nick.'</nick>
|
||||
<projectid>1</projectid>
|
||||
<sign>'.md5($nick.$method.md5($this->gamedealerkey)).'</sign>
|
||||
</gamedealer>';
|
||||
break;
|
||||
|
||||
|
||||
case 'pay':
|
||||
$amount= 0.01;
|
||||
$nick = 243;
|
||||
$projectid = 1;
|
||||
$payid = 112222;
|
||||
|
||||
//$bank,$projectid.$pacageid.$amount,$paymentid
|
||||
#echo "$nick.$projectid.$amount.$payid.$method";
|
||||
$sign = md5($nick.$projectid.$amount.$payid.$method.md5($this->gamedealerkey));
|
||||
|
||||
return '<?xml version="1.0" encoding="utf-8"?>
|
||||
<gamedealer>
|
||||
<method>pay</method>
|
||||
<nick>'.$nick.'</nick>
|
||||
<projectid>'.$projectid.'</projectid>
|
||||
<amount>'.$amount.'</amount>
|
||||
<payid>'.$payid.'</payid>
|
||||
<sign>'.$sign.'</sign>
|
||||
</gamedealer>';
|
||||
|
||||
break;
|
||||
|
||||
case 'getpacages':
|
||||
//список пакетов
|
||||
|
||||
return '<?xml version="1.0" encoding="utf-8"?>
|
||||
<gamedealer>
|
||||
<projectid>1</projectid>
|
||||
<method>'.$method.'</method>
|
||||
<sign>'.md5('1'.$method.md5($this->gamedealerkey)).'</sign>
|
||||
</gamedealer>';
|
||||
break;
|
||||
|
||||
case 'check_balance':
|
||||
//баланс
|
||||
|
||||
return '<?xml version="1.0" encoding="utf-8"?>
|
||||
<gamedealer>
|
||||
<projectid>1</projectid>
|
||||
<method>'.$method.'</method>
|
||||
<sign>'.md5('1'.$method.md5($this->gamedealerkey)).'</sign>
|
||||
</gamedealer>';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//прием оплаты
|
||||
private function oldbk_dopayment($paymentid,$bank,$projectid,$pacageid,$partneritemid,$amount,$login,$additemid){
|
||||
//$additemid - дополнительный дентификатор пакета. например - ID клана
|
||||
//если оплата на клан - projectid = 20099 // pacageid = 25 //partneritemid = 1 (в вашей системе)// additemid = 5 //идентификатор клана
|
||||
//если пакеты
|
||||
if($pacageid){
|
||||
//если покупка билетов - то количество = amount/price ну и там округлять, остаток на счет.
|
||||
return array('status'=>1,'desc'=>'Сильвер аккаунт успешно оплачен','paymentid'=>1); //уникальный номер платежа в системе проекта.
|
||||
|
||||
}else{
|
||||
//просто оплата на баланс по счету
|
||||
return array('status'=>1,'desc'=>'Счет попонен','paymentid'=>1); //уникальный номер платежа в системе проекта.
|
||||
//или
|
||||
return array('status'=>3,'desc'=>'Аккаунт уже оплачен с таким payid','paymentid'=>1);//уникальный номер платежа в системе проекта.
|
||||
}
|
||||
|
||||
return array('status'=>-10,'desc'=>'Ошибка поиска карты/сильвера и т.п. или сумма не та');
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
//проверка счета
|
||||
function checkLoginByBank($bank){
|
||||
return array('status'=>1,'desc'=>'Bank exissts','login'=>'Администратор');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
?>
|
@ -1,63 +0,0 @@
|
||||
<?
|
||||
session_start();
|
||||
|
||||
function er($e)
|
||||
{
|
||||
global $c;
|
||||
die('<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><meta http-equiv="Content-Language" content="ru"><TITLE>Ïðîèçîøëà îøèáêà</TITLE></HEAD><BODY text="#FFFFFF"><p><font color=black>Ïðîèçîøëà îøèáêà: <pre>'.$e.'</pre><b><p><a href="https://'.$c[0].'/">Íàçàä</b></a><HR><p align="right">(c) <a href="https://'.$c[0].'/">'.$c[1].'</a></p></body></html>');
|
||||
}
|
||||
|
||||
function GetRealIp()
|
||||
{
|
||||
if(!empty($_SERVER['HTTP_CLIENT_IP'])) {
|
||||
$ip=$_SERVER['HTTP_CLIENT_IP'];
|
||||
}elseif(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
|
||||
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
|
||||
}else{
|
||||
$ip=$_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
return $ip;
|
||||
}
|
||||
|
||||
define('IP',GetRealIp());
|
||||
define('GAME',true);
|
||||
|
||||
include_once('_incl_data/__config.php');
|
||||
include_once('_incl_data/class/__db_connect.php');
|
||||
include_once('_incl_data/class/__user.php');
|
||||
|
||||
if(!isset($u->info['id']) || $u->info['ip'] != IP || $u->info['admin'] == 1) {
|
||||
die('<meta http-equiv="refresh" content="0; URL=https://new-combats.com/">');
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
|
||||
<title>Âèçóàëüíûé ðåäàêòîð Ëàáèðèíòîâ © new-combats.com</title>
|
||||
|
||||
<script type="text/javascript" src="js/jquery.js"></script>
|
||||
<script type="text/javascript" src="js/jqueryrotate.js"></script>
|
||||
<script type="text/javascript" src="js/jquery.zclip.js"></script>
|
||||
<script type="text/javascript" src="js/jquery.cookie.js"></script>
|
||||
<script type="text/javascript" src="js/title.js"></script>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/clu0b.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/windows.css" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div style="background:#CCCCCC;padding:10px;">
|
||||
<span style="padding:5px; background:#999999;"><span style="color:#CCCCCC">#</span> <b>1</b></span>
|
||||
<select name="select" id="select">
|
||||
<option value="0">Âûáåðèòå íîìåð ïåùåðû</option>
|
||||
<? $i = 0; while($i <= 100) { ?>
|
||||
<option value="<?=$i?>"><?=$i?></option>
|
||||
<? } ?>
|
||||
</select>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
45
_incl_data/class/magic/Elemental/Fire.php
Normal file
45
_incl_data/class/magic/Elemental/Fire.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
namespace Magic\Elemental;
|
||||
|
||||
use battleClass;
|
||||
use Insallah\Math;
|
||||
|
||||
class Fire
|
||||
{
|
||||
private $btl;
|
||||
private $color = '#a00';
|
||||
private $colorCrit = '#f00';
|
||||
private $colorMiss = '#909090';
|
||||
public function __construct(battleClass $btl)
|
||||
{
|
||||
$this->btl = $btl;
|
||||
}
|
||||
|
||||
/** Âñïûøêà. Ïðè¸ìû: 34(8), 67(9), 68 (10), 69(11)
|
||||
* @param $level
|
||||
* @param $fireTargetMultiplier
|
||||
* @return array
|
||||
*/
|
||||
public function Flash($level, $fireTargetMultiplier = 0)
|
||||
{
|
||||
$baseDamage = [
|
||||
8 => [40, 40],
|
||||
9 => [45, 45],
|
||||
10 => [50, 50],
|
||||
11 => [60, 60],
|
||||
];
|
||||
if (!is_numeric($fireTargetMultiplier)) {
|
||||
$fireTargetMultiplier = 0;
|
||||
}
|
||||
$rawDamage = mt_rand($baseDamage[$level][0], $baseDamage[$level][1]);
|
||||
$rawDamage = Math::addPercent($rawDamage, $fireTargetMultiplier);
|
||||
return [
|
||||
'name' => "Âñïûøêà [$level]",
|
||||
'damage' => $rawDamage,
|
||||
'color' => $this->color,
|
||||
'colorCrit' => $this->colorCrit,
|
||||
'colorMiss' => $this->colorMiss,
|
||||
];
|
||||
}
|
||||
}
|
@ -1,50 +1,69 @@
|
||||
<?
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
|
||||
if (!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
|
||||
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);
|
||||
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);
|
||||
");
|
||||
|
||||
$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);
|
||||
}
|
||||
?>
|
@ -1,196 +0,0 @@
|
||||
<?
|
||||
if(!defined('GAME')) { die(); }
|
||||
|
||||
class noob {
|
||||
|
||||
//Ïåðåìåííûå
|
||||
public static $info = array(); //òåêóùèé êâåñò
|
||||
|
||||
/*
|
||||
Ïðîâåðêà äåéñòâèÿ
|
||||
*/
|
||||
public static function test1($var) {
|
||||
global $u;
|
||||
$r = false;
|
||||
$var = explode('=',$var);
|
||||
if( $var[0] == 'slot' ) {
|
||||
//Îäåò ëè â ñëîò ïðåäìåò
|
||||
$test = mysql_fetch_array(mysql_query('SELECT `id`,`item_id` FROM `items_users` WHERE `uid` = "'.$u->info['id'].'" AND `inOdet` = "'.mysql_real_escape_string($var[1]).'" AND `delete` = 0 LIMIT 1'));
|
||||
if(isset($test['id'])) {
|
||||
if($var[2] == 0 || $var[2] == $test['item_id'] ) {
|
||||
$r = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $r;
|
||||
}
|
||||
|
||||
/*
|
||||
Ïðîâåðêè êâåñòà
|
||||
*/
|
||||
public static function testAll() {
|
||||
global $u;
|
||||
//Äîï ïðîâåðêè
|
||||
$go = 1;
|
||||
//Îïûò
|
||||
$ex = explode('>',self::$info['module']);
|
||||
if( $ex[0] == 'exp' ) {
|
||||
if( $ex[1] < $u->info['exp'] ) {
|
||||
self::$info['module'] = '';
|
||||
}
|
||||
}
|
||||
$ex = explode('<',self::$info['module']);
|
||||
if( $ex[0] == 'exp' ) {
|
||||
if( $ex[1] < $u->info['exp'] ) {
|
||||
mysql_query('UPDATE `users` SET `fnq` = "'.self::$info['next'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
||||
self::$info['module'] = '';
|
||||
}
|
||||
}
|
||||
//Îñòàëüíîå
|
||||
$ex = explode('=',self::$info['module']);
|
||||
if( $ex[0] == 'slots' ) {
|
||||
//Íàäåòûå ïðåäìåòû â ñëîòû
|
||||
$ex2 = explode(',',$ex[1]);
|
||||
$i = 0; $gd = 1;
|
||||
while( $i < count($ex2) ) {
|
||||
if( !isset($u->stats['wp' . $ex2[$i] . 'id']) ) {
|
||||
$gd = 0;
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
if( $gd == 1 ) {
|
||||
self::$info['module'] = '';
|
||||
}
|
||||
}
|
||||
//
|
||||
$go = 1;
|
||||
//Òðåáîâàíèÿ
|
||||
$e1 = explode('|',self::$info['tr']);
|
||||
$i = 0;
|
||||
while( $i < count($e1) ) {
|
||||
$ex = explode('=',$e1[$i]);
|
||||
//
|
||||
if( $ex[0] == 'exp' ) {
|
||||
if( $ex[1] == '>' ) {
|
||||
if( $ex[2] > $u->info['exp'] ) {
|
||||
$go = 0;
|
||||
}
|
||||
}elseif( $ex[1] == '<' ) {
|
||||
if( $ex[2] < $u->info['exp'] ) {
|
||||
$go = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
//
|
||||
$i++;
|
||||
}
|
||||
//
|
||||
//
|
||||
return $go;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Íà÷àëî ïðîâåðêè îáó÷åíèÿ
|
||||
*/
|
||||
public static function start() {
|
||||
global $u;
|
||||
if( $u->info['fnq'] == 0 ) {
|
||||
$u->info['fnq'] = 1;
|
||||
mysql_query('UPDATE `users` SET `fnq` = "'.$u->info['fnq'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
||||
}else{
|
||||
if( $u->info['level'] > 2 ) {
|
||||
mysql_query('UPDATE `users` SET `fnq` = "-1" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
||||
}
|
||||
}
|
||||
if( $u->info['fnq'] == 0 ) {
|
||||
//Íà÷àëî îáó÷åíèÿ
|
||||
/*$humor = array(
|
||||
0 => array(
|
||||
':maniac: Ñèëüíî íå áåéòå ;)',':beggar: Áóäåò ïîïðîøàéíè÷àòü - áåéòå!',':pal: Âîçìîæíî ñâåòëûé!',
|
||||
':vamp: Âîçìîæíî òåìíûé!',':susel: Ñóäÿ ïî çäîðîâåííîìó á
|
||||
':friday: Íå äîëãî äóìàâ îí íà÷àë èñêàòü ñîáóòûëüíèêà!',':doc: Ëåêàðü: Íîâè÷îê! Äà, äà! Òû! Åñëè òåáÿ ñëîìàþò - ó çíàõàðÿ òåáÿ ñîáåðóò îáðàòíî!'
|
||||
),
|
||||
1 => array(
|
||||
':maniac: Ïîìíèòå! Äåâî÷åê íå áüåì ;)',':nail: Îíà êðàñèò íîãòè, íå îòâëåêàéòå âñå ñðàçó ;)',':pal: Âîçìîæíî ñâåòëàÿ!',
|
||||
':vamp: Âîçìîæíî òåìíàÿ!',':rev: Ñóäÿ ïî êðàñèâîé îäåæäå - ýòî æåíùèíà!',':hug: È ñðàçó æå êèíóëàñü âñåõ öåëîâàòü!',
|
||||
':angel2: Àíãåë ñîøåë ñ íåáåñ...'
|
||||
)
|
||||
);
|
||||
$humor = $humor[$u->info['sex']];
|
||||
*/
|
||||
$u->info['fnq'] = 1;
|
||||
mysql_query('UPDATE `users` SET `fnq` = "'.$u->info['fnq'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
||||
//Îòïðàâëÿåì ñîîáùåíèå â ÷àò î íîâè÷êå
|
||||
//$u->send('','','','','','Â íàøåì ìèðå ïîÿâèëñÿ íîâûé èãðîê "<b>' . $u->info['login'] . '</b>"! '.$humor[rand(0,count($humor)-1)].'',time(),6,0,0,0,1,0);
|
||||
}else{
|
||||
self::$info = mysql_fetch_array(mysql_query('SELECT * FROM `an_quest` WHERE `id` = "'.$u->info['fnq'].'" LIMIT 1'));
|
||||
if(isset(self::$info['id'])) {
|
||||
//Òåñòèðóåì êâåñò
|
||||
$go = self::testAll();
|
||||
if( $go == 0 ) {
|
||||
//Òðåáîâàíèÿ íå ïîäõîäÿò
|
||||
self::$info = array();
|
||||
}elseif( $u->info['marker'] == self::$info['module'] || self::$info['module'] == '' || (self::$info['module'] == 'next' && isset($_GET['nextfnq'])) || self::test1(self::$info['module']) == true ) {
|
||||
//Êâåñò âûïîëíåí, äåéñòâèå ñäåëàíî!
|
||||
if( self::$info['room'] == '' || self::$info['room'] == $u->room['name'] ) {
|
||||
//Âûäàåì íàãðàäó
|
||||
$nag = explode('|',self::$info['win']);
|
||||
if( $nag[3] != '0' ) {
|
||||
//Âûäàåì ïðåäìåò
|
||||
$ng = explode(',',$nag[3]);
|
||||
$i = 0;
|
||||
while( $i < count($ng) ) {
|
||||
$ngi = explode(',',$ng[$i]);
|
||||
$j = 0;
|
||||
while( $j < count($ngi) ) {
|
||||
$ngj = explode('=',$ngi[$j]);
|
||||
// id = srok = data
|
||||
$ngjs = '';
|
||||
if( $ngj[1] > 0 ) {
|
||||
$ngjs .= '|srok='.$ngj[1].'';
|
||||
}
|
||||
$u->addItem($ngj[0], $u->info['id'], $ngjs);
|
||||
$j++;
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
if( $nag[4] != '0' ) {
|
||||
//Âûäàåì çóáû
|
||||
$u->info['money4'] += $nag[4];
|
||||
mysql_query('UPDATE `users` SET `money4` = "'.$u->info['money4'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
||||
}
|
||||
|
||||
$u->info['fnq'] = self::$info['next'];
|
||||
mysql_query('UPDATE `users` SET `fnq` = "'.$u->info['fnq'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
||||
self::$info = mysql_fetch_array(mysql_query('SELECT * FROM `an_quest` WHERE `id` = "'.$u->info['fnq'].'" LIMIT 1'));
|
||||
$go = self::testAll();
|
||||
if( $go == 0 || self::$info['act'] == 'deadline' ) {
|
||||
//Òðåáîâàíèÿ íå ïîäõîäÿò
|
||||
self::$info = array();
|
||||
}
|
||||
}
|
||||
}else{
|
||||
//Òåêóùèé êâåñò
|
||||
}
|
||||
|
||||
if(isset(self::$info['id'])) {
|
||||
self::$info['info'] = str_replace('{login}',$u->info['login'],self::$info['info']);
|
||||
self::$info['info'] = str_replace('{level}',$u->info['level'],self::$info['info']);
|
||||
self::$info['info'] = str_replace("\r\n",'<br>',self::$info['info']);
|
||||
echo '<script>top.noob.takeData("'.self::$info['id'].'","'.self::$info['ico_bot'].'","'.self::$info['name_bot'].'","'.self::$info['name'].'","'.self::$info['act'].'","'.self::$info['next'].'","'.str_replace('"','"',self::$info['info']).'");</script>';
|
||||
}else{
|
||||
echo '<script>top.noob.no();</script>';
|
||||
}
|
||||
}else{
|
||||
//Êâåñò íå íàéäåí
|
||||
echo '<script>top.noob.no();</script>';
|
||||
}
|
||||
//
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
@ -27,8 +27,8 @@ $pvr = array();
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$this->ue['id'],$pvr['hp'],0);
|
||||
|
||||
$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$this->ue['id']]] );
|
||||
|
||||
$this->addAirStaticPoints(); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
@ -102,8 +102,8 @@ $pvr = array();
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$pvr['uid'],$pvr['hp'],0);
|
||||
|
||||
$this->mg2static_points( $pvr['uid'] , $btl->stats[$btl->uids[$pvr['uid']]] );
|
||||
|
||||
$this->addAirStaticPoints($pvr['uid']); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
|
@ -27,8 +27,8 @@ $pvr = array();
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$this->ue['id'],$pvr['hp'],0);
|
||||
|
||||
$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$this->ue['id']]] );
|
||||
|
||||
$this->addAirStaticPoints(); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
@ -102,8 +102,8 @@ $pvr = array();
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$pvr['uid'],$pvr['hp'],0);
|
||||
|
||||
$this->mg2static_points( $pvr['uid'] , $btl->stats[$btl->uids[$pvr['uid']]] );
|
||||
|
||||
$this->addAirStaticPoints($pvr['uid']); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
|
@ -38,8 +38,8 @@ while( $pvr['ix'] < count($btl->users) ) {
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$pvr['uid'],$pvr['hp'],0);
|
||||
|
||||
$this->mg2static_points( $pvr['uid'] , $btl->stats[$btl->uids[$pvr['uid']]] );
|
||||
|
||||
$this->addAirStaticPoints($pvr['uid']); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
|
@ -38,8 +38,8 @@ $pvr = array();
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$pvr['uid'],$pvr['hp'],0);
|
||||
|
||||
$this->mg2static_points( $pvr['uid'] , $btl->stats[$btl->uids[$pvr['uid']]] );
|
||||
|
||||
$this->addAirStaticPoints($pvr['uid']); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
|
@ -38,8 +38,8 @@ while( $pvr['ix'] < count($btl->users) ) {
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$pvr['uid'],$pvr['hp'],0);
|
||||
|
||||
$this->mg2static_points( $pvr['uid'] , $btl->stats[$btl->uids[$pvr['uid']]] );
|
||||
|
||||
$this->addAirStaticPoints($pvr['uid']); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
|
@ -1,130 +1,90 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
<?php
|
||||
|
||||
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).' );';
|
||||
}*/
|
||||
// ñïàñåíèå
|
||||
$btl->spaCheck($u1);
|
||||
// ñïàñåíèå
|
||||
//
|
||||
$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);
|
||||
$pvr = [];
|
||||
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 $btl;
|
||||
$btl->priemAddLogFast($uid, 0, "Ïðèçðà÷íàÿ çàùèòà",
|
||||
'{tm1} ' . $btl->addlt(1, 17, $btl->users[$btl->uids[$uid]]['sex'], null),
|
||||
0, time());
|
||||
|
||||
//$yron = max($yron / 4, 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) {
|
||||
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
|
||||
// )
|
||||
// ) {
|
||||
// $at['p'][$a]['atack'][$j]['yron']['y'] = max(round($at['p'][$a]['atack'][$j]['yron']['y'] / 4), 1);
|
||||
// $at['p'][$a]['atack'][$j]['yron']['r'] = min(round($at['p'][$a]['atack'][$j]['yron']['r'] / 4), -1);
|
||||
// $at['p'][$a]['atack'][$j]['yron']['k'] = max(round($at['p'][$a]['atack'][$j]['yron']['k'] / 4), 1);
|
||||
// $at['p'][$a]['atack'][$j]['yron']['m_k'] = max(round($at['p'][$a]['atack'][$j]['yron']['m_k'] / 4), 1);
|
||||
// $at['p'][$a]['atack'][$j]['yron']['m_y'] = max(round($at['p'][$a]['atack'][$j]['yron']['m_y'] / 4), 1);
|
||||
//
|
||||
// // ñïàñåíèå
|
||||
// $btl->spaCheck($u1);
|
||||
// // ñïàñåíèå
|
||||
// //
|
||||
// $at['p'][$a]['atack'][$j]['yron']['used'][] = [$j_id, $uid, $pvr['used']];
|
||||
// $at['p'][$a]['atack'][$j]['yron']['kill'][] = [$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,127 +1,140 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
|
||||
if (!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Ïðèçðà÷íûé êèíæàë
|
||||
Ïðèåì: Ïðèçðà÷íûé fire
|
||||
Следующий удар противника по вам нанесет на 50% меньше урона
|
||||
*/
|
||||
$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( $profil == 5 ) {
|
||||
$yron = $yron/2;
|
||||
/*$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($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;
|
||||
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( $at['p'][$a]['atack'][$j]['yron']['w_type'] == 5 ) {
|
||||
$at['p'][$a]['atack'][$j]['yron']['y'] = round($at['p'][$a]['atack'][$j]['yron']['y']/2);
|
||||
$at['p'][$a]['atack'][$j]['yron']['r'] = round($at['p'][$a]['atack'][$j]['yron']['r']/2);
|
||||
$at['p'][$a]['atack'][$j]['yron']['k'] = round($at['p'][$a]['atack'][$j]['yron']['k']/2);
|
||||
$at['p'][$a]['atack'][$j]['yron']['m_k'] = round($at['p'][$a]['atack'][$j]['yron']['m_k']/2);
|
||||
$at['p'][$a]['atack'][$j]['yron']['m_y'] = round($at['p'][$a]['atack'][$j]['yron']['m_y']/2);
|
||||
//
|
||||
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);
|
||||
$pvr = [];
|
||||
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 ($profil == 5) {
|
||||
//$yron = $yron / 2;
|
||||
/*$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($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;
|
||||
// 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 ($at['p'][$a]['atack'][$j]['yron']['w_type'] == 5) {
|
||||
// $at['p'][$a]['atack'][$j]['yron']['y'] = round($at['p'][$a]['atack'][$j]['yron']['y'] / 2);
|
||||
// $at['p'][$a]['atack'][$j]['yron']['r'] = round($at['p'][$a]['atack'][$j]['yron']['r'] / 2);
|
||||
// $at['p'][$a]['atack'][$j]['yron']['k'] = round($at['p'][$a]['atack'][$j]['yron']['k'] / 2);
|
||||
// $at['p'][$a]['atack'][$j]['yron']['m_k'] = round($at['p'][$a]['atack'][$j]['yron']['m_k'] / 2);
|
||||
// $at['p'][$a]['atack'][$j]['yron']['m_y'] = round($at['p'][$a]['atack'][$j]['yron']['m_y'] / 2);
|
||||
// //
|
||||
// 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'][] = [$j_id, $uid, $pvr['used']];
|
||||
// $at['p'][$a]['atack'][$j]['yron']['kill'][] = [$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,127 +1,140 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
|
||||
if (!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Ïðèçðà÷íûé êèíæàë
|
||||
Ïðèåì: Ïðèçðà÷íûé air
|
||||
Следующий удар противника по вам нанесет на 50% меньше урона
|
||||
*/
|
||||
$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( $profil == 6 ) {
|
||||
$yron = $yron/2;
|
||||
/*$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($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;
|
||||
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( $at['p'][$a]['atack'][$j]['yron']['w_type'] == 6 ) {
|
||||
$at['p'][$a]['atack'][$j]['yron']['y'] = round($at['p'][$a]['atack'][$j]['yron']['y']/2);
|
||||
$at['p'][$a]['atack'][$j]['yron']['r'] = round($at['p'][$a]['atack'][$j]['yron']['r']/2);
|
||||
$at['p'][$a]['atack'][$j]['yron']['k'] = round($at['p'][$a]['atack'][$j]['yron']['k']/2);
|
||||
$at['p'][$a]['atack'][$j]['yron']['m_k'] = round($at['p'][$a]['atack'][$j]['yron']['m_k']/2);
|
||||
$at['p'][$a]['atack'][$j]['yron']['m_y'] = round($at['p'][$a]['atack'][$j]['yron']['m_y']/2);
|
||||
//
|
||||
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);
|
||||
$pvr = [];
|
||||
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 ($profil == 6) {
|
||||
//$yron = $yron / 2;
|
||||
/*$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($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;
|
||||
// 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 ($at['p'][$a]['atack'][$j]['yron']['w_type'] == 6) {
|
||||
// $at['p'][$a]['atack'][$j]['yron']['y'] = round($at['p'][$a]['atack'][$j]['yron']['y'] / 2);
|
||||
// $at['p'][$a]['atack'][$j]['yron']['r'] = round($at['p'][$a]['atack'][$j]['yron']['r'] / 2);
|
||||
// $at['p'][$a]['atack'][$j]['yron']['k'] = round($at['p'][$a]['atack'][$j]['yron']['k'] / 2);
|
||||
// $at['p'][$a]['atack'][$j]['yron']['m_k'] = round($at['p'][$a]['atack'][$j]['yron']['m_k'] / 2);
|
||||
// $at['p'][$a]['atack'][$j]['yron']['m_y'] = round($at['p'][$a]['atack'][$j]['yron']['m_y'] / 2);
|
||||
// //
|
||||
// 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'][] = [$j_id, $uid, $pvr['used']];
|
||||
// $at['p'][$a]['atack'][$j]['yron']['kill'][] = [$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,127 +1,140 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
|
||||
if (!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Ïðèçðà÷íûé êèíæàë
|
||||
Ïðèåì: Ïðèçðà÷íûé water
|
||||
Следующий удар противника по вам нанесет на 50% меньше урона
|
||||
*/
|
||||
$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( $profil == 7 ) {
|
||||
$yron = $yron/2;
|
||||
/*$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($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;
|
||||
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( $at['p'][$a]['atack'][$j]['yron']['w_type'] == 7 ) {
|
||||
$at['p'][$a]['atack'][$j]['yron']['y'] = round($at['p'][$a]['atack'][$j]['yron']['y']/2);
|
||||
$at['p'][$a]['atack'][$j]['yron']['r'] = round($at['p'][$a]['atack'][$j]['yron']['r']/2);
|
||||
$at['p'][$a]['atack'][$j]['yron']['k'] = round($at['p'][$a]['atack'][$j]['yron']['k']/2);
|
||||
$at['p'][$a]['atack'][$j]['yron']['m_k'] = round($at['p'][$a]['atack'][$j]['yron']['m_k']/2);
|
||||
$at['p'][$a]['atack'][$j]['yron']['m_y'] = round($at['p'][$a]['atack'][$j]['yron']['m_y']/2);
|
||||
//
|
||||
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);
|
||||
$pvr = [];
|
||||
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 ($profil == 7) {
|
||||
//$yron = $yron / 2;
|
||||
/*$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($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;
|
||||
// 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 ($at['p'][$a]['atack'][$j]['yron']['w_type'] == 7) {
|
||||
// $at['p'][$a]['atack'][$j]['yron']['y'] = round($at['p'][$a]['atack'][$j]['yron']['y'] / 2);
|
||||
// $at['p'][$a]['atack'][$j]['yron']['r'] = round($at['p'][$a]['atack'][$j]['yron']['r'] / 2);
|
||||
// $at['p'][$a]['atack'][$j]['yron']['k'] = round($at['p'][$a]['atack'][$j]['yron']['k'] / 2);
|
||||
// $at['p'][$a]['atack'][$j]['yron']['m_k'] = round($at['p'][$a]['atack'][$j]['yron']['m_k'] / 2);
|
||||
// $at['p'][$a]['atack'][$j]['yron']['m_y'] = round($at['p'][$a]['atack'][$j]['yron']['m_y'] / 2);
|
||||
// //
|
||||
// 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'][] = [$j_id, $uid, $pvr['used']];
|
||||
// $at['p'][$a]['atack'][$j]['yron']['kill'][] = [$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,127 +1,140 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
|
||||
if (!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Ïðèçðà÷íûé êèíæàë
|
||||
Ïðèåì: Ïðèçðà÷íûé earth
|
||||
Следующий удар противника по вам нанесет на 50% меньше урона
|
||||
*/
|
||||
$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( $profil == 8 ) {
|
||||
$yron = $yron/2;
|
||||
/*$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($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;
|
||||
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( $at['p'][$a]['atack'][$j]['yron']['w_type'] == 8 ) {
|
||||
$at['p'][$a]['atack'][$j]['yron']['y'] = round($at['p'][$a]['atack'][$j]['yron']['y']/2);
|
||||
$at['p'][$a]['atack'][$j]['yron']['r'] = round($at['p'][$a]['atack'][$j]['yron']['r']/2);
|
||||
$at['p'][$a]['atack'][$j]['yron']['k'] = round($at['p'][$a]['atack'][$j]['yron']['k']/2);
|
||||
$at['p'][$a]['atack'][$j]['yron']['m_k'] = round($at['p'][$a]['atack'][$j]['yron']['m_k']/2);
|
||||
$at['p'][$a]['atack'][$j]['yron']['m_y'] = round($at['p'][$a]['atack'][$j]['yron']['m_y']/2);
|
||||
//
|
||||
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);
|
||||
$pvr = [];
|
||||
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 ($profil == 8) {
|
||||
//$yron = $yron / 2;
|
||||
/*$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($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;
|
||||
// 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 ($at['p'][$a]['atack'][$j]['yron']['w_type'] == 8) {
|
||||
// $at['p'][$a]['atack'][$j]['yron']['y'] = round($at['p'][$a]['atack'][$j]['yron']['y'] / 2);
|
||||
// $at['p'][$a]['atack'][$j]['yron']['r'] = round($at['p'][$a]['atack'][$j]['yron']['r'] / 2);
|
||||
// $at['p'][$a]['atack'][$j]['yron']['k'] = round($at['p'][$a]['atack'][$j]['yron']['k'] / 2);
|
||||
// $at['p'][$a]['atack'][$j]['yron']['m_k'] = round($at['p'][$a]['atack'][$j]['yron']['m_k'] / 2);
|
||||
// $at['p'][$a]['atack'][$j]['yron']['m_y'] = round($at['p'][$a]['atack'][$j]['yron']['m_y'] / 2);
|
||||
// //
|
||||
// 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'][] = [$j_id, $uid, $pvr['used']];
|
||||
// $at['p'][$a]['atack'][$j]['yron']['kill'][] = [$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);
|
||||
?>
|
@ -56,8 +56,6 @@ $pvr = array();
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$u->info['id']]] );
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],1).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
$prv['text'] = $btl->addlt(1 , 20 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
|
@ -55,8 +55,7 @@ $pvr = array();
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$u->info['id']]] );
|
||||
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
|
@ -36,7 +36,7 @@ $pvr = array();
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem( $u->info['id'], $pvr['uid'], 21, $pvr['hp'], 5, true );
|
||||
if( $pvr['krit'] == false ) {
|
||||
if(!$pvr['krit']) {
|
||||
if( $pvr['hp'] > $pvr['lim'] ) {
|
||||
$pvr['hp'] = $pvr['lim'];
|
||||
}
|
||||
@ -48,8 +48,7 @@ $pvr = array();
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$pvr['uid'],$pvr['hp'],0);
|
||||
|
||||
$this->mg2static_points( $pvr['uid'] , $btl->stats[$btl->uids[$pvr['uid']]] );
|
||||
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
@ -62,8 +61,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'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
if(!$pvr['promah']) {
|
||||
if(!$pvr['krit']) {
|
||||
$prv['color2'] = '006699';
|
||||
if(isset($btl->mcolor[$btl->mname['îãîíü']])) {
|
||||
$prv['color2'] = $btl->mcolor[$btl->mname['îãîíü']];
|
||||
@ -96,12 +95,7 @@ $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']++;
|
||||
}
|
||||
@ -110,12 +104,6 @@ $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);
|
||||
?>
|
@ -49,7 +49,7 @@ $pvr = array();
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$pvr['uid'],$pvr['hp'],0);
|
||||
|
||||
$this->mg2static_points( $pvr['uid'] , $btl->stats[$btl->uids[$pvr['uid']]] );
|
||||
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
|
@ -49,7 +49,7 @@ $pvr = array();
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$pvr['uid'],$pvr['hp'],0);
|
||||
|
||||
$this->mg2static_points( $pvr['uid'] , $btl->stats[$btl->uids[$pvr['uid']]] );
|
||||
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
|
@ -55,8 +55,8 @@ $pvr = array();
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$u->info['id']]] );
|
||||
|
||||
$this->addAirStaticPoints(); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],2).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
@ -76,5 +76,6 @@ $pvr = array();
|
||||
//Îòíèìàåì òàêòèêè
|
||||
//$this->mintr($pl);
|
||||
|
||||
|
||||
unset($pvr);
|
||||
?>
|
@ -55,8 +55,8 @@ $pvr = array();
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$u->info['id']]] );
|
||||
|
||||
$this->addAirStaticPoints(); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],2).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
|
@ -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,214 +1,6 @@
|
||||
<?
|
||||
<?php
|
||||
/**@var $this priems*/
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Ïûëàþùèé Âçðûâ
|
||||
*/
|
||||
$pvr = array();
|
||||
$pvr['mg'] = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `uid` = "'.$btl->users[$btl->uids[$this->ue['id']]]['id'].'" AND `bj` = "ïîæèðàþùååïëàìÿ" AND `user_use` = "'.$u->info['id'].'" ORDER BY `id` DESC LIMIT 1'));
|
||||
if( isset($pvr['mg']['id']) ) {
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
$pvr['hp'] = 0;
|
||||
$pvr['data'] = $this->lookStatsArray($pvr['mg']['data']);
|
||||
$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'] = round($pvr['hp']*5);
|
||||
$pvr['hp'] = round($pvr['hp']/100*33);
|
||||
|
||||
$pvr['hp24'] = $pvr['hp'];
|
||||
|
||||
//$pvr['hp'] = floor($pvr['hp']/20*$u->stats['mg3']);//óìåëêè
|
||||
//$pvr['hp'] = floor($pvr['hp']/200*$u->stats['s5']);//Èíòåëåêò
|
||||
/*if( $btl->stats[$btl->uids[$this->ue['id']]]['hpNow'] < floor($btl->stats[$btl->uids[$this->ue['id']]]['hpAll']/100*33) ) {
|
||||
$pvr['hp'] = floor( $pvr['hp'] + ($pvr['hp']/100*(33*$pvr['mg']['x'])) );
|
||||
}*/
|
||||
|
||||
/*
|
||||
$pvr['hp_test'] = $this->magatack( $u->info['id'], $this->ue['id'], $pvr['hp'], 'îãîíü', 1 );
|
||||
$pvr['promah_type'] = $pvr['hp_test'][3];
|
||||
$pvr['promah'] = $pvr['hp_test'][2];
|
||||
$pvr['krit'] = $pvr['hp_test'][1];
|
||||
*/
|
||||
//$pvr['hp'] = $pvr['hp_test'][0];
|
||||
|
||||
|
||||
$pvr['hpSee'] = '--';
|
||||
$pvr['hpNow'] = floor($btl->stats[$btl->uids[$this->ue['id']]]['hpNow']);
|
||||
$pvr['hpAll'] = $btl->stats[$btl->uids[$this->ue['id']]]['hpAll'];
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem( $u->info['id'], $this->ue['id'], 21, $pvr['hp'], 7, true );
|
||||
|
||||
$pvr['hp25'] = $pvr['hp'];
|
||||
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$this->ue['id'],$pvr['hp'],0);
|
||||
|
||||
$pvr['hp26'] = $pvr['hp'];
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
}elseif( $pvr['hpNow'] < 0 ) {
|
||||
$pvr['hpNow'] = 0;
|
||||
}
|
||||
|
||||
$btl->stats[$btl->uids[$this->ue['id']]]['hpNow'] = $pvr['hpNow'];
|
||||
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = "'.$btl->stats[$btl->uids[$this->ue['id']]]['hpNow'].'" WHERE `id` = "'.$this->ue['id'].'" LIMIT 1');
|
||||
|
||||
$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
|
||||
//Öâåò ïðèåìà
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '006699';
|
||||
if(isset($btl->mcolor[$btl->mname['îãîíü']])) {
|
||||
$prv['color2'] = $btl->mcolor[$btl->mname['îãîíü']];
|
||||
}
|
||||
$prv['color'] = '000000';
|
||||
if(isset($btl->mncolor[$btl->mname['îãîíü']])) {
|
||||
$prv['color'] = $btl->mncolor[$btl->mname['îãîíü']];
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
$prv['color'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],1).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].'] (Áàçîâûé óðîí: '.$pvr['hp23'].'/'.$pvr['hp24'].'/'.$pvr['hp25'].'/'.$pvr['hp26'].' åä.)';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
$prv['text'] = $btl->addlt(1 , 20 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],1).'>--</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
}
|
||||
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $this->ue['id'],
|
||||
'<font color^^^^#'.$prv['color2'].'>Ïûëàþùèé Âçðûâ</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID + 1)
|
||||
);
|
||||
|
||||
//
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
//$pvr['rx'] = rand(80,80);
|
||||
//$pvr['rx'] = floor($pvr['rx']/10);
|
||||
$pvr['uen'] = $this->ue['id'];
|
||||
$pvr['rx'] = 4;
|
||||
$pvr['xx'] = 0;
|
||||
$pvr['ix'] = 0;
|
||||
while( $pvr['ix'] < count($btl->users) ) {
|
||||
if( $btl->stats[$pvr['ix']]['hpNow'] > 0 && $btl->users[$pvr['ix']]['team'] != $u->info['team'] && $pvr['xx'] < $pvr['rx'] && $pvr['uen'] != $btl->users[$pvr['ix']]['id'] ) {
|
||||
//
|
||||
$pvr['uid'] = $btl->users[$pvr['ix']]['id'];
|
||||
$pvr['hp'] = floor($pvr['hp']);
|
||||
/*
|
||||
$pvr['hp'] = $this->magatack( $u->info['id'], $pvr['uid'], $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[$pvr['uid']]]['hpNow']);
|
||||
$pvr['hpAll'] = $btl->stats[$btl->uids[$pvr['uid']]]['hpAll'];
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem( $u->info['id'], $pvr['uid'], 21, $pvr['hp'], 6, true );
|
||||
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$pvr['uid'],$pvr['hp'],0);
|
||||
|
||||
$this->mg2static_points( $pvr['uid'] , $btl->stats[$btl->uids[$pvr['uid']]] );
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
}elseif( $pvr['hpNow'] < 0 ) {
|
||||
$pvr['hpNow'] = 0;
|
||||
}
|
||||
|
||||
$btl->stats[$btl->uids[$pvr['uid']]]['hpNow'] = $pvr['hpNow'];
|
||||
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = "'.$btl->stats[$btl->uids[$pvr['uid']]]['hpNow'].'" WHERE `id` = "'.$pvr['uid'].'" LIMIT 1');
|
||||
|
||||
//
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '006699';
|
||||
if(isset($btl->mcolor[$btl->mname['îãîíü']])) {
|
||||
$prv['color2'] = $btl->mcolor[$btl->mname['îãîíü']];
|
||||
}
|
||||
$prv['color'] = '000000';
|
||||
if(isset($btl->mncolor[$btl->mname['îãîíü']])) {
|
||||
$prv['color'] = $btl->mncolor[$btl->mname['îãîíü']];
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
$prv['color'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
//
|
||||
|
||||
//
|
||||
//$prv['color2'] = $btl->mcolor[$btl->mname['çåìëÿ']];
|
||||
$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$pvr['uid'],1).'>--</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
}else{
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$pvr['uid'],1).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
}
|
||||
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $pvr['uid'],
|
||||
'<font color^^^^#'.$prv['color2'].'>Ïûëàþùèé Âçðûâ</font>',
|
||||
$prv['text2'],
|
||||
($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']++;
|
||||
}
|
||||
$pvr['ix']++;
|
||||
}
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$this->addEffPr($pl,$id);
|
||||
//$this->addPriem($this->ue['id'],242,'add_notactic=1|add_nousepriem=1',2,77,2,$u->info['id'],3,'ïûëàþùèéóæàñ',0,0,1);
|
||||
|
||||
//Óäàëÿåì îëåäåíåíèå
|
||||
$pvr['mg']['priem']['id'] = $pvr['mg']['id'];
|
||||
$btl->delPriem($pvr['mg'],$btl->users[$btl->uids[$this->ue['id']]],2);
|
||||
|
||||
//Îòíèìàåì òàêòèêè
|
||||
$this->mintr($pl);
|
||||
}else{
|
||||
echo '<font color=red><b>Íà ïåðñîíàæå íåò ïîæèðàþùåãî ïëàìåíè (Âàøåãî çàêëÿòèÿ)</b></font>';
|
||||
$cup = true;
|
||||
}
|
||||
unset($pvr);
|
||||
?>
|
||||
$this->addPriem($this->u->info['id'],243,'add_acestar=1',2,77,1,$this->u->info['id'],1,'',0,0,1);
|
||||
|
@ -1,125 +1,85 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id int
|
||||
* @var $pl array
|
||||
*/
|
||||
if (!$id) {
|
||||
exit();
|
||||
}
|
||||
/*
|
||||
Прием: Пылающая Смерть
|
||||
*/
|
||||
$pvr = array();
|
||||
$pvr['mg'] = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `uid` = "'.$btl->users[$btl->uids[$this->ue['id']]]['id'].'" AND `bj` = "ïîæèðàþùååïëàìÿ" AND `user_use` = "'.$u->info['id'].'" ORDER BY `id` DESC LIMIT 1'));
|
||||
if( $btl->stats[$btl->uids[$this->ue['id']]]['hpNow'] > round($btl->stats[$btl->uids[$this->ue['id']]]['hpAll']/100*33) ) {
|
||||
echo '<font color=red><b>Óðîâåíü çäîðîâüÿ öåëè äîëæåí áûòü íèæå 33%</b></font>';
|
||||
$cup = true;
|
||||
}elseif( isset($pvr['mg']['id']) ) {
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
$pvr['hp'] = 0;
|
||||
$pvr['data'] = $this->lookStatsArray($pvr['mg']['data']);
|
||||
$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'] = round(((5*$pvr['hp'])/100)*150);
|
||||
$pvr['hp'] = 450;
|
||||
|
||||
$pvr['hp24'] = $pvr['hp'];
|
||||
|
||||
//$pvr['hp'] = floor($pvr['hp']/20*$u->stats['mg3']);//óìåëêè
|
||||
//$pvr['hp'] = floor($pvr['hp']/200*$u->stats['s5']);//Èíòåëåêò
|
||||
//if( $btl->stats[$btl->uids[$this->ue['id']]]['hpNow'] < floor($btl->stats[$btl->uids[$this->ue['id']]]['hpAll']/100*30) ) {
|
||||
//$pvr['hp'] = floor( $pvr['hp'] + ($pvr['hp']/100*(50*$pvr['mg']['x'])) );
|
||||
//}
|
||||
|
||||
$pvr['hp_test'] = $this->magatack( $u->info['id'], $this->ue['id'], $pvr['hp'], 'îãîíü', 1 );
|
||||
$pvr['promah_type'] = 0;
|
||||
$pvr['promah'] = false;
|
||||
$pvr['krit'] = $pvr['hp_test'][1];
|
||||
if( $pvr['krit'] == true ) {
|
||||
$pvr['hp'] = round($pvr['hp']*2);
|
||||
}
|
||||
$pvr['hpSee'] = '--';
|
||||
$pvr['hpNow'] = floor($btl->stats[$btl->uids[$this->ue['id']]]['hpNow']);
|
||||
$pvr['hpAll'] = $btl->stats[$btl->uids[$this->ue['id']]]['hpAll'];
|
||||
|
||||
$pvr['hp25'] = $pvr['hp'];
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem( $u->info['id'], $this->ue['id'], 21, $pvr['hp'], 7, true );
|
||||
|
||||
$pvr['hp26'] = $pvr['hp'];
|
||||
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$this->ue['id'],$pvr['hp'],0);
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
}elseif( $pvr['hpNow'] < 0 ) {
|
||||
$pvr['hpNow'] = 0;
|
||||
}
|
||||
|
||||
$btl->stats[$btl->uids[$this->ue['id']]]['hpNow'] = $pvr['hpNow'];
|
||||
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = "'.$btl->stats[$btl->uids[$this->ue['id']]]['hpNow'].'" WHERE `id` = "'.$this->ue['id'].'" LIMIT 1');
|
||||
|
||||
$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
|
||||
//Öâåò ïðèåìà
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '006699';
|
||||
if(isset($btl->mcolor[$btl->mname['îãîíü']])) {
|
||||
$prv['color2'] = $btl->mcolor[$btl->mname['îãîíü']];
|
||||
}
|
||||
$prv['color'] = '000000';
|
||||
if(isset($btl->mncolor[$btl->mname['îãîíü']])) {
|
||||
$prv['color'] = $btl->mncolor[$btl->mname['îãîíü']];
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
$prv['color'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
$prv['text'] = $btl->addlt(1 , 20 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b'.$btl->maginfoattack($u->info['id'],$this->ue['id'],1).'>--</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
}
|
||||
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $this->ue['id'],
|
||||
'<font color^^^^#'.$prv['color2'].'>Ïûëàþùàÿ Ñìåðòü</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID + 1)
|
||||
);
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$this->addEffPr($pl,$id);
|
||||
//$this->addPriem($this->ue['id'],242,'add_notactic=1|add_nousepriem=1',2,77,2,$u->info['id'],3,'ïûëàþùèéóæàñ',0,0,1);
|
||||
|
||||
//Óäàëÿåì îëåäåíåíèå
|
||||
$pvr['mg']['priem']['id'] = $pvr['mg']['id'];
|
||||
$btl->delPriem($pvr['mg'],$btl->users[$btl->uids[$this->ue['id']]],2);
|
||||
|
||||
//Îòíèìàåì òàêòèêè
|
||||
$this->mintr($pl);
|
||||
}else{
|
||||
echo '<font color=red><b>Íà ïåðñîíàæå íåò ïîæèðàþùåãî ïëàìåíè (Âàøåãî çàêëÿòèÿ)</b></font>';
|
||||
$cup = true;
|
||||
$pvr = [];
|
||||
$pvr['mg'] = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `uid` = ' . $btl->users[$btl->uids[$this->ue['id']]]['id'] . ' AND `bj` = "ïîæèðàþùååïëàìÿ" AND `user_use` = ' . $u->info['id'] . ' ORDER BY `id` DESC LIMIT 1'));
|
||||
if (
|
||||
$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>';
|
||||
$cup = true;
|
||||
} elseif (!isset($pvr['mg']['id'])) {
|
||||
echo '<b style="color: red">Íà ïåðñîíàæå íåò ïîæèðàþùåãî ïëàìåíè (Âàøåãî çàêëÿòèÿ)</b>';
|
||||
$cup = true;
|
||||
} else {
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
$pvr['data'] = $this->lookStatsArray($pvr['mg']['data']);
|
||||
$pvr['name'] = $pvr['mg']['name'];
|
||||
|
||||
// Óðîí = 150% îñòàâøåãîñÿ óðîíà (óðîí çà õîä * êîëè÷åñòâî õîäîâ * 150/100).
|
||||
$pvr['hp'] = floor($pvr['data']['atgm'] * $pvr['mg']['hod'] * 1.5);
|
||||
|
||||
// Ìû äîëæíû ñìî÷ü êðèòîâàòü, íî ìû íå äîëæíû åù¸ ðàç ìîäèôèöèðîâàòü óðîí!
|
||||
$pvr['hp_test'] = $this->magatack($u->info['id'], $this->ue['id'], $pvr['hp'], 'îãîíü', 1);
|
||||
|
||||
|
||||
$pvr['krit'] = $pvr['hp_test'][1];
|
||||
if ($pvr['krit']) {
|
||||
$pvr['hp'] = round($pvr['hp'] * 2);
|
||||
}
|
||||
$pvr['hpSee'] = '--';
|
||||
$pvr['hpNow'] = floor($btl->stats[$btl->uids[$this->ue['id']]]['hpNow']);
|
||||
$pvr['hpAll'] = $btl->stats[$btl->uids[$this->ue['id']]]['hpAll'];
|
||||
|
||||
$pvr['hp25'] = $pvr['hp'];
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem($u->info['id'], $this->ue['id'], 21, $pvr['hp'], 7, true);
|
||||
|
||||
$pvr['hp26'] = $pvr['hp'];
|
||||
|
||||
$pvr['hpSee'] = '-' . $pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'], $this->ue['id'], $pvr['hp'], 0);
|
||||
|
||||
if ($pvr['hpNow'] > $pvr['hpAll']) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
} elseif ($pvr['hpNow'] < 0) {
|
||||
$pvr['hpNow'] = 0;
|
||||
}
|
||||
$btl->stats[$btl->uids[$this->ue['id']]]['hpNow'] = $pvr['hpNow'];
|
||||
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = ' . $btl->stats[$btl->uids[$this->ue['id']]]['hpNow'] . ' WHERE `id` = ' . $this->ue['id']);
|
||||
|
||||
$prv['text'] = $btl->addlt(1, 19, $btl->users[$btl->uids[$u->info['id']]]['sex'], null);
|
||||
|
||||
|
||||
$prv['color'] = $pvr['krit'] ? "f00" : "a00";
|
||||
|
||||
$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>',
|
||||
$prv['text2'],
|
||||
($btl->hodID + 1)
|
||||
);
|
||||
|
||||
//Óäàëÿåì îëåäåíåíèå
|
||||
$pvr['mg']['priem']['id'] = $pvr['mg']['id'];
|
||||
$btl->delPriem($pvr['mg'], $btl->users[$btl->uids[$this->ue['id']]], 2);
|
||||
|
||||
//Îòíèìàåì òàêòèêè
|
||||
$this->mintr($pl);
|
||||
}
|
||||
unset($pvr);
|
||||
?>
|
@ -1,76 +1,14 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Öåëü âîäû
|
||||
*/
|
||||
$pvr = array();
|
||||
<?php
|
||||
|
||||
$pvr['x5'] = mysql_fetch_array(mysql_query('SELECT `id`,`x` FROM `eff_users` WHERE `uid` = "'.$this->ue['id'].'" AND `v2` = 25 AND `delete` = 0 LIMIT 1'));
|
||||
if( $pvr['x5']['x'] < 5 ) {
|
||||
$prv['x'] = '';
|
||||
if( $pvr['x5']['x'] > 0 ) {
|
||||
$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'].'" LIMIT 1'));
|
||||
if( isset($prv['eff']['id']) ) {
|
||||
//Ðàçáèðàåì äàòó $prv['eff']['data']
|
||||
$prv['eda'] = $prv['eff']['data'];
|
||||
}
|
||||
}else{
|
||||
//Ðàçáèðàåì äàòó $pl['date3']
|
||||
$prv['eda'] = $pl['date3'];
|
||||
}
|
||||
//
|
||||
if( isset($prv['eda']) ) {
|
||||
$prv['d'] = $u->lookStats($prv['eda']);
|
||||
$prv['j'] = $u->lookStats($this->redate($prv['eda'],$u->info['id']));
|
||||
$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) {
|
||||
$prv['inf'] .= $u->is[$prv['vi']].': +'.($prv['j'][$prv['v'][$prv['i']]]*(1+$pvr['x5']['x'])).', ';
|
||||
}elseif($prv['j'][$prv['v'][$prv['i']]]<0){
|
||||
$prv['inf'] .= $u->is[$prv['vi']].': '.($prv['j'][$prv['v'][$prv['i']]]*(1+$prv['x5']['x'])).', ';
|
||||
}
|
||||
}
|
||||
$prv['i']++;
|
||||
}
|
||||
$prv['effx'] = rtrim($prv['inf'],', ');
|
||||
}
|
||||
//
|
||||
if( $prv['effx'] != '' ) {
|
||||
$prv['effx'] = ' ('.$prv['effx'].')';
|
||||
}
|
||||
//
|
||||
$prv['color2'] = '000000';
|
||||
$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'.'.$prv['effx'];
|
||||
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $this->ue['id'],
|
||||
'<font color^^^^#'.$prv['color2'].'>Öåëü âîäû'.$prv['x'].'</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID + 0)
|
||||
);
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$this->addEffPr($pl,$id);
|
||||
//$this->addPriem($this->ue['id'],$pl['id'],'atgm='.floor($pvr['hp']/10).'',0,77,-1,$u->info['id'],5,'öåëüâîäû',0,0,1);
|
||||
|
||||
//Îòíèìàåì òàêòèêè
|
||||
//$this->mintr($pl);
|
||||
}else{
|
||||
$cup = true;
|
||||
echo '<font color=red><b>Íà ïåðîñíàæå äîñòèãíóòî ìàêñèàëüíîå êîëëè÷åñòâî öåëåé</b></font>';
|
||||
}
|
||||
/**
|
||||
* Ïðèåì: Öåëü {ñòèõèÿ}
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id
|
||||
* @var $pl
|
||||
*/
|
||||
|
||||
unset($pvr);
|
||||
?>
|
||||
if (!$id) {
|
||||
exit();
|
||||
}
|
||||
$cup = $this->magicTarget('water', $pl, $id, $btl);
|
||||
|
@ -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'].'" LIMIT 1'));
|
||||
$prv['eff'] = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `id` = '.$pvr['x5']['id']));
|
||||
if( isset($prv['eff']['id']) ) {
|
||||
//Ðàçáèðàåì äàòó $prv['eff']['data']
|
||||
$prv['eda'] = $prv['eff']['data'];
|
||||
@ -34,7 +34,7 @@ if( $pvr['x5']['x'] < 5 ) {
|
||||
$prv['v'] = $u->lookKeys($this->redate($prv['eda'],$u->info['id']),0); // êëþ÷è 2
|
||||
$prv['i'] = 0; $prv['inf'] = '';
|
||||
while($prv['i']<count($prv['v'])) {
|
||||
//$prv['j'][$prv['v'][$prv['i']]] += $prv['j'][$prv['v'][$prv['i']]];
|
||||
|
||||
$prv['vi'] = str_replace('add_','',$prv['v'][$prv['i']]);
|
||||
if($u->is[$prv['vi']]!='') {
|
||||
if($prv['j'][$prv['v'][$prv['i']]]>0) {
|
||||
|
@ -99,7 +99,8 @@ 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->mg2static_points( $u1 , $btl->stats[$btl->uids[$u1]] );
|
||||
$priem->addAirStaticPoints($u1);
|
||||
|
||||
/*
|
||||
if( $at['p'][$a]['atack'][$j]['yron']['k'] < 1 ) { $at['p'][$a]['atack'][$j]['yron']['k'] = 1; }
|
||||
if( $at['p'][$a]['atack'][$j]['yron']['m_k'] < 1 ) { $at['p'][$a]['atack'][$j]['yron']['m_k'] = 1; }
|
||||
|
@ -1,14 +1,4 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
/*
|
||||
Прием: Скорость молнии
|
||||
*/
|
||||
$pvr = array();
|
||||
|
||||
//Действие при клике
|
||||
<?php
|
||||
/* Прием: Скорость молнии */
|
||||
if(!$id) die();
|
||||
$this->addEffPr($pl,$id);
|
||||
|
||||
unset($pvr);
|
||||
?>
|
@ -115,8 +115,8 @@ $pvr = array();
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$pvr['uid'],$pvr['hp'],0);
|
||||
|
||||
$this->mg2static_points( $pvr['uid'] , $btl->stats[$btl->uids[$pvr['uid']]] );
|
||||
|
||||
$this->addAirStaticPoints(); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
|
@ -1,76 +1,14 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Öåëü âîäû
|
||||
*/
|
||||
$pvr = array();
|
||||
<?php
|
||||
|
||||
$pvr['x5'] = mysql_fetch_array(mysql_query('SELECT `id`,`x` FROM `eff_users` WHERE `uid` = "'.$this->ue['id'].'" AND `v2` = 26 AND `delete` = 0 LIMIT 1'));
|
||||
if( $pvr['x5']['x'] < 5 ) {
|
||||
$prv['x'] = '';
|
||||
if( $pvr['x5']['x'] > 0 ) {
|
||||
$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'].'" LIMIT 1'));
|
||||
if( isset($prv['eff']['id']) ) {
|
||||
//Ðàçáèðàåì äàòó $prv['eff']['data']
|
||||
$prv['eda'] = $prv['eff']['data'];
|
||||
}
|
||||
}else{
|
||||
//Ðàçáèðàåì äàòó $pl['date3']
|
||||
$prv['eda'] = $pl['date3'];
|
||||
}
|
||||
//
|
||||
if( isset($prv['eda']) ) {
|
||||
$prv['d'] = $u->lookStats($prv['eda']);
|
||||
$prv['j'] = $u->lookStats($this->redate($prv['eda'],$u->info['id']));
|
||||
$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) {
|
||||
$prv['inf'] .= $u->is[$prv['vi']].': +'.($prv['j'][$prv['v'][$prv['i']]]*(1+$pvr['x5']['x'])).', ';
|
||||
}elseif($prv['j'][$prv['v'][$prv['i']]]<0){
|
||||
$prv['inf'] .= $u->is[$prv['vi']].': '.($prv['j'][$prv['v'][$prv['i']]]*(1+$prv['x5']['x'])).', ';
|
||||
}
|
||||
}
|
||||
$prv['i']++;
|
||||
}
|
||||
$prv['effx'] = rtrim($prv['inf'],', ');
|
||||
}
|
||||
//
|
||||
if( $prv['effx'] != '' ) {
|
||||
$prv['effx'] = ' ('.$prv['effx'].')';
|
||||
}
|
||||
//
|
||||
$prv['color2'] = '000000';
|
||||
$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'.'.$prv['effx'];
|
||||
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $this->ue['id'],
|
||||
'<font color^^^^#'.$prv['color2'].'>Öåëü îãíÿ'.$prv['x'].'</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID + 0)
|
||||
);
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$this->addEffPr($pl,$id);
|
||||
//$this->addPriem($this->ue['id'],$pl['id'],'atgm='.floor($pvr['hp']/10).'',0,77,-1,$u->info['id'],5,'öåëüâîäû',0,0,1);
|
||||
|
||||
//Îòíèìàåì òàêòèêè
|
||||
//$this->mintr($pl);
|
||||
}else{
|
||||
$cup = true;
|
||||
echo '<font color=red><b>Íà ïåðîñíàæå äîñòèãíóòî ìàêñèàëüíîå êîëëè÷åñòâî öåëåé</b></font>';
|
||||
}
|
||||
/**
|
||||
* Ïðèåì: Öåëü {ñòèõèÿ}
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id
|
||||
* @var $pl
|
||||
*/
|
||||
|
||||
unset($pvr);
|
||||
?>
|
||||
if (!$id) {
|
||||
exit();
|
||||
}
|
||||
$cup = $this->magicTarget('fire', $pl, $id, $btl);
|
||||
|
@ -1,65 +1,27 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
|
||||
if (!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Öåëü âîäû
|
||||
Ïðèåì: Ñòàòèêà.
|
||||
*/
|
||||
$pvr = array();
|
||||
$pvr = [];
|
||||
|
||||
$pvr['x5'] = mysql_fetch_array(mysql_query('SELECT `id`,`x` FROM `eff_users` WHERE `uid` = "'.$this->ue['id'].'" AND `v2` = 260 AND `delete` = 0 LIMIT 1'));
|
||||
if( $pvr['x5']['x'] < 5 ) {
|
||||
$prv['x'] = '';
|
||||
if( $pvr['x5']['x'] > 0 ) {
|
||||
$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'].'" LIMIT 1'));
|
||||
if( isset($prv['eff']['id']) ) {
|
||||
$prv['eda'] = $prv['eff']['data'];
|
||||
}
|
||||
}else{
|
||||
$prv['eda'] = $pl['date3'];
|
||||
}
|
||||
//
|
||||
if( isset($prv['eda']) ) {
|
||||
$prv['d'] = $u->lookStats($prv['eda']);
|
||||
$prv['j'] = $u->lookStats($this->redate($prv['eda'],$u->info['id']));
|
||||
$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['vi'] = str_replace('add_','',$prv['v'][$prv['i']]);
|
||||
if($u->is[$prv['vi']]!='') {
|
||||
if($prv['j'][$prv['v'][$prv['i']]]>0) {
|
||||
$prv['inf'] .= $u->is[$prv['vi']].': +'.($prv['j'][$prv['v'][$prv['i']]]).', ';
|
||||
}elseif($prv['j'][$prv['v'][$prv['i']]]<0){
|
||||
$prv['inf'] .= $u->is[$prv['vi']].': '.($prv['j'][$prv['v'][$prv['i']]]).', ';
|
||||
}
|
||||
}
|
||||
$prv['i']++;
|
||||
}
|
||||
$prv['effx'] = rtrim($prv['inf'],', ');
|
||||
}
|
||||
//
|
||||
if( $prv['effx'] != '' ) {
|
||||
$prv['effx'] = ' ('.$prv['effx'].')';
|
||||
}
|
||||
//
|
||||
$prv['color2'] = '000000';
|
||||
$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'.'.$prv['effx'];
|
||||
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $this->ue['id'],
|
||||
'<font color^^^^#'.$prv['color2'].'>Ñòàòèêà'.$prv['x'].'</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID + 0)
|
||||
);
|
||||
}else{
|
||||
$cup = true;
|
||||
echo '<font color=red><b>Íà ïåðîñíàæå äîñòèãíóòî ìàêñèàëüíîå êîëëè÷åñòâî ñòàòèê</b></font>';
|
||||
$pvr['x5'] = mysql_fetch_array(mysql_query('SELECT `id`,`x` FROM `eff_users` WHERE `uid` = ' . $this->ue['id'] . ' AND `v2` = 260 AND `delete` = 0 LIMIT 1'));
|
||||
if ($pvr['x5']['x'] > 0) {
|
||||
$cup = true;
|
||||
echo '<b style="color: red">Íà ïåðîñíàæå óæå åñòü ñòàòèêà.</b>';
|
||||
} else {
|
||||
$this->addEffPr($pl, $id);
|
||||
|
||||
$prv['color2'] = '0af';
|
||||
$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>',
|
||||
$prv['text2'],
|
||||
($btl->hodID)
|
||||
);
|
||||
}
|
||||
unset($pvr);
|
||||
?>
|
@ -1,152 +1,49 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
<?php
|
||||
/**
|
||||
* Ïðèåì: Çàðÿä: Ïîðàæåíèå
|
||||
* @var battleClass $btl
|
||||
* @var $id
|
||||
* @var $pl
|
||||
*/
|
||||
if (!$id) {
|
||||
exit();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Çàðÿä: Ïîðàæåíèå
|
||||
*/
|
||||
$pvr = array();
|
||||
//$pvr['mg'] = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `uid` = "'.$btl->users[$btl->uids[$this->ue['id']]]['id'].'" AND `v2` = "260" AND `user_use` = "'.$u->info['id'].'" ORDER BY `id` DESC LIMIT 1'));
|
||||
$pvr['mg'] = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `uid` = "'.$btl->users[$btl->uids[$this->ue['id']]]['id'].'" AND `v2` = "260" ORDER BY `id` DESC LIMIT 1'));
|
||||
if( isset($pvr['mg']['id']) ) {
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
//$pvr['hp'] = floor(144/3*$pvr['mg']['x']);
|
||||
/*$pvr['hp'] = 1;*/
|
||||
//
|
||||
$pvr['data'] = $this->lookStatsArray($pvr['mg']['data']);
|
||||
//
|
||||
/**/
|
||||
if( $pvr['data']['add_mg2static_points'][0] < 1 ) {
|
||||
echo '<font color=red><b>Ñòàòèêà íå ñîáðàëà äîñòàòî÷íîãî êîëè÷åñòâà çàðÿäîâ</b></font>';
|
||||
$cup = true;
|
||||
}else{
|
||||
$pvr['hp'] = floor($btl->stats[$btl->uids[$this->ue['id']]]['hpAll']-floor($btl->stats[$btl->uids[$this->ue['id']]]['hpNow']));
|
||||
//
|
||||
$pvr['hp'] = floor( ( $pvr['hp'] / 100 * rand( 1 , 3 ) ) * $pvr['data']['add_mg2static_points'][0] );
|
||||
|
||||
$pvr['mx'] = array(
|
||||
0 => 170,
|
||||
1 => 170,
|
||||
2 => 170,
|
||||
3 => 170,
|
||||
4 => 170,
|
||||
5 => 170,
|
||||
6 => 170,
|
||||
7 => 170,
|
||||
8 => 204,
|
||||
9 => 244,
|
||||
10 => 292,
|
||||
11 => 352,
|
||||
12 => 454,
|
||||
13 => 570,
|
||||
14 => 604,
|
||||
15 => 744,
|
||||
16 => 892,
|
||||
17 => 952,
|
||||
18 => 1054,
|
||||
19 => 1170,
|
||||
20 => 1292,
|
||||
21 => 1487
|
||||
);
|
||||
|
||||
$pvr['mx'] = $pvr['mx'][$u->info['level']];
|
||||
|
||||
//
|
||||
//$pvr['hp'] = floor($pvr['hp']/20*$u->stats['mg3']);//óìåëêè
|
||||
//$pvr['hp'] = floor($pvr['hp']/200*$u->stats['s5']);//Èíòåëåêò
|
||||
/*if( $btl->stats[$btl->uids[$u->info['enemy']]]['hpNow'] < floor($btl->stats[$btl->uids[$u->info['enemy']]]['hpAll']/100*30) ) {
|
||||
$pvr['hp'] = floor( $pvr['hp'] + ($pvr['hp']/100*(50*$pvr['mg']['x'])) );
|
||||
}*/
|
||||
$params = [
|
||||
'maxLimitbyStatic' => [1 => 90, 2 => 140, 3 => 175, 4 => 200, 5 => 244],
|
||||
'query' => 'select x from eff_users where v2 = 260 and user_use = %s and uid = %s',
|
||||
'query_remove_static' => 'delete from eff_users where v2 = 260 and user_use = %s and uid = %s',
|
||||
'hpNow' => $btl->stats[$btl->uids[$this->ue['id']]]['hpNow'],
|
||||
'hpAll' => $btl->stats[$btl->uids[$this->ue['id']]]['hpAll'],
|
||||
'color' => '#0af',
|
||||
'logtext' => '{tm1} ' . $btl->addlt(1, 19, $btl->users[$btl->uids[$this->u->info['id']]]['sex'], null),
|
||||
];
|
||||
$params = array_merge($params, [
|
||||
'x' => mysql_fetch_array(mysql_query(sprintf($params['query'], $this->u->info['id'], $this->ue['id']))),
|
||||
'damage' => '',
|
||||
]);
|
||||
$params['damage'] = mt_rand(1, $params['maxLimitbyStatic'][$params['x'][0]]);
|
||||
if (empty($params['x'])) {
|
||||
echo '<b style="color: red">Íà ïåðñîíàæå íåò âàøåãî çàêëÿòèÿ Ñòàòèêè</b>';
|
||||
$cup = true;
|
||||
} else {
|
||||
$params['damage'] = $btl->testYronPriem($this->u->info['id'], $this->ue['id'], 21, $params['damage'], 6, true);
|
||||
$btl->priemYronSave($this->u->info['id'], $this->ue['id'], $params['damage'], 0);
|
||||
$params['hpNow'] -= $params['damage'];
|
||||
if ($params['hpNow'] > $params['hpAll']) {
|
||||
$params['hpNow'] = $params['hpAll'];
|
||||
} elseif ($params['hpNow'] < 0) {
|
||||
$params['hpNow'] = 0;
|
||||
}
|
||||
$params['logtext'] .= sprintf("<b style='color: %s;'>-%s</b> [%s/%s]", $params['color'], $params['damage'], $params['hpNow'], $params['hpAll']);
|
||||
|
||||
$btl->stats[$btl->uids[$this->ue['id']]]['hpNow'] = $params['hpNow'];
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = ' . $params['hpNow'] . ' WHERE `id` = ' . $this->ue['id']);
|
||||
$btl->priemAddLog($id, 1, 2, $this->u->info['id'], $this->ue['id'], "<span style='color: {$params['color']}'>Çàðÿä: Ïîðàæåíèå</span>",
|
||||
$params['logtext'], ($btl->hodID + 1));
|
||||
|
||||
mysql_query(sprintf($params['query_remove_static'], $this->u->info['id'], $this->ue['id']));
|
||||
//Îòíèìàåì òàêòèêè
|
||||
$this->mintr($pl);
|
||||
|
||||
$pvr['hp'] = $this->magatack( $u->info['id'], $this->ue['id'], $pvr['hp'], 'âîçäóõ', 1 );
|
||||
$pvr['promah_type'] = $pvr['hp'][3];
|
||||
$pvr['promah'] = $pvr['hp'][2];
|
||||
$pvr['krit'] = $pvr['hp'][1];
|
||||
$pvr['hp'] = $pvr['hp'][0];
|
||||
$pvr['hpSee'] = '--';
|
||||
$pvr['hpNow'] = floor($btl->stats[$btl->uids[$this->ue['id']]]['hpNow']);
|
||||
$pvr['hpAll'] = $btl->stats[$btl->uids[$this->ue['id']]]['hpAll'];
|
||||
|
||||
if( $pvr['krit'] == true ) {
|
||||
if( $pvr['hp'] > $pvr['mx']*2 ) {
|
||||
$pvr['hp'] = $pvr['mx']*2;
|
||||
}
|
||||
}else{
|
||||
if( $pvr['hp'] > $pvr['mx'] ) {
|
||||
$pvr['hp'] = $pvr['mx'];
|
||||
}
|
||||
}
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem( $u->info['id'], $this->ue['id'], 21, $pvr['hp'], 6, true );
|
||||
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$this->ue['id'],$pvr['hp'],0);
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
}elseif( $pvr['hpNow'] < 0 ) {
|
||||
$pvr['hpNow'] = 0;
|
||||
}
|
||||
|
||||
$btl->stats[$btl->uids[$this->ue['id']]]['hpNow'] = $pvr['hpNow'];
|
||||
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = "'.$btl->stats[$btl->uids[$this->ue['id']]]['hpNow'].'" WHERE `id` = "'.$this->ue['id'].'" LIMIT 1');
|
||||
|
||||
$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
|
||||
//Öâåò ïðèåìà
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '006699';
|
||||
if(isset($btl->mcolor[$btl->mname['âîçäóõ']])) {
|
||||
$prv['color2'] = $btl->mcolor[$btl->mname['âîçäóõ']];
|
||||
}
|
||||
$prv['color'] = '000000';
|
||||
if(isset($btl->mncolor[$btl->mname['âîçäóõ']])) {
|
||||
$prv['color'] = $btl->mncolor[$btl->mname['âîçäóõ']];
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
$prv['color'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],3).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
$prv['text'] = $btl->addlt(1 , 20 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],3).'>--</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
}
|
||||
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $this->ue['id'],
|
||||
'<font color^^^^#'.$prv['color2'].'>Çàðÿä: Ïîðàæåíèå</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID + 1)
|
||||
);
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$this->addEffPr($pl,$id);
|
||||
//$this->addPriem($u->info['enemy'],$pl['id'],'atgm='.($pvr['hp']/16).'',2,77,4,$u->info['id'],3,'îëåäåíåíèå',0,0,1);
|
||||
|
||||
//Óäàëÿåì îëåäåíåíèå
|
||||
$pvr['mg']['priem']['id'] = $pvr['mg']['id'];
|
||||
//$btl->delPriem($pvr['mg'],$btl->users[$btl->uids[$this->ue['id']]],2);
|
||||
|
||||
$pvr['edt'] = $u->lookStats($pvr['mg']['data']);
|
||||
$pvr['edt']['add_zm2proc'] = 0;
|
||||
$pvr['edt']['add_mg2static_points'] = 0;
|
||||
$pvr['edt'] = $u->impStats($pvr['edt']);
|
||||
mysql_query('UPDATE `eff_users` SET `x` = 1, `data` = "'.$pvr['edt'].'" WHERE `id` = "'.$pvr['mg']['id'].'" LIMIT 1');
|
||||
|
||||
//Îòíèìàåì òàêòèêè
|
||||
$this->mintr($pl);
|
||||
}
|
||||
}else{
|
||||
echo '<font color=red><b>Íà ïåðñîíàæå íåò Ñòàòèêè (Âàøåãî çàêëÿòèÿ)</b></font>';
|
||||
$cup = true;
|
||||
}
|
||||
unset($pvr);
|
||||
?>
|
||||
unset($params);
|
||||
|
@ -9,16 +9,12 @@ $pvr = array();
|
||||
if( isset($pr_used_this) && isset($pr_moment) ) {
|
||||
//Êàæäûé õîä
|
||||
$fx_priem = function( $id , $at , $uid, $j_id ) {
|
||||
// -- íà÷àëî ïðèåìà
|
||||
global $u, $btl, $priem;
|
||||
|
||||
// -- êîíåö ïðèåìà
|
||||
return $at;
|
||||
};
|
||||
unset( $pr_used_this );
|
||||
}else{
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
//$pvr['hp'] = $this->magatack( $u->info['id'], $this->ue['id'], $pvr['hp'], 'âîäà', 1 );
|
||||
|
||||
$pvr['promah_type'] = 0;
|
||||
$pvr['promah'] = false;
|
||||
$pvr['krit'] = false;
|
||||
@ -82,7 +78,7 @@ if( isset($pr_used_this) && isset($pr_moment) ) {
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$this->addEffPr($pl,$id);
|
||||
$this->addPriem($this->ue['id'],268,'|add_s1=-'.$btl->stats[$btl->uids[$u->info['id']]]['mg3'].'|add_s2=-'.$btl->stats[$btl->uids[$u->info['id']]]['mg3'].'',2,77,3,$u->info['id'],3,'êðèñòàëëèçàöèÿ',0,0,1);
|
||||
$this->addPriem($this->ue['id'],268,'|add_s1=-'.$btl->stats[$btl->uids[$u->info['id']]]['mg3'].'|add_s2=-'.$btl->stats[$btl->uids[$u->info['id']]]['mg3'],2,77,3,$u->info['id'],3,'êðèñòàëëèçàöèÿ',0,0,1);
|
||||
|
||||
//Îòíèìàåì òàêòèêè
|
||||
//$this->mintr($pl);
|
||||
|
@ -1,76 +1,14 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Öåëü âîäû
|
||||
*/
|
||||
$pvr = array();
|
||||
<?php
|
||||
|
||||
$pvr['x5'] = mysql_fetch_array(mysql_query('SELECT `id`,`x` FROM `eff_users` WHERE `uid` = "'.$this->ue['id'].'" AND `v2` = 27 AND `delete` = 0 LIMIT 1'));
|
||||
if( $pvr['x5']['x'] < 5 ) {
|
||||
$prv['x'] = '';
|
||||
if( $pvr['x5']['x'] > 0 ) {
|
||||
$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'].'" LIMIT 1'));
|
||||
if( isset($prv['eff']['id']) ) {
|
||||
//Ðàçáèðàåì äàòó $prv['eff']['data']
|
||||
$prv['eda'] = $prv['eff']['data'];
|
||||
}
|
||||
}else{
|
||||
//Ðàçáèðàåì äàòó $pl['date3']
|
||||
$prv['eda'] = $pl['date3'];
|
||||
}
|
||||
//
|
||||
if( isset($prv['eda']) ) {
|
||||
$prv['d'] = $u->lookStats($prv['eda']);
|
||||
$prv['j'] = $u->lookStats($this->redate($prv['eda'],$u->info['id']));
|
||||
$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) {
|
||||
$prv['inf'] .= $u->is[$prv['vi']].': +'.($prv['j'][$prv['v'][$prv['i']]]*(1+$pvr['x5']['x'])).', ';
|
||||
}elseif($prv['j'][$prv['v'][$prv['i']]]<0){
|
||||
$prv['inf'] .= $u->is[$prv['vi']].': '.($prv['j'][$prv['v'][$prv['i']]]*(1+$prv['x5']['x'])).', ';
|
||||
}
|
||||
}
|
||||
$prv['i']++;
|
||||
}
|
||||
$prv['effx'] = rtrim($prv['inf'],', ');
|
||||
}
|
||||
//
|
||||
if( $prv['effx'] != '' ) {
|
||||
$prv['effx'] = ' ('.$prv['effx'].')';
|
||||
}
|
||||
//
|
||||
$prv['color2'] = '000000';
|
||||
$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'.'.$prv['effx'];
|
||||
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $this->ue['id'],
|
||||
'<font color^^^^#'.$prv['color2'].'>Öåëü âîçäóõà'.$prv['x'].'</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID + 0)
|
||||
);
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$this->addEffPr($pl,$id);
|
||||
//$this->addPriem($this->ue['id'],$pl['id'],'atgm='.floor($pvr['hp']/10).'',0,77,-1,$u->info['id'],5,'öåëüâîäû',0,0,1);
|
||||
|
||||
//Îòíèìàåì òàêòèêè
|
||||
//$this->mintr($pl);
|
||||
}else{
|
||||
$cup = true;
|
||||
echo '<font color=red><b>Íà ïåðîñíàæå äîñòèãíóòî ìàêñèàëüíîå êîëëè÷åñòâî öåëåé</b></font>';
|
||||
}
|
||||
/**
|
||||
* Ïðèåì: Öåëü {ñòèõèÿ}
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id
|
||||
* @var $pl
|
||||
*/
|
||||
|
||||
unset($pvr);
|
||||
?>
|
||||
if (!$id) {
|
||||
exit();
|
||||
}
|
||||
$cup = $this->magicTarget('air', $pl, $id, $btl);
|
||||
|
@ -1,76 +1,14 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Öåëü âîäû
|
||||
*/
|
||||
$pvr = array();
|
||||
<?php
|
||||
|
||||
$pvr['x5'] = mysql_fetch_array(mysql_query('SELECT `id`,`x` FROM `eff_users` WHERE `uid` = "'.$this->ue['id'].'" AND `v2` = 28 AND `delete` = 0 LIMIT 1'));
|
||||
if( $pvr['x5']['x'] < 5 ) {
|
||||
$prv['x'] = '';
|
||||
if( $pvr['x5']['x'] > 0 ) {
|
||||
$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'].'" LIMIT 1'));
|
||||
if( isset($prv['eff']['id']) ) {
|
||||
//Ðàçáèðàåì äàòó $prv['eff']['data']
|
||||
$prv['eda'] = $prv['eff']['data'];
|
||||
}
|
||||
}else{
|
||||
//Ðàçáèðàåì äàòó $pl['date3']
|
||||
$prv['eda'] = $pl['date3'];
|
||||
}
|
||||
//
|
||||
if( isset($prv['eda']) ) {
|
||||
$prv['d'] = $u->lookStats($prv['eda']);
|
||||
$prv['j'] = $u->lookStats($this->redate($prv['eda'],$u->info['id']));
|
||||
$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) {
|
||||
$prv['inf'] .= $u->is[$prv['vi']].': +'.($prv['j'][$prv['v'][$prv['i']]]*(1+$pvr['x5']['x'])).', ';
|
||||
}elseif($prv['j'][$prv['v'][$prv['i']]]<0){
|
||||
$prv['inf'] .= $u->is[$prv['vi']].': '.($prv['j'][$prv['v'][$prv['i']]]*(1+$prv['x5']['x'])).', ';
|
||||
}
|
||||
}
|
||||
$prv['i']++;
|
||||
}
|
||||
$prv['effx'] = rtrim($prv['inf'],', ');
|
||||
}
|
||||
//
|
||||
if( $prv['effx'] != '' ) {
|
||||
$prv['effx'] = ' ('.$prv['effx'].')';
|
||||
}
|
||||
//
|
||||
$prv['color2'] = '000000';
|
||||
$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'.'.$prv['effx'];
|
||||
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $this->ue['id'],
|
||||
'<font color^^^^#'.$prv['color2'].'>Öåëü çåìëè'.$prv['x'].'</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID + 0)
|
||||
);
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$this->addEffPr($pl,$id);
|
||||
//$this->addPriem($this->ue['id'],$pl['id'],'atgm='.floor($pvr['hp']/10).'',0,77,-1,$u->info['id'],5,'öåëüâîäû',0,0,1);
|
||||
|
||||
//Îòíèìàåì òàêòèêè
|
||||
//$this->mintr($pl);
|
||||
}else{
|
||||
$cup = true;
|
||||
echo '<font color=red><b>Íà ïåðîñíàæå äîñòèãíóòî ìàêñèàëüíîå êîëëè÷åñòâî öåëåé</b></font>';
|
||||
}
|
||||
/**
|
||||
* Ïðèåì: Öåëü {ñòèõèÿ}
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id
|
||||
* @var $pl
|
||||
*/
|
||||
|
||||
unset($pvr);
|
||||
?>
|
||||
if (!$id) {
|
||||
exit();
|
||||
}
|
||||
$cup = $this->magicTarget('earth', $pl, $id, $btl);
|
||||
|
@ -30,7 +30,7 @@ if($btl->stats[$pvr['ix']]['hpNow'] > 0 && $btl->users[$pvr['ix']]['team'] != $u
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$pvr['uid'],$pvr['hp'],0);
|
||||
$this->mg2static_points( $pvr['uid'] , $btl->stats[$btl->uids[$pvr['uid']]] );
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
}elseif( $pvr['hpNow'] < 0 ) {
|
||||
|
@ -1,163 +1,26 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id int
|
||||
* @var $pl array
|
||||
*/
|
||||
if (!$id) {
|
||||
exit();
|
||||
}
|
||||
/*
|
||||
Прием: Пожирающее Пламя [6]
|
||||
*/
|
||||
$pvr = array();
|
||||
if( isset($pr_used_this) && isset($pr_moment) ) {
|
||||
//Êàæäûé õîä
|
||||
$fx_priem = function( $id , $at , $uid, $j_id ) {
|
||||
// -- íà÷àëî ïðèåìà
|
||||
global $u, $btl, $priem;
|
||||
//
|
||||
//Ïàðàìåòðû ïðèåìà
|
||||
$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 ) {
|
||||
|
||||
//Ïðîâåðÿåì ýôôåêò
|
||||
$prv['j_priem'] = $btl->stats[$btl->uids[$u1]]['u_priem'][$j_id][0];
|
||||
$prv['priem_th'] = $btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'];
|
||||
|
||||
//äåéñòâèÿ
|
||||
$pvr['hp'] = 1;
|
||||
//
|
||||
$pvr['data'] = $priem->lookStatsArray($btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['data']);
|
||||
$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']++;
|
||||
}
|
||||
//
|
||||
$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['data'] = $pvr['redata'];
|
||||
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']*5);
|
||||
$pvr['proc-hp'] = array( 5 , 10 , 15 , 20 , 50 );
|
||||
$pvr['proc-hp'] = $pvr['proc-hp'][5-$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['hod']];
|
||||
$pvr['hp'] = round($pvr['hp']/100*$pvr['proc-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'];
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem( $btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['user_use'], $u1, 12, $pvr['hp'], 7, true, false, 1 );
|
||||
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['user_use'],$u1,$pvr['hp'],0);
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
}elseif( $pvr['hpNow'] < 0 ) {
|
||||
$pvr['hpNow'] = 0;
|
||||
}
|
||||
|
||||
$btl->stats[$btl->uids[$u1]]['hpNow'] = $pvr['hpNow'];
|
||||
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = "'.$btl->stats[$btl->uids[$u1]]['hpNow'].'" WHERE `id` = "'.$u1.'" LIMIT 1');
|
||||
//$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u2]]['sex'] , NULL);
|
||||
$prv['text'] = '{u2} óòðàòèë çäîðîâüå îò "{pr}"';
|
||||
|
||||
//Öâåò ïðèåìà
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '000000';
|
||||
$prv['color'] = '008000';
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
$prv['color'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u2,$u1,1).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
//$prv['text'] = $btl->addlt(1 , 20 , $btl->users[$btl->uids[$u2]]['sex'] , NULL);
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u2,$u1,1).'>--</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
}
|
||||
$prv['xx'] = '';
|
||||
if( $btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['x'] > 1 ) {
|
||||
//$prv['xx'] = ' x'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['x'].'';
|
||||
}
|
||||
$btl->priemAddLog( $id, 1, 2, $u2, $u1,
|
||||
'<font color^^^^#'.$prv['color2'].'>Ïîæèðàþùåå Ïëàìÿ [6]'.$prv['xx'].'</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID)
|
||||
);
|
||||
}
|
||||
// -- êîíåö ïðèåìà
|
||||
return $at;
|
||||
};
|
||||
unset( $pr_used_this );
|
||||
}else{
|
||||
$pvr['hp'] = floor(53);
|
||||
$pvr['hp'] = $this->magatack( $u->info['id'], $this->ue['id'], $pvr['hp'], 'îãîíü', 0 );
|
||||
$pvr['promah_type'] = $pvr['hp'][3];
|
||||
$pvr['promah'] = $pvr['hp'][2];
|
||||
$pvr['krit'] = $pvr['hp'][1];
|
||||
$pvr['hp'] = $pvr['hp'][0];
|
||||
//
|
||||
$prv['color2'] = '000000';
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '000000';
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
}
|
||||
$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'].'>Ïîæèðàþùåå Ïëàìÿ [6]</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID + 1)
|
||||
);
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$this->addEffPr($pl,$id);
|
||||
if ($pvr['hp']>0)
|
||||
{
|
||||
$this->addPriem($this->ue['id'],$pl['id'],'atgm='.floor($pvr['hp']/5).'',0,77,5,$u->info['id'],1,'ïîæèðàþùååïëàìÿ',0,0,1);
|
||||
}
|
||||
//Îòíèìàåì òàêòèêè
|
||||
//$this->mintr($pl);
|
||||
}
|
||||
|
||||
unset($pvr);
|
||||
?>
|
||||
if (isset($pr_used_this) && isset($pr_moment)) {
|
||||
//Êàæäûé õîä
|
||||
$fx_priem = function ($id, $at, $uid, $j_id) {
|
||||
global $btl, $priem;
|
||||
$priem->devouringFlame($id, $uid, $j_id, $btl);
|
||||
return $at;
|
||||
};
|
||||
unset($pr_used_this);
|
||||
} else {
|
||||
$this->devouringFlameInit($id, $pl, $btl);
|
||||
}
|
||||
|
@ -1,108 +1,14 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Âñïûøêà [8]
|
||||
*/
|
||||
$pvr = array();
|
||||
$pvr['x5'] = mysql_fetch_array(mysql_query('SELECT `id`,`x` FROM `eff_users` WHERE `uid` = "'.$this->ue['id'].'" AND `v2` = 26 AND `delete` = 0 LIMIT 1'));
|
||||
//
|
||||
$pvr['hp11'] = 40+round(40/100*(5*$pvr['x5']['x']));
|
||||
$pvr['hp22'] = $pvr['hp11'];
|
||||
//
|
||||
//
|
||||
$pvr['hp_0'] = rand($pvr['hp11'],$pvr['hp22']);
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
//$pvr['rx'] = rand(80,80);
|
||||
//$pvr['rx'] = floor($pvr['rx']/10);
|
||||
$pvr['rx'] = 1;
|
||||
$pvr['xx'] = 0;
|
||||
$pvr['ix'] = $btl->uids[$this->ue['id']];
|
||||
|
||||
if( $btl->stats[$pvr['ix']]['hpNow'] > 0 && $btl->users[$pvr['ix']]['team'] != $u->info['team'] && $pvr['xx'] < $pvr['rx'] && $pvr['uen'] != $btl->users[$pvr['ix']]['id'] ) {
|
||||
//
|
||||
$pvr['uid'] = $btl->users[$pvr['ix']]['id'];
|
||||
$pvr['hp'] = floor(rand($pvr['hp11'],$pvr['hp22']));
|
||||
$pvr['hp'] = $this->magatack( $u->info['id'], $pvr['uid'], $pvr['hp'], 'îãîíü', 1 );
|
||||
$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[$pvr['uid']]]['hpNow']);
|
||||
$pvr['hpAll'] = $btl->stats[$btl->uids[$pvr['uid']]]['hpAll'];
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem( $u->info['id'], $pvr['uid'], 21, $pvr['hp'], 5, true );
|
||||
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$pvr['uid'],$pvr['hp'],0);
|
||||
|
||||
$this->mg2static_points( $pvr['uid'] , $btl->stats[$btl->uids[$pvr['uid']]] );
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
}elseif( $pvr['hpNow'] < 0 ) {
|
||||
$pvr['hpNow'] = 0;
|
||||
}
|
||||
|
||||
$btl->stats[$btl->uids[$pvr['uid']]]['hpNow'] = $pvr['hpNow'];
|
||||
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = "'.$btl->stats[$btl->uids[$pvr['uid']]]['hpNow'].'" WHERE `id` = "'.$pvr['uid'].'" LIMIT 1');
|
||||
|
||||
//
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '006699';
|
||||
if(isset($btl->mcolor[$btl->mname['îãîíü']])) {
|
||||
$prv['color2'] = $btl->mcolor[$btl->mname['îãîíü']];
|
||||
}
|
||||
$prv['color'] = '000000';
|
||||
if(isset($btl->mncolor[$btl->mname['îãîíü']])) {
|
||||
$prv['color'] = $btl->mncolor[$btl->mname['îãîíü']];
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
$prv['color'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
//
|
||||
|
||||
//
|
||||
//$prv['color2'] = $btl->mcolor[$btl->mname['çåìëÿ']];
|
||||
$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b'.$btl->maginfoattack($u->info['id'],$pvr['uid'],1).'>--</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
}else{
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b'.$btl->maginfoattack($u->info['id'],$pvr['uid'],1).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
}
|
||||
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $pvr['uid'],
|
||||
'<font color^^^^#'.$prv['color2'].'>Âñïûøêà [8]</font>',
|
||||
$prv['text2'],
|
||||
($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']++;
|
||||
}
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$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);
|
||||
<?php
|
||||
|
||||
unset($pvr);
|
||||
?>
|
||||
/**
|
||||
* Ïðèåì: Âñïûøêà [8]
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id
|
||||
*/
|
||||
|
||||
if (!$id) {
|
||||
exit();
|
||||
}
|
||||
|
||||
$this->fireFlash(8, $btl, $id);
|
||||
|
@ -27,8 +27,8 @@ $pvr = array();
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$this->ue['id'],$pvr['hp'],0);
|
||||
|
||||
$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$this->ue['id']]] );
|
||||
|
||||
$this->addAirStaticPoints(); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
@ -104,7 +104,7 @@ $pvr = array();
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$pvr['uid'],$pvr['hp'],0);
|
||||
|
||||
$this->mg2static_points( $pvr['uid'] , $btl->stats[$btl->uids[$pvr['uid']]] );
|
||||
$this->addAirStaticPoints($pvr['uid']); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
|
@ -17,7 +17,8 @@ $pvr = array();
|
||||
$pvr['ix'] = 0;
|
||||
|
||||
//
|
||||
$pkrit=0;
|
||||
$pkrit=0;
|
||||
|
||||
while( $pvr['ix'] < count($btl->users) ) {
|
||||
if( $btl->stats[$pvr['ix']]['hpNow'] > 0 && $btl->users[$pvr['ix']]['team'] != $u->info['team'] && $pvr['xx'] < $pvr['rx'] && $pvr['uen'] != $btl->users[$pvr['ix']]['id'] ) {
|
||||
//
|
||||
@ -39,8 +40,8 @@ while( $pvr['ix'] < count($btl->users) ) {
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$pvr['uid'],$pvr['hp'],0);
|
||||
|
||||
$this->mg2static_points( $pvr['uid'] , $btl->stats[$btl->uids[$pvr['uid']]] );
|
||||
|
||||
$this->addAirStaticPoints($pvr['uid']); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
|
@ -55,8 +55,7 @@ $pvr = array();
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$u->info['id']]] );
|
||||
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],1).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
|
@ -56,8 +56,7 @@ $pvr = array();
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$u->info['id']]] );
|
||||
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],1).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
$prv['text'] = $btl->addlt(1 , 20 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
|
@ -8,7 +8,9 @@ if(!defined('GAME')) {
|
||||
$pvr = array();
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
$pvr['hp'] = 58;
|
||||
$pvr['hp'] = $this->magatack( $u->info['id'], $this->ue['id'], $pvr['hp'], 'îãîíü', 1 );
|
||||
|
||||
$pvr['hp'] = $this->magatack($this->u->info['id'], $this->ue['id'], $pvr['hp'], 'îãîíü', 1 );
|
||||
|
||||
$pvr['promah_type'] = $pvr['hp'][3];
|
||||
$pvr['promah'] = $pvr['hp'][2];
|
||||
$pvr['krit'] = $pvr['hp'][1];
|
||||
@ -18,11 +20,11 @@ $pvr = array();
|
||||
$pvr['hpAll'] = $btl->stats[$btl->uids[$this->ue['id']]]['hpAll'];
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem( $u->info['id'], $this->ue['id'], 21, $pvr['hp'], 5, true );
|
||||
$pvr['hp'] = $btl->testYronPriem( $this->u->info['id'], $this->ue['id'], 21, $pvr['hp'], 5, true );
|
||||
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$this->ue['id'],$pvr['hp'],0);
|
||||
$btl->priemYronSave($this->u->info['id'],$this->ue['id'],$pvr['hp'],0);
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
@ -34,7 +36,7 @@ $pvr = array();
|
||||
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = "'.$btl->stats[$btl->uids[$this->ue['id']]]['hpNow'].'" WHERE `id` = "'.$this->ue['id'].'" LIMIT 1');
|
||||
|
||||
$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$this->u->info['id']]]['sex'] , NULL);
|
||||
|
||||
//Öâåò ïðèåìà
|
||||
if( $pvr['promah'] == false ) {
|
||||
@ -56,14 +58,14 @@ $pvr = array();
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$u->info['id']]] );
|
||||
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],1).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($this->u->info['id'],$this->ue['id'],1).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
$prv['text'] = $btl->addlt(1 , 20 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],1).'>--</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
$prv['text'] = $btl->addlt(1 , 20 , $btl->users[$btl->uids[$this->u->info['id']]]['sex'] , NULL);
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($this->u->info['id'],$this->ue['id'],1).'>--</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
}
|
||||
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $this->ue['id'],
|
||||
$btl->priemAddLog( $id, 1, 2, $this->u->info['id'], $this->ue['id'],
|
||||
'<font color^^^^#'.$prv['color2'].'>Èñïåïåëåíèå [8]</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID + 1)
|
||||
|
@ -56,8 +56,7 @@ $pvr = array();
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$u->info['id']]] );
|
||||
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],1).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
$prv['text'] = $btl->addlt(1 , 20 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
|
@ -56,8 +56,7 @@ $pvr = array();
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$u->info['id']]] );
|
||||
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],1).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
$prv['text'] = $btl->addlt(1 , 20 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
|
@ -56,8 +56,7 @@ $pvr = array();
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$u->info['id']]] );
|
||||
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
$prv['text'] = $btl->addlt(1 , 20 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
|
@ -1,163 +1,26 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id int
|
||||
* @var $pl array
|
||||
*/
|
||||
if (!$id) {
|
||||
exit();
|
||||
}
|
||||
/*
|
||||
Прием: Пожирающее Пламя [7]
|
||||
*/
|
||||
$pvr = array();
|
||||
if( isset($pr_used_this) && isset($pr_moment) ) {
|
||||
//Êàæäûé õîä
|
||||
$fx_priem = function( $id , $at , $uid, $j_id ) {
|
||||
// -- íà÷àëî ïðèåìà
|
||||
global $u, $btl, $priem;
|
||||
//
|
||||
//Ïàðàìåòðû ïðèåìà
|
||||
$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 ) {
|
||||
|
||||
//Ïðîâåðÿåì ýôôåêò
|
||||
$prv['j_priem'] = $btl->stats[$btl->uids[$u1]]['u_priem'][$j_id][0];
|
||||
$prv['priem_th'] = $btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'];
|
||||
|
||||
//äåéñòâèÿ
|
||||
$pvr['hp'] = 1;
|
||||
//
|
||||
$pvr['data'] = $priem->lookStatsArray($btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['data']);
|
||||
$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']++;
|
||||
}
|
||||
//
|
||||
$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['data'] = $pvr['redata'];
|
||||
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']*5);
|
||||
$pvr['proc-hp'] = array( 5 , 10 , 15 , 20 , 50 );
|
||||
$pvr['proc-hp'] = $pvr['proc-hp'][5-$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['hod']];
|
||||
$pvr['hp'] = round($pvr['hp']/100*$pvr['proc-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'];
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem( $btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['user_use'], $u1, 12, $pvr['hp'], 7, true, false, 1 );
|
||||
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['user_use'],$u1,$pvr['hp'],0);
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
}elseif( $pvr['hpNow'] < 0 ) {
|
||||
$pvr['hpNow'] = 0;
|
||||
}
|
||||
|
||||
$btl->stats[$btl->uids[$u1]]['hpNow'] = $pvr['hpNow'];
|
||||
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = "'.$btl->stats[$btl->uids[$u1]]['hpNow'].'" WHERE `id` = "'.$u1.'" LIMIT 1');
|
||||
//$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u2]]['sex'] , NULL);
|
||||
$prv['text'] = '{u2} óòðàòèë çäîðîâüå îò "{pr}"';
|
||||
|
||||
//Öâåò ïðèåìà
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '000000';
|
||||
$prv['color'] = '008000';
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
$prv['color'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u2,$u1,1).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
//$prv['text'] = $btl->addlt(1 , 20 , $btl->users[$btl->uids[$u2]]['sex'] , NULL);
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u2,$u1,1).'>--</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
}
|
||||
$prv['xx'] = '';
|
||||
if( $btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['x'] > 1 ) {
|
||||
//$prv['xx'] = ' x'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['x'].'';
|
||||
}
|
||||
$btl->priemAddLog( $id, 1, 2, $u2, $u1,
|
||||
'<font color^^^^#'.$prv['color2'].'>Ïîæèðàþùåå Ïëàìÿ [7]'.$prv['xx'].'</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID)
|
||||
);
|
||||
}
|
||||
// -- êîíåö ïðèåìà
|
||||
return $at;
|
||||
};
|
||||
unset( $pr_used_this );
|
||||
}else{
|
||||
$pvr['hp'] = floor(63);
|
||||
$pvr['hp'] = $this->magatack( $u->info['id'], $this->ue['id'], $pvr['hp'], 'îãîíü', 0 );
|
||||
$pvr['promah_type'] = $pvr['hp'][3];
|
||||
$pvr['promah'] = $pvr['hp'][2];
|
||||
$pvr['krit'] = $pvr['hp'][1];
|
||||
$pvr['hp'] = $pvr['hp'][0];
|
||||
//
|
||||
$prv['color2'] = '000000';
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '000000';
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
}
|
||||
$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'].'>Ïîæèðàþùåå Ïëàìÿ [7]</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID + 1)
|
||||
);
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$this->addEffPr($pl,$id);
|
||||
if ($pvr['hp']>0)
|
||||
{
|
||||
$this->addPriem($this->ue['id'],$pl['id'],'atgm='.floor($pvr['hp']/5).'',0,77,5,$u->info['id'],1,'ïîæèðàþùååïëàìÿ',0,0,1);
|
||||
}
|
||||
//Îòíèìàåì òàêòèêè
|
||||
//$this->mintr($pl);
|
||||
}
|
||||
|
||||
unset($pvr);
|
||||
?>
|
||||
if (isset($pr_used_this) && isset($pr_moment)) {
|
||||
//Êàæäûé õîä
|
||||
$fx_priem = function ($id, $at, $uid, $j_id) {
|
||||
global $btl, $priem;
|
||||
$priem->devouringFlame($id, $uid, $j_id, $btl);
|
||||
return $at;
|
||||
};
|
||||
unset($pr_used_this);
|
||||
} else {
|
||||
$this->devouringFlameInit($id, $pl, $btl);
|
||||
}
|
||||
|
@ -1,163 +1,26 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id int
|
||||
* @var $pl array
|
||||
*/
|
||||
if (!$id) {
|
||||
exit();
|
||||
}
|
||||
/*
|
||||
Прием: Пожирающее Пламя [8]
|
||||
*/
|
||||
$pvr = array();
|
||||
if( isset($pr_used_this) && isset($pr_moment) ) {
|
||||
//Êàæäûé õîä
|
||||
$fx_priem = function( $id , $at , $uid, $j_id ) {
|
||||
// -- íà÷àëî ïðèåìà
|
||||
global $u, $btl, $priem;
|
||||
//
|
||||
//Ïàðàìåòðû ïðèåìà
|
||||
$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 ) {
|
||||
|
||||
//Ïðîâåðÿåì ýôôåêò
|
||||
$prv['j_priem'] = $btl->stats[$btl->uids[$u1]]['u_priem'][$j_id][0];
|
||||
$prv['priem_th'] = $btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'];
|
||||
|
||||
//äåéñòâèÿ
|
||||
$pvr['hp'] = 1;
|
||||
//
|
||||
$pvr['data'] = $priem->lookStatsArray($btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['data']);
|
||||
$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']++;
|
||||
}
|
||||
//
|
||||
$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['data'] = $pvr['redata'];
|
||||
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']*5);
|
||||
$pvr['proc-hp'] = array( 5 , 10 , 15 , 20 , 50 );
|
||||
$pvr['proc-hp'] = $pvr['proc-hp'][5-$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['hod']];
|
||||
$pvr['hp'] = round($pvr['hp']/100*$pvr['proc-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'];
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem( $btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['user_use'], $u1, 12, $pvr['hp'], 7, true, false, 1 );
|
||||
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['user_use'],$u1,$pvr['hp'],0);
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
}elseif( $pvr['hpNow'] < 0 ) {
|
||||
$pvr['hpNow'] = 0;
|
||||
}
|
||||
|
||||
$btl->stats[$btl->uids[$u1]]['hpNow'] = $pvr['hpNow'];
|
||||
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = "'.$btl->stats[$btl->uids[$u1]]['hpNow'].'" WHERE `id` = "'.$u1.'" LIMIT 1');
|
||||
//$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u2]]['sex'] , NULL);
|
||||
$prv['text'] = '{u2} óòðàòèë çäîðîâüå îò "{pr}"';
|
||||
|
||||
//Öâåò ïðèåìà
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '000000';
|
||||
$prv['color'] = '008000';
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
$prv['color'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u2,$u1,1).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
//$prv['text'] = $btl->addlt(1 , 20 , $btl->users[$btl->uids[$u2]]['sex'] , NULL);
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u2,$u1,1).'>--</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
}
|
||||
$prv['xx'] = '';
|
||||
if( $btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['x'] > 1 ) {
|
||||
//$prv['xx'] = ' x'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['x'].'';
|
||||
}
|
||||
$btl->priemAddLog( $id, 1, 2, $u2, $u1,
|
||||
'<font color^^^^#'.$prv['color2'].'>Ïîæèðàþùåå Ïëàìÿ [8]'.$prv['xx'].'</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID)
|
||||
);
|
||||
}
|
||||
// -- êîíåö ïðèåìà
|
||||
return $at;
|
||||
};
|
||||
unset( $pr_used_this );
|
||||
}else{
|
||||
$pvr['hp'] = floor(77);
|
||||
$pvr['hp'] = $this->magatack( $u->info['id'], $this->ue['id'], $pvr['hp'], 'îãîíü', 0);
|
||||
$pvr['promah_type'] = $pvr['hp'][3];
|
||||
$pvr['promah'] = $pvr['hp'][2];
|
||||
$pvr['krit'] = $pvr['hp'][1];
|
||||
$pvr['hp'] = $pvr['hp'][0];
|
||||
//
|
||||
$prv['color2'] = '000000';
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '000000';
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
}
|
||||
$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'].'>Ïîæèðàþùåå Ïëàìÿ [8]</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID + 1)
|
||||
);
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$this->addEffPr($pl,$id);
|
||||
if ($pvr['hp']>0)
|
||||
{
|
||||
$this->addPriem($this->ue['id'],$pl['id'],'atgm='.floor($pvr['hp']/5).'',0,77,5,$u->info['id'],1,'ïîæèðàþùååïëàìÿ',0,0,1);
|
||||
}
|
||||
//Îòíèìàåì òàêòèêè
|
||||
//$this->mintr($pl);
|
||||
}
|
||||
|
||||
unset($pvr);
|
||||
?>
|
||||
if (isset($pr_used_this) && isset($pr_moment)) {
|
||||
//Êàæäûé õîä
|
||||
$fx_priem = function ($id, $at, $uid, $j_id) {
|
||||
global $btl, $priem;
|
||||
$priem->devouringFlame($id, $uid, $j_id, $btl);
|
||||
return $at;
|
||||
};
|
||||
unset($pr_used_this);
|
||||
} else {
|
||||
$this->devouringFlameInit($id, $pl, $btl);
|
||||
}
|
||||
|
@ -1,168 +1,26 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id int
|
||||
* @var $pl array
|
||||
*/
|
||||
if (!$id) {
|
||||
exit();
|
||||
}
|
||||
/*
|
||||
Прием: Пожирающее Пламя [9]
|
||||
*/
|
||||
$pvr = array();
|
||||
if( isset($pr_used_this) && isset($pr_moment) ) {
|
||||
//Êàæäûé õîä
|
||||
$fx_priem = function( $id , $at , $uid, $j_id ) {
|
||||
// -- íà÷àëî ïðèåìà
|
||||
global $u, $btl, $priem;
|
||||
//
|
||||
//Ïàðàìåòðû ïðèåìà
|
||||
$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 ) {
|
||||
|
||||
//Ïðîâåðÿåì ýôôåêò
|
||||
$prv['j_priem'] = $btl->stats[$btl->uids[$u1]]['u_priem'][$j_id][0];
|
||||
$prv['priem_th'] = $btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'];
|
||||
|
||||
//äåéñòâèÿ
|
||||
$pvr['hp'] = 1;
|
||||
//
|
||||
$pvr['data'] = $priem->lookStatsArray($btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['data']);
|
||||
$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']++;
|
||||
}
|
||||
//
|
||||
$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['data'] = $pvr['redata'];
|
||||
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']*5);
|
||||
$pvr['proc-hp'] = array( 5 , 10 , 15 , 20 , 50 );
|
||||
$pvr['proc-hp'] = $pvr['proc-hp'][5-$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['hod']];
|
||||
$pvr['hp'] = round($pvr['hp']/100*$pvr['proc-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'];
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem( $btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['user_use'], $u1, 12, $pvr['hp'], 7, true, false, 1 );
|
||||
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['user_use'],$u1,$pvr['hp'],0);
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
}elseif( $pvr['hpNow'] < 0 ) {
|
||||
$pvr['hpNow'] = 0;
|
||||
}
|
||||
|
||||
$btl->stats[$btl->uids[$u1]]['hpNow'] = $pvr['hpNow'];
|
||||
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = "'.$btl->stats[$btl->uids[$u1]]['hpNow'].'" WHERE `id` = "'.$u1.'" LIMIT 1');
|
||||
//$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u2]]['sex'] , NULL);
|
||||
$prv['text'] = '{u2} óòðàòèë çäîðîâüå îò "{pr}"';
|
||||
|
||||
//Öâåò ïðèåìà
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '000000';
|
||||
$prv['color'] = '008000';
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
$prv['color'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u2,$u1,1).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
//$prv['text'] = $btl->addlt(1 , 20 , $btl->users[$btl->uids[$u2]]['sex'] , NULL);
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u2,$u1,1).'>--</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
}
|
||||
$prv['xx'] = '';
|
||||
if( $btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['x'] > 1 ) {
|
||||
//$prv['xx'] = ' x'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['x'].'';
|
||||
}
|
||||
$btl->priemAddLog( $id, 1, 2, $u2, $u1,
|
||||
'<font color^^^^#'.$prv['color2'].'>Ïîæèðàþùåå Ïëàìÿ [9]'.$prv['xx'].'</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID)
|
||||
);
|
||||
|
||||
// ñïàñåíèå
|
||||
$btl->spaCheck($u1);
|
||||
// ñïàñåíèå
|
||||
|
||||
}
|
||||
// -- êîíåö ïðèåìà
|
||||
return $at;
|
||||
};
|
||||
unset( $pr_used_this );
|
||||
}else{
|
||||
$pvr['hp'] = floor(91);
|
||||
$pvr['hp'] = $this->magatack( $u->info['id'], $this->ue['id'], $pvr['hp'], 'îãîíü', 0 );
|
||||
$pvr['promah_type'] = $pvr['hp'][3];
|
||||
$pvr['promah'] = $pvr['hp'][2];
|
||||
$pvr['krit'] = $pvr['hp'][1];
|
||||
$pvr['hp'] = $pvr['hp'][0];
|
||||
//
|
||||
$prv['color2'] = '000000';
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '000000';
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
}
|
||||
$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'].'>Ïîæèðàþùåå Ïëàìÿ [9]</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID + 1)
|
||||
);
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$this->addEffPr($pl,$id);
|
||||
if ($pvr['hp']>0)
|
||||
{
|
||||
$this->addPriem($this->ue['id'],$pl['id'],'atgm='.floor($pvr['hp']/5).'',0,77,5,$u->info['id'],1,'ïîæèðàþùååïëàìÿ',0,0,1);
|
||||
}
|
||||
//Îòíèìàåì òàêòèêè
|
||||
//$this->mintr($pl);
|
||||
if (isset($pr_used_this) && isset($pr_moment)) {
|
||||
//Êàæäûé õîä
|
||||
$fx_priem = function ($id, $at, $uid, $j_id) {
|
||||
global $btl, $priem;
|
||||
$priem->devouringFlame($id, $uid, $j_id, $btl);
|
||||
return $at;
|
||||
};
|
||||
unset($pr_used_this);
|
||||
} else {
|
||||
$this->devouringFlameInit($id, $pl, $btl);
|
||||
}
|
||||
|
||||
unset($pvr);
|
||||
?>
|
@ -1,169 +1,26 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id int
|
||||
* @var $pl array
|
||||
*/
|
||||
if (!$id) {
|
||||
exit();
|
||||
}
|
||||
/*
|
||||
Прием: Пожирающее Пламя [10]
|
||||
*/
|
||||
$pvr = array();
|
||||
if(isset($pr_used_this) && isset($pr_moment)) {
|
||||
$fx_priem = function($id , $at , $uid, $j_id) {
|
||||
// -- íà÷àëî ïðèåìà
|
||||
global $u, $btl, $priem;
|
||||
//
|
||||
//Ïàðàìåòðû ïðèåìà
|
||||
$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 ) {
|
||||
|
||||
//Ïðîâåðÿåì ýôôåêò
|
||||
$prv['j_priem'] = $btl->stats[$btl->uids[$u1]]['u_priem'][$j_id][0];
|
||||
$prv['priem_th'] = $btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'];
|
||||
|
||||
//äåéñòâèÿ
|
||||
$pvr['hp'] = 1;
|
||||
//
|
||||
$pvr['data'] = $priem->lookStatsArray($btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['data']);
|
||||
$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']++;
|
||||
}
|
||||
//
|
||||
$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['data'] = $pvr['redata'];
|
||||
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']*5);
|
||||
$pvr['proc-hp'] = array( 5 , 10 , 15 , 20 , 50 );
|
||||
$pvr['proc-hp'] = $pvr['proc-hp'][5-$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['hod']];
|
||||
$pvr['hp'] = round($pvr['hp']/100*$pvr['proc-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'];
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem( $btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['user_use'], $u1, 12, $pvr['hp'], 7, true, false, 1 );
|
||||
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['user_use'],$u1,$pvr['hp'],0);
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
}elseif( $pvr['hpNow'] < 0 ) {
|
||||
$pvr['hpNow'] = 0;
|
||||
}
|
||||
|
||||
$btl->stats[$btl->uids[$u1]]['hpNow'] = $pvr['hpNow'];
|
||||
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = "'.$btl->stats[$btl->uids[$u1]]['hpNow'].'" WHERE `id` = "'.$u1.'" LIMIT 1');
|
||||
//$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u2]]['sex'] , NULL);
|
||||
$prv['text'] = '{u2} óòðàòèë çäîðîâüå îò "{pr}"';
|
||||
|
||||
//Öâåò ïðèåìà
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '000000';
|
||||
$prv['color'] = '008000';
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
$prv['color'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u2,$u1,1).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
//$prv['text'] = $btl->addlt(1 , 20 , $btl->users[$btl->uids[$u2]]['sex'] , NULL);
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u2,$u1,1).'>--</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
}
|
||||
$prv['xx'] = '';
|
||||
if( $btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['x'] > 1 ) {
|
||||
//$prv['xx'] = ' x'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['x'].'';
|
||||
}
|
||||
$btl->priemAddLog( $id, 1, 2, $u2, $u1,
|
||||
'<font color^^^^#'.$prv['color2'].'>Ïîæèðàþùåå Ïëàìÿ [10]'.$prv['xx'].'</font>', //Òóò óðîí îò ïîæèðàëêè
|
||||
$prv['text2'],
|
||||
($btl->hodID)
|
||||
);
|
||||
|
||||
// ñïàñåíèå
|
||||
$btl->spaCheck($u1);
|
||||
// ñïàñåíèå
|
||||
|
||||
}
|
||||
// -- êîíåö ïðèåìà
|
||||
return $at;
|
||||
};
|
||||
unset( $pr_used_this );
|
||||
}elseif( isset($pr_used_this) && isset($pr_moment) && !isset($btl->info['id']) ) {
|
||||
|
||||
}else{
|
||||
$pvr['hp'] = floor(110);
|
||||
$pvr['hp'] = $this->magatack( $u->info['id'], $this->ue['id'], $pvr['hp'], 'îãîíü', 0 );
|
||||
$pvr['promah_type'] = $pvr['hp'][3];
|
||||
$pvr['promah'] = $pvr['hp'][2];
|
||||
$pvr['krit'] = $pvr['hp'][1];
|
||||
$pvr['hp'] = $pvr['hp'][0];
|
||||
//
|
||||
$prv['color2'] = '000000';
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '000000';
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
}
|
||||
$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'].'>Ïîæèðàþùåå Ïëàìÿ [10]</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID + 1)
|
||||
);
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$this->addEffPr($pl,$id);
|
||||
if ($pvr['hp']>0)
|
||||
{
|
||||
$this->addPriem($this->ue['id'],$pl['id'],'atgm='.floor($pvr['hp']/5).'',0,77,5,$u->info['id'],1,'ïîæèðàþùååïëàìÿ',0,0,1);
|
||||
}
|
||||
//Îòíèìàåì òàêòèêè
|
||||
//$this->mintr($pl);
|
||||
}
|
||||
|
||||
unset($pvr);
|
||||
?>
|
||||
if (isset($pr_used_this) && isset($pr_moment)) {
|
||||
//Êàæäûé õîä
|
||||
$fx_priem = function ($id, $at, $uid, $j_id) {
|
||||
global $btl, $priem;
|
||||
$priem->devouringFlame($id, $uid, $j_id, $btl);
|
||||
return $at;
|
||||
};
|
||||
unset($pr_used_this);
|
||||
} else {
|
||||
$this->devouringFlameInit($id, $pl, $btl);
|
||||
}
|
||||
|
@ -1,166 +1,26 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id int
|
||||
* @var $pl array
|
||||
*/
|
||||
if (!$id) {
|
||||
exit();
|
||||
}
|
||||
/*
|
||||
Прием: Пожирающее Пламя [11]
|
||||
*/
|
||||
$pvr = array();
|
||||
if( isset($pr_used_this) && isset($pr_moment) ) {
|
||||
//Êàæäûé õîä
|
||||
$fx_priem = function( $id , $at , $uid, $j_id ) {
|
||||
// -- íà÷àëî ïðèåìà
|
||||
global $u, $btl, $priem;
|
||||
//
|
||||
//Ïàðàìåòðû ïðèåìà
|
||||
$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 ) {
|
||||
|
||||
//Ïðîâåðÿåì ýôôåêò
|
||||
$prv['j_priem'] = $btl->stats[$btl->uids[$u1]]['u_priem'][$j_id][0];
|
||||
$prv['priem_th'] = $btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['id'];
|
||||
|
||||
//äåéñòâèÿ
|
||||
$pvr['hp'] = 1;
|
||||
//
|
||||
$pvr['data'] = $priem->lookStatsArray($btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['data']);
|
||||
$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']++;
|
||||
}
|
||||
//
|
||||
$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['data'] = $pvr['redata'];
|
||||
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']*5);
|
||||
$pvr['proc-hp'] = array( 5 , 10 , 15 , 20 , 50 );
|
||||
$pvr['proc-hp'] = $pvr['proc-hp'][5-$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['hod']];
|
||||
$pvr['hp'] = round($pvr['hp']/100*$pvr['proc-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'];
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem( $btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['user_use'], $u1, 12, $pvr['hp'], 7, true, false, 1 );
|
||||
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['user_use'],$u1,$pvr['hp'],0);
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
}elseif( $pvr['hpNow'] < 0 ) {
|
||||
$pvr['hpNow'] = 0;
|
||||
}
|
||||
|
||||
$btl->stats[$btl->uids[$u1]]['hpNow'] = $pvr['hpNow'];
|
||||
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = "'.$btl->stats[$btl->uids[$u1]]['hpNow'].'" WHERE `id` = "'.$u1.'" LIMIT 1');
|
||||
//$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u2]]['sex'] , NULL);
|
||||
$prv['text'] = '{u2} óòðàòèë çäîðîâüå îò "{pr}"';
|
||||
|
||||
//Öâåò ïðèåìà
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '000000';
|
||||
$prv['color'] = '008000';
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
$prv['color'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u2,$u1,1).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
//$prv['text'] = $btl->addlt(1 , 20 , $btl->users[$btl->uids[$u2]]['sex'] , NULL);
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u2,$u1,1).'>--</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
}
|
||||
$prv['xx'] = '';
|
||||
if( $btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['x'] > 1 ) {
|
||||
//$prv['xx'] = ' x'.$btl->stats[$btl->uids[$u1]]['effects'][$prv['j_priem']]['x'].'';
|
||||
}
|
||||
$btl->priemAddLog( $id, 1, 2, $u2, $u1,
|
||||
'<font color^^^^#'.$prv['color2'].'>Ïîæèðàþùåå Ïëàìÿ [11]'.$prv['xx'].'</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID)
|
||||
);
|
||||
// ñïàñåíèå
|
||||
$btl->spaCheck($u1);
|
||||
// ñïàñåíèå
|
||||
}
|
||||
// -- êîíåö ïðèåìà
|
||||
return $at;
|
||||
};
|
||||
unset( $pr_used_this );
|
||||
}else{
|
||||
$pvr['hp'] = floor(135);
|
||||
$pvr['hp'] = $this->magatack( $u->info['id'], $this->ue['id'], $pvr['hp'], 'îãîíü', 0 );
|
||||
$pvr['promah_type'] = $pvr['hp'][3];
|
||||
$pvr['promah'] = $pvr['hp'][2];
|
||||
$pvr['krit'] = $pvr['hp'][1];
|
||||
$pvr['hp'] = $pvr['hp'][0];
|
||||
//
|
||||
$prv['color2'] = '000000';
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '000000';
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
}
|
||||
$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'].'>Ïîæèðàþùåå Ïëàìÿ [11]</font>',
|
||||
$prv['text2'],
|
||||
($btl->hodID + 1)
|
||||
);
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$this->addEffPr($pl,$id);
|
||||
if ($pvr['hp']>0)
|
||||
{
|
||||
$this->addPriem($this->ue['id'],$pl['id'],'atgm='.floor($pvr['hp']/5).'',0,77,5,$u->info['id'],1,'ïîæèðàþùååïëàìÿ',0,0,1);
|
||||
}
|
||||
//Îòíèìàåì òàêòèêè
|
||||
//$this->mintr($pl);
|
||||
}
|
||||
|
||||
unset($pvr);
|
||||
?>
|
||||
if (isset($pr_used_this) && isset($pr_moment)) {
|
||||
//Êàæäûé õîä
|
||||
$fx_priem = function ($id, $at, $uid, $j_id) {
|
||||
global $btl, $priem;
|
||||
$priem->devouringFlame($id, $uid, $j_id, $btl);
|
||||
return $at;
|
||||
};
|
||||
unset($pr_used_this);
|
||||
} else {
|
||||
$this->devouringFlameInit($id, $pl, $btl);
|
||||
}
|
||||
|
@ -1,108 +1,13 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Âñïûøêà [9]
|
||||
*/
|
||||
$pvr = array();
|
||||
$pvr['x5'] = mysql_fetch_array(mysql_query('SELECT `id`,`x` FROM `eff_users` WHERE `uid` = "'.$this->ue['id'].'" AND `v2` = 26 AND `delete` = 0 LIMIT 1'));
|
||||
//
|
||||
$pvr['hp11'] = 45+round(45/100*(5*$pvr['x5']['x']));
|
||||
$pvr['hp22'] = $pvr['hp11'];
|
||||
//
|
||||
//
|
||||
$pvr['hp_0'] = rand($pvr['hp11'],$pvr['hp22']);
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
//$pvr['rx'] = rand(80,80);
|
||||
//$pvr['rx'] = floor($pvr['rx']/10);
|
||||
$pvr['rx'] = 1;
|
||||
$pvr['xx'] = 0;
|
||||
$pvr['ix'] = $btl->uids[$this->ue['id']];
|
||||
|
||||
if( $btl->stats[$pvr['ix']]['hpNow'] > 0 && $btl->users[$pvr['ix']]['team'] != $u->info['team'] && $pvr['xx'] < $pvr['rx'] && $pvr['uen'] != $btl->users[$pvr['ix']]['id'] ) {
|
||||
//
|
||||
$pvr['uid'] = $btl->users[$pvr['ix']]['id'];
|
||||
$pvr['hp'] = floor(rand($pvr['hp11'],$pvr['hp22']));
|
||||
$pvr['hp'] = $this->magatack( $u->info['id'], $pvr['uid'], $pvr['hp'], 'îãîíü', 1 );
|
||||
$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[$pvr['uid']]]['hpNow']);
|
||||
$pvr['hpAll'] = $btl->stats[$btl->uids[$pvr['uid']]]['hpAll'];
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem( $u->info['id'], $pvr['uid'], 21, $pvr['hp'], 5, true );
|
||||
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$pvr['uid'],$pvr['hp'],0);
|
||||
|
||||
$this->mg2static_points( $pvr['uid'] , $btl->stats[$btl->uids[$pvr['uid']]] );
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
}elseif( $pvr['hpNow'] < 0 ) {
|
||||
$pvr['hpNow'] = 0;
|
||||
}
|
||||
|
||||
$btl->stats[$btl->uids[$pvr['uid']]]['hpNow'] = $pvr['hpNow'];
|
||||
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = "'.$btl->stats[$btl->uids[$pvr['uid']]]['hpNow'].'" WHERE `id` = "'.$pvr['uid'].'" LIMIT 1');
|
||||
|
||||
//
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '006699';
|
||||
if(isset($btl->mcolor[$btl->mname['îãîíü']])) {
|
||||
$prv['color2'] = $btl->mcolor[$btl->mname['îãîíü']];
|
||||
}
|
||||
$prv['color'] = '000000';
|
||||
if(isset($btl->mncolor[$btl->mname['îãîíü']])) {
|
||||
$prv['color'] = $btl->mncolor[$btl->mname['îãîíü']];
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
$prv['color'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
//
|
||||
|
||||
//
|
||||
//$prv['color2'] = $btl->mcolor[$btl->mname['çåìëÿ']];
|
||||
$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$pvr['uid'],1).'>--</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
}else{
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$pvr['uid'],1).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
}
|
||||
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $pvr['uid'],
|
||||
'<font color^^^^#'.$prv['color2'].'>Âñïûøêà [9]</font>',
|
||||
$prv['text2'],
|
||||
($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']++;
|
||||
}
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$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);
|
||||
<?php
|
||||
|
||||
unset($pvr);
|
||||
?>
|
||||
/**
|
||||
* Ïðèåì: Âñïûøêà [9]
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id
|
||||
*/
|
||||
|
||||
if (!$id) {
|
||||
exit();
|
||||
}
|
||||
$this->fireFlash(9, $btl, $id);
|
||||
|
@ -1,108 +1,13 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Âñïûøêà [10]
|
||||
*/
|
||||
$pvr = array();
|
||||
$pvr['x5'] = mysql_fetch_array(mysql_query('SELECT `id`,`x` FROM `eff_users` WHERE `uid` = "'.$this->ue['id'].'" AND `v2` = 26 AND `delete` = 0 LIMIT 1'));
|
||||
//
|
||||
$pvr['hp11'] = 50+round(50/100*(5*$pvr['x5']['x']));
|
||||
$pvr['hp22'] = $pvr['hp11'];
|
||||
//
|
||||
//
|
||||
$pvr['hp_0'] = rand($pvr['hp11'],$pvr['hp22']);
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
//$pvr['rx'] = rand(80,80);
|
||||
//$pvr['rx'] = floor($pvr['rx']/10);
|
||||
$pvr['rx'] = 1;
|
||||
$pvr['xx'] = 0;
|
||||
$pvr['ix'] = $btl->uids[$this->ue['id']];
|
||||
|
||||
if( $btl->stats[$pvr['ix']]['hpNow'] > 0 && $btl->users[$pvr['ix']]['team'] != $u->info['team'] && $pvr['xx'] < $pvr['rx'] && $pvr['uen'] != $btl->users[$pvr['ix']]['id'] ) {
|
||||
//
|
||||
$pvr['uid'] = $btl->users[$pvr['ix']]['id'];
|
||||
$pvr['hp'] = floor(rand($pvr['hp11'],$pvr['hp22']));
|
||||
$pvr['hp'] = $this->magatack( $u->info['id'], $pvr['uid'], $pvr['hp'], 'îãîíü', 1 );
|
||||
$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[$pvr['uid']]]['hpNow']);
|
||||
$pvr['hpAll'] = $btl->stats[$btl->uids[$pvr['uid']]]['hpAll'];
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem( $u->info['id'], $pvr['uid'], 21, $pvr['hp'], 5, true );
|
||||
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$pvr['uid'],$pvr['hp'],0);
|
||||
|
||||
$this->mg2static_points( $pvr['uid'] , $btl->stats[$btl->uids[$pvr['uid']]] );
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
}elseif( $pvr['hpNow'] < 0 ) {
|
||||
$pvr['hpNow'] = 0;
|
||||
}
|
||||
|
||||
$btl->stats[$btl->uids[$pvr['uid']]]['hpNow'] = $pvr['hpNow'];
|
||||
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = "'.$btl->stats[$btl->uids[$pvr['uid']]]['hpNow'].'" WHERE `id` = "'.$pvr['uid'].'" LIMIT 1');
|
||||
|
||||
//
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '006699';
|
||||
if(isset($btl->mcolor[$btl->mname['îãîíü']])) {
|
||||
$prv['color2'] = $btl->mcolor[$btl->mname['îãîíü']];
|
||||
}
|
||||
$prv['color'] = '000000';
|
||||
if(isset($btl->mncolor[$btl->mname['îãîíü']])) {
|
||||
$prv['color'] = $btl->mncolor[$btl->mname['îãîíü']];
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
$prv['color'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
//
|
||||
|
||||
//
|
||||
//$prv['color2'] = $btl->mcolor[$btl->mname['çåìëÿ']];
|
||||
$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$pvr['uid'],1).'>--</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
}else{
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$pvr['uid'],1).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
}
|
||||
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $pvr['uid'],
|
||||
'<font color^^^^#'.$prv['color2'].'>Âñïûøêà [10]</font>',
|
||||
$prv['text2'],
|
||||
($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']++;
|
||||
}
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$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);
|
||||
<?php
|
||||
|
||||
unset($pvr);
|
||||
?>
|
||||
/**
|
||||
* Ïðèåì: Âñïûøêà [10]
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id
|
||||
*/
|
||||
|
||||
if (!$id) {
|
||||
exit();
|
||||
}
|
||||
$this->fireFlash(10, $btl, $id);
|
||||
|
@ -1,108 +1,13 @@
|
||||
<?
|
||||
if(!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
/*
|
||||
Ïðèåì: Âñïûøêà [11]
|
||||
*/
|
||||
$pvr = array();
|
||||
$pvr['x5'] = mysql_fetch_array(mysql_query('SELECT `id`,`x` FROM `eff_users` WHERE `uid` = "'.$this->ue['id'].'" AND `v2` = 26 AND `delete` = 0 LIMIT 1'));
|
||||
//
|
||||
$pvr['hp11'] = 60+round(60/100*(5*$pvr['x5']['x']));
|
||||
$pvr['hp22'] = $pvr['hp11'];
|
||||
//
|
||||
//
|
||||
$pvr['hp_0'] = rand($pvr['hp11'],$pvr['hp22']);
|
||||
//Äåéñòâèå ïðè êëèêå
|
||||
//$pvr['rx'] = rand(80,80);
|
||||
//$pvr['rx'] = floor($pvr['rx']/10);
|
||||
$pvr['rx'] = 1;
|
||||
$pvr['xx'] = 0;
|
||||
$pvr['ix'] = $btl->uids[$this->ue['id']];
|
||||
|
||||
if( $btl->stats[$pvr['ix']]['hpNow'] > 0 && $btl->users[$pvr['ix']]['team'] != $u->info['team'] && $pvr['xx'] < $pvr['rx'] && $pvr['uen'] != $btl->users[$pvr['ix']]['id'] ) {
|
||||
//
|
||||
$pvr['uid'] = $btl->users[$pvr['ix']]['id'];
|
||||
$pvr['hp'] = floor(rand($pvr['hp11'],$pvr['hp22']));
|
||||
$pvr['hp'] = $this->magatack( $u->info['id'], $pvr['uid'], $pvr['hp'], 'îãîíü', 1 );
|
||||
$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[$pvr['uid']]]['hpNow']);
|
||||
$pvr['hpAll'] = $btl->stats[$btl->uids[$pvr['uid']]]['hpAll'];
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem( $u->info['id'], $pvr['uid'], 21, $pvr['hp'], 5, true );
|
||||
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$pvr['uid'],$pvr['hp'],0);
|
||||
|
||||
$this->mg2static_points( $pvr['uid'] , $btl->stats[$btl->uids[$pvr['uid']]] );
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
}elseif( $pvr['hpNow'] < 0 ) {
|
||||
$pvr['hpNow'] = 0;
|
||||
}
|
||||
|
||||
$btl->stats[$btl->uids[$pvr['uid']]]['hpNow'] = $pvr['hpNow'];
|
||||
|
||||
mysql_query('UPDATE `stats` SET `hpNow` = "'.$btl->stats[$btl->uids[$pvr['uid']]]['hpNow'].'" WHERE `id` = "'.$pvr['uid'].'" LIMIT 1');
|
||||
|
||||
//
|
||||
if( $pvr['promah'] == false ) {
|
||||
if( $pvr['krit'] == false ) {
|
||||
$prv['color2'] = '006699';
|
||||
if(isset($btl->mcolor[$btl->mname['îãîíü']])) {
|
||||
$prv['color2'] = $btl->mcolor[$btl->mname['îãîíü']];
|
||||
}
|
||||
$prv['color'] = '000000';
|
||||
if(isset($btl->mncolor[$btl->mname['îãîíü']])) {
|
||||
$prv['color'] = $btl->mncolor[$btl->mname['îãîíü']];
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = 'FF0000';
|
||||
$prv['color'] = 'FF0000';
|
||||
}
|
||||
}else{
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
//
|
||||
|
||||
//
|
||||
//$prv['color2'] = $btl->mcolor[$btl->mname['çåìëÿ']];
|
||||
$prv['text'] = $btl->addlt(1 , 19 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$pvr['uid'],1).'>--</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
}else{
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$pvr['uid'],1).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
}
|
||||
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $pvr['uid'],
|
||||
'<font color^^^^#'.$prv['color2'].'>Âñïûøêà [11]</font>',
|
||||
$prv['text2'],
|
||||
($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']++;
|
||||
}
|
||||
|
||||
//Äîáàâëÿåì ïðèåì
|
||||
//$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);
|
||||
<?php
|
||||
|
||||
unset($pvr);
|
||||
?>
|
||||
/**
|
||||
* Ïðèåì: Âñïûøêà [11]
|
||||
* @var $this priems
|
||||
* @var $btl battleClass
|
||||
* @var $id
|
||||
*/
|
||||
|
||||
if (!$id) {
|
||||
exit();
|
||||
}
|
||||
$this->fireFlash(11, $btl, $id);
|
||||
|
@ -12,17 +12,13 @@ if( isset($pr_momental_this)) {
|
||||
if(!isset($btl->stats[$btl->uids[$uid]]['um_priem'][$j_id])) {
|
||||
global $u, $btl, $inlog;
|
||||
$yron = $yron/2;
|
||||
/*
|
||||
$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( !isset($btl->prlog[$uid][$j_id]) ) {
|
||||
$btl->prlog[$uid][$j_id] = true;
|
||||
|
||||
|
||||
//
|
||||
$btl->priemAddLogFast( $uid, 0, "Àêòèâíàÿ çàùèòà",
|
||||
'{tm1} '.$btl->addlt(1 , 17 , $btl->users[$btl->uids[$uid]]['sex'] , NULL).'',
|
||||
1, time() );
|
||||
}
|
||||
|
||||
if( $yron < 0 ) {
|
||||
$yron = 1;
|
||||
}
|
||||
@ -108,15 +104,14 @@ if( isset($pr_momental_this)) {
|
||||
*/
|
||||
|
||||
//Íîâûé
|
||||
if( !isset($btl->prlog[$uid][$j_id]) ) {
|
||||
$btl->prlog[$uid][$j_id] = true;
|
||||
|
||||
//
|
||||
$at['p'][$a]['atack'][$j]['yron']['plog'][] = '$this->deleffm(7,'.(0+$uid).','.$btl->stats[$btl->uids[$uid]]['u_priem'][$j_id][3].');
|
||||
$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']);
|
||||
|
@ -55,8 +55,8 @@ $pvr = array();
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$u->info['id']]] );
|
||||
|
||||
$this->addAirStaticPoints(); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],2).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
|
@ -55,8 +55,8 @@ $pvr = array();
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$u->info['id']]] );
|
||||
|
||||
$this->addAirStaticPoints(); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],2).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
|
@ -56,8 +56,8 @@ $pvr = array();
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$u->info['id']]] );
|
||||
|
||||
$this->addAirStaticPoints(); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],2).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
|
@ -56,9 +56,8 @@ $pvr = array();
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$u->info['id']]] );
|
||||
|
||||
|
||||
$this->addAirStaticPoints(); /* Óäàð â Ñòàòèêó*/
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],2).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
$prv['text'] = $btl->addlt(1 , 20 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
||||
|
@ -59,7 +59,8 @@ $pvr = array();
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$u->info['id']]] );
|
||||
|
||||
$this->addAirStaticPoints(); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b '.$btl->maginfoattack($u->info['id'],$this->ue['id'],2).'>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
|
@ -57,8 +57,8 @@ $pvr = array();
|
||||
$prv['color2'] = '909090';
|
||||
$prv['color'] = '909090';
|
||||
}
|
||||
|
||||
$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$u->info['id']]] );
|
||||
|
||||
$this->addAirStaticPoints(); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
$prv['text2'] = '{tm1} '.$prv['text'].'. <font Color='.$prv['color'].'><b>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']';
|
||||
if( $pvr['promah_type'] == 2 ) {
|
||||
|
@ -23,8 +23,8 @@ $pvr = array();
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem( $u->info['id'], $this->ue['id'], 21, $pvr['hp'], 6, true );
|
||||
|
||||
$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$this->ue['id']]] );
|
||||
|
||||
$this->addAirStaticPoints(); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
@ -102,8 +102,8 @@ $pvr = array();
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$pvr['uid'],$pvr['hp'],0);
|
||||
|
||||
$this->mg2static_points( $pvr['uid'] , $btl->stats[$btl->uids[$pvr['uid']]] );
|
||||
|
||||
$this->addAirStaticPoints($pvr['uid']); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
|
@ -23,8 +23,8 @@ $pvr = array();
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem( $u->info['id'], $this->ue['id'], 21, $pvr['hp'], 6, true );
|
||||
|
||||
$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$this->ue['id']]] );
|
||||
|
||||
$this->addAirStaticPoints(); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
@ -102,8 +102,8 @@ $pvr = array();
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$pvr['uid'],$pvr['hp'],0);
|
||||
|
||||
$this->mg2static_points( $pvr['uid'] , $btl->stats[$btl->uids[$pvr['uid']]] );
|
||||
|
||||
$this->addAirStaticPoints($pvr['uid']); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
|
@ -23,8 +23,8 @@ $pvr = array();
|
||||
|
||||
//Èñïîëüçóåì ïðîâåðêó íà óðîí ïðèåìîâ
|
||||
$pvr['hp'] = $btl->testYronPriem( $u->info['id'], $this->ue['id'], 21, $pvr['hp'], 6, true );
|
||||
|
||||
$this->mg2static_points( $this->ue['id'] , $btl->stats[$btl->uids[$this->ue['id']]] );
|
||||
|
||||
$this->addAirStaticPoints(); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
@ -102,8 +102,8 @@ $pvr = array();
|
||||
$pvr['hpSee'] = '-'.$pvr['hp'];
|
||||
$pvr['hpNow'] -= $pvr['hp'];
|
||||
$btl->priemYronSave($u->info['id'],$pvr['uid'],$pvr['hp'],0);
|
||||
|
||||
$this->mg2static_points( $pvr['uid'] , $btl->stats[$btl->uids[$pvr['uid']]] );
|
||||
|
||||
$this->addAirStaticPoints($pvr['uid']); /* Óäàð â Ñòàòèêó*/
|
||||
|
||||
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
||||
$pvr['hpNow'] = $pvr['hpAll'];
|
||||
|
3
_incl_data/class/priem/_notes/readme.md
Normal file
3
_incl_data/class/priem/_notes/readme.md
Normal file
@ -0,0 +1,3 @@
|
||||
Файлы управляющие приёмами в поеинках.
|
||||
Все файлы являются частями класса `Priems`, что вызывает
|
||||
массу проблем при необходимости присоединять ещё файлы.
|
1
_incl_data/class/priems/_notes/readme.md
Normal file
1
_incl_data/class/priems/_notes/readme.md
Normal file
@ -0,0 +1 @@
|
||||
Тут лежат файлы для использования во встроенной в предметы магии.
|
@ -373,7 +373,7 @@ if(isset($hod))
|
||||
}elseif($pl['id']==57)
|
||||
{
|
||||
//Ïîæèðàþùåå ïëàìÿ [8]
|
||||
$re = $this->addPriem($uen,$pl['id'],'',0,77,5,$u->info['id'],1,'ïîæèðàþùååïëàìÿ',1,1);
|
||||
$re = $this->addPriem($uen,$pl['id'],'',0,77,5,$u->info['id'],1,'ïîæèðàþùååïëàìÿ2',1,1);
|
||||
if($re==false)
|
||||
{
|
||||
echo '[Er::Ïîæèðàþùåå Ïëàìÿ[xX]]';
|
||||
|
@ -1,9 +0,0 @@
|
||||
Options -Indexes
|
||||
|
||||
AddDefaultCharset Windows-1251
|
||||
|
||||
RewriteEngine On
|
||||
RewriteBase /
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule . /core/index.php [L]
|
@ -1 +0,0 @@
|
||||
deny from all
|
@ -1 +0,0 @@
|
||||
deny from all
|
@ -1,30 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Core;
|
||||
|
||||
class Chat {
|
||||
|
||||
//Ñèñòåìíîå ñîîáùåíèå
|
||||
public static function send_system( $uid , $text ) {
|
||||
if( !is_string($uid) ) {
|
||||
$uid = \Core\Database::query( 'SELECT `login` FROM `users` WHERE `uid` = :uid ORDER BY `id` ASC LIMIT 1000' , array(
|
||||
'uid' => $uid
|
||||
));
|
||||
$uid = $uid['login'];
|
||||
}
|
||||
\Core\Database::query( 'INSERT INTO `chat` (`to`,`time`,`type`,`text`,`color`,`typeTime`,`new`) VALUES (
|
||||
:to , :time , :type , :text , :color , :typeTime , :new
|
||||
)', array(
|
||||
'to' => $uid,
|
||||
'time' => OK,
|
||||
'type' => 6,
|
||||
'text' => $text,
|
||||
'color' => 'Black',
|
||||
'typeTime' => 0,
|
||||
'new' => 1
|
||||
) );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
@ -1,45 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Core;
|
||||
class Database {
|
||||
|
||||
public static $connection = NULL;
|
||||
|
||||
public static function connect() {
|
||||
if ( self::$connection == NULL ) {
|
||||
try {
|
||||
$connection = new \PDO('mysql:host=' . DB_HOST . ';dbname=' . DB_NAME, DB_USER, DB_PASS);
|
||||
$connection->exec('SET NAMES CP1251;');
|
||||
$connection->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
|
||||
self::$connection = $connection;
|
||||
} catch ( \PDOException $e ) {
|
||||
new GeneralException($e->getMessage(), 10001);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static function query($q, $p = array(), $fetch_object = false, $fetch_all = false, $count = false) {
|
||||
try {
|
||||
if ( self::$connection == NULL ) {
|
||||
throw new \PDOException('[Internal Error] Could not establish DB connection');
|
||||
}
|
||||
$stmt = self::$connection->prepare($q);
|
||||
if ( $count !== false ) {
|
||||
$stmt->execute($p);
|
||||
return $stmt->fetchColumn();
|
||||
} elseif ( $fetch_object !== false ) {
|
||||
$stmt->execute($p);
|
||||
return ($fetch_all !== false ? $stmt->fetchAll(\PDO::FETCH_ASSOC) : $stmt->fetch(\PDO::FETCH_ASSOC));
|
||||
} else {
|
||||
return $stmt->execute($p);
|
||||
}
|
||||
} catch ( \PDOException $e ) {
|
||||
new GeneralException($e->getMessage(), 10002);
|
||||
}
|
||||
}
|
||||
|
||||
public static function lastID () {
|
||||
return self::$connection->lastInsertId();
|
||||
}
|
||||
}
|
||||
?>
|
@ -1,24 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Core;
|
||||
class GeneralException extends \Exception {
|
||||
|
||||
public function __construct($message, $code = 0) {
|
||||
$s = '';
|
||||
$s .= 'Server date & time: ' . date('d.m.Y H:i:s') . "\n";
|
||||
$s .= 'Error code: ' . $code . "\n";
|
||||
$s .= 'Error message: ' . $message . "\n";
|
||||
$s .= 'In file: ' . $this->getFile() . "\n";
|
||||
$s .= 'In line: ' . $this->getLine() . "\n";
|
||||
$s .= 'Client IP: ' . $_SERVER['REMOTE_ADDR'] . "\n";
|
||||
$s .= 'GET Data: ' . serialize($_GET) . "\n";
|
||||
$s .= 'POST Data: ' . serialize($_POST) . "\n";
|
||||
$s .= 'Call Stack Trace: ' . "\n";
|
||||
foreach ( debug_backtrace() as $stack ) {
|
||||
$s .= "\tFILE: '" . $stack['file'] . "', LINE: '" . $stack['line'] . "';\n";
|
||||
}
|
||||
file_put_contents(PROJECT_PATH . DS . 'log/error.log', $s . "\n", FILE_APPEND);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@ -1,79 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Core;
|
||||
|
||||
class Item {
|
||||
|
||||
public static function lookStats($m) {
|
||||
$ist = array();
|
||||
$di = explode('|',$m);
|
||||
$i = 0; $de = false;
|
||||
while($i<count($di)) {
|
||||
$de = explode('=',$di[$i]);
|
||||
if(isset($de[0],$de[1])) {
|
||||
if(!isset($ist[$de[0]])) {
|
||||
$ist[$de[0]] = 0;
|
||||
}
|
||||
$ist[$de[0]] = $de[1];
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
return $ist;
|
||||
}
|
||||
|
||||
public static function getItem( $id ) {
|
||||
$itm = \Core\Database::query( 'SELECT `a`.*,`b`.* FROM `items_main` AS `a` LEFT JOIN `items_main_data` AS `b` ON `b`.`items_id` = `a`.`id` WHERE `a`.`id` = :item_id LIMIT 1' , array(
|
||||
'item_id' => $id
|
||||
) , true );
|
||||
return $itm;
|
||||
}
|
||||
|
||||
public static function getItemUser( $id ) {
|
||||
//uiid - id ïðåäìåòà â items_users
|
||||
$itm = \Core\Database::query( 'SELECT `a`.*,`b`.*,`a`.`id` AS `uiid` FROM `items_users` AS `a` LEFT JOIN `items_main` AS `b` ON `b`.`id` = `a`.`item_id` WHERE `a`.`id` = :item_id LIMIT 1' , array(
|
||||
'item_id' => $id
|
||||
) , true );
|
||||
return $itm;
|
||||
}
|
||||
|
||||
public static function infoItem( $itm ) {
|
||||
//$po = self::lookStats( $itm['data'] );
|
||||
//
|
||||
$r = array(
|
||||
//items_main
|
||||
$itm['id'],
|
||||
$itm['name'],
|
||||
$itm['img'],
|
||||
$itm['2h'],
|
||||
$itm['2too'],
|
||||
$itm['iznosMAXi'],
|
||||
$itm['price1'], //6
|
||||
$itm['price2'],
|
||||
$itm['magic_chance'],
|
||||
$itm['info'],
|
||||
$itm['massa'],
|
||||
$itm['geni'],
|
||||
//items_users 12
|
||||
$itm['1price'], //12
|
||||
$itm['2price'],
|
||||
$itm['use_text'],
|
||||
$itm['iznosNOW'],
|
||||
$itm['iznosMAX'],
|
||||
$itm['gift'],
|
||||
$itm['magic_inc'],
|
||||
$itm['maidin'],
|
||||
//data 20
|
||||
$itm['data'],
|
||||
//group items_user
|
||||
$itm['inGroup'], //21
|
||||
$itm['uiid'],
|
||||
//
|
||||
OK
|
||||
|
||||
);
|
||||
return $r;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
@ -1,62 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Core;
|
||||
|
||||
class Route {
|
||||
|
||||
public static $json_return = false, $device = 'PC', $device_type = 'PC', $device_id = 0;
|
||||
|
||||
public static function begin() {
|
||||
|
||||
if ( isset($_SERVER['HTTP_ACCEPT']) && in_array('application/json', explode(',', $_SERVER['HTTP_ACCEPT'])) ) {
|
||||
self::$json_return = true;
|
||||
}
|
||||
|
||||
$url_data = parse_url($_SERVER['REQUEST_URI']);
|
||||
$uri = urldecode($url_data['path']);
|
||||
|
||||
$urls = array(
|
||||
//Ëîêàöèè
|
||||
DP . '/comission' => 'comission',
|
||||
DP . '/auction' => 'auction',
|
||||
DP . '/debuger' => 'debuger',
|
||||
DP . '/admin' => 'admin'
|
||||
);
|
||||
|
||||
$found_module = false;
|
||||
|
||||
foreach ( $urls as $url => $handler ) {
|
||||
if ( preg_match("#^" . $url . "/*$#", $uri) ) {
|
||||
$class_name = "Logic\\$handler";
|
||||
if(class_exists($class_name)) {
|
||||
$controller = new $class_name;
|
||||
$controller->defaultAction();
|
||||
$found_module = true;
|
||||
}else{
|
||||
self::ErrorClass404($class_name);
|
||||
}
|
||||
break;
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if ( !$found_module ) {
|
||||
self::ErrorPage404();
|
||||
}
|
||||
}
|
||||
|
||||
public static function redirect($url) {
|
||||
header('Location: ' . $url);
|
||||
}
|
||||
|
||||
public static function ErrorPage404() {
|
||||
die('Ñòðàíèöà íå íàéäåíà');
|
||||
}
|
||||
|
||||
public static function ErrorClass404($name) {
|
||||
die('Ðàñøèðåíèå '. $name .' íå íàéäåíî');
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@ -1,160 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Core;
|
||||
|
||||
class User {
|
||||
|
||||
public static $data = false , $stats = false , $room = false;
|
||||
|
||||
public static $is = array(
|
||||
'exp' => 'Получаемый опыт (%)', 'align_bs' => 'Служитель закона',
|
||||
'nopryh' => 'Прямое поподание', 'puti'=>'Запрет перемещения','align'=>'Склонность','hpAll'=>'Уровень жизни (HP)','mpAll'=>'Уровень маны','enAll'=>'Уровень энергии','sex'=>'Пол','lvl'=>'Уровень','s1'=>'Сила','s2'=>'Ловкость','s3'=>'Интуиция','s4'=>'Выносливость','s5'=>'Интеллект','s6'=>'Мудрость','s7'=>'Духовность','s8'=>'Воля','s9'=>'Свобода духа','s10'=>'Божественность','s11'=>'Энергия','m1'=>'Мф. критического удара (%)','m2'=>'Мф. против критического удара (%)','m3'=>'Мф. мощности крит. удара (%)','m4'=>'Мф. увертывания (%)','m5'=>'Мф. против увертывания (%)','m6'=>'Мф. контрудара (%)','m7'=>'Мф. парирования (%)','m8'=>'Мф. блока щитом (%)','m9'=>'Мф. удара сквозь броню (%)','m14'=>'Мф. абс. критического удара (%)','m15'=>'Мф. абс. увертывания (%)','m16'=>'Мф. абс. парирования (%)','m17'=>'Мф. абс. контрудара (%)','m18'=>'Мф. абс. блока щитом (%)','m19'=>'Мф. абс. магический промах (%)','m20'=>'Мф. удача (%)','a1'=>'Мастерство владения ножами, кинжалами','a2'=>'Мастерство владения топорами, секирами','a3'=>'Мастерство владения дубинами, молотами','a4'=>'Мастерство владения мечами','a5'=>'Мастерство владения магическими посохами','a6'=>'Мастерство владения луками','a7'=>'Мастерство владения арбалетами','aall'=>'Мастерство владения оружием','mall'=>'Мастерство владения магией стихий','m2all'=>'Мастерство владения магией','mg1'=>'Мастерство владения магией огня','mg2'=>'Мастерство владения магией воздуха','mg3'=>'Мастерство владения магией воды','mg4'=>'Мастерство владения магией земли','mg5'=>'Мастерство владения магией Света','mg6'=>'Мастерство владения магией Тьмы','mg7'=>'Мастерство владения серой магией','tj'=>'Тяжелая броня','lh'=>'Легкая броня','minAtack'=>'Минимальный урон','maxAtack'=>'Максимальный урон','m10'=>'Мф. мощности урона','m11'=>'Мф. мощности магии стихий','m11a'=>'Мф. мощности магии','pa1'=>'Мф. мощности колющего урона','pa2'=>'Мф. мощности рубящего урона','pa3'=>'Мф. мощности дробящий урона','pa4'=>'Мф. мощности режущий урона','pm1'=>'Мф. мощности магии огня','pm2'=>'Мф. мощности магии воздуха','pm3'=>'Мф. мощности магии воды','pm4'=>'Мф. мощности магии земли','pm5'=>'Мф. мощности магии Света','pm6'=>'Мф. мощности магии Тьмы','pm7'=>'Мф. мощности серой магии','za'=>'Защита от урона','zm'=>'Защита от магии стихий','zma'=>'Защита от магии','za1'=>'Защита от колющего урона','za2'=>'Защита от рубящего урона','za3'=>'Защита от дробящего урона','za4'=>'Защита от режущего урона','zm1'=>'Защита от магии огня','zm2'=>'Защита от магии воздуха','zm3'=>'Защита от магии воды','zm4'=>'Защита от магии земли','zm5'=>'Защита от магии Света','zm6'=>'Защита от магии Тьмы','zm7'=>'Защита от серой магии','magic_cast'=>'Дополнительный каст за ход','pza'=>'Понижение защиты от урона','pzm'=>'Понижение защиты от магии','pza1'=>'Понижение защиты от колющего урона','min_heal_proc'=>'Эффект лечения (%)','notravma'=>'Защита от травм','yron_min'=>'Минимальный урон','yron_max'=>'Максимальный урон','zaproc'=>'Защита от урона (%)','zmproc'=>'Защита от магии стихий (%)','zm2proc'=>'Защита от магии Воздуха (%)','pza2'=>'Понижение защиты от рубящего урона','pza3'=>'Понижение защиты от дробящего урона','pza4'=>'Понижение защиты от режущего урона','pzm1'=>'Понижение защиты от магии огня','pzm2'=>'Понижение защиты от магии воздуха','pzm3'=>'Понижение защиты от магии воды','pzm4'=>'Понижение защиты от магии земли','pzm5'=>'Понижение защиты от магии Света','pzm6'=>'Понижение защиты от магии Тьмы','pzm7'=>'Понижение защиты от серой магии','speedhp'=>'Регенерация здоровья (%)','speedmp'=>'Регенерация маны (%)','tya1'=>'Колющие атаки','tya2'=>'Рубящие атаки','tya3'=>'Дробящие атаки','tya4'=>'Режущие атаки','tym1'=>'Огненные атаки','mg2static_points'=>'Уровень заряда (Воздух)','tym2'=>'Электрические атаки','tym3'=>'Ледяные атаки','tym4'=>'Земляные атаки','hpProc'=>'Уровень жизни (%)','mpProc'=>'Уровень маны (%)','tym5'=>'Атаки Света','tym6'=>'Атаки Тьмы','tym7'=>'Серые атаки','min_use_mp'=>'Уменьшает расход маны','pog'=>'Поглощение урона','pog2'=>'Поглощение урона','pog2p'=>'Процент поглощение урона','pog2mp'=>'Цена поглощение урона','maxves'=>'Увеличивает рюкзак','bonusexp'=>'Увеличивает получаемый опыт','speeden'=>'Регенерация энергии (%)',
|
||||
'yza' => 'Уязвимость физическому урона (%)','yzm' => 'Уязвимость магии стихий (%)','yzma' => 'Уязвимость магии (%)'
|
||||
,'yza1' => 'Уязвимость колющему урона (%)','yza2' => 'Уязвимость рубящему урона (%)','yza3' => 'Уязвимость дробящему урона (%)','yza4' => 'Уязвимость режущему урона (%)'
|
||||
,'yzm1' => 'Уязвимость магии огня (%)','yzm2' => 'Уязвимость магии воздуха (%)','yzm3' => 'Уязвимость магии воды (%)','yzm4' => 'Уязвимость магии земли (%)','yzm5' => 'Уязвимость магии (%)','yzm6' => 'Уязвимость магии (%)','yzm7' => 'Уязвимость магии (%)','rep'=> 'Репутация Рыцаря'
|
||||
);
|
||||
public static $items = array(
|
||||
'tr' => array('sex','align','lvl','s1','s2','s3','s4','s5','s6','s7','s8','s9','s10','s11','a1','a2','a3','a4','a5','a6','a7','mg1','mg2','mg3','mg4','mg5','mg6','mg7','mall','m2all','aall','rep', 'align_bs'),
|
||||
'add' => array(
|
||||
'exp','enemy_am1','hod_minmana','yhod','noshock_voda',
|
||||
'yza','yzm','yzma','yza1','yza2','yza3','yza4','yzm1','yzm2','yzm3','yzm4','yzm5','yzm6','yzm7',
|
||||
'notuse_last_pr','yrn_mg_first','antishock','nopryh','speed_dungeon','naemnik','mg2static_points','yrnhealmpprocmg3','nousepriem','notactic','seeAllEff','100proboi1','pog2','pog2p','magic_cast','min_heal_proc','no_yv1','no_krit1','no_krit2','no_contr1','no_contr2','no_bl1','no_pr1','no_yv2','no_bl2','no_pr2','silver','pza','pza1','pza2','pza3','pza4','pzm','pzm1','pzm2','pzm3','pzm4','pzm5','pzm6','pzm7','yron_min','yron_max','notravma','min_zonb','min_zona','nokrit','pog','min_use_mp','za1proc','za2proc','za3proc','za4proc','zaproc','zmproc','zm1proc','zm2proc','zm3proc','zm4proc','shopSale','s1','s2','s3','s4','s5','s6','s7','s8','s9','s10','s11','aall','a1','a2','a3','a4','a5','a6','a7','m2all','mall','mg1','mg2','mg3','mg4','mg5','mg6','mg7','hpAll','hpVinos','mpVinos','mpAll','enAll','hpProc','mpProc','m1','m2','m3','m4','m5','m6','m7','m8','m9','m14','m15','m16','m17','m18','m19','m20','pa1','pa2','pa3','pa4','pm1','pm2','pm3','pm4','pm5','pm6','pm7','za','za1','za2','za3','za4','zma','zm','zm1','zm2','zm3','zm4','zm5','zm6','zm7','mib1','mab1','mib2','mab2','mib3','mab3','mib4','mab4','speedhp','speedmp','m10','m11','m11a','zona','zonb','maxves','minAtack','maxAtack','bonusexp','speeden'),
|
||||
'sv' => array('pza','pza1','pza2','pza3','pza4','pzm','pzm1','pzm2','pzm3','pzm4','pzm5','pzm6','pzm7','notravma','min_zonb','min_zona','nokrit','pog','min_use_mp','za1proc','za2proc','za3proc','za4proc','zaproc','zmproc','zm1proc','zm2proc','zm3proc','zm4proc','shopSale','s1','s2','s3','s4','s5','s6','s7','s8','s9','s10','s11','aall','a1','a2','a3','a4','a5','a6','a7','m2all','mall','mg1','mg2','mg3','mg4','mg5','mg6','mg7','hpAll','mpAll','enAll','m1','m2','m3','m4','m5','m6','m7','m8','m9','m14','m15','m16','m17','m18','m19','m20','pa1','pa2','pa3','pa4','pm1','pm2','pm3','pm4','pm5','pm6','pm7','min_use_mp','za','za1','za2','za3','za4','zma','zm','zm1','zm2','zm3','zm4','zm5','zm6','zm7','mib1','mab1','mib2','mab2','mib3','mab3','mib4','mab4','speedhp','speedmp','m10','m11','zona','zonb','maxves','minAtack','maxAtack','speeden')
|
||||
);
|
||||
|
||||
//Подключаем пользователя
|
||||
public static function connect() {
|
||||
//
|
||||
self::$data = \Core\Database::query( 'SELECT * FROM `users` WHERE `login` = :login ORDER BY `id` ASC LIMIT 1' , array(
|
||||
'login' => \Core\Utils::cookie('login')
|
||||
) , true );
|
||||
//Неверный пароль
|
||||
if( self::$data['pass'] != \Core\Utils::cookie('pass') ) {
|
||||
self::$data = false;
|
||||
}
|
||||
//Персонаж заблокирован
|
||||
if( self::$data['banned'] > 0 ) {
|
||||
self::$data = false;
|
||||
}
|
||||
//Подключаем статы
|
||||
if( isset( self::$data['id'] ) ) {
|
||||
self::$stats = \Core\Database::query( 'SELECT * FROM `stats` WHERE `id` = :uid LIMIT 1' , array(
|
||||
'uid' => self::$data['id']
|
||||
) , true );
|
||||
}
|
||||
}
|
||||
|
||||
//Считаем вес персонажа
|
||||
public static function ves( $uid ) {
|
||||
$r = array('now' => 0,'max' => 0);
|
||||
//Масса рюкзака
|
||||
$r['now'] = \Core\Database::query( 'SELECT SUM(`b`.`massa`) AS `m` FROM `items_users` AS `a` LEFT JOIN `items_main`AS `b` ON `b`.`id` = `a`.`item_id` WHERE `a`.`uid` = :uid AND `a`.`delete` = 0 AND `a`.`inShop` = 0 AND `inOdet` = 0' , array(
|
||||
'uid' => $uid
|
||||
) , true );
|
||||
$r['now'] = 0 + $r['now']['m'];
|
||||
//
|
||||
$r['max'] = 0;
|
||||
//
|
||||
return $r;
|
||||
}
|
||||
|
||||
//Смотрим характеристики
|
||||
public static function getStats( $uid ) {
|
||||
$r = array(
|
||||
'st' => array( ), //Характеристики
|
||||
'sl' => array( ), //Заполненные слоты ( 0 id предмета , 1 тип предмета )
|
||||
'ms' => array( 'now' => 0 , 'max ' => 0 , 'itm' => 0 ) //Масса
|
||||
);
|
||||
//
|
||||
$user = \Core\Database::query( 'SELECT * FROM `users` WHERE `id` = :uid LIMIT 1' , array(
|
||||
'uid' => $uid
|
||||
), true );
|
||||
//
|
||||
if( isset($user['id']) ) {
|
||||
//
|
||||
$stats = \Core\Database::query( 'SELECT * FROM `stats` WHERE `id` = :uid LIMIT 1' , array(
|
||||
'uid' => $uid
|
||||
), true );
|
||||
//
|
||||
//Базовые добавления
|
||||
$r['st']['hpNow'] = $stats['hpNow'];
|
||||
$r['st']['mpNow'] = $stats['mpNow'];
|
||||
//
|
||||
//Характеристики от предметов
|
||||
$pl = \Core\Database::query( 'SELECT * FROM `items_users` WHERE `uid` = :uid AND `inOdet` > 0 AND `delete` = 0' , array(
|
||||
'uid' => $user['id']
|
||||
), true, true);
|
||||
$i = 0;
|
||||
while( $i < count($pl) ) {
|
||||
$r['st'] = self::plusStatsData( $r['st'] , $pl[$i]['data'] );
|
||||
$i++;
|
||||
}
|
||||
unset($pl,$i);
|
||||
//
|
||||
//Характеристики от эффектов
|
||||
$pl = \Core\Database::query( 'SELECT * FROM `eff_users` WHERE `uid` = :uid AND `delete` = 0' , array(
|
||||
'uid' => $user['id']
|
||||
), true, true);
|
||||
$i = 0;
|
||||
while( $i < count($pl) ) {
|
||||
$r['st'] = self::plusStatsData( $r['st'] , $pl[$i]['data'] );
|
||||
$i++;
|
||||
}
|
||||
unset($pl,$i);
|
||||
//
|
||||
//Характеристики от статов
|
||||
$r['st']['hpAll'] += $r['st']['s4'] * 6; //Здоровье от выносливости
|
||||
$r['st']['mpAll'] += $r['st']['s6'] * 12; //Мана от мудрости
|
||||
$r['st']['m1'] += $r['st']['s3'] * 5; //Интуиция дает мф. крита
|
||||
$r['st']['m2'] += $r['st']['s3'] * 5; //Интуиция дает мф. против крита
|
||||
$r['st']['m4'] += $r['st']['s2'] * 7; //Интуиция дает мф. уворота
|
||||
$r['st']['m5'] += $r['st']['s2'] * 7; //Интуиция дает мф. против уворота
|
||||
$r['st']['za'] += $r['st']['s4'] * 1.5; //Выносливость дает защиту от урона
|
||||
$r['st']['zm'] += $r['st']['s4'] * 1.5; //Выносливость дает защиту от магии
|
||||
//
|
||||
//Бонусы комплектов
|
||||
|
||||
//
|
||||
//Бонусы статов
|
||||
|
||||
//
|
||||
}
|
||||
return $r;
|
||||
}
|
||||
|
||||
//Добавление статов
|
||||
public static function plusStatsData( $st , $data ) {
|
||||
$data = \Core\Utils::lookStats( $data );
|
||||
$i = 0;
|
||||
while( $i < count(self::$items['add']) ) {
|
||||
if( $data['add_' . self::$items['add'][$i]] != 0 ) {
|
||||
$st[self::$items['add'][$i]] += $data['add_' . self::$items['add'][$i]];
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
return $st;
|
||||
}
|
||||
|
||||
//Подключаем локацию в которой находится пользователь
|
||||
public static function room() {
|
||||
if( isset(self::$data['id']) ) {
|
||||
self::$room = \Core\Database::query( 'SELECT * FROM `room` WHERE `id` = :id LIMIT 1' , array(
|
||||
'id' => self::$data['room']
|
||||
) , true );
|
||||
}
|
||||
}
|
||||
|
||||
public static function redirect($url) {
|
||||
header('Location: ' . $url);
|
||||
}
|
||||
|
||||
public static function ErrorPage404() {
|
||||
die('Страница не найдена');
|
||||
}
|
||||
|
||||
public static function ErrorClass404($name) {
|
||||
die('Расширение '. $name .' не найдено');
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@ -1,376 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Core;
|
||||
class Utils {
|
||||
|
||||
/*
|
||||
@ Ìåòîä ðåäèðåêòà íà äðóãóþ ñòðàíèöó
|
||||
*/
|
||||
public function redirect( $url ) {
|
||||
header( 'location: ' . $url );
|
||||
}
|
||||
|
||||
/*
|
||||
@ Ìåòîä ðàçäåëåíèÿ ïàðàìåòðîâ
|
||||
@
|
||||
*/
|
||||
public static function lookStats($m) {
|
||||
$ist = array();
|
||||
$di = explode('|',$m);
|
||||
$i = 0; $de = false;
|
||||
while($i<count($di))
|
||||
{
|
||||
$de = explode('=',$di[$i]);
|
||||
if(isset($de[0],$de[1]))
|
||||
{
|
||||
if(!isset($ist[$de[0]])) {
|
||||
$ist[$de[0]] = 0;
|
||||
}
|
||||
$ist[$de[0]] = $de[1];
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
return $ist;
|
||||
}
|
||||
|
||||
/*
|
||||
@ Ìåòîä âûâîäà öåëûõ ÷èñåë
|
||||
@ TYPE: 0 - ëþáîå ÷èñëî
|
||||
*/
|
||||
public function num( $val, $type ) {
|
||||
if( $type == 0 ) {
|
||||
$val = floor((int)$val);
|
||||
}
|
||||
return $val;
|
||||
}
|
||||
|
||||
/*
|
||||
@ Ìåòîä îïðåäåëåíèÿ ïóñòîå çíà÷åíèå èëè íåò
|
||||
@ TYPE: 0 - ÷èñëî, 1 - òåêñò
|
||||
*/
|
||||
public function emptyVal( $val, $type ) {
|
||||
$r = true;
|
||||
if( !isset($val) ) {
|
||||
$r = false;
|
||||
}elseif( $type == 0 ) {
|
||||
if( $val == 0 ) {
|
||||
$r = false;
|
||||
}
|
||||
}elseif( $type == 1 ) {
|
||||
$val = str_replace( ' ', '', str_replace( ' ', '', $val ) );
|
||||
if( $val == '' ) {
|
||||
$r = false;
|
||||
}
|
||||
}
|
||||
return $r;
|
||||
}
|
||||
|
||||
/*
|
||||
@ Ìåòîä ôèëüòðàöèè ñòðîêè (äëÿ POST èëè GET)
|
||||
*/
|
||||
public function fs( $val ) {
|
||||
$val = htmlspecialchars( $val ) ;
|
||||
return $val;
|
||||
}
|
||||
|
||||
/*
|
||||
@ Ìåòîä ñîçäàíèÿ êóêè è óäàëåíèÿ
|
||||
*/
|
||||
public function cookie( $name , $value = NULL , $time = NULL ) {
|
||||
if( $value == NULL ) {
|
||||
return $_COOKIE[$name];
|
||||
}elseif( $value != false ) {
|
||||
if( $time == NULL ) {
|
||||
$time = 86400;
|
||||
}
|
||||
return setcookie( $name , $value , OK + $time , '/' );
|
||||
}else{
|
||||
return setcookie( $name , '' , OK - 86400 , '/' );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@ Ìåòîä íà÷àëà ñåññèè
|
||||
*/
|
||||
public function ses_start() {
|
||||
if ( session_id() ) return true;
|
||||
else return session_start();
|
||||
}
|
||||
|
||||
/*
|
||||
@ Ìåòîäïðîâåðêè òåêñòà
|
||||
*/
|
||||
public function testVal( $val , $min , $max , $sym , $nosym , $nostart , $noend , $data ) {
|
||||
$r = true;
|
||||
if( mb_strlen($val,'UTF-8') < $min || mb_strlen($val,'UTF-8') > $max ) {
|
||||
$r = false;
|
||||
}else{
|
||||
//Äîïóñòèìûå ñèìâîëû
|
||||
if( $sym != false ) {
|
||||
$i = 0;
|
||||
$new_val = mb_strtolower($val,'UTF-8');
|
||||
while( $i < mb_strlen($val,'UTF-8') ) {
|
||||
$j = 0;
|
||||
$k = 0;
|
||||
$k2 = 0;
|
||||
while( $j < mb_strlen($sym,'UTF-8') ) {
|
||||
if( mb_strtolower($val[$i],'UTF-8') == mb_strtolower($sym[$j],'UTF-8') ) {
|
||||
$k++;
|
||||
}else{
|
||||
if( isset($data['noXsym']) ) {
|
||||
//Íåëüçÿ èñïîëüçîâàòü áîëåå X ñèìâîëîâ ïîäðÿä
|
||||
$l = 0;
|
||||
$notxt = '';
|
||||
while( $l < $data['noXsym'] ) {
|
||||
$notxt .= mb_strtolower($sym[$j],'UTF-8');
|
||||
$l++;
|
||||
}
|
||||
if( mb_strpos($new_val,$notxt,NULL,'UTF-8') !== false ) {
|
||||
$k2++;
|
||||
}
|
||||
}
|
||||
}
|
||||
$j++;
|
||||
}
|
||||
if( $k == 0 || $k2 > 0 ) {
|
||||
$i = mb_strlen($val,'UTF-8');
|
||||
$r = false;
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
//Íå äîïóñòèìûå ñèìâîëû
|
||||
if( $nosym != false ) {
|
||||
$i = 0;
|
||||
$new_val = '';
|
||||
while( $i < count($nosym) ) {
|
||||
if( mb_strpos(mb_strtolower($val,'UTF-8'),mb_strtolower($nosym[$i],'UTF-8'),NULL,'UTF-8') !== false ) {
|
||||
$i = count($nosym);
|
||||
$r = false;
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
//íå äîïóñòèìîå íà÷àëî
|
||||
if( $nostart != false ) {
|
||||
$i = 0;
|
||||
$new_val = '';
|
||||
while( $i < count($nostart) ) {
|
||||
if( mb_substr( $val, 0, mb_strlen($nostart[$i],'UTF-8'),'UTF-8') == $nostart[$i] ) {
|
||||
$i = count($nostart);
|
||||
$r = false;
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
//íå äîïóñòèìûé êîíåö
|
||||
if( $noend != false ) {
|
||||
$i = 0;
|
||||
$new_val = '';
|
||||
while( $i < count($noend) ) {
|
||||
if( mb_substr( $val, ( mb_strlen($val,'UTF-8') - mb_strlen($noend[$i],'UTF-8') ) , 0 , 'UTF-8') == $noend[$i] ) {
|
||||
$i = count($noend);
|
||||
$r = false;
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $r;
|
||||
}
|
||||
|
||||
/*
|
||||
@ Ìåòîä "çàâåðøåíèÿ" ñåññèè
|
||||
*/
|
||||
public function ses_end() {
|
||||
if ( session_id() ) {
|
||||
// Åñëè åñòü àêòèâíàÿ ñåññèÿ, óäàëÿåì êóêè ñåññèè,
|
||||
setcookie(session_name(), session_id(), time()-60*60*24);
|
||||
// è óíè÷òîæàåì ñåññèþ
|
||||
session_unset();
|
||||
session_destroy();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@ Ìåòîä îïðåäåëåíèÿ òèïà ñòðîêà, öèôðû, ýë.ïî÷òà
|
||||
*/
|
||||
public function takeType( $val ) {
|
||||
|
||||
if( preg_match( "|^[-0-9a-z_\.]+@[-0-9a-z_^\.]+\.[a-z]{2,6}$|i", $val ) ) {
|
||||
//Ýë.ïî÷òà
|
||||
return 2;
|
||||
}else{
|
||||
preg_match_all( '([0-9])', $val, $matches );
|
||||
$res = implode( NULL, $matches[0] );
|
||||
if( mb_strlen( $val, 'UTF-8' ) > mb_strlen( $res, 'UTF-8' ) ) {
|
||||
//Ñòðîêà
|
||||
return 1;
|
||||
}else{
|
||||
//×èñëî
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@ Ìåòîä ïðîâåðêè ïðàâèëüíîñòè ïàðîëåé
|
||||
*/
|
||||
public function testPass( $psw1, $psw2 ) {
|
||||
if( $psw1 == $psw2 ) {
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@ Ìåòîä ãåíèðàöèè êëþ÷à àâòîðèçàöèè
|
||||
*/
|
||||
public function createAuth( $par ) {
|
||||
if( !isset( $par['rand'] ) ) {
|
||||
$par['rand'] = rand(10000000,90000000);
|
||||
}
|
||||
$r = $par['rand'] . md5( $par['ip'] . '+' . $par['id'] . '+' . $par['pass'] . '+' . $par['rand'] );
|
||||
return $r;
|
||||
}
|
||||
|
||||
/*
|
||||
@ Ìåòîä ïðîâåðêè êëþ÷à àâòîðèçàöèè
|
||||
*/
|
||||
public function testAuth( $auth, $par ) {
|
||||
$par['rand'] = substr( $auth, 0, 8 );
|
||||
if( $auth == self::createAuth( $par ) ) {
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@ Ìåòîä âûâîäà JSON äàííûõ
|
||||
*/
|
||||
public function JSON_Headers() {
|
||||
header('Expires: Mon, 26 Jul 1970 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
@ Ìåòîä ïðèîáðàçîâàíèÿ îáüåêòà â JSON
|
||||
*/
|
||||
public function jsonencode( $val ) {
|
||||
array_walk_recursive( $val, function( &$value, $key ) {
|
||||
$value = iconv( "CP1251", "UTF-8", $value );
|
||||
});
|
||||
return json_encode( $val );
|
||||
//return json_encode( $val );
|
||||
//return self::json_fix_cyr( json_encode( $val ) );
|
||||
}
|
||||
|
||||
/*
|
||||
@ Ìåòîä ïðèîáðàçîâàíèÿ JSON â îáüåêò
|
||||
*/
|
||||
public function jsondecode( $val ) {
|
||||
return json_decode( $val );
|
||||
}
|
||||
|
||||
/*
|
||||
@ Ìåòîä ôèêñà êèðèëëè÷åñêèõ ñèìâîëîâ
|
||||
*/
|
||||
public function json_fix_cyr($json_str) {
|
||||
$cyr_chars = array (
|
||||
'\u0430' => 'à', '\u0410' => 'À',
|
||||
'\u0431' => 'á', '\u0411' => 'Á',
|
||||
'\u0432' => 'â', '\u0412' => 'Â',
|
||||
'\u0433' => 'ã', '\u0413' => 'Ã',
|
||||
'\u0434' => 'ä', '\u0414' => 'Ä',
|
||||
'\u0435' => 'å', '\u0415' => 'Å',
|
||||
'\u0451' => '¸', '\u0401' => '¨',
|
||||
'\u0436' => 'æ', '\u0416' => 'Æ',
|
||||
'\u0437' => 'ç', '\u0417' => 'Ç',
|
||||
'\u0438' => 'è', '\u0418' => 'È',
|
||||
'\u0439' => 'é', '\u0419' => 'É',
|
||||
'\u043a' => 'ê', '\u041a' => 'Ê',
|
||||
'\u043b' => 'ë', '\u041b' => 'Ë',
|
||||
'\u043c' => 'ì', '\u041c' => 'Ì',
|
||||
'\u043d' => 'í', '\u041d' => 'Í',
|
||||
'\u043e' => 'î', '\u041e' => 'Î',
|
||||
'\u043f' => 'ï', '\u041f' => 'Ï',
|
||||
'\u0440' => 'ð', '\u0420' => 'Ð',
|
||||
'\u0441' => 'ñ', '\u0421' => 'Ñ',
|
||||
'\u0442' => 'ò', '\u0422' => 'Ò',
|
||||
'\u0443' => 'ó', '\u0423' => 'Ó',
|
||||
'\u0444' => 'ô', '\u0424' => 'Ô',
|
||||
'\u0445' => 'õ', '\u0425' => 'Õ',
|
||||
'\u0446' => 'ö', '\u0426' => 'Ö',
|
||||
'\u0447' => '÷', '\u0427' => '×',
|
||||
'\u0448' => 'ø', '\u0428' => 'Ø',
|
||||
'\u0449' => 'ù', '\u0429' => 'Ù',
|
||||
'\u044a' => 'ú', '\u042a' => 'Ú',
|
||||
'\u044b' => 'û', '\u042b' => 'Û',
|
||||
'\u044c' => 'ü', '\u042c' => 'Ü',
|
||||
'\u044d' => 'ý', '\u042d' => 'Ý',
|
||||
'\u044e' => 'þ', '\u042e' => 'Þ',
|
||||
'\u044f' => 'ÿ', '\u042f' => 'ß',
|
||||
|
||||
'\r' => '',
|
||||
'\n' => '<br />',
|
||||
'\t' => ''
|
||||
);
|
||||
foreach ($cyr_chars as $cyr_char_key => $cyr_char) {
|
||||
$json_str = str_replace($cyr_char_key, $cyr_char, $json_str);
|
||||
}
|
||||
return $json_str;
|
||||
}
|
||||
|
||||
public static function timeOut($ttm)
|
||||
{
|
||||
$out = '';
|
||||
$time_still = $ttm;
|
||||
$tmp = floor($time_still/2592000);
|
||||
$id=0;
|
||||
if ($tmp > 0)
|
||||
{
|
||||
$id++;
|
||||
if ($id<3) {$out .= $tmp." ìåñ. ";}
|
||||
$time_still = $time_still-$tmp*2592000;
|
||||
}
|
||||
$tmp = floor($time_still/86400);
|
||||
if ($tmp > 0)
|
||||
{
|
||||
$id++;
|
||||
if ($id<3) {$out .= $tmp." äí. ";}
|
||||
$time_still = $time_still-$tmp*86400;
|
||||
}
|
||||
$tmp = floor($time_still/3600);
|
||||
if ($tmp > 0)
|
||||
{
|
||||
$id++;
|
||||
if ($id<3) {$out .= $tmp." ÷. ";}
|
||||
$time_still = $time_still-$tmp*3600;
|
||||
}
|
||||
$tmp = floor($time_still/60);
|
||||
if ($tmp > 0)
|
||||
{
|
||||
$id++;
|
||||
if ($id<3) {$out .= $tmp." ìèí. ";}
|
||||
}
|
||||
if($out=='')
|
||||
{
|
||||
if($time_still<0)
|
||||
{
|
||||
$time_still = 0;
|
||||
}
|
||||
$out = $time_still.' ñåê.';
|
||||
}
|
||||
return $out;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
@ -1,16 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Core;
|
||||
|
||||
class View {
|
||||
|
||||
public function generateTpl($template, $data ) {
|
||||
$twig = new \Twig_Environment(new \Twig_Loader_Filesystem(APP_PATH . DS . 'html'), array('autoescape' => false));
|
||||
$template = $template . '.html';
|
||||
$template = $twig->loadTemplate($template);
|
||||
return $template->render($data);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
@ -1 +0,0 @@
|
||||
deny from all
|
@ -1,31 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="https://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
|
||||
<link href="https://img.new-combats.com/css/main.css?v={{ ver }}" rel="stylesheet" type="text/css">
|
||||
<link href="/core/static/styles/location/comission.css?v={{ ver }}" rel="stylesheet" type="text/css">
|
||||
<link href="/core/static/styles/location.line.css?v={{ ver }}" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="/js/jquery.js"></script>
|
||||
<script type="text/javascript" src="/core/static/scripts/location/admin.js?v={{ ver }}"></script>
|
||||
<script>
|
||||
|
||||
</script>
|
||||
<!--
|
||||
Ñåãîäíÿ ìû ïðîâåðèì êòî ñëàáàê, à êòî âîèí |
|
||||
Ëó÷øàÿ áðàóçåðíàÿ îíëàéí èãðà!
|
||||
-->
|
||||
<title>{{ title }}</title>
|
||||
</head>
|
||||
<body onLoad="bug.start();" style="padding-top:0px; margin-top:7px; height:100%; background-color:#E2E0E0;">
|
||||
{% if user.admin > 0 %}
|
||||
<!-- -->
|
||||
Ïåðñîíàæ: <b>{{ user.login }} (<font color="red">Âëàäåëåö ðåñóðñà</font>)</b><hr>
|
||||
<div id="mainblock">
|
||||
|
||||
</div>
|
||||
<!-- -->
|
||||
{% else %}
|
||||
Äîñòóï ðàçðåøåí òîëüêî âëàäåëüöàì ðåñóðñà.
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
@ -1,61 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="https://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
|
||||
<link href="https://img.new-combats.com/css/main.css?v={{ ver }}" rel="stylesheet" type="text/css">
|
||||
<link href="/core/static/styles/location/auction.css?v={{ ver }}" rel="stylesheet" type="text/css">
|
||||
<link href="/core/static/styles/location.line.css?v={{ ver }}" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="/js/jquery.js"></script>
|
||||
<script type="text/javascript" src="/core/static/scripts/location/auction.js?v={{ ver }}"></script>
|
||||
<script type="text/javascript" src="/core/static/scripts/location.line.js?v={{ ver }}"></script>
|
||||
<script type="text/javascript" src="/core/static/scripts/item.js?v={{ ver }}"></script>
|
||||
<script>
|
||||
locjs.data.user = {
|
||||
'id':{{ (0+user.id) }},
|
||||
'login':'{{ user.login }}',
|
||||
'align':{{ (0+user.align) }},
|
||||
'level':{{ (0+user.level) }},
|
||||
'money':{{ (0+user.money) }},
|
||||
'massaNow':{{ (0+user.massaNow) }},
|
||||
'massaMax':{{ (0+user.massaMax) }},
|
||||
|
||||
'silver':{{ (0+stats.st.silver) }},
|
||||
|
||||
'timeGo':{{ (0+stats.timeGo) }},
|
||||
'timeGoL':{{ (0+stats.timeGoL) }},
|
||||
'timeNow':{{ OK }}
|
||||
};
|
||||
|
||||
locjs.data.locations = [
|
||||
{% if user.city == 'capitalcity' %}['1.180.0.226' , 226 , 'Ïî÷òîâîå îòäåëåíèå' , 0]{% endif %}
|
||||
{% if user.city == 'angelscity' %}['2.180.0.262' , 262 , 'Ïî÷òîâîå îòäåëåíèå' , 0]{% endif %}
|
||||
];
|
||||
</script>
|
||||
<!--
|
||||
Ñåãîäíÿ ìû ïðîâåðèì êòî ñëàáàê, à êòî âîèí |
|
||||
Ëó÷øàÿ áðàóçåðíàÿ îíëàéí èãðà!
|
||||
-->
|
||||
<title>{{ title }}</title>
|
||||
</head>
|
||||
<body onLoad="locjs.start();" style="padding-top:0px; margin-top:7px; height:100%; background-color:#E2E0E0;">
|
||||
<!-- -->
|
||||
<div id="error"></div>
|
||||
<div id="auction_body" class="middle">
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
<!-- -->
|
||||
<div id="error"></div>
|
||||
<div id="auction_main">
|
||||
<div id="auction_title"></div>
|
||||
<div id="auction_content"></div>
|
||||
</div>
|
||||
<!-- -->
|
||||
</div>
|
||||
</div>
|
||||
<div id="auction_menu" class="right-sidebar">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- -->
|
||||
</body>
|
||||
</html>
|
@ -1,85 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="https://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
|
||||
<link href="https://img.new-combats.com/css/main.css?v={{ ver }}" rel="stylesheet" type="text/css">
|
||||
<link href="/core/static/styles/location/comission.css?v={{ ver }}" rel="stylesheet" type="text/css">
|
||||
<link href="/core/static/styles/location.line.css?v={{ ver }}" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="/js/jquery.js"></script>
|
||||
<script type="text/javascript" src="/core/static/scripts/location/comission.js?v={{ ver }}"></script>
|
||||
<script type="text/javascript" src="/core/static/scripts/location.line.js?v={{ ver }}"></script>
|
||||
<script type="text/javascript" src="/core/static/scripts/item.js?v={{ ver }}"></script>
|
||||
<script>
|
||||
locjs.data.user = {
|
||||
'id':{{ (0+user.id) }},
|
||||
'login':'{{ user.login }}',
|
||||
'align':{{ (0+user.align) }},
|
||||
'level':{{ (0+user.level) }},
|
||||
'money':{{ (0+user.money) }},
|
||||
'massaNow':{{ (0+user.massaNow) }},
|
||||
'massaMax':{{ (0+user.massaMax) }},
|
||||
|
||||
'timeGo':{{ (0+stats.timeGo) }},
|
||||
'timeGoL':{{ (0+stats.timeGoL) }},
|
||||
'timeNow':{{ OK }}
|
||||
};
|
||||
locjs.data.menu = [
|
||||
["Îðóæèå: êàñòåòû,íîæè",1,0],
|
||||
["òîïîðû",2,1],
|
||||
["äóáèíû,áóëàâû",3,1],
|
||||
["ìå÷è",4,1],
|
||||
["ìàãè÷åñêèå ïîñîõè",5,1],
|
||||
["Îäåæäà: ñàïîãè",6,0],
|
||||
["ïåð÷àòêè",7,1],
|
||||
["ðóáàõè",8,1],
|
||||
["ëåãêàÿ áðîíÿ",9,1],
|
||||
["òÿæåëàÿ áðîíÿ",10,1],
|
||||
["øëåìû",11,1],
|
||||
["íàðó÷è",12,1],
|
||||
["ïîÿñà",13,1],
|
||||
["ïîíîæè",14,1],
|
||||
["Ùèòû",15,1],
|
||||
["Þâåëèðíûå òîâàðû: ñåðüãè",16,0],
|
||||
["îæåðåëüÿ",17,1],
|
||||
["êîëüöà",18,1],
|
||||
["Ïðî÷åå: Çàêëèíàíèÿ",19,0],
|
||||
["Ýëèêñèðû",20,1],
|
||||
["×àðêè",21,1],
|
||||
["Ðóíû",22,1],
|
||||
["Ðåñóðñû",23,1],
|
||||
["Êîðì äëÿ çâåðåé",24,1],
|
||||
["Îñòàëüíîå",25,0]
|
||||
];
|
||||
|
||||
locjs.data.locations = [
|
||||
{% if user.city == 'capitalcity' %}['1.180.0.9' , 9 , 'Öåíòðàëüíàÿ ïëîùàäü' , 0]{% endif %}
|
||||
{% if user.city == 'angelscity' %}['2.180.0.234' , 234 , 'Öåíòðàëüíàÿ ïëîùàäü' , 0]{% endif %}
|
||||
];
|
||||
</script>
|
||||
<!--
|
||||
Ñåãîäíÿ ìû ïðîâåðèì êòî ñëàáàê, à êòî âîèí |
|
||||
Ëó÷øàÿ áðàóçåðíàÿ îíëàéí èãðà!
|
||||
-->
|
||||
<title>{{ title }}</title>
|
||||
</head>
|
||||
<body onLoad="locjs.start();" style="padding-top:0px; margin-top:7px; height:100%; background-color:#E2E0E0;">
|
||||
<!-- -->
|
||||
<div id="comission_body" class="middle">
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
<!-- -->
|
||||
<div id="error"></div>
|
||||
<div id="comission_main">
|
||||
<div id="comission_title"></div>
|
||||
<div id="comission_content" class="borderandpadding0px"></div>
|
||||
</div>
|
||||
<!-- -->
|
||||
</div>
|
||||
</div>
|
||||
<div id="comission_menu" class="right-sidebar">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- -->
|
||||
</body>
|
||||
</html>
|
@ -1,25 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="https://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
|
||||
<link href="https://img.new-combats.com/css/main.css?v={{ ver }}" rel="stylesheet" type="text/css">
|
||||
<link href="/core/static/styles/location/comission.css?v={{ ver }}" rel="stylesheet" type="text/css">
|
||||
<link href="/core/static/styles/location.line.css?v={{ ver }}" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="/js/jquery.js"></script>
|
||||
<script type="text/javascript" src="/core/static/scripts/location/debuger.js?v={{ ver }}"></script>
|
||||
<script>
|
||||
bug.skills = [ {{skills}} ];
|
||||
</script>
|
||||
<!--
|
||||
Ñåãîäíÿ ìû ïðîâåðèì êòî ñëàáàê, à êòî âîèí |
|
||||
Ëó÷øàÿ áðàóçåðíàÿ îíëàéí èãðà!
|
||||
-->
|
||||
<title>{{ title }}</title>
|
||||
</head>
|
||||
<body onLoad="bug.start();" style="padding-top:0px; margin-top:7px; height:100%; background-color:#E2E0E0;">
|
||||
<!-- -->
|
||||
Ïåðñîíàæ: <b>{{ user.login }}</b><hr>
|
||||
<div id="mainblock"></div>
|
||||
<!-- -->
|
||||
</body>
|
||||
</html>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user