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

View File

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

View File

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

View File

@ -1,4 +1,7 @@
<?php <?php
use User\ItemsModel;
if(!defined('GAME')) if(!defined('GAME'))
{ {
die(); die();
@ -15,38 +18,38 @@ if(date('Y')==2023) {
7. Новогодний Эликсир 7. Новогодний Эликсир
*/ */
//рыба (x1) //рыба (x1)
$idit = \User\ItemsModel::addItem(5009,$u->info['id']); $idit = ItemsModel::addItem(5009,$u->info['id']);
if($idit > 0) { if($idit > 0) {
mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "3" WHERE `id` = "'.$idit.'" LIMIT 1'); 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'); 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'); mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "3" WHERE `id` = "'.$idit.'" LIMIT 1');
//жж6 //жж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'); mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "5" WHERE `id` = "'.$idit.'" LIMIT 1');
//Открытка (x1) //Открытка (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'); 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'); mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "100" WHERE `id` = "'.$idit.'" LIMIT 1');
//чек на 100 екров //чек на 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'); 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'); mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "100" WHERE `id` = "'.$idit.'" LIMIT 1');

View File

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

View File

@ -1,11 +1,11 @@
<?php <?php
if(!defined('GAME'))
{ use User\ItemsModel;
if (!defined('GAME')) {
die(); die();
} }
$io .= '<i>Акционный клановый комплект</i>, '; $io .= '<i>Акционный клановый комплект</i>, ';
$this->addItem(11128,$this->info['id'],'|nosale=1|nodelete=1|sudba=0'); ItemsModel::addItem(11128, $this->info['id'], '|nosale=1|nodelete=1|sudba=0');
$this->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,13 +1,17 @@
<?php <?php
if(!defined('GAME'))
{ use User\ItemsModel;
if (!defined('GAME')) {
die(); die();
} }
if ($tr['var_id'] == 1) { if ($tr['var_id'] == 1) {
//Бронзовая книга //Бронзовая книга
$pgs = array('all' => 0, 'sudba' => 0); $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'].'"'); $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)) { while ($pl_pg = mysql_fetch_array($sp_pg)) {
$pg_id = $pl_pg['item_id'] - 3142; $pg_id = $pl_pg['item_id'] - 3142;
if (!isset($pgs[$pg_id])) { if (!isset($pgs[$pg_id])) {
@ -46,38 +50,13 @@ if(!defined('GAME'))
} }
$sz = $this->testAction('`vars` = "gold_sanich_bonus" LIMIT 1', 1); $sz = $this->testAction('`vars` = "gold_sanich_bonus" LIMIT 1', 1);
/*if(!isset($sz['id'])) {
$this->addAction(time(),'gold_sanich_bonus','gold_sanich_bonus');
//выдаем книгу //выдаем книгу
if ($pgs['sudba'] > 0) { if ($pgs['sudba'] > 0) {
//привязанная //привязанная
$this->addItem(3198,$this->info['id'],'|sudba='.$this->info['login']); ItemsModel::addItem(3196, $this->info['id'], '|sudba=' . $this->info['login']);
} else { } else {
//не привязанная //не привязанная
$this->addItem(3198,$this->info['id']); ItemsModel::addItem(3196, $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']);
} }
$io .= 'Вы получили предмет &quot;Бронзовая Книга&quot;'; $io .= 'Вы получили предмет &quot;Бронзовая Книга&quot;';
//} //}
@ -88,4 +67,3 @@ if(!defined('GAME'))
$io .= 'Данный предмет нельзя использовать!'; $io .= 'Данный предмет нельзя использовать!';
$no_open_itm = true; $no_open_itm = true;
} }
?>

View File

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

View File

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

View File

@ -1,45 +1,46 @@
<?php <?php
if(!defined('GAME'))
{ use User\ItemsModel;
if (!defined('GAME')) {
die(); die();
} }
$io .= '<i>Подарочный комплект Мага Огня</i>, '; $io .= '<i>Подарочный комплект Мага Огня</i>, ';
$this->addItem(850,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
$io .= '<i>Свитки и прочие материалы....</i>, '; $io .= '<i>Свитки и прочие материалы....</i>, ';
$this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); // элик ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); //усилок ItemsModel::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']); ItemsModel::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']); ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
?>

View File

@ -1,44 +1,45 @@
<?php <?php
if(!defined('GAME'))
{ use User\ItemsModel;
if (!defined('GAME')) {
die(); die();
} }
$io .= '<i>Подарочный комплект Танка</i>, '; $io .= '<i>Подарочный комплект Танка</i>, ';
$this->addItem(4648,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
$io .= '<i>Свитки и прочие материалы....</i>, '; $io .= '<i>Свитки и прочие материалы....</i>, ';
$this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
?>

View File

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

View File

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

View File

@ -1,45 +1,46 @@
<?php <?php
if(!defined('GAME'))
{ use User\ItemsModel;
if (!defined('GAME')) {
die(); die();
} }
$io .= '<i>Подарочный комплект Мага Воды</i>, '; $io .= '<i>Подарочный комплект Мага Воды</i>, ';
$this->addItem(851,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
$io .= '<i>Свитки и прочие материалы....</i>, '; $io .= '<i>Свитки и прочие материалы....</i>, ';
$this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); // элик ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); //усилок ItemsModel::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']); ItemsModel::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']); ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
?>

View File

@ -1,45 +1,46 @@
<?php <?php
if(!defined('GAME'))
{ use User\ItemsModel;
if (!defined('GAME')) {
die(); die();
} }
$io .= '<i>Подарочный комплект Мага Воздуха</i>, '; $io .= '<i>Подарочный комплект Мага Воздуха</i>, ';
$this->addItem(848,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
$io .= '<i>Свитки и прочие материалы....</i>, '; $io .= '<i>Свитки и прочие материалы....</i>, ';
$this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); // элик ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); //усилок ItemsModel::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']); ItemsModel::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']); ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
?>

View File

@ -1,45 +1,46 @@
<?php <?php
if(!defined('GAME'))
{ use User\ItemsModel;
if (!defined('GAME')) {
die(); die();
} }
$io .= '<i>Подарочный комплект Мага Земли</i>, '; $io .= '<i>Подарочный комплект Мага Земли</i>, ';
$this->addItem(849,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
$io .= '<i>Свитки и прочие материалы....</i>, '; $io .= '<i>Свитки и прочие материалы....</i>, ';
$this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); // элик ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); ItemsModel::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']); //усилок ItemsModel::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']); ItemsModel::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']); ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']);
?>

View File

@ -1,57 +1,56 @@
<?php <?php
if(!defined('GAME'))
{ use User\ItemsModel;
if (!defined('GAME')) {
die(); die();
} }
if ($tr['var_id'] > 4) { if ($tr['var_id'] > 4) {
//маг //маг
$itmadd = array( $itmadd = [
//3053 - вечность , 3052 - МР 1000 //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; $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']); $i3[9] = ItemsModel::addItem(4676, $this->info['id'], '|notr=1|sudba=' . $this->info['login']);
} else { } 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 // 200 екр. - 1 суперсвиток 0/15, 2 простых 0/75 + Эссенция Здоровья 0/1
$i4 = array( $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[0] = $this->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[1] = $this->addItem($i4[1],$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[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 = 'Какие-то предметы добавлены к Вам в инвентарь...'; $io = 'Какие-то предметы добавлены к Вам в инвентарь...';
@ -59,26 +58,24 @@ if(!defined('GAME'))
} elseif ($tr['var_id'] == 2) { } elseif ($tr['var_id'] == 2) {
// 400 екр. - 2 суперсвитка 0/15, 4 простых 0/75 + Эссенция Здоровья 0/2 + новогодний эликсир 0/7 // 400 екр. - 2 суперсвитка 0/15, 4 простых 0/75 + Эссенция Здоровья 0/2 + новогодний эликсир 0/7
$i4 = array( $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[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)],
$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[6] = ItemsModel::addItem(3044, $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 2);
$i3[1] = $this->addItem($i4[1],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,15);
$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 = 'Какие-то предметы добавлены к Вам в инвентарь...'; $io = 'Какие-то предметы добавлены к Вам в инвентарь...';
@ -86,26 +83,26 @@ if(!defined('GAME'))
} elseif ($tr['var_id'] == 3) { } elseif ($tr['var_id'] == 3) {
// 600 екр. - 2 суперсвитка 0/20, 4 простых 0/100 + Эссенция Здоровья 0/2 + новогодний эликсир 0/10 // 600 екр. - 2 суперсвитка 0/20, 4 простых 0/100 + Эссенция Здоровья 0/2 + новогодний эликсир 0/10
$i4 = array( $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[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)],
$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[0] = ItemsModel::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[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[2] = ItemsModel::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[3] = ItemsModel::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[4] = ItemsModel::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[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 = 'Какие-то предметы добавлены к Вам в инвентарь...'; $io = 'Какие-то предметы добавлены к Вам в инвентарь...';
@ -113,32 +110,32 @@ if(!defined('GAME'))
} elseif ($tr['var_id'] == 4) { } elseif ($tr['var_id'] == 4) {
// 1000 екр. - 3-4 суперсвитка 0/20, 4 простых 0/100 + Эссенция Здоровья 0/3 + новогодний эликсир 0/10 // 1000 екр. - 3-4 суперсвитка 0/20, 4 простых 0/100 + Эссенция Здоровья 0/3 + новогодний эликсир 0/10
$i4 = array( $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[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)],
$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[0] = ItemsModel::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[1] = ItemsModel::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[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) { 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); $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[4] = ItemsModel::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[5] = ItemsModel::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[6] = ItemsModel::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[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 = 'Какие-то предметы добавлены к Вам в инвентарь...'; $io = 'Какие-то предметы добавлены к Вам в инвентарь...';
@ -146,4 +143,3 @@ if(!defined('GAME'))
} }
unset($itmadd, $i3, $i4); unset($itmadd, $i3, $i4);
?>

View File

@ -1,6 +1,8 @@
<?php <?php
if(!defined('GAME'))
{ use User\ItemsModel;
if (!defined('GAME')) {
die(); die();
} }
if ($tr['var_id'] != '') { if ($tr['var_id'] != '') {
@ -15,7 +17,7 @@ if(!defined('GAME'))
//Выдаем случайный артефакт. //Выдаем случайный артефакт.
if (rand(0, 100) <= $i3[1]) { if (rand(0, 100) <= $i3[1]) {
$io = 'Вы обнаружили временный Артефакт и какие-то предметы...'; $io = 'Вы обнаружили временный Артефакт и какие-то предметы...';
$arts_1 = array(); $arts_1 = [];
$arts_lvl = $this->info['level']; $arts_lvl = $this->info['level'];
if ($arts_lvl < 4) { if ($arts_lvl < 4) {
$arts_lvl = 4; $arts_lvl = 4;
@ -28,12 +30,12 @@ if(!defined('GAME'))
} }
$arts_1 = $arts_1[rand(0, count($arts_1) - 1)]; $arts_1 = $arts_1[rand(0, count($arts_1) - 1)];
if ($arts_1 > 0) { if ($arts_1 > 0) {
$this->addItem($arts_1,$this->info['id'],'|sroknext=1|nosale=1|srok='.(1*86400).'',NULL,75); 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++; $i4++;
} }
@ -44,4 +46,3 @@ if(!defined('GAME'))
} }
unset($i5, $i3, $i4); unset($i5, $i3, $i4);
?>

View File

@ -1,6 +1,8 @@
<?php <?php
if(!defined('GAME'))
{ use User\ItemsModel;
if (!defined('GAME')) {
die(); die();
} }
if ($tr['var_id'] != '') { if ($tr['var_id'] != '') {
@ -15,13 +17,23 @@ if(!defined('GAME'))
*/ */
$trgos = false; $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')); $key1 = mysql_fetch_array(
$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')); 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')
$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')); $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'])) { 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'); 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; $trgos = true;
} }
@ -29,7 +41,7 @@ if(!defined('GAME'))
if (rand(0, 100) == 57 || $this->info['admin'] > 0) { if (rand(0, 100) == 57 || $this->info['admin'] > 0) {
//Выдаем артефакт //Выдаем артефакт
$io .= '<i>Временный артефакт</i>, '; $io .= '<i>Временный артефакт</i>, ';
$arts_1 = array(); $arts_1 = [];
$arts_lvl = $this->info['level']; $arts_lvl = $this->info['level'];
if ($arts_lvl < 4) { if ($arts_lvl < 4) {
$arts_lvl = 4; $arts_lvl = 4;
@ -42,7 +54,7 @@ if(!defined('GAME'))
} }
$arts_1 = $arts_1[rand(0, count($arts_1) - 1)]; $arts_1 = $arts_1[rand(0, count($arts_1) - 1)];
if ($arts_1 > 0) { if ($arts_1 > 0) {
$this->addItem($arts_1,$this->info['id'],'|nosale=1|srok='.(1*259200).'',NULL,50); 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.']'; //echo '['.$arts_1[rand(0,count($arts_1)-1)].'!'.count($arts_1).'!'.$arts_lvl.']';
} }
@ -55,69 +67,70 @@ if(!defined('GAME'))
//Выдаем чек +40 екр. //Выдаем чек +40 екр.
$io .= '<i>Чек на 40 екр.</i>, '; $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 екр. //Выдаем чек +20 екр.
$io .= '<i>Чек на 20 екр.</i>, '; $io .= '<i>Чек на 20 екр.</i>, ';
$this->addItem(5021,$this->info['id'],'|sudba='.$this->info['login']); ItemsModel::addItem(5021, $this->info['id'], '|sudba=' . $this->info['login']);
} elseif ($recr > 192) { } elseif ($recr > 192) {
//Выдаем чек +10 екр. //Выдаем чек +10 екр.
$io .= '<i>Чек на 10 екр.</i>, '; $io .= '<i>Чек на 10 екр.</i>, ';
$this->addItem(5020,$this->info['id'],'|sudba='.$this->info['login']); ItemsModel::addItem(5020, $this->info['id'], '|sudba=' . $this->info['login']);
} elseif ($recr > 180) { } elseif ($recr > 180) {
//Выдаем чек +5 екр. //Выдаем чек +5 екр.
$io .= '<i>Чек на 5 екр.</i>, '; $io .= '<i>Чек на 5 екр.</i>, ';
$this->addItem(4465,$this->info['id'],'|sudba='.$this->info['login']); ItemsModel::addItem(4465, $this->info['id'], '|sudba=' . $this->info['login']);
} else { } else {
//Выдаем чек +1 екр. //Выдаем чек +1 екр.
$io .= '<i>Чек на 1 екр.</i>, '; $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 кр. //Выдаем чек на 400 кр.
$io .= '<i>Чек на 400 кр.</i> '; $io .= '<i>Чек на 400 кр.</i> ';
$this->addItem(4274,$this->info['id'],'|sudba='.$this->info['login']); ItemsModel::addItem(4274, $this->info['id'], '|sudba=' . $this->info['login']);
} elseif ($rcr > 84) { } elseif ($rcr > 84) {
//Выдаем чек на 100 кр. //Выдаем чек на 100 кр.
$io .= '<i>Чеки на сумму 100 кр.</i> '; $io .= '<i>Чеки на сумму 100 кр.</i> ';
$this->addItem(4392,$this->info['id'],'|sudba='.$this->info['login']); ItemsModel::addItem(4392, $this->info['id'], '|sudba=' . $this->info['login']);
$this->addItem(4392,$this->info['id'],'|sudba='.$this->info['login']); ItemsModel::addItem(4392, $this->info['id'], '|sudba=' . $this->info['login']);
} elseif ($rcr > 69) { } elseif ($rcr > 69) {
//Выдаем чек на 50 кр. //Выдаем чек на 50 кр.
$io .= '<i>Чек на 50 кр.</i> '; $io .= '<i>Чек на 50 кр.</i> ';
$this->addItem(4392,$this->info['id'],'|sudba='.$this->info['login']); ItemsModel::addItem(4392, $this->info['id'], '|sudba=' . $this->info['login']);
} else { } else {
//Выдаем чек на 20 кр. //Выдаем чек на 20 кр.
$io .= '<i>Чек на 20 кр.</i> '; $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> '; $io .= '<i>Яйцо Дракона.</i> ';
$this->addItem(6445,$this->info['id']); ItemsModel::addItem(6445, $this->info['id']);
} }
$elik_1 = [
$elik_1 = array( 4037, 4038, 4039, 4040,
4037,4038,4039,4040 ];
);
$elik_1 = $elik_1[rand(0, 3)]; $elik_1 = $elik_1[rand(0, 3)];
if ($elik_1 > 0) { if ($elik_1 > 0) {
//Выдаем 1 из 4 эликов //Выдаем 1 из 4 эликов
$io .= '<i>Эликсир +22 статов</i>, '; $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% //Выдаем свиток +200%
$io .= '<i>Свиток +100% опыта</i>, '; $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(
'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('UPDATE `users_achiv` SET `snt`= `snt`+1 WHERE `id` = "' . $this->info['id'] . '" LIMIT 1');
} else { } else {
@ -128,4 +141,3 @@ if(!defined('GAME'))
} }
unset($i5, $i3, $i4); unset($i5, $i3, $i4);
?>

View File

@ -1,6 +1,8 @@
<?php <?php
if(!defined('GAME'))
{ use User\ItemsModel;
if (!defined('GAME')) {
die(); die();
} }
if ($tr['var_id'] != '') { if ($tr['var_id'] != '') {
@ -11,34 +13,34 @@ if(!defined('GAME'))
1. Требует 2 любых ключа 1. Требует 2 любых ключа
*/ */
$trgos = false; $trgos = false;
/* $keyall = mysql_fetch_array(
$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')); mysql_query(
$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')); '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'
$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) { 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(
//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'); '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; $trgos = true;
} }
if( $trgos == true ) { if ($trgos) {
// //
$io .= '<i>Целебный пирог (х2)</i>, '; $io .= '<i>Целебный пирог (х2)</i>, ';
$this->addItem(1028,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); ItemsModel::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']);
// //
$io .= '<i>Запас маны (х2)</i>, '; $io .= '<i>Запас маны (х2)</i>, ';
$this->addItem(1029,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); ItemsModel::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']);
// //
$io .= '<i>Восстановление энергии 600HP</i>, '; $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>, '; $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; $no_open_itm = true;
@ -47,4 +49,3 @@ if(!defined('GAME'))
} }
unset($i5, $i3, $i4); unset($i5, $i3, $i4);
?>

View File

@ -1,6 +1,8 @@
<?php <?php
if(!defined('GAME'))
{ use User\ItemsModel;
if (!defined('GAME')) {
die(); die();
} }
if ($tr['var_id'] != '') { if ($tr['var_id'] != '') {
@ -11,41 +13,40 @@ if(!defined('GAME'))
1. Требует 4 любых ключа 1. Требует 4 любых ключа
*/ */
$trgos = false; $trgos = false;
/* $keyall = mysql_fetch_array(
$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')); mysql_query(
$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')); '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'
$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) { 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(
//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'); '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; $trgos = true;
} }
if( $trgos == true ) { if ($trgos) {
// //
$io .= '<i>Целебный пирог (х2)</i>, '; $io .= '<i>Целебный пирог (х2)</i>, ';
$this->addItem(1028,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); ItemsModel::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']);
// //
$io .= '<i>Запас маны (х2)</i>, '; $io .= '<i>Запас маны (х2)</i>, ';
$this->addItem(1029,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); ItemsModel::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']);
// //
$io .= '<i>Восстановление энергии 900HP</i>, '; $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>, '; $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>, '; $io .= '<i>Зелье Жизни</i>, ';
$this->addItem(724,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); 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'); mysql_query('UPDATE `items_users` SET `iznosMAX` = 1 WHERE `id` = "' . $iidtm . '" LIMIT 1');
// //
$io .= '<i>Зелье Маны</i>, '; $io .= '<i>Зелье Маны</i>, ';
$this->addItem(1187,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); 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'); mysql_query('UPDATE `items_users` SET `iznosMAX` = 1 WHERE `id` = "' . $iidtm . '" LIMIT 1');
// //
} else { } else {
@ -55,4 +56,3 @@ if(!defined('GAME'))
} }
unset($i5, $i3, $i4); unset($i5, $i3, $i4);
?>

View File

@ -1,6 +1,8 @@
<?php <?php
if(!defined('GAME'))
{ use User\ItemsModel;
if (!defined('GAME')) {
die(); die();
} }
if ($tr['var_id'] != '') { if ($tr['var_id'] != '') {
@ -11,48 +13,48 @@ if(!defined('GAME'))
1. Требует 6 любых ключа 1. Требует 6 любых ключа
*/ */
$trgos = false; $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')); $keyall = mysql_fetch_array(
$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')); mysql_query(
$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')); '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'
$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) { 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(
//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'); '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; $trgos = true;
} }
if( $trgos == true ) { if ($trgos) {
// //
$io .= '<i>Целебный пирог (х3)</i>, '; $io .= '<i>Целебный пирог (х3)</i>, ';
$this->addItem(1028,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); ItemsModel::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']);
// //
$io .= '<i>Запас маны (х3)</i>, '; $io .= '<i>Запас маны (х3)</i>, ';
$this->addItem(1029,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); ItemsModel::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']);
// //
$io .= '<i>Восстановление энергии 900HP</i>, '; $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>, '; $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>, '; $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>, '; $io .= '<i>Зелье Жизни</i>, ';
$this->addItem(724,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); 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'); mysql_query('UPDATE `items_users` SET `iznosMAX` = 5 WHERE `id` = "' . $iidtm . '" LIMIT 1');
// //
$io .= '<i>Зелье Маны</i>, '; $io .= '<i>Зелье Маны</i>, ';
$this->addItem(1187,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); 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'); mysql_query('UPDATE `items_users` SET `iznosMAX` = 1 WHERE `id` = "' . $iidtm . '" LIMIT 1');
// //
$io .= '<i>Нападение</i>, '; $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; $no_open_itm = true;
@ -61,4 +63,3 @@ if(!defined('GAME'))
} }
unset($i5, $i3, $i4); unset($i5, $i3, $i4);
?>

View File

@ -1,6 +1,8 @@
<?php <?php
if(!defined('GAME'))
{ use User\ItemsModel;
if (!defined('GAME')) {
die(); die();
} }
if ($tr['var_id'] != '') { if ($tr['var_id'] != '') {
@ -11,53 +13,40 @@ if(!defined('GAME'))
1. Требует 8 любых ключа 1. Требует 8 любых ключа
*/ */
$trgos = false; $trgos = false;
/* $keyall = mysql_fetch_array(
$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')); mysql_query(
$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')); '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'
$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) { 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(
//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'); '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; $trgos = true;
} }
if( $trgos == true ) { if ($trgos) {
//
$io .= '<i>Целебный пирог (х3)</i>, '; $io .= '<i>Целебный пирог (х3)</i>, ';
$this->addItem(1028,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); ItemsModel::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']);
//
$io .= '<i>Запас маны (х3)</i>, '; $io .= '<i>Запас маны (х3)</i>, ';
$this->addItem(1029,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); ItemsModel::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']);
//
$io .= '<i>Восстановление энергии 1500HP</i>, '; $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>, '; $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>, '; $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>, '; $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>, '; $io .= '<i>Зелье Жизни</i>, ';
$this->addItem(724,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); 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>, '; $io .= '<i>Зелье Маны</i>, ';
$this->addItem(1187,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); ItemsModel::addItem(1187, $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>, '; $io .= '<i>Звездное Сияние</i>, ';
$iidtm = $this->addItem(1463,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); $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'); mysql_query('UPDATE `items_users` SET `iznosMAX` = 1 WHERE `id` = "' . $iidtm . '" LIMIT 1');
//
} else { } else {
$no_open_itm = true; $no_open_itm = true;
$this->error = 'Требуется 8 ключей с поля битвы.'; $this->error = 'Требуется 8 ключей с поля битвы.';
@ -65,4 +54,3 @@ if(!defined('GAME'))
} }
unset($i5, $i3, $i4); unset($i5, $i3, $i4);
?>

View File

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

View File

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

View File

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

View File

@ -1,51 +1,54 @@
<?php <?php
if(!defined('GAME'))
{ use User\ItemsModel;
if (!defined('GAME')) {
die(); 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 // 1000 екр. - 3-4 суперсвитка 0/20, 4 простых 0/100 + Эссенция Здоровья 0/3 + новогодний эликсир 0/10
$i4 = array( $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[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)],
$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) { 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[0] = ItemsModel::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)); $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[3] = ItemsModel::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[4] = ItemsModel::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[5] = ItemsModel::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[6] = ItemsModel::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[7] = ItemsModel::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[8] = ItemsModel::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[9] = ItemsModel::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); $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 mysql_query(
'UPDATE `items_users` SET `gift` = "Ангел",`gtxt1` = "С Днем Рождения! Поздравляем! Удачи в боях и жизни!" WHERE
`id` = "' . $i3[8] . '" OR `id` = "' . $i3[9] . '" OR `id` = "' . $i3[10] . '" `id` = "' . $i3[8] . '" OR `id` = "' . $i3[9] . '" OR `id` = "' . $i3[10] . '"
LIMIT 1'); LIMIT 1'
);
if ($io == '') { if ($io == '') {
$io = 'Какие-то предметы добавлены к Вам в инвентарь...'; $io = 'Какие-то предметы добавлены к Вам в инвентарь...';
} }
unset($itmadd, $i3, $i4); unset($itmadd, $i3, $i4);
?>

View File

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

View File

@ -1,40 +1,42 @@
<?php <?php
if(!defined('GAME'))
{ use User\ItemsModel;
if (!defined('GAME')) {
die(); die();
} }
//лечение легких травм //лечение легких травм
$ov_item = \User\ItemsModel::addItem(4412,$u->info['id'],'|srok=43200|sudba='.$u->info['login'].''); $ov_item = ItemsModel::addItem(4412, $u->info['id'], '|srok=43200|sudba=' . $u->info['login'] . '');
if ($ov_item > 0) { if ($ov_item > 0) {
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "' . $ov_item . '" LIMIT 1'); 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'].''); $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'); mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "' . $ov_item . '" LIMIT 1');
//жж6 //жж6
$ov_item = \User\ItemsModel::addItem(3101,$u->info['id'],'|srok=3600|battleUseZd=7200|sudba='.$u->info['login'].''); $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'); 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'].''); $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'); 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'].''); $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'); 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'].''); $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'); 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'].''); $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'); 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'].''); $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'); 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'].''); $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'); 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'].''); $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 `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');
@ -42,5 +44,3 @@ if(!defined('GAME'))
право на подвиг(ПТП), право на подвиг(катакомбы), право на подвиг(Гора легиона)'; право на подвиг(ПТП), право на подвиг(катакомбы), право на подвиг(Гора легиона)';
} }
?>

View File

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

View File

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

View File

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

View File

@ -1,42 +1,34 @@
<?php <?php
if(!defined('GAME'))
{ use User\ItemsModel;
if (!defined('GAME')) {
die(); die();
} }
if($p['banned']==1 || $p['proverka']==1) 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')); $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')); $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 (isset($uu['id']) && isset($uu2['id'])) {
{
if($uu['marry']>0) if ($uu['marry'] > 0) {
{
$uer = 'Персонаж уже находится в браке<br>'; $uer = 'Персонаж уже находится в браке<br>';
}elseif($uu['marry']>0) } elseif ($uu['marry'] > 0) {
{
$uer = 'Персонаж уже находится в браке<br>'; $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>'; $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>'; $uer = 'Вы не можете использовать данное заклятие на Тарманов.<br>';
}elseif($uu['admin']>0 && $u->info['admin']==0) } elseif ($uu['admin'] > 0 && $u->info['admin'] == 0) {
{
$uer = 'Вы не можете накладывать заклятие на Ангелов'; $uer = 'Вы не можете накладывать заклятие на Ангелов';
} elseif ($uu['city'] != $u->info['city'] && $p['citym1'] == 0) { } elseif ($uu['city'] != $u->info['city'] && $p['citym1'] == 0) {
$uer = 'Персонаж находится в другом городе'; $uer = 'Персонаж находится в другом городе';
} elseif ($uu['id'] == $u->info['id'] && $u->info['admin'] == 0) { } elseif ($uu['id'] == $u->info['id'] && $u->info['admin'] == 0) {
$uer = 'Вы не можете использовать на самого себя'; $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>'; $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>'; $uer = 'Вы не можете использовать данное заклятие на Тарманов.<br>';
}elseif($uu2['admin']>0 && $u->info['admin']==0) } elseif ($uu2['admin'] > 0 && $u->info['admin'] == 0) {
{
$uer = 'Вы не можете накладывать заклятие на Ангелов'; $uer = 'Вы не можете накладывать заклятие на Ангелов';
} elseif ($uu2['city'] != $u->info['city'] && $p['citym1'] == 0) { } elseif ($uu2['city'] != $u->info['city'] && $p['citym1'] == 0) {
$uer = 'Персонаж находится в другом городе'; $uer = 'Персонаж находится в другом городе';
@ -46,11 +38,9 @@ if($p['banned']==1 || $p['proverka']==1)
$uu['palpro'] = time() + 60 * 60 * 24 * 7; $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` = "' . $uu2['id'] . '" WHERE `id` = "' . $uu['id'] . '" LIMIT 1');
$upd = mysql_query('UPDATE `users` SET `marry` = "' . $uu['id'] . '" WHERE `id` = "' . $uu2['id'] . '" LIMIT 1'); $upd = mysql_query('UPDATE `users` SET `marry` = "' . $uu['id'] . '" WHERE `id` = "' . $uu2['id'] . '" LIMIT 1');
if($upd) if ($upd) {
{
$sx = ''; $sx = '';
if($u->info['sex']==1) if ($u->info['sex'] == 1) {
{
$sx = 'а'; $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;.';
@ -58,19 +48,24 @@ if($p['banned']==1 || $p['proverka']==1)
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 = new ChatMessage();
$cmsg->setCity($u->info['city']);
$cmsg->setRoom($u->info['room']); $cmsg->setRoom($u->info['room']);
$cmsg->setText($rtxt); $cmsg->setText($rtxt);
$cmsg->setType(6); $cmsg->setType(6);
$cmsg->setTypeTime(1); $cmsg->setTypeTime(1);
(new Chat())->sendMsg($cmsg); (new Chat())->sendMsg($cmsg);
$rtxt = $rang . ' &quot;' . $u->info['login'] . '&quot; подтвердил' . $sx . ' законность брака с ' . $uu2['id'] . '.'; $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)"); 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'] . '.'; $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)"); 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'); ItemsModel::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, $uu2['id'], 'sudba=' . $uu2['login'] . '|noremont=1|notransfer=1');
$uer = 'Вы успешно зафиксировали брак "' . $uu['login'] . '" и "' . $uu2['login'] . '".'; $uer = 'Вы успешно зафиксировали брак "' . $uu['login'] . '" и "' . $uu2['login'] . '".';
} else { } else {
@ -83,4 +78,3 @@ $cmsg->setTypeTime(1);
} else { } else {
$uer = 'У Вас нет прав на использование данного заклятия'; $uer = 'У Вас нет прав на использование данного заклятия';
} }
?>