Убрал вызов User->addItem.

This commit is contained in:
Ivor Barhansky 2023-12-01 21:27:28 +02:00
parent 44856fa9c1
commit ad80a30a5f
34 changed files with 1408 additions and 1433 deletions

View File

@ -1050,7 +1050,7 @@ class Dungeon
);
if (isset($it['id'])) {
$r .= 'Вы обнаружили предмет &quot;<b>' . $it['name'] . '</b>&quot;.<br>';
$this->addItem(
ItemsModel::addItem(
['uid' => $this->userinfo['id'], 'iid' => $it['id'], 'x' => $this->userinfo['x'], 'y' => $this->userinfo['y'], 'del' => (int)$itm[4]]
);
}
@ -1099,7 +1099,7 @@ class Dungeon
$u->addAction(
time(), 'takeit_' . $this->info['id'] . '_' . $obj['id'], $this->userinfo['city']
);
$this->addItem(
ItemsModel::addItem(
['uid' => $this->userinfo['id'], 'iid' => $it['id'], 'x' => $this->userinfo['x'], 'y' => $this->userinfo['y'], 'del' => (int)$itm[4]]
);
$nj++;
@ -1147,7 +1147,7 @@ class Dungeon
$u->addAction(
time(), 'takeit_' . $this->info['id'] . '_' . $obj['id'], $this->userinfo['city']
);
$this->addItem(
ItemsModel::addItem(
['uid' => $this->userinfo['id'], 'iid' => $it['id'], 'x' => $this->userinfo['x'], 'y' => $this->userinfo['y'], 'del' => (int)$itm[4]]
);
$nj++;

View File

@ -1,9 +1,7 @@
<?php
if(!defined('GAME'))
{
if (!defined('GAME')) {
die();
}
//добавляем снежок в инвентарь
$this->addItem(1000,$this->info['id']);
?>
ItemsModel::addItem(1000, $this->info['id']);

View File

@ -1,4 +1,7 @@
<?php
use User\ItemsModel;
if(!defined('GAME'))
{
die();
@ -15,40 +18,40 @@ if(date('Y')==2013 || $u->info['id'] == 1) {
7. Новогодний Эликсир
*/
//Снежок 0/13 (x1)
$idit = \User\ItemsModel::addItem(1000,$u->info['id']);
$idit = ItemsModel::addItem(1000,$u->info['id']);
if($idit > 0) {
mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "13" WHERE `id` = "'.$idit.'" LIMIT 1');
//Новогодний эликсир (x1)
$idit = \User\ItemsModel::addItem(997,$u->info['id']);
$idit = ItemsModel::addItem(997,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "7" WHERE `id` = "'.$idit.'" LIMIT 1');
//Новогодний эликсир (x1)
$idit = \User\ItemsModel::addItem(2870,$u->info['id']);
$idit = ItemsModel::addItem(2870,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "7" WHERE `id` = "'.$idit.'" LIMIT 1');
//Звездное сияние (x1)
$idit = \User\ItemsModel::addItem(1462,$u->info['id']);
$idit = ItemsModel::addItem(1462,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "7" WHERE `id` = "'.$idit.'" LIMIT 1');
//Открытка (x1)
$idit = \User\ItemsModel::addItem(996,$u->info['id']);
$idit = ItemsModel::addItem(996,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Новый Год" , `gtxt1` = "Администрация проекта поздравляет Вас с Новым, 2013, Годом!" WHERE `id` = "'.$idit.'" LIMIT 1');
//Нападалка 0/13 (x1)
$idit = \User\ItemsModel::addItem(874,$u->info['id']);
$idit = ItemsModel::addItem(874,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "13" WHERE `id` = "'.$idit.'" LIMIT 1');
//Кольцо жизни (x1)
$idit = \User\ItemsModel::addItem(2101,$u->info['id'],'|noremont=1|srok=1209600|sudba='.$u->info['login']);
$idit = ItemsModel::addItem(2101,$u->info['id'],'|noremont=1|srok=1209600|sudba='.$u->info['login']);
mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "13" WHERE `id` = "'.$idit.'" LIMIT 1');
//Восстановление Энергии 900НР (x3)
$idit = \User\ItemsModel::addItem(2710,$u->info['id']);
$idit = ItemsModel::addItem(2710,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Старый Год" WHERE `id` = "'.$idit.'" LIMIT 1');
$idit = \User\ItemsModel::addItem(2710,$u->info['id']);
$idit = ItemsModel::addItem(2710,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Старый Год" WHERE `id` = "'.$idit.'" LIMIT 1');
$idit = \User\ItemsModel::addItem(2710,$u->info['id']);
$idit = ItemsModel::addItem(2710,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Старый Год" WHERE `id` = "'.$idit.'" LIMIT 1');
$u->error = 'Вы успешно использовали &quot;'.$itm['name'].'&quot;. В инвентарь добавлены подарки. С Новым, 2013, Годом!';

View File

@ -1,4 +1,7 @@
<?php
use User\ItemsModel;
if(!defined('GAME'))
{
die();
@ -15,38 +18,38 @@ if(date('Y')==2023) {
7. Новогодний Эликсир
*/
//рыба (x1)
$idit = \User\ItemsModel::addItem(5009,$u->info['id']);
$idit = ItemsModel::addItem(5009,$u->info['id']);
if($idit > 0) {
mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "3" WHERE `id` = "'.$idit.'" LIMIT 1');
//мастера
$idit = \User\ItemsModel::addItem(4041,$u->info['id']);
$idit = ItemsModel::addItem(4041,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "3" WHERE `id` = "'.$idit.'" LIMIT 1');
//искуства
$idit = \User\ItemsModel::addItem(4948,$u->info['id']);
$idit = ItemsModel::addItem(4948,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "3" WHERE `id` = "'.$idit.'" LIMIT 1');
//жж6
$idit = \User\ItemsModel::addItem(3101,$u->info['id']);
$idit = ItemsModel::addItem(3101,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "5" WHERE `id` = "'.$idit.'" LIMIT 1');
//Открытка (x1)
$idit = \User\ItemsModel::addItem(996,$u->info['id']);
$idit = ItemsModel::addItem(996,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Новый Год" , `gtxt1` = "Администрация проекта поздравляет Вас с Новым, 2023, Годом!" WHERE `id` = "'.$idit.'" LIMIT 1');
//точилка
$idit = \User\ItemsModel::addItem(6457,$u->info['id']);
$idit = ItemsModel::addItem(6457,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "100" WHERE `id` = "'.$idit.'" LIMIT 1');
//чек на 100 екров
$idit = \User\ItemsModel::addItem(5023,$u->info['id']);
$idit = ItemsModel::addItem(5023,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "1" WHERE `id` = "'.$idit.'" LIMIT 1');
//цепь защитника
$idit = \User\ItemsModel::addItem(6459,$u->info['id']);
$idit = ItemsModel::addItem(6459,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "100" WHERE `id` = "'.$idit.'" LIMIT 1');

View File

@ -1,4 +1,7 @@
<?php
use User\ItemsModel;
if(!defined('GAME'))
{
die();
@ -17,13 +20,13 @@ $rnd0['itm3'] = $rnd0[rand(0,count($rnd0))];
$rnd0['itm1'] = mysql_fetch_array(mysql_query('SELECT `id`,`name` FROM `items_main` WHERE `id` = "'.mysql_real_escape_string($rnd0['itm1']).'" LIMIT 1'));
$rnd0['itm2'] = mysql_fetch_array(mysql_query('SELECT `id`,`name` FROM `items_main` WHERE `id` = "'.mysql_real_escape_string($rnd0['itm2']).'" LIMIT 1'));
\User\ItemsModel::addItem($rnd0['itm1']['id'],$u->info['id'],'|srok=1209600|sudba='.$u->info['login']);
\User\ItemsModel::addItem($rnd0['itm2']['id'],$u->info['id'],'|srok=1209600|sudba='.$u->info['login']);
ItemsModel::addItem($rnd0['itm1']['id'],$u->info['id'],'|srok=1209600|sudba='.$u->info['login']);
ItemsModel::addItem($rnd0['itm2']['id'],$u->info['id'],'|srok=1209600|sudba='.$u->info['login']);
if(rand(0,7) == 2) {
$rnd0['itm3'] = mysql_fetch_array(mysql_query('SELECT `id`,`name` FROM `items_main` WHERE `id` = "'.mysql_real_escape_string($rnd0['itm3']).'" LIMIT 1'));
}else{
\User\ItemsModel::addItem($rnd0['itm3']['id'],$u->info['id'],'|srok=1209600|sudba='.$u->info['login']);
ItemsModel::addItem($rnd0['itm3']['id'],$u->info['id'],'|srok=1209600|sudba='.$u->info['login']);
}
$u->deleteItem($itm['id'],$u->info['id']);

View File

@ -1,11 +1,11 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
$io .= '<i>Акционный клановый комплект</i>, ';
$this->addItem(11128,$this->info['id'],'|nosale=1|nodelete=1|sudba=0');
$this->addItem(11128,$this->info['id'],'|nosale=1|nodelete=1|sudba=0');
?>
$io .= '<i>Акционный клановый комплект</i>, ';
ItemsModel::addItem(11128, $this->info['id'], '|nosale=1|nodelete=1|sudba=0');
ItemsModel::addItem(11128, $this->info['id'], '|nosale=1|nodelete=1|sudba=0');

View File

@ -1,91 +1,69 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
if($tr['var_id'] == 1) {
if ($tr['var_id'] == 1) {
//Бронзовая книга
$pgs = array('all' => 0, 'sudba' => 0);
$sp_pg = mysql_query('SELECT `id`,`item_id`,`gift` FROM `items_users` WHERE `item_id` >= 3143 AND `item_id` <= 3192 AND `delete` = 0 AND `inSHop` = 0 AND `inTransfer` = 0 AND `uid` = "'.$this->info['id'].'"');
while($pl_pg = mysql_fetch_array($sp_pg)) {
$pg_id = $pl_pg['item_id']-3142;
if(!isset($pgs[$pg_id])) {
$pgs = ['all' => 0, 'sudba' => 0];
$sp_pg = mysql_query(
'SELECT `id`,`item_id`,`gift` FROM `items_users` WHERE `item_id` >= 3143 AND `item_id` <= 3192 AND `delete` = 0 AND `inSHop` = 0 AND `inTransfer` = 0 AND `uid` = "' . $this->info['id'] . '"'
);
while ($pl_pg = mysql_fetch_array($sp_pg)) {
$pg_id = $pl_pg['item_id'] - 3142;
if (!isset($pgs[$pg_id])) {
$pgs[$pg_id] = $pl_pg['id'];
if($pl_pg['gift'] != '') {
if ($pl_pg['gift'] != '') {
$pgs['sudba']++;
}
$pgs['all']++;
}
}
$lk = 1;
while($lk <= 50) {
if($pgs[$lk] < 1) {
$npgs .= ', '.$lk;
while ($lk <= 50) {
if ($pgs[$lk] < 1) {
$npgs .= ', ' . $lk;
}
$lk++;
}
if($pgs['all'] < 50) {
$npgs = ltrim($npgs,', ');
$io .= 'Не удалось собрать книгу, необходимо наличие всех страниц. ['.$pgs['all'].'/50]<br>Недостающие страницы: '.$npgs;
if ($pgs['all'] < 50) {
$npgs = ltrim($npgs, ', ');
$io .= 'Не удалось собрать книгу, необходимо наличие всех страниц. [' . $pgs['all'] . '/50]<br>Недостающие страницы: ' . $npgs;
$no_open_itm = true;
}else{
} else {
//забираем страницы
$pgs['delete'] = '';
$sp_pg = 1;
while($sp_pg <= 50) {
$pgs['delete'] .= '`id` = "'.$pgs[$sp_pg].'" OR ';
while ($sp_pg <= 50) {
$pgs['delete'] .= '`id` = "' . $pgs[$sp_pg] . '" OR ';
$sp_pg++;
}
if($pgs['delete'] != '') {
$pgs['delete'] = rtrim($pgs['delete'],' OR ');
$pgs['delete'] = '('.$pgs['delete'].') AND `uid` = "'.$this->info['id'].'" LIMIT 50';
mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE '.$pgs['delete']);
if ($pgs['delete'] != '') {
$pgs['delete'] = rtrim($pgs['delete'], ' OR ');
$pgs['delete'] = '(' . $pgs['delete'] . ') AND `uid` = "' . $this->info['id'] . '" LIMIT 50';
mysql_query('UPDATE `items_users` SET `delete` = "' . time() . '" WHERE ' . $pgs['delete']);
}
$sz = $this->testAction('`vars` = "gold_sanich_bonus" LIMIT 1',1);
/*if(!isset($sz['id'])) {
$this->addAction(time(),'gold_sanich_bonus','gold_sanich_bonus');
$sz = $this->testAction('`vars` = "gold_sanich_bonus" LIMIT 1', 1);
//выдаем книгу
if($pgs['sudba'] > 0) {
if ($pgs['sudba'] > 0) {
//привязанная
$this->addItem(3198,$this->info['id'],'|sudba='.$this->info['login']);
}else{
ItemsModel::addItem(3196, $this->info['id'], '|sudba=' . $this->info['login']);
} else {
//не привязанная
$this->addItem(3198,$this->info['id']);
}
$io .= 'Вы получили предмет &quot;Золотая Книга&quot;<br>Вы собрали книгу Саныча одним из первых поэтому получаете Золотую книгу вместо Бронзовой! ;)';
}else{
$sz = $this->testAction('`vars` = "silver_sanich_bonus" LIMIT 1',1);
if(!isset($sz['id'])) {
$this->addAction(time(),'silver_sanich_bonus','silver_sanich_bonus');
//выдаем книгу
if($pgs['sudba'] > 0) {
//привязанная
$this->addItem(3197,$this->info['id'],'|sudba='.$this->info['login']);
}else{
//не привязанная
$this->addItem(3197,$this->info['id']);
}
$io .= 'Вы получили предмет &quot;Серебряная Книга&quot;<br>Вы собрали книгу Саныча одним из первых поэтому получаете Серебряную книгу вместо Бронзовой! ;)';
}else{*/
//выдаем книгу
if($pgs['sudba'] > 0) {
//привязанная
$this->addItem(3196,$this->info['id'],'|sudba='.$this->info['login']);
}else{
//не привязанная
$this->addItem(3196,$this->info['id']);
ItemsModel::addItem(3196, $this->info['id']);
}
$io .= 'Вы получили предмет &quot;Бронзовая Книга&quot;';
//}
//}
}
}else{
} else {
$io .= 'Данный предмет нельзя использовать!';
$no_open_itm = true;
}
?>
}

View File

@ -1,46 +1,47 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
$io .= '<i>Подарочный комплект Критовика</i>, ';
$this->addItem(842,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(842,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(749,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(666,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2469,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(580,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(594,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(642,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(814,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(777,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(787,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(803,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(803,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(803,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$io .= '<i>Подарочный комплект Критовика</i>, ';
ItemsModel::addItem(842, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(842, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(749, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(666, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2469, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(580, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(594, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(642, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(814, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(777, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(787, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(803, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(803, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(803, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
$io .= '<i>Свитки и прочие материалы....</i>, ';
$this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2621,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2621,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(871,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(994,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$io .= '<i>Свитки и прочие материалы....</i>, ';
ItemsModel::addItem(2712, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2621, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2621, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(871, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2139, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2140, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(5046, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4941, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(994, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(1001, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
?>

View File

@ -1,46 +1,46 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
$io .= '<i>Подарочный комплект Уворота</i>, ';
$this->addItem(4953,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4953,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4596,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4598,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2469,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4961,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4967,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4969,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4601,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4599,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4986,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4595,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4597,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4597,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4597,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$io .= '<i>Подарочный комплект Уворота</i>, ';
ItemsModel::addItem(4953, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4953, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4596, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4598, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2469, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4961, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4967, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4969, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4601, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4599, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4986, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4595, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4597, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4597, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4597, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
$io .= '<i>Свитки и прочие материалы....</i>, ';
$this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2643,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2643,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(872,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(994,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
?>
$io .= '<i>Свитки и прочие материалы....</i>, ';
ItemsModel::addItem(2712, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2643, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2643, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(872, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2139, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2140, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(5046, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4941, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(994, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(1001, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);

View File

@ -1,45 +1,46 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
$io .= '<i>Подарочный комплект Мага Огня</i>, ';
$this->addItem(850,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(751,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(669,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(1176,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(822,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(583,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(597,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(644,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(810,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4983,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4543,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(5003,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(5003,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(5003,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$io .= '<i>Подарочный комплект Мага Огня</i>, ';
ItemsModel::addItem(850, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(751, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(669, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(1176, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(822, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(583, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(597, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(644, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(810, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4983, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4543, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(5003, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(5003, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(5003, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
$io .= '<i>Свитки и прочие материалы....</i>, ';
$this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2687,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(873,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); // элик
$this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4942,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(1460,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2146,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); //усилок
$this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$io .= '<i>Свитки и прочие материалы....</i>, ';
ItemsModel::addItem(2712, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2687, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(873, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); // элик
ItemsModel::addItem(2139, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2140, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(5046, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4941, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4942, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(1460, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2146, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); //усилок
ItemsModel::addItem(1001, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
?>

View File

@ -1,44 +1,45 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
$io .= '<i>Подарочный комплект Танка</i>, ';
$this->addItem(4648,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4654,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4647,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4651,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2469,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4962,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4968,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4650,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4653,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4652,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4987,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4646,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4649,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4649,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4649,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$io .= '<i>Подарочный комплект Танка</i>, ';
ItemsModel::addItem(4648, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4654, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4647, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4651, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2469, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4962, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4968, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4650, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4653, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4652, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4987, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4646, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4649, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4649, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4649, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
$io .= '<i>Свитки и прочие материалы....</i>, ';
$this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2430,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(870,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(994,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$io .= '<i>Свитки и прочие материалы....</i>, ';
ItemsModel::addItem(2712, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2430, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(870, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2139, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2140, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(5046, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4941, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(994, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(1001, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
?>

View File

@ -1,46 +1,47 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
$io .= '<i>Подарочный комплект Силача ( Топора )</i>, ';
$this->addItem(6483,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(6483,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(6484,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(6485,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2469,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(6486,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(6487,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(6488,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(6489,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(6490,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(6491,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(6492,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(6493,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(6493,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(6493,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$io .= '<i>Подарочный комплект Силача ( Топора )</i>, ';
ItemsModel::addItem(6483, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(6483, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(6484, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(6485, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2469, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(6486, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(6487, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(6488, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(6489, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(6490, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(6491, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(6492, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(6493, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(6493, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(6493, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
$io .= '<i>Свитки и прочие материалы....</i>, ';
$this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2665,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2665,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(870,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(994,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$io .= '<i>Свитки и прочие материалы....</i>, ';
ItemsModel::addItem(2712, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2665, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2665, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(870, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2139, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2140, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(5046, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4941, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(994, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(1001, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
?>

View File

@ -1,46 +1,47 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
$io .= '<i>Подарочный комплект Уворота</i>, ';
$this->addItem(605,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(605,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(748,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(667,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2469,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(735,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(579,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(593,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(641,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(813,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(775,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(786,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(802,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(802,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(802,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$io .= '<i>Подарочный комплект Уворота</i>, ';
ItemsModel::addItem(605, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(605, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(748, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(667, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2469, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(735, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(579, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(593, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(641, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(813, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(775, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(786, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(802, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(802, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(802, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
$io .= '<i>Свитки и прочие материалы....</i>, ';
$this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2643,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2643,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(872,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(994,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$io .= '<i>Свитки и прочие материалы....</i>, ';
ItemsModel::addItem(2712, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2643, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2643, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(872, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2139, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2140, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(5046, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4941, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(994, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(1001, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
?>

View File

@ -1,45 +1,46 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
$io .= '<i>Подарочный комплект Мага Воды</i>, ';
$this->addItem(851,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(753,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(670,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(1176,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(823,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(584,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(598,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(645,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(812,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4984,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4544,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(5004,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(5004,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(5004,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$io .= '<i>Подарочный комплект Мага Воды</i>, ';
ItemsModel::addItem(851, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(753, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(670, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(1176, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(823, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(584, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(598, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(645, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(812, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4984, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4544, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(5004, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(5004, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(5004, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
$io .= '<i>Свитки и прочие материалы....</i>, ';
$this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2687,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(873,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); // элик
$this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4942,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(1460,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2147,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); //усилок
$this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$io .= '<i>Свитки и прочие материалы....</i>, ';
ItemsModel::addItem(2712, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2687, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(873, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); // элик
ItemsModel::addItem(2139, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2140, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(5046, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4941, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4942, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(1460, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2147, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); //усилок
ItemsModel::addItem(1001, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
?>

View File

@ -1,45 +1,46 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
$io .= '<i>Подарочный комплект Мага Воздуха</i>, ';
$this->addItem(848,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(752,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(671,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(1176,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(820,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(581,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(595,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(646,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(811,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4982,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4545,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(5002,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(5002,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(5002,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$io .= '<i>Подарочный комплект Мага Воздуха</i>, ';
ItemsModel::addItem(848, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(752, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(671, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(1176, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(820, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(581, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(595, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(646, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(811, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4982, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4545, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(5002, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(5002, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(5002, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
$io .= '<i>Свитки и прочие материалы....</i>, ';
$this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2687,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(873,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); // элик
$this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4942,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(1460,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2148,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); //усилок
$this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$io .= '<i>Свитки и прочие материалы....</i>, ';
ItemsModel::addItem(2712, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2687, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(873, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); // элик
ItemsModel::addItem(2139, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2140, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(5046, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4941, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4942, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(1460, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2148, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); //усилок
ItemsModel::addItem(1001, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
?>

View File

@ -1,45 +1,46 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
$io .= '<i>Подарочный комплект Мага Земли</i>, ';
$this->addItem(849,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(750,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(668,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(1176,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(821,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(582,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(596,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(643,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(809,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4985,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4546,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(5005,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(5005,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(5005,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$io .= '<i>Подарочный комплект Мага Земли</i>, ';
ItemsModel::addItem(849, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(750, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(668, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(1176, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(821, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(582, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(596, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(643, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(809, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4985, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4546, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(5005, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(5005, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(5005, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
$io .= '<i>Свитки и прочие материалы....</i>, ';
$this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2687,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(873,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); // элик
$this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(4942,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(1460,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(2149,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); //усилок
$this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']);
$io .= '<i>Свитки и прочие материалы....</i>, ';
ItemsModel::addItem(2712, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2687, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(873, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); // элик
ItemsModel::addItem(2139, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2140, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(5046, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4941, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(4942, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(1460, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(2149, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); //усилок
ItemsModel::addItem(1001, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
?>

View File

@ -1,149 +1,145 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
if($tr['var_id'] > 4) {
if ($tr['var_id'] > 4) {
//маг
$itmadd = array(
$itmadd = [
//3053 - вечность , 3052 - МР 1000
//суперсвиток
0 => array(2142,2143,2144,2141,3052),
0 => [2142, 2143, 2144, 2141, 3052],
//простые свитки
1 => array(3053,3043,2545,2709,874,2391),
1 => [3053, 3043, 2545, 2709, 874, 2391],
//гарантированные
2 => array(3044)
);
2 => [3044],
];
$tr['var_id'] -= 4;
}else{
} else {
//воин
$itmadd = array(
$itmadd = [
//суперсвиток
0 => array(911,1172,2143,2144,1173),
0 => [911, 1172, 2143, 2144, 1173],
//простые свитки
1 => array(3043,2545,2709,874,2391),
1 => [3043, 2545, 2709, 874, 2391],
//гарантированные
2 => array(3044)
);
}
2 => [3044],
];
}
if($tr['var_id'] > 4) {
if ($tr['var_id'] > 4) {
//Маг
$i3[9] = $this->addItem(4676,$this->info['id'],'|notr=1|sudba='.$this->info['login']);
}else{
$i3[9] = ItemsModel::addItem(4676, $this->info['id'], '|notr=1|sudba=' . $this->info['login']);
} else {
//Воин
$i3[9] = $this->addItem(2870,$this->info['id'],'|notr=1|sudba='.$this->info['login']);
}
$i3[9] = ItemsModel::addItem(2870, $this->info['id'], '|notr=1|sudba=' . $this->info['login']);
}
if($tr['var_id'] == 1) {
if ($tr['var_id'] == 1) {
// 200 екр. - 1 суперсвиток 0/15, 2 простых 0/75 + Эссенция Здоровья 0/1
$i4 = array(
$itmadd[0][rand(0,count($itmadd[0])-1)],
$itmadd[1][rand(0,count($itmadd[1])-1)],
$itmadd[1][rand(0,count($itmadd[1])-1)]
);
$i4 = [
$itmadd[0][rand(0, count($itmadd[0]) - 1)],
$itmadd[1][rand(0, count($itmadd[1]) - 1)],
$itmadd[1][rand(0, count($itmadd[1]) - 1)],
];
$i3 = array();
$i3 = [];
$i3[0] = ItemsModel::addItem($i4[0], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 15);
$i3[1] = ItemsModel::addItem($i4[1], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 75);
$i3[2] = ItemsModel::addItem($i4[2], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 75);
$i3[3] = ItemsModel::addItem(3044, $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 1);
$i3[0] = $this->addItem($i4[0],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,15);
$i3[1] = $this->addItem($i4[1],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,75);
$i3[2] = $this->addItem($i4[2],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,75);
$i3[3] = $this->addItem(3044,$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,1);
if($io == '') {
if ($io == '') {
$io = 'Какие-то предметы добавлены к Вам в инвентарь...';
}
}elseif($tr['var_id'] == 2) {
} elseif ($tr['var_id'] == 2) {
// 400 екр. - 2 суперсвитка 0/15, 4 простых 0/75 + Эссенция Здоровья 0/2 + новогодний эликсир 0/7
$i4 = array(
$itmadd[0][rand(0,count($itmadd[0])-1)],
$itmadd[0][rand(0,count($itmadd[0])-1)],
$itmadd[1][rand(0,count($itmadd[1])-1)],
$itmadd[1][rand(0,count($itmadd[1])-1)],
$itmadd[1][rand(0,count($itmadd[1])-1)],
$itmadd[1][rand(0,count($itmadd[1])-1)]
);
$i4 = [
$itmadd[0][rand(0, count($itmadd[0]) - 1)],
$itmadd[0][rand(0, count($itmadd[0]) - 1)],
$itmadd[1][rand(0, count($itmadd[1]) - 1)],
$itmadd[1][rand(0, count($itmadd[1]) - 1)],
$itmadd[1][rand(0, count($itmadd[1]) - 1)],
$itmadd[1][rand(0, count($itmadd[1]) - 1)],
];
$i3 = array();
$i3 = [];
$i3[0] = ItemsModel::addItem($i4[0], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 15);
$i3[1] = ItemsModel::addItem($i4[1], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 15);
$i3[2] = ItemsModel::addItem($i4[2], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 75);
$i3[3] = ItemsModel::addItem($i4[3], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 75);
$i3[4] = ItemsModel::addItem($i4[4], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 75);
$i3[5] = ItemsModel::addItem($i4[5], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 75);
$i3[0] = $this->addItem($i4[0],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,15);
$i3[1] = $this->addItem($i4[1],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,15);
$i3[6] = ItemsModel::addItem(3044, $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 2);
$i3[2] = $this->addItem($i4[2],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,75);
$i3[3] = $this->addItem($i4[3],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,75);
$i3[4] = $this->addItem($i4[4],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,75);
$i3[5] = $this->addItem($i4[5],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,75);
$i3[6] = $this->addItem(3044,$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,2);
if($io == '') {
if ($io == '') {
$io = 'Какие-то предметы добавлены к Вам в инвентарь...';
}
}elseif($tr['var_id'] == 3) {
} elseif ($tr['var_id'] == 3) {
// 600 екр. - 2 суперсвитка 0/20, 4 простых 0/100 + Эссенция Здоровья 0/2 + новогодний эликсир 0/10
$i4 = array(
$itmadd[0][rand(0,count($itmadd[0])-1)],
$itmadd[0][rand(0,count($itmadd[0])-1)],
$itmadd[1][rand(0,count($itmadd[1])-1)],
$itmadd[1][rand(0,count($itmadd[1])-1)],
$itmadd[1][rand(0,count($itmadd[1])-1)],
$itmadd[1][rand(0,count($itmadd[1])-1)]
);
$i4 = [
$itmadd[0][rand(0, count($itmadd[0]) - 1)],
$itmadd[0][rand(0, count($itmadd[0]) - 1)],
$itmadd[1][rand(0, count($itmadd[1]) - 1)],
$itmadd[1][rand(0, count($itmadd[1]) - 1)],
$itmadd[1][rand(0, count($itmadd[1]) - 1)],
$itmadd[1][rand(0, count($itmadd[1]) - 1)],
];
$i3 = array();
$i3 = [];
$i3[0] = $this->addItem($i4[0],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,20);
$i3[1] = $this->addItem($i4[1],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,20);
$i3[0] = ItemsModel::addItem($i4[0], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 20);
$i3[1] = ItemsModel::addItem($i4[1], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 20);
$i3[2] = $this->addItem($i4[2],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,100);
$i3[3] = $this->addItem($i4[3],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,100);
$i3[4] = $this->addItem($i4[4],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,100);
$i3[5] = $this->addItem($i4[5],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,100);
$i3[2] = ItemsModel::addItem($i4[2], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 100);
$i3[3] = ItemsModel::addItem($i4[3], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 100);
$i3[4] = ItemsModel::addItem($i4[4], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 100);
$i3[5] = ItemsModel::addItem($i4[5], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 100);
$i3[6] = $this->addItem(3044,$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,2);
$i3[6] = ItemsModel::addItem(3044, $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 2);
if($io == '') {
if ($io == '') {
$io = 'Какие-то предметы добавлены к Вам в инвентарь...';
}
}elseif($tr['var_id'] == 4) {
} elseif ($tr['var_id'] == 4) {
// 1000 екр. - 3-4 суперсвитка 0/20, 4 простых 0/100 + Эссенция Здоровья 0/3 + новогодний эликсир 0/10
$i4 = array(
$itmadd[0][rand(0,count($itmadd[0])-1)],
$itmadd[0][rand(0,count($itmadd[0])-1)],
$itmadd[0][rand(0,count($itmadd[0])-1)],
$itmadd[1][rand(0,count($itmadd[1])-1)],
$itmadd[1][rand(0,count($itmadd[1])-1)],
$itmadd[1][rand(0,count($itmadd[1])-1)],
$itmadd[1][rand(0,count($itmadd[1])-1)]
);
$i4 = [
$itmadd[0][rand(0, count($itmadd[0]) - 1)],
$itmadd[0][rand(0, count($itmadd[0]) - 1)],
$itmadd[0][rand(0, count($itmadd[0]) - 1)],
$itmadd[1][rand(0, count($itmadd[1]) - 1)],
$itmadd[1][rand(0, count($itmadd[1]) - 1)],
$itmadd[1][rand(0, count($itmadd[1]) - 1)],
$itmadd[1][rand(0, count($itmadd[1]) - 1)],
];
$i3 = array();
$i3 = [];
$i3[0] = $this->addItem($i4[0],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,20);
$i3[1] = $this->addItem($i4[1],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,20);
$i3[3] = $this->addItem($i4[2],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,20);
$i3[0] = ItemsModel::addItem($i4[0], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 20);
$i3[1] = ItemsModel::addItem($i4[1], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 20);
$i3[3] = ItemsModel::addItem($i4[2], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 20);
if(rand(0,1000) > 250 && rand(0,1000) < 750) {
$i3[9] = $this->addItem($i4[3],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,20);
if (rand(0, 1000) > 250 && rand(0, 1000) < 750) {
$i3[9] = ItemsModel::addItem($i4[3], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 20);
}
$i3[4] = $this->addItem($i4[4],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,100);
$i3[5] = $this->addItem($i4[5],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,100);
$i3[6] = $this->addItem($i4[6],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,100);
$i3[7] = $this->addItem($i4[7],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,100);
$i3[4] = ItemsModel::addItem($i4[4], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 100);
$i3[5] = ItemsModel::addItem($i4[5], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 100);
$i3[6] = ItemsModel::addItem($i4[6], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 100);
$i3[7] = ItemsModel::addItem($i4[7], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 100);
$i3[8] = $this->addItem(3044,$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,3);
$i3[8] = ItemsModel::addItem(3044, $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 3);
if($io == '') {
if ($io == '') {
$io = 'Какие-то предметы добавлены к Вам в инвентарь...';
}
}
unset($itmadd,$i3,$i4);
?>
}
unset($itmadd, $i3, $i4);

View File

@ -1,47 +1,48 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
if($tr['var_id'] != '') {
if ($tr['var_id'] != '') {
$i4 = 0;
$i5 = explode('@',$tr['var_id']);
while( $i4 < count($i5) ) {
$i3 = explode('-',$i5[$i4]);
if( $i3 == 'ekr' ) {
$i5 = explode('@', $tr['var_id']);
while ($i4 < count($i5)) {
$i3 = explode('-', $i5[$i4]);
if ($i3 == 'ekr') {
//Выдаем екр.
}elseif( $i3[0] == 'artefact' ) {
} elseif ($i3[0] == 'artefact') {
//Выдаем случайный артефакт.
if( rand(0,100) <= $i3[1] ) {
if (rand(0, 100) <= $i3[1]) {
$io = 'Вы обнаружили временный Артефакт и какие-то предметы...';
$arts_1 = array();
$arts_1 = [];
$arts_lvl = $this->info['level'];
if( $arts_lvl < 4 ) {
if ($arts_lvl < 4) {
$arts_lvl = 4;
}elseif( $arts_lvl > 10 ) {
} elseif ($arts_lvl > 10) {
$arts_lvl = 10;
}
$sp1 = mysql_query('SELECT `items_id` FROM `items_main_data` WHERE `data` LIKE "%|art=%" AND `data` LIKE "%tr_lvl='.$arts_lvl.'%"');
while( $pl1 = mysql_fetch_array($sp1) ) {
$sp1 = mysql_query('SELECT `items_id` FROM `items_main_data` WHERE `data` LIKE "%|art=%" AND `data` LIKE "%tr_lvl=' . $arts_lvl . '%"');
while ($pl1 = mysql_fetch_array($sp1)) {
$arts_1[] = $pl1['items_id'];
}
$arts_1 = $arts_1[rand(0,count($arts_1)-1)];
if( $arts_1 > 0 ) {
$this->addItem($arts_1,$this->info['id'],'|sroknext=1|nosale=1|srok='.(1*86400).'',NULL,75);
$arts_1 = $arts_1[rand(0, count($arts_1) - 1)];
if ($arts_1 > 0) {
ItemsModel::addItem($arts_1, $this->info['id'], '|sroknext=1|nosale=1|srok=' . (1 * 86400) . '', null, 75);
}
}
}else{
} else {
//Выдаем предмет
$this->addItem($i3[0],$this->info['id'],'|nosale=1|notr=1|sudba='.$this->info['login'],NULL,$i3[1]);
ItemsModel::addItem($i3[0], $this->info['id'], '|nosale=1|notr=1|sudba=' . $this->info['login'], null, $i3[1]);
}
$i4++;
}
if($io == '') {
if ($io == '') {
$io .= 'Какие-то предметы добавлены к Вам в инвентарь...';
}
}
unset($i5,$i3,$i4);
?>
}
unset($i5, $i3, $i4);

View File

@ -1,9 +1,11 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
if($tr['var_id'] != '') {
if ($tr['var_id'] != '') {
$io = '';
@ -15,117 +17,127 @@ if(!defined('GAME'))
*/
$trgos = false;
$key1 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4460 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
$key2 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4461 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
$key3 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4462 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
$key4 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4463 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
$key1 = mysql_fetch_array(
mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4460 AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')
);
$key2 = mysql_fetch_array(
mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4461 AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')
);
$key3 = mysql_fetch_array(
mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4462 AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')
);
$key4 = mysql_fetch_array(
mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4463 AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')
);
if( isset($key1['id']) && isset($key2['id']) && isset($key3['id']) && isset($key4['id']) ) {
mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `id` = '.$key1['id'].' OR `id` = '.$key2['id'].' OR `id` = '.$key3['id'].' OR `id` = '.$key4['id'].' LIMIT 4');
if (isset($key1['id']) && isset($key2['id']) && isset($key3['id']) && isset($key4['id'])) {
mysql_query(
'UPDATE `items_users` SET `delete` = "' . time() . '" WHERE `id` = ' . $key1['id'] . ' OR `id` = ' . $key2['id'] . ' OR `id` = ' . $key3['id'] . ' OR `id` = ' . $key4['id'] . ' LIMIT 4'
);
$trgos = true;
}
if( $trgos == true ) {
if( rand(0,100) == 57 || $this->info['admin'] > 0 ) {
if ($trgos == true) {
if (rand(0, 100) == 57 || $this->info['admin'] > 0) {
//Выдаем артефакт
$io .= '<i>Временный артефакт</i>, ';
$arts_1 = array();
$arts_1 = [];
$arts_lvl = $this->info['level'];
if( $arts_lvl < 4 ) {
if ($arts_lvl < 4) {
$arts_lvl = 4;
}elseif( $arts_lvl > 10 ) {
} elseif ($arts_lvl > 10) {
$arts_lvl = 10;
}
$sp1 = mysql_query('SELECT `items_id` FROM `items_main_data` WHERE `data` LIKE "%|art=%" AND `data` LIKE "%tr_lvl='.$arts_lvl.'%"');
while( $pl1 = mysql_fetch_array($sp1) ) {
$sp1 = mysql_query('SELECT `items_id` FROM `items_main_data` WHERE `data` LIKE "%|art=%" AND `data` LIKE "%tr_lvl=' . $arts_lvl . '%"');
while ($pl1 = mysql_fetch_array($sp1)) {
$arts_1[] = $pl1['items_id'];
}
$arts_1 = $arts_1[rand(0,count($arts_1)-1)];
if( $arts_1 > 0 ) {
$this->addItem($arts_1,$this->info['id'],'|nosale=1|srok='.(1*259200).'',NULL,50);
$arts_1 = $arts_1[rand(0, count($arts_1) - 1)];
if ($arts_1 > 0) {
ItemsModel::addItem($arts_1, $this->info['id'], '|nosale=1|srok=' . (1 * 259200) . '', null, 50);
}
//echo '['.$arts_1[rand(0,count($arts_1)-1)].'!'.count($arts_1).'!'.$arts_lvl.']';
}
$recr=rand(1,200); // 0.5% 4510 - 40 екр /2% 5021 - 20 екр /5.5% 5020 -10 екр/ 10.5% 4465 -5 екр/ 100% 5017 - 1екр
$rcr=rand(1,200); // 5%4274 - 400 кр / 15% 4392/4392 - 100 кр / 30% 4392 -50 кр/ 100% 4464 - 20кр
$ryay=rand(1,200); // 5%4274 - 400 кр / 15% 4392/4392 - 100 кр / 30% 4392 -50 кр/ 100% 4464 - 20кр
$recr = rand(1, 200); // 0.5% 4510 - 40 екр /2% 5021 - 20 екр /5.5% 5020 -10 екр/ 10.5% 4465 -5 екр/ 100% 5017 - 1екр
$rcr = rand(1, 200); // 5%4274 - 400 кр / 15% 4392/4392 - 100 кр / 30% 4392 -50 кр/ 100% 4464 - 20кр
$ryay = rand(1, 200); // 5%4274 - 400 кр / 15% 4392/4392 - 100 кр / 30% 4392 -50 кр/ 100% 4464 - 20кр
if( $recr > 199 ) {
if ($recr > 199) {
//Выдаем чек +40 екр.
$io .= '<i>Чек на 40 екр.</i>, ';
$this->addItem(4510,$this->info['id'],'|sudba='.$this->info['login']);
ItemsModel::addItem(4510, $this->info['id'], '|sudba=' . $this->info['login']);
}elseif( $recr > 198 ){
} elseif ($recr > 198) {
//Выдаем чек +20 екр.
$io .= '<i>Чек на 20 екр.</i>, ';
$this->addItem(5021,$this->info['id'],'|sudba='.$this->info['login']);
}elseif( $recr > 192 ){
ItemsModel::addItem(5021, $this->info['id'], '|sudba=' . $this->info['login']);
} elseif ($recr > 192) {
//Выдаем чек +10 екр.
$io .= '<i>Чек на 10 екр.</i>, ';
$this->addItem(5020,$this->info['id'],'|sudba='.$this->info['login']);
}elseif( $recr > 180 ){
ItemsModel::addItem(5020, $this->info['id'], '|sudba=' . $this->info['login']);
} elseif ($recr > 180) {
//Выдаем чек +5 екр.
$io .= '<i>Чек на 5 екр.</i>, ';
$this->addItem(4465,$this->info['id'],'|sudba='.$this->info['login']);
}else{
ItemsModel::addItem(4465, $this->info['id'], '|sudba=' . $this->info['login']);
} else {
//Выдаем чек +1 екр.
$io .= '<i>Чек на 1 екр.</i>, ';
$this->addItem(5017,$this->info['id'],'|sudba='.$this->info['login']);
ItemsModel::addItem(5017, $this->info['id'], '|sudba=' . $this->info['login']);
}
if( $rcr > 94 ) {
if ($rcr > 94) {
//Выдаем чек на 400 кр.
$io .= '<i>Чек на 400 кр.</i> ';
$this->addItem(4274,$this->info['id'],'|sudba='.$this->info['login']);
}elseif( $rcr > 84 ){
ItemsModel::addItem(4274, $this->info['id'], '|sudba=' . $this->info['login']);
} elseif ($rcr > 84) {
//Выдаем чек на 100 кр.
$io .= '<i>Чеки на сумму 100 кр.</i> ';
$this->addItem(4392,$this->info['id'],'|sudba='.$this->info['login']);
$this->addItem(4392,$this->info['id'],'|sudba='.$this->info['login']);
}elseif( $rcr > 69 ){
ItemsModel::addItem(4392, $this->info['id'], '|sudba=' . $this->info['login']);
ItemsModel::addItem(4392, $this->info['id'], '|sudba=' . $this->info['login']);
} elseif ($rcr > 69) {
//Выдаем чек на 50 кр.
$io .= '<i>Чек на 50 кр.</i> ';
$this->addItem(4392,$this->info['id'],'|sudba='.$this->info['login']);
}else{
ItemsModel::addItem(4392, $this->info['id'], '|sudba=' . $this->info['login']);
} else {
//Выдаем чек на 20 кр.
$io .= '<i>Чек на 20 кр.</i> ';
$this->addItem(4464,$this->info['id'],'|sudba='.$this->info['login']);
ItemsModel::addItem(4464, $this->info['id'], '|sudba=' . $this->info['login']);
}
if( $ryay > 199 ) {
if ($ryay > 199) {
//Выдаем яйцо дракона.
$io .= '<i>Яйцо Дракона.</i> ';
$this->addItem(6445,$this->info['id']);
ItemsModel::addItem(6445, $this->info['id']);
}
$elik_1 = array(
4037,4038,4039,4040
);
$elik_1 = $elik_1[rand(0,3)];
if( $elik_1 > 0 ) {
$elik_1 = [
4037, 4038, 4039, 4040,
];
$elik_1 = $elik_1[rand(0, 3)];
if ($elik_1 > 0) {
//Выдаем 1 из 4 эликов
$io .= '<i>Эликсир +22 статов</i>, ';
$this->addItem($elik_1,$this->info['id'],'|nosale=1|',NULL,1);
ItemsModel::addItem($elik_1, $this->info['id'], '|nosale=1|', null, 1);
}
//Выдаем свиток +200%
$io .= '<i>Свиток +100% опыта</i>, ';
$this->addItem(4466,$this->info['id'],'');
ItemsModel::addItem(4466, $this->info['id'], '');
mysql_query('INSERT INTO `actions`(`uid`, `time`, `city`, `room`, `vars`, `ip`, `vals`, `val`) VALUES ("'.$this->info['id'].'","'.time().'","capitalcity","'.$this->info['room'].'","trup_sun"," ","","")');
mysql_query('UPDATE `users_achiv` SET `snt`= `snt`+1 WHERE `id` = "'.$this->info['id'].'" LIMIT 1');
mysql_query(
'INSERT INTO `actions`(`uid`, `time`, `city`, `room`, `vars`, `ip`, `vals`, `val`) VALUES ("' . $this->info['id'] . '","' . time(
) . '","capitalcity","' . $this->info['room'] . '","trup_sun"," ","","")'
);
mysql_query('UPDATE `users_achiv` SET `snt`= `snt`+1 WHERE `id` = "' . $this->info['id'] . '" LIMIT 1');
}else{
} else {
$no_open_itm = true;
$this->error = 'Требуется 4 различных ключа с поля битвы.';
}
}
unset($i5,$i3,$i4);
?>
}
unset($i5, $i3, $i4);

View File

@ -1,9 +1,11 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
if($tr['var_id'] != '') {
if ($tr['var_id'] != '') {
$io = '';
@ -11,40 +13,39 @@ if(!defined('GAME'))
1. Требует 2 любых ключа
*/
$trgos = false;
/*
$key1 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4460 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
$key2 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4461 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
$key3 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4462 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
$key4 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4463 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
*/
$keyall = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
if( $keyall[0] >= 2 ) {
mysql_query('DELETE FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 2');
//mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `id` = '.$key1['id'].' OR `id` = '.$key2['id'].' OR `id` = '.$key3['id'].' OR `id` = '.$key4['id'].' LIMIT 4');
$keyall = mysql_fetch_array(
mysql_query(
'SELECT COUNT(`id`) FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'
)
);
if ($keyall[0] >= 2) {
mysql_query(
'DELETE FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 2'
);
$trgos = true;
}
if( $trgos == true ) {
if ($trgos) {
//
$io .= '<i>Целебный пирог (х2)</i>, ';
$this->addItem(1028,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
$this->addItem(1028,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
ItemsModel::addItem(1028, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
ItemsModel::addItem(1028, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
//
$io .= '<i>Запас маны (х2)</i>, ';
$this->addItem(1029,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
$this->addItem(1029,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
ItemsModel::addItem(1029, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
ItemsModel::addItem(1029, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
//
$io .= '<i>Восстановление энергии 600HP</i>, ';
$this->addItem(4015,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
ItemsModel::addItem(4015, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
//
$io .= '<i>Восстановление энергии 500MP</i>, ';
$this->addItem(4024,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
ItemsModel::addItem(4024, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
//
}else{
} else {
$no_open_itm = true;
$this->error = 'Требуется 2 ключа с поля битвы.';
}
}
unset($i5,$i3,$i4);
?>
}
unset($i5, $i3, $i4);

View File

@ -1,9 +1,11 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
if($tr['var_id'] != '') {
if ($tr['var_id'] != '') {
$io = '';
@ -11,48 +13,46 @@ if(!defined('GAME'))
1. Требует 4 любых ключа
*/
$trgos = false;
/*
$key1 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4460 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
$key2 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4461 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
$key3 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4462 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
$key4 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4463 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
*/
$keyall = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
if( $keyall[0] >= 4 ) {
mysql_query('DELETE FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 4');
//mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `id` = '.$key1['id'].' OR `id` = '.$key2['id'].' OR `id` = '.$key3['id'].' OR `id` = '.$key4['id'].' LIMIT 4');
$keyall = mysql_fetch_array(
mysql_query(
'SELECT COUNT(`id`) FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'
)
);
if ($keyall[0] >= 4) {
mysql_query(
'DELETE FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 4'
);
$trgos = true;
}
if( $trgos == true ) {
if ($trgos) {
//
$io .= '<i>Целебный пирог (х2)</i>, ';
$this->addItem(1028,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
$this->addItem(1028,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
ItemsModel::addItem(1028, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
ItemsModel::addItem(1028, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
//
$io .= '<i>Запас маны (х2)</i>, ';
$this->addItem(1029,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
$this->addItem(1029,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
ItemsModel::addItem(1029, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
ItemsModel::addItem(1029, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
//
$io .= '<i>Восстановление энергии 900HP</i>, ';
$this->addItem(2710,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
ItemsModel::addItem(2710, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
//
$io .= '<i>Восстановление энергии 1000MP</i>, ';
$this->addItem(4030,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
ItemsModel::addItem(4030, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
//
$io .= '<i>Зелье Жизни</i>, ';
$this->addItem(724,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
mysql_query('UPDATE `items_users` SET `iznosMAX` = 1 WHERE `id` = "'.$iidtm.'" LIMIT 1');
ItemsModel::addItem(724, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
mysql_query('UPDATE `items_users` SET `iznosMAX` = 1 WHERE `id` = "' . $iidtm . '" LIMIT 1');
//
$io .= '<i>Зелье Маны</i>, ';
$this->addItem(1187,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
mysql_query('UPDATE `items_users` SET `iznosMAX` = 1 WHERE `id` = "'.$iidtm.'" LIMIT 1');
ItemsModel::addItem(1187, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
mysql_query('UPDATE `items_users` SET `iznosMAX` = 1 WHERE `id` = "' . $iidtm . '" LIMIT 1');
//
}else{
} else {
$no_open_itm = true;
$this->error = 'Требуется 4 ключа с поля битвы.';
}
}
unset($i5,$i3,$i4);
?>
}
unset($i5, $i3, $i4);

View File

@ -1,9 +1,11 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
if($tr['var_id'] != '') {
if ($tr['var_id'] != '') {
$io = '';
@ -11,54 +13,53 @@ if(!defined('GAME'))
1. Требует 6 любых ключа
*/
$trgos = false;
/*
$key1 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4460 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
$key2 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4461 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
$key3 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4462 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
$key4 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4463 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
*/
$keyall = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
if( $keyall[0] >= 6 ) {
mysql_query('DELETE FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 6');
//mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `id` = '.$key1['id'].' OR `id` = '.$key2['id'].' OR `id` = '.$key3['id'].' OR `id` = '.$key4['id'].' LIMIT 4');
$keyall = mysql_fetch_array(
mysql_query(
'SELECT COUNT(`id`) FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'
)
);
if ($keyall[0] >= 6) {
mysql_query(
'DELETE FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 6'
);
$trgos = true;
}
if( $trgos == true ) {
if ($trgos) {
//
$io .= '<i>Целебный пирог (х3)</i>, ';
$this->addItem(1028,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
$this->addItem(1028,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
ItemsModel::addItem(1028, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
ItemsModel::addItem(1028, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
//
$io .= '<i>Запас маны (х3)</i>, ';
$this->addItem(1029,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
$this->addItem(1029,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
ItemsModel::addItem(1029, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
ItemsModel::addItem(1029, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
//
$io .= '<i>Восстановление энергии 900HP</i>, ';
$this->addItem(2711,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
ItemsModel::addItem(2711, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
//
$io .= '<i>Восстановление энергии 1000MP</i>, ';
$this->addItem(4029,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
ItemsModel::addItem(4029, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
//
$io .= '<i>Пропуск забытых</i>, ';
$this->addItem(2412,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
ItemsModel::addItem(2412, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
//
$io .= '<i>Зелье Жизни</i>, ';
$this->addItem(724,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
mysql_query('UPDATE `items_users` SET `iznosMAX` = 5 WHERE `id` = "'.$iidtm.'" LIMIT 1');
ItemsModel::addItem(724, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
mysql_query('UPDATE `items_users` SET `iznosMAX` = 5 WHERE `id` = "' . $iidtm . '" LIMIT 1');
//
$io .= '<i>Зелье Маны</i>, ';
$this->addItem(1187,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
mysql_query('UPDATE `items_users` SET `iznosMAX` = 1 WHERE `id` = "'.$iidtm.'" LIMIT 1');
ItemsModel::addItem(1187, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
mysql_query('UPDATE `items_users` SET `iznosMAX` = 1 WHERE `id` = "' . $iidtm . '" LIMIT 1');
//
$io .= '<i>Нападение</i>, ';
$this->addItem(865,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
ItemsModel::addItem(865, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
//
}else{
} else {
$no_open_itm = true;
$this->error = 'Требуется 6 ключей с поля битвы.';
}
}
unset($i5,$i3,$i4);
?>
}
unset($i5, $i3, $i4);

View File

@ -1,9 +1,11 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
if($tr['var_id'] != '') {
if ($tr['var_id'] != '') {
$io = '';
@ -11,58 +13,44 @@ if(!defined('GAME'))
1. Требует 8 любых ключа
*/
$trgos = false;
/*
$key1 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4460 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
$key2 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4461 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
$key3 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4462 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
$key4 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4463 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
*/
$keyall = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'));
if( $keyall[0] >= 8 ) {
mysql_query('DELETE FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 8');
//mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `id` = '.$key1['id'].' OR `id` = '.$key2['id'].' OR `id` = '.$key3['id'].' OR `id` = '.$key4['id'].' LIMIT 4');
$keyall = mysql_fetch_array(
mysql_query(
'SELECT COUNT(`id`) FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'
)
);
if ($keyall[0] >= 8) {
mysql_query(
'DELETE FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 8'
);
$trgos = true;
}
if( $trgos == true ) {
//
if ($trgos) {
$io .= '<i>Целебный пирог (х3)</i>, ';
$this->addItem(1028,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
$this->addItem(1028,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
//
ItemsModel::addItem(1028, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
ItemsModel::addItem(1028, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
$io .= '<i>Запас маны (х3)</i>, ';
$this->addItem(1029,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
$this->addItem(1029,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
//
ItemsModel::addItem(1029, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
ItemsModel::addItem(1029, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
$io .= '<i>Восстановление энергии 1500HP</i>, ';
$this->addItem(4022,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
//
ItemsModel::addItem(4022, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
$io .= '<i>Восстановление энергии 1500MP</i>, ';
$this->addItem(4034,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
//
ItemsModel::addItem(4034, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
$io .= '<i>Пропуск Забытых</i>, ';
$this->addItem(2412,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
//
ItemsModel::addItem(2412, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
$io .= '<i>Нападение</i>, ';
$this->addItem(865,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
//
ItemsModel::addItem(865, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
$io .= '<i>Зелье Жизни</i>, ';
$this->addItem(724,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
//mysql_query('UPDATE `items_users` SET `iznosMAX` = 5 WHERE `id` = "'.$iidtm.'" LIMIT 1');
//
ItemsModel::addItem(724, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
$io .= '<i>Зелье Маны</i>, ';
$this->addItem(1187,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
//mysql_query('UPDATE `items_users` SET `iznosMAX` = 5 WHERE `id` = "'.$iidtm.'" LIMIT 1');
//
ItemsModel::addItem(1187, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
$io .= '<i>Звездное Сияние</i>, ';
$iidtm = $this->addItem(1463,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
mysql_query('UPDATE `items_users` SET `iznosMAX` = 1 WHERE `id` = "'.$iidtm.'" LIMIT 1');
//
}else{
$iidtm = ItemsModel::addItem(1463, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
mysql_query('UPDATE `items_users` SET `iznosMAX` = 1 WHERE `id` = "' . $iidtm . '" LIMIT 1');
} else {
$no_open_itm = true;
$this->error = 'Требуется 8 ключей с поля битвы.';
}
}
unset($i5,$i3,$i4);
?>
}
unset($i5, $i3, $i4);

View File

@ -1,17 +1,14 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
$io .= '<i>†ажда †изни +6</i>, ';
$this->addItem(3101,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
$io .= '<i>‡вездная ’Яжесть</i>, ';
$this->addItem(1462,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
$io .= '<i>—ек на 2 екрК</i>, ';
$this->addItem(5018,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
?>
$io .= '<i>Жажда Жизни +6</i>, ';
ItemsModel::addItem(3101, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
$io .= '<i>Звездная Тяжесть</i>, ';
ItemsModel::addItem(1462, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
$io .= '<i>Чек на 2 екр</i>, ';
ItemsModel::addItem(5018, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);

View File

@ -1,20 +1,19 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
$io .= '<i>Чек на 5 ЕКР</i>, ';
$this->addItem(5019,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
$io .= '<i>Чек на 5 ЕКР</i>, ';
ItemsModel::addItem(5019, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
$io .= '<i>Бутерброд -The Best Friend-</i>, ';
$this->addItem(5010,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
$io .= '<i>Бутерброд -The Best Friend-</i>, ';
ItemsModel::addItem(5010, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
$io .= '<i>Звездное Сияние</i>, ';
$this->addItem(1463,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
$io .= '<i>Звездное Сияние</i>, ';
ItemsModel::addItem(1463, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
$io .= '<i>Амброзия подмастерья Владык</i>, ';
$this->addItem(5239,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
?>
$io .= '<i>Амброзия подмастерья Владык</i>, ';
ItemsModel::addItem(5239, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);

View File

@ -1,25 +1,26 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
$io .= '<i>Чек на 10 ЕКР</i>, ';
$this->addItem(5020,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
$io .= '<i>Чек на 10 ЕКР</i>, ';
ItemsModel::addItem(5020, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
$io .= '<i>Амброзия Скучающих Владык</i>, ';
$this->addItem(5069,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
$io .= '<i>Амброзия Скучающих Владык</i>, ';
ItemsModel::addItem(5069, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
$io .= '<i>Эликсир Магического Искусства</i>, ';
$this->addItem(4948,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
$io .= '<i>Эликсир Магического Искусства</i>, ';
ItemsModel::addItem(4948, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
$io .= '<i>Звездное Сияние</i>, ';
$this->addItem(1463,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
$io .= '<i>Звездное Сияние</i>, ';
ItemsModel::addItem(1463, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
$io .= '<i>Жажда Жизни +6</i>, ';
$this->addItem(3101,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
$io .= '<i>Жажда Жизни +6</i>, ';
ItemsModel::addItem(3101, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
$io .= '<i>Бутерброд -The Best Friend-</i>, ';
$this->addItem(5010,$this->info['id'],'|nosale=1|sudba='.$this->info['login']);
$io .= '<i>Бутерброд -The Best Friend-</i>, ';
ItemsModel::addItem(5010, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
?>

View File

@ -1,51 +1,54 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
}
//воин
$itmadd = array(
//воин
$itmadd = [
//суперсвиток
0 => array(911,1172,2143,2144,1173),
0 => [911, 1172, 2143, 2144, 1173],
//простые свитки
1 => array(3043,2545,2709,874,2391),
1 => [3043, 2545, 2709, 874, 2391],
//гарантированные
2 => array(3044)
);
2 => [3044],
];
// 1000 екр. - 3-4 суперсвитка 0/20, 4 простых 0/100 + Эссенция Здоровья 0/3 + новогодний эликсир 0/10
$i4 = array(
$itmadd[0][rand(0,count($itmadd[0])-1)],
$itmadd[0][rand(0,count($itmadd[0])-1)],
$itmadd[0][rand(0,count($itmadd[0])-1)],
$itmadd[1][rand(0,count($itmadd[1])-1)],
$itmadd[1][rand(0,count($itmadd[1])-1)],
$itmadd[1][rand(0,count($itmadd[1])-1)],
$itmadd[1][rand(0,count($itmadd[1])-1)]
);
// 1000 екр. - 3-4 суперсвитка 0/20, 4 простых 0/100 + Эссенция Здоровья 0/3 + новогодний эликсир 0/10
$i4 = [
$itmadd[0][rand(0, count($itmadd[0]) - 1)],
$itmadd[0][rand(0, count($itmadd[0]) - 1)],
$itmadd[0][rand(0, count($itmadd[0]) - 1)],
$itmadd[1][rand(0, count($itmadd[1]) - 1)],
$itmadd[1][rand(0, count($itmadd[1]) - 1)],
$itmadd[1][rand(0, count($itmadd[1]) - 1)],
$itmadd[1][rand(0, count($itmadd[1]) - 1)],
];
$i3 = array();
$i3 = [];
if( $u->info['level'] > 8 ) {
$i3[0] = $this->addItem(2143,$this->info['id'],'|nosale=1|notr=1|sudba='.$this->info['login'],NULL,($u->info['level']*2-10));
$i3[1] = $this->addItem(2144,$this->info['id'],'|nosale=1|notr=1|sudba='.$this->info['login'],NULL,($u->info['level']*2-10));
}
if ($u->info['level'] > 8) {
$i3[0] = ItemsModel::addItem(2143, $this->info['id'], '|nosale=1|notr=1|sudba=' . $this->info['login'], null, ($u->info['level'] * 2 - 10));
$i3[1] = ItemsModel::addItem(2144, $this->info['id'], '|nosale=1|notr=1|sudba=' . $this->info['login'], null, ($u->info['level'] * 2 - 10));
}
$i3[3] = $this->addItem(4020,$this->info['id'],'|nosale=1|notr=1|sudba='.$this->info['login'],NULL,($u->info['level']*2-10));
$i3[4] = $this->addItem(4035,$this->info['id'],'|nosale=1|notr=1|sudba='.$this->info['login'],NULL,($u->info['level']*2-10));
$i3[5] = $this->addItem(3101,$this->info['id'],'|nosale=1|notr=1|sudba='.$this->info['login'],NULL,($u->info['level']*2-10));
$i3[6] = $this->addItem(4041,$this->info['id'],'|nosale=1|notr=1|sudba='.$this->info['login'],NULL,($u->info['level']*2-10));
$i3[7] = $this->addItem(4541,$this->info['id'],'|nosale=1|notr=1|sudba='.$this->info['login'],NULL,1);
$i3[8] = $this->addItem(4542,$this->info['id'],'|nosale=1|notr=1|sudba='.$this->info['login'],NULL,1);
$i3[9] = $this->addItem(3048,$this->info['id'],'|nosale=1|notr=1|sudba='.$this->info['login'],NULL,1);
$i3[10] = $this->addItem(3041,$this->info['id'],'|nosale=1|notr=1|sudba='.$this->info['login'],NULL,1);
mysql_query('UPDATE `items_users` SET `gift` = "Ангел",`gtxt1` = "С Днем Рождения! Поздравляем! Удачи в боях и жизни!" WHERE
`id` = "'.$i3[8].'" OR `id` = "'.$i3[9].'" OR `id` = "'.$i3[10].'"
LIMIT 1');
$i3[3] = ItemsModel::addItem(4020, $this->info['id'], '|nosale=1|notr=1|sudba=' . $this->info['login'], null, ($u->info['level'] * 2 - 10));
$i3[4] = ItemsModel::addItem(4035, $this->info['id'], '|nosale=1|notr=1|sudba=' . $this->info['login'], null, ($u->info['level'] * 2 - 10));
$i3[5] = ItemsModel::addItem(3101, $this->info['id'], '|nosale=1|notr=1|sudba=' . $this->info['login'], null, ($u->info['level'] * 2 - 10));
$i3[6] = ItemsModel::addItem(4041, $this->info['id'], '|nosale=1|notr=1|sudba=' . $this->info['login'], null, ($u->info['level'] * 2 - 10));
$i3[7] = ItemsModel::addItem(4541, $this->info['id'], '|nosale=1|notr=1|sudba=' . $this->info['login'], null, 1);
$i3[8] = ItemsModel::addItem(4542, $this->info['id'], '|nosale=1|notr=1|sudba=' . $this->info['login'], null, 1);
$i3[9] = ItemsModel::addItem(3048, $this->info['id'], '|nosale=1|notr=1|sudba=' . $this->info['login'], null, 1);
$i3[10] = ItemsModel::addItem(3041, $this->info['id'], '|nosale=1|notr=1|sudba=' . $this->info['login'], null, 1);
mysql_query(
'UPDATE `items_users` SET `gift` = "Ангел",`gtxt1` = "С Днем Рождения! Поздравляем! Удачи в боях и жизни!" WHERE
`id` = "' . $i3[8] . '" OR `id` = "' . $i3[9] . '" OR `id` = "' . $i3[10] . '"
LIMIT 1'
);
if($io == '') {
if ($io == '') {
$io = 'Какие-то предметы добавлены к Вам в инвентарь...';
}
unset($itmadd,$i3,$i4);
?>
}
unset($itmadd, $i3, $i4);

View File

@ -1,4 +1,7 @@
<?php
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
@ -21,15 +24,15 @@ if ($tr['var_id'] == 1) {
$add_nas = 1;
//Накидка
$i3 = $this->addItem(3200, $this->info['id'], '|nosale=1|noremont=1');
$i3 = ItemsModel::addItem(3200, $this->info['id'], '|nosale=1|noremont=1');
setMentorGiftStatus($i3);
//Эликсир
$i3 = $this->addItem(2418, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(2418, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Новый сундук
$i3 = $this->addItem(3201, $this->info['id']);
$i3 = ItemsModel::addItem(3201, $this->info['id']);
setMentorGiftStatus($i3);
if ($io == '') {
@ -41,19 +44,19 @@ if ($tr['var_id'] == 1) {
$add_nas = 1;
//Рубаха 3209
$i3 = $this->addItem(3209, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(3209, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Штаны 3210
$i3 = $this->addItem(3210, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(3210, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Эликсир
$i3 = $this->addItem(2418, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(2418, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Новый сундук
$i3 = $this->addItem(3202, $this->info['id']);
$i3 = ItemsModel::addItem(3202, $this->info['id']);
setMentorGiftStatus($i3);
if ($io == '') {
@ -65,19 +68,19 @@ if ($tr['var_id'] == 1) {
$add_nas = 1;
//Перчатки 3211
$i3 = $this->addItem(3211, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(3211, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Наручи 3212
$i3 = $this->addItem(3212, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(3212, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Эликсир
$i3 = $this->addItem(2418, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(2418, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Новый сундук
$i3 = $this->addItem(3203, $this->info['id']);
$i3 = ItemsModel::addItem(3203, $this->info['id']);
setMentorGiftStatus($i3);
if ($io == '') {
@ -89,23 +92,23 @@ if ($tr['var_id'] == 1) {
$add_nas = 1;
//Сапоги 3213
$i3 = $this->addItem(3213, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(3213, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Шлем 3214
$i3 = $this->addItem(3214, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(3214, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Пояс 3215
$i3 = $this->addItem(3215, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(3215, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Эликсир
$i3 = $this->addItem(2418, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(2418, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Новый сундук
$i3 = $this->addItem(3204, $this->info['id']);
$i3 = ItemsModel::addItem(3204, $this->info['id']);
setMentorGiftStatus($i3);
if ($io == '') {
@ -117,27 +120,27 @@ if ($tr['var_id'] == 1) {
$add_nas = 1;
//Серьги 3216
$i3 = $this->addItem(3216, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(3216, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Амулет 3217
$i3 = $this->addItem(3217, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(3217, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Кольца 3218
$i3 = $this->addItem(3218, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(3218, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
$i3 = $this->addItem(3218, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(3218, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
$i3 = $this->addItem(3218, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(3218, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Эликсир
$i3 = $this->addItem(2418, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(2418, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Новый сундук
$i3 = $this->addItem(3205, $this->info['id']);
$i3 = ItemsModel::addItem(3205, $this->info['id']);
setMentorGiftStatus($i3);
if ($io == '') {
@ -149,15 +152,15 @@ if ($tr['var_id'] == 1) {
$add_nas = 1;
//Броня 4002
$i3 = $this->addItem(4002, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(4002, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Учебник воспитанника 4004
$i3 = $this->addItem(4004, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(4004, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Сумка воспитанника 4003
$i3 = $this->addItem(4003, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(4003, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Образы
@ -172,7 +175,7 @@ if ($tr['var_id'] == 1) {
);
//Новый сундук
$i3 = $this->addItem(3206, $this->info['id']);
$i3 = ItemsModel::addItem(3206, $this->info['id']);
setMentorGiftStatus($i3);
if ($io == '') {
@ -184,19 +187,19 @@ if ($tr['var_id'] == 1) {
$add_nas = 2;
//Учебник воспитанника 4004
$i3 = $this->addItem(4004, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(4004, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Сумка воспитанника 4003
$i3 = $this->addItem(4003, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(4003, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Нападалка
$i3 = $this->addItem(865, $this->info['id'], '|nosale=1', null, 50);
$i3 = ItemsModel::addItem(865, $this->info['id'], '|nosale=1', null, 50);
setMentorGiftStatus($i3);
//Новый сундук
$i3 = $this->addItem(3207, $this->info['id']);
$i3 = ItemsModel::addItem(3207, $this->info['id']);
setMentorGiftStatus($i3);
if ($io == '') {
@ -208,21 +211,21 @@ if ($tr['var_id'] == 1) {
$add_nas = 3;
//Учебник воспитанника 4004
$i3 = $this->addItem(4004, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(4004, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Сумка воспитанника 4003
$i3 = $this->addItem(4003, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(4003, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Нападалка
$i3 = $this->addItem(865, $this->info['id'], '|nosale=1', null, 50);
$i3 = ItemsModel::addItem(865, $this->info['id'], '|nosale=1', null, 50);
setMentorGiftStatus($i3);
//Восстановление
$i3 = $this->addItem(2712, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(2712, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
$i3 = $this->addItem(2712, $this->info['id'], '|nosale=1');
$i3 = ItemsModel::addItem(2712, $this->info['id'], '|nosale=1');
setMentorGiftStatus($i3);
//Образы
@ -245,7 +248,7 @@ if ($tr['var_id'] == 1) {
if ($add_nas > 0 && $this->info['level'] < 8 && isset($refer['id'])) {
$ino = 0;
while ($ino < $add_nas) {
$this->addItem(4005, $refer['id']);
ItemsModel::addItem(4005, $refer['id']);
$ino++;
}

View File

@ -1,46 +1,46 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
//лечение легких травм
$ov_item = \User\ItemsModel::addItem(4412,$u->info['id'],'|srok=43200|sudba='.$u->info['login'].'');
if($ov_item > 0) {
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "'.$ov_item.'" LIMIT 1');
//лечение легких травм
$ov_item = ItemsModel::addItem(4412, $u->info['id'], '|srok=43200|sudba=' . $u->info['login'] . '');
if ($ov_item > 0) {
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "' . $ov_item . '" LIMIT 1');
//пропуск забытых
$ov_item = \User\ItemsModel::addItem(2412,$u->info['id'],'|srok=43200|battleUseZd=7200|sudba='.$u->info['login'].'');
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "'.$ov_item.'" LIMIT 1');
$ov_item = ItemsModel::addItem(2412, $u->info['id'], '|srok=43200|battleUseZd=7200|sudba=' . $u->info['login'] . '');
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "' . $ov_item . '" LIMIT 1');
//жж6
$ov_item = \User\ItemsModel::addItem(3101,$u->info['id'],'|srok=3600|battleUseZd=7200|sudba='.$u->info['login'].'');
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "'.$ov_item.'" LIMIT 1');
$ov_item = ItemsModel::addItem(3101, $u->info['id'], '|srok=3600|battleUseZd=7200|sudba=' . $u->info['login'] . '');
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "' . $ov_item . '" LIMIT 1');
//лечение средних травм
$ov_item = \User\ItemsModel::addItem(4413,$u->info['id'],'|srok=43200|sudba='.$u->info['login'].'');
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "'.$ov_item.'" LIMIT 1');
$ov_item = ItemsModel::addItem(4413, $u->info['id'], '|srok=43200|sudba=' . $u->info['login'] . '');
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "' . $ov_item . '" LIMIT 1');
//право на подвиг (бездна)
$ov_item = \User\ItemsModel::addItem(5035,$u->info['id'],'|srok=43200|battleUseZd=7200|sudba='.$u->info['login'].'');
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "'.$ov_item.'" LIMIT 1');
$ov_item = ItemsModel::addItem(5035, $u->info['id'], '|srok=43200|battleUseZd=7200|sudba=' . $u->info['login'] . '');
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "' . $ov_item . '" LIMIT 1');
//право на подвиг (грибница)
$ov_item = \User\ItemsModel::addItem(5039,$u->info['id'],'|srok=43200|battleUseZd=7200|sudba='.$u->info['login'].'');
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "'.$ov_item.'" LIMIT 1');
$ov_item = ItemsModel::addItem(5039, $u->info['id'], '|srok=43200|battleUseZd=7200|sudba=' . $u->info['login'] . '');
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "' . $ov_item . '" LIMIT 1');
//Лечение тяжелых травм
$ov_item = \User\ItemsModel::addItem(4414,$u->info['id'],'|srok=43200|sudba='.$u->info['login'].'');
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "'.$ov_item.'" LIMIT 1');
$ov_item = ItemsModel::addItem(4414, $u->info['id'], '|srok=43200|sudba=' . $u->info['login'] . '');
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "' . $ov_item . '" LIMIT 1');
//право на подвиг (ПТП)
$ov_item = \User\ItemsModel::addItem(5036,$u->info['id'],'|srok=43200|battleUseZd=7200|sudba='.$u->info['login'].'');
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "'.$ov_item.'" LIMIT 1');
$ov_item = ItemsModel::addItem(5036, $u->info['id'], '|srok=43200|battleUseZd=7200|sudba=' . $u->info['login'] . '');
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "' . $ov_item . '" LIMIT 1');
//право на подвиг (Катакомбы)
$ov_item = \User\ItemsModel::addItem(5037,$u->info['id'],'|srok=43200|battleUseZd=7200|sudba='.$u->info['login'].'');
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "'.$ov_item.'" LIMIT 1');
$ov_item = ItemsModel::addItem(5037, $u->info['id'], '|srok=43200|battleUseZd=7200|sudba=' . $u->info['login'] . '');
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "' . $ov_item . '" LIMIT 1');
//право на подвиг (Гора легиона)
$ov_item = \User\ItemsModel::addItem(5038,$u->info['id'],'|srok=43200|battleUseZd=7200|sudba='.$u->info['login'].'');
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "'.$ov_item.'" LIMIT 1');
$ov_item = ItemsModel::addItem(5038, $u->info['id'], '|srok=43200|battleUseZd=7200|sudba=' . $u->info['login'] . '');
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "' . $ov_item . '" LIMIT 1');
//
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1');
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = ' . $itm['id'] . ' LIMIT 1');
$u->error = 'Вы получили предметы:<br> Лечение легких травм, Лечение средних травм, Лечение тяжелых травм, пропуск забытых, жажда жизни +6<br> право на подвиг(бездна), право на подвиг(грибница),
право на подвиг(ПТП), право на подвиг(катакомбы), право на подвиг(Гора легиона)';
}
?>
}

View File

@ -1,23 +1,24 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
$io .= '<i>Предметы Танка 8-го уровня</i>,';
$this->addItem(558,$this->info['id'],'|sudba=0');
$this->addItem(722,$this->info['id'],'|sudba=0');
$this->addItem(718,$this->info['id'],'|sudba=0');
$this->addItem(700,$this->info['id'],'|sudba=0');
$this->addItem(291,$this->info['id'],'|sudba=0');
$this->addItem(545,$this->info['id'],'|sudba=0');
$this->addItem(533,$this->info['id'],'|sudba=0');
$this->addItem(536,$this->info['id'],'|sudba=0');
$this->addItem(628,$this->info['id'],'|sudba=0');
$this->addItem(710,$this->info['id'],'|sudba=0');
$this->addItem(654,$this->info['id'],'|sudba=0');
$this->addItem(684,$this->info['id'],'|sudba=0');
$this->addItem(689,$this->info['id'],'|sudba=0');
$this->addItem(689,$this->info['id'],'|sudba=0');
$this->addItem(689,$this->info['id'],'|sudba=0');
?>
$io .= '<i>Предметы Танка 8-го уровня</i>,';
ItemsModel::addItem(558, $this->info['id'], '|sudba=0');
ItemsModel::addItem(722, $this->info['id'], '|sudba=0');
ItemsModel::addItem(718, $this->info['id'], '|sudba=0');
ItemsModel::addItem(700, $this->info['id'], '|sudba=0');
ItemsModel::addItem(291, $this->info['id'], '|sudba=0');
ItemsModel::addItem(545, $this->info['id'], '|sudba=0');
ItemsModel::addItem(533, $this->info['id'], '|sudba=0');
ItemsModel::addItem(536, $this->info['id'], '|sudba=0');
ItemsModel::addItem(628, $this->info['id'], '|sudba=0');
ItemsModel::addItem(710, $this->info['id'], '|sudba=0');
ItemsModel::addItem(654, $this->info['id'], '|sudba=0');
ItemsModel::addItem(684, $this->info['id'], '|sudba=0');
ItemsModel::addItem(689, $this->info['id'], '|sudba=0');
ItemsModel::addItem(689, $this->info['id'], '|sudba=0');
ItemsModel::addItem(689, $this->info['id'], '|sudba=0');

View File

@ -1,23 +1,24 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
$io .= '<i>Предметы Силача 8-го уровня</i>,';
$this->addItem(552,$this->info['id'],'|sudba=0');
$this->addItem(552,$this->info['id'],'|sudba=0');
$this->addItem(716,$this->info['id'],'|sudba=0');
$this->addItem(320,$this->info['id'],'|sudba=0');
$this->addItem(291,$this->info['id'],'|sudba=0');
$this->addItem(543,$this->info['id'],'|sudba=0');
$this->addItem(528,$this->info['id'],'|sudba=0');
$this->addItem(540,$this->info['id'],'|sudba=0');
$this->addItem(627,$this->info['id'],'|sudba=0');
$this->addItem(709,$this->info['id'],'|sudba=0');
$this->addItem(653,$this->info['id'],'|sudba=0');
$this->addItem(681,$this->info['id'],'|sudba=0');
$this->addItem(687,$this->info['id'],'|sudba=0');
$this->addItem(687,$this->info['id'],'|sudba=0');
$this->addItem(687,$this->info['id'],'|sudba=0');
?>
$io .= '<i>Предметы Силача 8-го уровня</i>,';
ItemsModel::addItem(552, $this->info['id'], '|sudba=0');
ItemsModel::addItem(552, $this->info['id'], '|sudba=0');
ItemsModel::addItem(716, $this->info['id'], '|sudba=0');
ItemsModel::addItem(320, $this->info['id'], '|sudba=0');
ItemsModel::addItem(291, $this->info['id'], '|sudba=0');
ItemsModel::addItem(543, $this->info['id'], '|sudba=0');
ItemsModel::addItem(528, $this->info['id'], '|sudba=0');
ItemsModel::addItem(540, $this->info['id'], '|sudba=0');
ItemsModel::addItem(627, $this->info['id'], '|sudba=0');
ItemsModel::addItem(709, $this->info['id'], '|sudba=0');
ItemsModel::addItem(653, $this->info['id'], '|sudba=0');
ItemsModel::addItem(681, $this->info['id'], '|sudba=0');
ItemsModel::addItem(687, $this->info['id'], '|sudba=0');
ItemsModel::addItem(687, $this->info['id'], '|sudba=0');
ItemsModel::addItem(687, $this->info['id'], '|sudba=0');

View File

@ -1,23 +1,24 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
$io .= '<i>Предметы Уворотчика 8-го уровня</i>,';
$this->addItem(523,$this->info['id'],'|sudba=0');
$this->addItem(523,$this->info['id'],'|sudba=0');
$this->addItem(712,$this->info['id'],'|sudba=0');
$this->addItem(1151,$this->info['id'],'|sudba=0');
$this->addItem(290,$this->info['id'],'|sudba=0');
$this->addItem(541,$this->info['id'],'|sudba=0');
$this->addItem(525,$this->info['id'],'|sudba=0');
$this->addItem(539,$this->info['id'],'|sudba=0');
$this->addItem(633,$this->info['id'],'|sudba=0');
$this->addItem(707,$this->info['id'],'|sudba=0');
$this->addItem(647,$this->info['id'],'|sudba=0');
$this->addItem(680,$this->info['id'],'|sudba=0');
$this->addItem(685,$this->info['id'],'|sudba=0');
$this->addItem(685,$this->info['id'],'|sudba=0');
$this->addItem(685,$this->info['id'],'|sudba=0');
?>
$io .= '<i>Предметы Уворотчика 8-го уровня</i>,';
ItemsModel::addItem(523, $this->info['id'], '|sudba=0');
ItemsModel::addItem(523, $this->info['id'], '|sudba=0');
ItemsModel::addItem(712, $this->info['id'], '|sudba=0');
ItemsModel::addItem(1151, $this->info['id'], '|sudba=0');
ItemsModel::addItem(290, $this->info['id'], '|sudba=0');
ItemsModel::addItem(541, $this->info['id'], '|sudba=0');
ItemsModel::addItem(525, $this->info['id'], '|sudba=0');
ItemsModel::addItem(539, $this->info['id'], '|sudba=0');
ItemsModel::addItem(633, $this->info['id'], '|sudba=0');
ItemsModel::addItem(707, $this->info['id'], '|sudba=0');
ItemsModel::addItem(647, $this->info['id'], '|sudba=0');
ItemsModel::addItem(680, $this->info['id'], '|sudba=0');
ItemsModel::addItem(685, $this->info['id'], '|sudba=0');
ItemsModel::addItem(685, $this->info['id'], '|sudba=0');
ItemsModel::addItem(685, $this->info['id'], '|sudba=0');

View File

@ -2130,23 +2130,6 @@ class User
//Расчет защиты (магия)
/** Для совместимости. Поиск по файлам $this->additem выдаёт сотни отсылок с видимо подключаемымим файлами
* в которых невозможно отследить зависимость и сделать полноценную замену.
* @param $id
* @param $uid
* @param $md
* @param $dn
* @param $mxiznos
* @param $nosudba
* @param $plavka
* @return int|mixed|string
* @deprecated use ItemsModel::addItem()
*/
public function addItem($id, $uid, $md = null, $dn = null, $mxiznos = null, $nosudba = null, $plavka = null): mixed
{
return ItemsModel::addItem($id, $uid, $md, $dn, $mxiznos, $nosudba, $plavka);
}
public function newAct($test): bool
{
$r = true;

View File

@ -1,86 +1,80 @@
<?php
if(!defined('GAME'))
{
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
if($p['banned']==1 || $p['proverka']==1)
{
$uu = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `login` = "'.mysql_real_escape_string($_POST['logingo']).'" LIMIT 1'));
$uu2 = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `login` = "'.mysql_real_escape_string($_POST['logingo2']).'" LIMIT 1'));
if(isset($uu['id']) && isset($uu2['id']))
{
if ($p['banned'] == 1 || $p['proverka'] == 1) {
$uu = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `login` = "' . mysql_real_escape_string($_POST['logingo']) . '" LIMIT 1'));
$uu2 = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `login` = "' . mysql_real_escape_string($_POST['logingo2']) . '" LIMIT 1'));
if (isset($uu['id']) && isset($uu2['id'])) {
if($uu['marry']>0)
{
if ($uu['marry'] > 0) {
$uer = 'Персонаж уже находится в браке<br>';
}elseif($uu['marry']>0)
{
} elseif ($uu['marry'] > 0) {
$uer = 'Персонаж уже находится в браке<br>';
}elseif($uu['align']>1 && $uu['align']<2 && $u->info['admin']==0)
{
} elseif ($uu['align'] > 1 && $uu['align'] < 2 && $u->info['admin'] == 0) {
$uer = 'Вы не можете использовать данное заклятие на Паладинов.<br>';
}elseif($uu['align']>3 && $uu['align']<4 && $u->info['admin']==0)
{
} elseif ($uu['align'] > 3 && $uu['align'] < 4 && $u->info['admin'] == 0) {
$uer = 'Вы не можете использовать данное заклятие на Тарманов.<br>';
}elseif($uu['admin']>0 && $u->info['admin']==0)
{
} elseif ($uu['admin'] > 0 && $u->info['admin'] == 0) {
$uer = 'Вы не можете накладывать заклятие на Ангелов';
}elseif($uu['city']!=$u->info['city'] && $p['citym1']==0){
} elseif ($uu['city'] != $u->info['city'] && $p['citym1'] == 0) {
$uer = 'Персонаж находится в другом городе';
}elseif($uu['id']==$u->info['id'] && $u->info['admin']==0){
} elseif ($uu['id'] == $u->info['id'] && $u->info['admin'] == 0) {
$uer = 'Вы не можете использовать на самого себя';
}elseif($uu2['align']>1 && $uu['align']<2 && $u->info['admin']==0)
{
} elseif ($uu2['align'] > 1 && $uu['align'] < 2 && $u->info['admin'] == 0) {
$uer = 'Вы не можете использовать данное заклятие на Паладинов.<br>';
}elseif($uu2['align']>3 && $uu['align']<4 && $u->info['admin']==0)
{
} elseif ($uu2['align'] > 3 && $uu['align'] < 4 && $u->info['admin'] == 0) {
$uer = 'Вы не можете использовать данное заклятие на Тарманов.<br>';
}elseif($uu2['admin']>0 && $u->info['admin']==0)
{
} elseif ($uu2['admin'] > 0 && $u->info['admin'] == 0) {
$uer = 'Вы не можете накладывать заклятие на Ангелов';
}elseif($uu2['city']!=$u->info['city'] && $p['citym1']==0){
} elseif ($uu2['city'] != $u->info['city'] && $p['citym1'] == 0) {
$uer = 'Персонаж находится в другом городе';
}elseif($uu2['id']==$u->info['id'] && $u->info['admin']==0){
} elseif ($uu2['id'] == $u->info['id'] && $u->info['admin'] == 0) {
$uer = 'Вы не можете использовать на самого себя';
}else{
$uu['palpro'] = time()+60*60*24*7;
$upd = mysql_query('UPDATE `users` SET `marry` = "'.$uu2['id'].'" WHERE `id` = "'.$uu['id'].'" LIMIT 1');
$upd = mysql_query('UPDATE `users` SET `marry` = "'.$uu['id'].'" WHERE `id` = "'.$uu2['id'].'" LIMIT 1');
if($upd)
{
} else {
$uu['palpro'] = time() + 60 * 60 * 24 * 7;
$upd = mysql_query('UPDATE `users` SET `marry` = "' . $uu2['id'] . '" WHERE `id` = "' . $uu['id'] . '" LIMIT 1');
$upd = mysql_query('UPDATE `users` SET `marry` = "' . $uu['id'] . '" WHERE `id` = "' . $uu2['id'] . '" LIMIT 1');
if ($upd) {
$sx = '';
if($u->info['sex']==1)
{
if ($u->info['sex'] == 1) {
$sx = 'а';
}
$rtxt = '[img[items/marry.gif]] '.$rang.' &quot;'.$u->info['login'].'&quot; подтвердил'.$sx.' законность брака между &quot;'.$uu['login'].'&quot; и &quot;'.$uu2['login'].'&quot;.';
$rtxt = '[img[items/marry.gif]] ' . $rang . ' &quot;' . $u->info['login'] . '&quot; подтвердил' . $sx . ' законность брака между &quot;' . $uu['login'] . '&quot; и &quot;' . $uu2['login'] . '&quot;.';
mysql_query("UPDATE `chat` SET `delete` = 1 WHERE `login` = '".$uu['login']."' LIMIT 1000");
mysql_query("UPDATE `chat` SET `delete` = 1 WHERE `login` = '" . $uu['login'] . "' LIMIT 1000");
$cmsg = new ChatMessage();
$cmsg->setCity($u->info['city']);
$cmsg->setRoom($u->info['room']);
$cmsg->setText($rtxt);
$cmsg->setType(6);
$cmsg->setTypeTime(1);
(new Chat())->sendMsg($cmsg);
$rtxt = $rang.' &quot;'.$u->info['login'].'&quot; подтвердил'.$sx.' законность брака с '.$uu2['id'].'.';
mysql_query("INSERT INTO `users_delo` (`uid`,`ip`,`city`,`time`,`text`,`login`,`type`) VALUES ('".$uu['id']."','".$_SERVER['REMOTE_ADDR']."','".$u->info['city']."','".time()."','".$rtxt."','".$u->info['login']."',0)");
$rtxt = $rang.' &quot;'.$u->info['login'].'&quot; подтвердил'.$sx.' законность брака с '.$uu['id'].'.';
mysql_query("INSERT INTO `users_delo` (`uid`,`ip`,`city`,`time`,`text`,`login`,`type`) VALUES ('".$uu2['id']."','".$_SERVER['REMOTE_ADDR']."','".$u->info['city']."','".time()."','".$rtxt."','".$u->info['login']."',0)");
$cmsg = new ChatMessage();
$cmsg->setRoom($u->info['room']);
$cmsg->setText($rtxt);
$cmsg->setType(6);
$cmsg->setTypeTime(1);
(new Chat())->sendMsg($cmsg);
$rtxt = $rang . ' &quot;' . $u->info['login'] . '&quot; подтвердил' . $sx . ' законность брака с ' . $uu2['id'] . '.';
mysql_query(
"INSERT INTO `users_delo` (`uid`,`ip`,`city`,`time`,`text`,`login`,`type`) VALUES ('" . $uu['id'] . "','" . $_SERVER['REMOTE_ADDR'] . "','" . $u->info['city'] . "','" . time(
) . "','" . $rtxt . "','" . $u->info['login'] . "',0)"
);
$rtxt = $rang . ' &quot;' . $u->info['login'] . '&quot; подтвердил' . $sx . ' законность брака с ' . $uu['id'] . '.';
mysql_query(
"INSERT INTO `users_delo` (`uid`,`ip`,`city`,`time`,`text`,`login`,`type`) VALUES ('" . $uu2['id'] . "','" . $_SERVER['REMOTE_ADDR'] . "','" . $u->info['city'] . "','" . time(
) . "','" . $rtxt . "','" . $u->info['login'] . "',0)"
);
$this->addItem(76,$uu['id'],'sudba='.$uu['login'].'|noremont=1|notransfer=1');
$this->addItem(76,$uu2['id'],'sudba='.$uu2['login'].'|noremont=1|notransfer=1');
ItemsModel::addItem(76, $uu['id'], 'sudba=' . $uu['login'] . '|noremont=1|notransfer=1');
ItemsModel::addItem(76, $uu2['id'], 'sudba=' . $uu2['login'] . '|noremont=1|notransfer=1');
$uer = 'Вы успешно зафиксировали брак "'.$uu['login'].'" и "'.$uu2['login'].'".';
}else{
$uer = 'Вы успешно зафиксировали брак "' . $uu['login'] . '" и "' . $uu2['login'] . '".';
} else {
$uer = 'Не удалось использовать данное заклятие';
}
}
}else{
} else {
$uer = 'Персонаж не найден в этом городе';
}
}else{
} else {
$uer = 'У Вас нет прав на использование данного заклятия';
}
?>