From ad80a30a5fcd2792080ee7b7b7e4a3b8a5550be6 Mon Sep 17 00:00:00 2001 From: Ivor Barhansky Date: Fri, 1 Dec 2023 21:27:28 +0200 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20=D0=B2=D1=8B?= =?UTF-8?q?=D0=B7=D0=BE=D0=B2=20User->addItem.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _incl_data/class/Dungeon.php | 6 +- _incl_data/class/Magic/addsnowball.php | 8 +- _incl_data/class/Magic/hny2012.php | 23 +- _incl_data/class/Magic/hny2014.php | 19 +- _incl_data/class/Magic/pandorax.php | 9 +- _incl_data/class/Magic/predl.php | 20 +- _incl_data/class/Magic/sanich.php | 152 ++++++------- _incl_data/class/Magic/sun_per_kr.php | 91 ++++---- _incl_data/class/Magic/sun_per_kruv.php | 90 ++++---- _incl_data/class/Magic/sun_per_ogn.php | 89 ++++---- _incl_data/class/Magic/sun_per_tk.php | 87 +++---- _incl_data/class/Magic/sun_per_tp.php | 91 ++++---- _incl_data/class/Magic/sun_per_uv.php | 91 ++++---- _incl_data/class/Magic/sun_per_vod.php | 89 ++++---- _incl_data/class/Magic/sun_per_voz.php | 89 ++++---- _incl_data/class/Magic/sun_per_zem.php | 89 ++++---- _incl_data/class/Magic/sunduk.php | 286 ++++++++++++------------ _incl_data/class/Magic/sunduk_50.php | 93 ++++---- _incl_data/class/Magic/sunduk_78.php | 266 +++++++++++----------- _incl_data/class/Magic/sunduk_79.php | 99 ++++---- _incl_data/class/Magic/sunduk_80.php | 114 +++++----- _incl_data/class/Magic/sunduk_81.php | 127 +++++------ _incl_data/class/Magic/sunduk_82.php | 122 +++++----- _incl_data/class/Magic/sunduk_91.php | 29 ++- _incl_data/class/Magic/sunduk_92.php | 37 ++- _incl_data/class/Magic/sunduk_93.php | 47 ++-- _incl_data/class/Magic/sunduk_bd.php | 103 ++++----- _incl_data/class/Magic/sunduk_new.php | 77 ++++--- _incl_data/class/Magic/sunduk_ov3.php | 84 +++---- _incl_data/class/Magic/tankkom.php | 45 ++-- _incl_data/class/Magic/toporkom.php | 45 ++-- _incl_data/class/Magic/uvortkom.php | 45 ++-- _incl_data/class/User.php | 17 -- modules_data/usemarry.php | 162 +++++++------- 34 files changed, 1408 insertions(+), 1433 deletions(-) diff --git a/_incl_data/class/Dungeon.php b/_incl_data/class/Dungeon.php index 4b81b7a0..8c3c8204 100644 --- a/_incl_data/class/Dungeon.php +++ b/_incl_data/class/Dungeon.php @@ -1050,7 +1050,7 @@ class Dungeon ); if (isset($it['id'])) { $r .= 'Вы обнаружили предмет "' . $it['name'] . '".
'; - $this->addItem( + ItemsModel::addItem( ['uid' => $this->userinfo['id'], 'iid' => $it['id'], 'x' => $this->userinfo['x'], 'y' => $this->userinfo['y'], 'del' => (int)$itm[4]] ); } @@ -1099,7 +1099,7 @@ class Dungeon $u->addAction( time(), 'takeit_' . $this->info['id'] . '_' . $obj['id'], $this->userinfo['city'] ); - $this->addItem( + ItemsModel::addItem( ['uid' => $this->userinfo['id'], 'iid' => $it['id'], 'x' => $this->userinfo['x'], 'y' => $this->userinfo['y'], 'del' => (int)$itm[4]] ); $nj++; @@ -1147,7 +1147,7 @@ class Dungeon $u->addAction( time(), 'takeit_' . $this->info['id'] . '_' . $obj['id'], $this->userinfo['city'] ); - $this->addItem( + ItemsModel::addItem( ['uid' => $this->userinfo['id'], 'iid' => $it['id'], 'x' => $this->userinfo['x'], 'y' => $this->userinfo['y'], 'del' => (int)$itm[4]] ); $nj++; diff --git a/_incl_data/class/Magic/addsnowball.php b/_incl_data/class/Magic/addsnowball.php index 921b0c32..62801a9a 100644 --- a/_incl_data/class/Magic/addsnowball.php +++ b/_incl_data/class/Magic/addsnowball.php @@ -1,9 +1,7 @@ addItem(1000,$this->info['id']); -?> \ No newline at end of file +ItemsModel::addItem(1000, $this->info['id']); diff --git a/_incl_data/class/Magic/hny2012.php b/_incl_data/class/Magic/hny2012.php index 2ac5c6f9..703e251b 100644 --- a/_incl_data/class/Magic/hny2012.php +++ b/_incl_data/class/Magic/hny2012.php @@ -1,4 +1,7 @@ info['id'] == 1) { 7. Новогодний Эликсир */ //Снежок 0/13 (x1) - $idit = \User\ItemsModel::addItem(1000,$u->info['id']); + $idit = ItemsModel::addItem(1000,$u->info['id']); if($idit > 0) { mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "13" WHERE `id` = "'.$idit.'" LIMIT 1'); //Новогодний эликсир (x1) - $idit = \User\ItemsModel::addItem(997,$u->info['id']); + $idit = ItemsModel::addItem(997,$u->info['id']); mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "7" WHERE `id` = "'.$idit.'" LIMIT 1'); //Новогодний эликсир (x1) - $idit = \User\ItemsModel::addItem(2870,$u->info['id']); + $idit = ItemsModel::addItem(2870,$u->info['id']); mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "7" WHERE `id` = "'.$idit.'" LIMIT 1'); //Звездное сияние (x1) - $idit = \User\ItemsModel::addItem(1462,$u->info['id']); + $idit = ItemsModel::addItem(1462,$u->info['id']); mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "7" WHERE `id` = "'.$idit.'" LIMIT 1'); //Открытка (x1) - $idit = \User\ItemsModel::addItem(996,$u->info['id']); + $idit = ItemsModel::addItem(996,$u->info['id']); mysql_query('UPDATE `items_users` SET `gift` = "Новый Год" , `gtxt1` = "Администрация проекта поздравляет Вас с Новым, 2013, Годом!" WHERE `id` = "'.$idit.'" LIMIT 1'); //Нападалка 0/13 (x1) - $idit = \User\ItemsModel::addItem(874,$u->info['id']); + $idit = ItemsModel::addItem(874,$u->info['id']); mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "13" WHERE `id` = "'.$idit.'" LIMIT 1'); //Кольцо жизни (x1) - $idit = \User\ItemsModel::addItem(2101,$u->info['id'],'|noremont=1|srok=1209600|sudba='.$u->info['login']); + $idit = ItemsModel::addItem(2101,$u->info['id'],'|noremont=1|srok=1209600|sudba='.$u->info['login']); mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "13" WHERE `id` = "'.$idit.'" LIMIT 1'); //Восстановление Энергии 900НР (x3) - $idit = \User\ItemsModel::addItem(2710,$u->info['id']); + $idit = ItemsModel::addItem(2710,$u->info['id']); mysql_query('UPDATE `items_users` SET `gift` = "Старый Год" WHERE `id` = "'.$idit.'" LIMIT 1'); - $idit = \User\ItemsModel::addItem(2710,$u->info['id']); + $idit = ItemsModel::addItem(2710,$u->info['id']); mysql_query('UPDATE `items_users` SET `gift` = "Старый Год" WHERE `id` = "'.$idit.'" LIMIT 1'); - $idit = \User\ItemsModel::addItem(2710,$u->info['id']); + $idit = ItemsModel::addItem(2710,$u->info['id']); mysql_query('UPDATE `items_users` SET `gift` = "Старый Год" WHERE `id` = "'.$idit.'" LIMIT 1'); $u->error = 'Вы успешно использовали "'.$itm['name'].'". В инвентарь добавлены подарки. С Новым, 2013, Годом!'; diff --git a/_incl_data/class/Magic/hny2014.php b/_incl_data/class/Magic/hny2014.php index 973039cb..16df8edf 100644 --- a/_incl_data/class/Magic/hny2014.php +++ b/_incl_data/class/Magic/hny2014.php @@ -1,4 +1,7 @@ info['id']); + $idit = ItemsModel::addItem(5009,$u->info['id']); if($idit > 0) { mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "3" WHERE `id` = "'.$idit.'" LIMIT 1'); //мастера - $idit = \User\ItemsModel::addItem(4041,$u->info['id']); + $idit = ItemsModel::addItem(4041,$u->info['id']); mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "3" WHERE `id` = "'.$idit.'" LIMIT 1'); //искуства - $idit = \User\ItemsModel::addItem(4948,$u->info['id']); + $idit = ItemsModel::addItem(4948,$u->info['id']); mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "3" WHERE `id` = "'.$idit.'" LIMIT 1'); //жж6 - $idit = \User\ItemsModel::addItem(3101,$u->info['id']); + $idit = ItemsModel::addItem(3101,$u->info['id']); mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "5" WHERE `id` = "'.$idit.'" LIMIT 1'); //Открытка (x1) - $idit = \User\ItemsModel::addItem(996,$u->info['id']); + $idit = ItemsModel::addItem(996,$u->info['id']); mysql_query('UPDATE `items_users` SET `gift` = "Новый Год" , `gtxt1` = "Администрация проекта поздравляет Вас с Новым, 2023, Годом!" WHERE `id` = "'.$idit.'" LIMIT 1'); //точилка - $idit = \User\ItemsModel::addItem(6457,$u->info['id']); + $idit = ItemsModel::addItem(6457,$u->info['id']); mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "100" WHERE `id` = "'.$idit.'" LIMIT 1'); //чек на 100 екров - $idit = \User\ItemsModel::addItem(5023,$u->info['id']); + $idit = ItemsModel::addItem(5023,$u->info['id']); mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "1" WHERE `id` = "'.$idit.'" LIMIT 1'); //цепь защитника - $idit = \User\ItemsModel::addItem(6459,$u->info['id']); + $idit = ItemsModel::addItem(6459,$u->info['id']); mysql_query('UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "100" WHERE `id` = "'.$idit.'" LIMIT 1'); diff --git a/_incl_data/class/Magic/pandorax.php b/_incl_data/class/Magic/pandorax.php index 1d9809f4..666e3ddc 100644 --- a/_incl_data/class/Magic/pandorax.php +++ b/_incl_data/class/Magic/pandorax.php @@ -1,4 +1,7 @@ info['id'],'|srok=1209600|sudba='.$u->info['login']); -\User\ItemsModel::addItem($rnd0['itm2']['id'],$u->info['id'],'|srok=1209600|sudba='.$u->info['login']); +ItemsModel::addItem($rnd0['itm1']['id'],$u->info['id'],'|srok=1209600|sudba='.$u->info['login']); +ItemsModel::addItem($rnd0['itm2']['id'],$u->info['id'],'|srok=1209600|sudba='.$u->info['login']); if(rand(0,7) == 2) { $rnd0['itm3'] = mysql_fetch_array(mysql_query('SELECT `id`,`name` FROM `items_main` WHERE `id` = "'.mysql_real_escape_string($rnd0['itm3']).'" LIMIT 1')); }else{ - \User\ItemsModel::addItem($rnd0['itm3']['id'],$u->info['id'],'|srok=1209600|sudba='.$u->info['login']); + ItemsModel::addItem($rnd0['itm3']['id'],$u->info['id'],'|srok=1209600|sudba='.$u->info['login']); } $u->deleteItem($itm['id'],$u->info['id']); diff --git a/_incl_data/class/Magic/predl.php b/_incl_data/class/Magic/predl.php index 4ad71e21..0bbb4739 100644 --- a/_incl_data/class/Magic/predl.php +++ b/_incl_data/class/Magic/predl.php @@ -1,11 +1,11 @@ Акционный клановый комплект, '; - $this->addItem(11128,$this->info['id'],'|nosale=1|nodelete=1|sudba=0'); - $this->addItem(11128,$this->info['id'],'|nosale=1|nodelete=1|sudba=0'); - -?> \ No newline at end of file + +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} + +$io .= 'Акционный клановый комплект, '; +ItemsModel::addItem(11128, $this->info['id'], '|nosale=1|nodelete=1|sudba=0'); +ItemsModel::addItem(11128, $this->info['id'], '|nosale=1|nodelete=1|sudba=0'); diff --git a/_incl_data/class/Magic/sanich.php b/_incl_data/class/Magic/sanich.php index d8508caa..f0237cee 100644 --- a/_incl_data/class/Magic/sanich.php +++ b/_incl_data/class/Magic/sanich.php @@ -1,91 +1,69 @@ 0, 'sudba' => 0); - $sp_pg = mysql_query('SELECT `id`,`item_id`,`gift` FROM `items_users` WHERE `item_id` >= 3143 AND `item_id` <= 3192 AND `delete` = 0 AND `inSHop` = 0 AND `inTransfer` = 0 AND `uid` = "'.$this->info['id'].'"'); - while($pl_pg = mysql_fetch_array($sp_pg)) { - $pg_id = $pl_pg['item_id']-3142; - if(!isset($pgs[$pg_id])) { - $pgs[$pg_id] = $pl_pg['id']; - if($pl_pg['gift'] != '') { - $pgs['sudba']++; - } - $pgs['all']++; - } - } - $lk = 1; - while($lk <= 50) { - if($pgs[$lk] < 1) { - $npgs .= ', '.$lk; - } - $lk++; - } - - if($pgs['all'] < 50) { - $npgs = ltrim($npgs,', '); - $io .= 'Не удалось собрать книгу, необходимо наличие всех страниц. ['.$pgs['all'].'/50]
Недостающие страницы: '.$npgs; - $no_open_itm = true; - }else{ - //забираем страницы - $pgs['delete'] = ''; - $sp_pg = 1; - while($sp_pg <= 50) { - $pgs['delete'] .= '`id` = "'.$pgs[$sp_pg].'" OR '; - $sp_pg++; - } - - if($pgs['delete'] != '') { - $pgs['delete'] = rtrim($pgs['delete'],' OR '); - $pgs['delete'] = '('.$pgs['delete'].') AND `uid` = "'.$this->info['id'].'" LIMIT 50'; - mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE '.$pgs['delete']); - } - - $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) { - //привязанная - $this->addItem(3198,$this->info['id'],'|sudba='.$this->info['login']); - }else{ - //не привязанная - $this->addItem(3198,$this->info['id']); - } - $io .= 'Вы получили предмет "Золотая Книга"
Вы собрали книгу Саныча одним из первых поэтому получаете Золотую книгу вместо Бронзовой! ;)'; - }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 .= 'Вы получили предмет "Серебряная Книга"
Вы собрали книгу Саныча одним из первых поэтому получаете Серебряную книгу вместо Бронзовой! ;)'; - }else{*/ - //выдаем книгу - if($pgs['sudba'] > 0) { - //привязанная - $this->addItem(3196,$this->info['id'],'|sudba='.$this->info['login']); - }else{ - //не привязанная - $this->addItem(3196,$this->info['id']); - } - $io .= 'Вы получили предмет "Бронзовая Книга"'; - //} - //} +if ($tr['var_id'] == 1) { + //Бронзовая книга + $pgs = ['all' => 0, 'sudba' => 0]; + $sp_pg = mysql_query( + 'SELECT `id`,`item_id`,`gift` FROM `items_users` WHERE `item_id` >= 3143 AND `item_id` <= 3192 AND `delete` = 0 AND `inSHop` = 0 AND `inTransfer` = 0 AND `uid` = "' . $this->info['id'] . '"' + ); + while ($pl_pg = mysql_fetch_array($sp_pg)) { + $pg_id = $pl_pg['item_id'] - 3142; + if (!isset($pgs[$pg_id])) { + $pgs[$pg_id] = $pl_pg['id']; + if ($pl_pg['gift'] != '') { + $pgs['sudba']++; + } + $pgs['all']++; + } + } + $lk = 1; + while ($lk <= 50) { + if ($pgs[$lk] < 1) { + $npgs .= ', ' . $lk; + } + $lk++; + } - } - }else{ - $io .= 'Данный предмет нельзя использовать!'; - $no_open_itm = true; - } -?> \ No newline at end of file + if ($pgs['all'] < 50) { + $npgs = ltrim($npgs, ', '); + $io .= 'Не удалось собрать книгу, необходимо наличие всех страниц. [' . $pgs['all'] . '/50]
Недостающие страницы: ' . $npgs; + $no_open_itm = true; + } else { + //забираем страницы + $pgs['delete'] = ''; + $sp_pg = 1; + while ($sp_pg <= 50) { + $pgs['delete'] .= '`id` = "' . $pgs[$sp_pg] . '" OR '; + $sp_pg++; + } + + if ($pgs['delete'] != '') { + $pgs['delete'] = rtrim($pgs['delete'], ' OR '); + $pgs['delete'] = '(' . $pgs['delete'] . ') AND `uid` = "' . $this->info['id'] . '" LIMIT 50'; + mysql_query('UPDATE `items_users` SET `delete` = "' . time() . '" WHERE ' . $pgs['delete']); + } + + $sz = $this->testAction('`vars` = "gold_sanich_bonus" LIMIT 1', 1); + //выдаем книгу + if ($pgs['sudba'] > 0) { + //привязанная + ItemsModel::addItem(3196, $this->info['id'], '|sudba=' . $this->info['login']); + } else { + //не привязанная + ItemsModel::addItem(3196, $this->info['id']); + } + $io .= 'Вы получили предмет "Бронзовая Книга"'; + //} + //} + + } +} else { + $io .= 'Данный предмет нельзя использовать!'; + $no_open_itm = true; +} diff --git a/_incl_data/class/Magic/sun_per_kr.php b/_incl_data/class/Magic/sun_per_kr.php index a30a312c..30918a06 100644 --- a/_incl_data/class/Magic/sun_per_kr.php +++ b/_incl_data/class/Magic/sun_per_kr.php @@ -1,46 +1,47 @@ Подарочный комплект Критовика, '; - $this->addItem(842,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(842,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(749,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(666,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2469,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(580,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(594,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(642,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(814,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(777,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(787,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(803,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(803,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(803,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - - $io .= 'Свитки и прочие материалы...., '; - $this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2621,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2621,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(871,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(994,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - -?> \ No newline at end of file + +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} + +$io .= 'Подарочный комплект Критовика, '; +ItemsModel::addItem(842, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(842, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(749, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(666, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2469, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(580, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(594, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(642, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(814, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(777, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(787, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(803, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(803, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(803, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); + +$io .= 'Свитки и прочие материалы...., '; +ItemsModel::addItem(2712, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2621, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2621, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(871, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2139, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2140, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(5046, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4941, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(994, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(1001, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); + diff --git a/_incl_data/class/Magic/sun_per_kruv.php b/_incl_data/class/Magic/sun_per_kruv.php index bf053dfa..91a7754c 100644 --- a/_incl_data/class/Magic/sun_per_kruv.php +++ b/_incl_data/class/Magic/sun_per_kruv.php @@ -1,46 +1,46 @@ Подарочный комплект Уворота, '; - $this->addItem(4953,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4953,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4596,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4598,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2469,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4961,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4967,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4969,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4601,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4599,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4986,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4595,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4597,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4597,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4597,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - - $io .= 'Свитки и прочие материалы...., '; - $this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2643,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2643,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(872,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(994,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - -?> \ No newline at end of file + +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} + +$io .= 'Подарочный комплект Уворота, '; +ItemsModel::addItem(4953, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4953, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4596, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4598, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2469, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4961, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4967, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4969, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4601, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4599, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4986, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4595, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4597, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4597, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4597, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); + +$io .= 'Свитки и прочие материалы...., '; +ItemsModel::addItem(2712, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2643, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2643, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(872, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2139, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2140, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(5046, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4941, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(994, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(1001, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); diff --git a/_incl_data/class/Magic/sun_per_ogn.php b/_incl_data/class/Magic/sun_per_ogn.php index 60123222..6fe59d4b 100644 --- a/_incl_data/class/Magic/sun_per_ogn.php +++ b/_incl_data/class/Magic/sun_per_ogn.php @@ -1,45 +1,46 @@ Подарочный комплект Мага Огня, '; - $this->addItem(850,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(751,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(669,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(1176,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(822,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(583,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(597,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(644,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(810,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4983,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4543,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(5003,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(5003,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(5003,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - - $io .= 'Свитки и прочие материалы...., '; - $this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2687,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(873,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); // элик - $this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4942,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(1460,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2146,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); //усилок - $this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - -?> \ No newline at end of file + +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} +$io .= 'Подарочный комплект Мага Огня, '; +ItemsModel::addItem(850, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(751, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(669, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(1176, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(822, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(583, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(597, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(644, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(810, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4983, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4543, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(5003, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(5003, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(5003, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); + +$io .= 'Свитки и прочие материалы...., '; +ItemsModel::addItem(2712, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2687, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(873, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); // элик +ItemsModel::addItem(2139, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2140, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(5046, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4941, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4942, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(1460, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2146, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); //усилок +ItemsModel::addItem(1001, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); + diff --git a/_incl_data/class/Magic/sun_per_tk.php b/_incl_data/class/Magic/sun_per_tk.php index 85eb1cbb..15c27b07 100644 --- a/_incl_data/class/Magic/sun_per_tk.php +++ b/_incl_data/class/Magic/sun_per_tk.php @@ -1,44 +1,45 @@ Подарочный комплект Танка, '; - $this->addItem(4648,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4654,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4647,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4651,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2469,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4962,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4968,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4650,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4653,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4652,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4987,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4646,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4649,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4649,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4649,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - - $io .= 'Свитки и прочие материалы...., '; - $this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2430,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(870,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(994,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - -?> \ No newline at end of file + +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} +$io .= 'Подарочный комплект Танка, '; +ItemsModel::addItem(4648, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4654, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4647, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4651, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2469, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4962, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4968, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4650, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4653, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4652, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4987, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4646, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4649, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4649, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4649, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); + +$io .= 'Свитки и прочие материалы...., '; +ItemsModel::addItem(2712, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2430, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(870, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2139, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2140, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(5046, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4941, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(994, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(1001, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); + diff --git a/_incl_data/class/Magic/sun_per_tp.php b/_incl_data/class/Magic/sun_per_tp.php index 6010907c..ec89e508 100644 --- a/_incl_data/class/Magic/sun_per_tp.php +++ b/_incl_data/class/Magic/sun_per_tp.php @@ -1,46 +1,47 @@ Подарочный комплект Силача ( Топора ), '; - $this->addItem(6483,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(6483,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(6484,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(6485,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2469,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(6486,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(6487,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(6488,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(6489,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(6490,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(6491,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(6492,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(6493,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(6493,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(6493,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - - $io .= 'Свитки и прочие материалы...., '; - $this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2665,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2665,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(870,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(994,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - -?> \ No newline at end of file + +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} + +$io .= 'Подарочный комплект Силача ( Топора ), '; +ItemsModel::addItem(6483, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(6483, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(6484, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(6485, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2469, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(6486, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(6487, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(6488, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(6489, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(6490, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(6491, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(6492, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(6493, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(6493, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(6493, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); + +$io .= 'Свитки и прочие материалы...., '; +ItemsModel::addItem(2712, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2665, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2665, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(870, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2139, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2140, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(5046, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4941, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(994, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(1001, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); + diff --git a/_incl_data/class/Magic/sun_per_uv.php b/_incl_data/class/Magic/sun_per_uv.php index 6d017acc..863935cc 100644 --- a/_incl_data/class/Magic/sun_per_uv.php +++ b/_incl_data/class/Magic/sun_per_uv.php @@ -1,46 +1,47 @@ Подарочный комплект Уворота, '; - $this->addItem(605,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(605,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(748,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(667,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2469,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(735,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(579,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(593,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(641,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(813,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(775,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(786,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(802,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(802,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(802,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - - $io .= 'Свитки и прочие материалы...., '; - $this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2643,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2643,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(872,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(994,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - -?> \ No newline at end of file + +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} + +$io .= 'Подарочный комплект Уворота, '; +ItemsModel::addItem(605, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(605, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(748, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(667, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2469, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(735, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(579, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(593, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(641, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(813, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(775, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(786, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(802, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(802, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(802, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); + +$io .= 'Свитки и прочие материалы...., '; +ItemsModel::addItem(2712, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2643, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2643, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(872, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2139, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2140, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(5046, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4941, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(994, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(1001, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); + diff --git a/_incl_data/class/Magic/sun_per_vod.php b/_incl_data/class/Magic/sun_per_vod.php index 0e22cd81..006728d1 100644 --- a/_incl_data/class/Magic/sun_per_vod.php +++ b/_incl_data/class/Magic/sun_per_vod.php @@ -1,45 +1,46 @@ Подарочный комплект Мага Воды, '; - $this->addItem(851,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(753,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(670,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(1176,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(823,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(584,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(598,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(645,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(812,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4984,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4544,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(5004,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(5004,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(5004,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - - $io .= 'Свитки и прочие материалы...., '; - $this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2687,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(873,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); // элик - $this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4942,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(1460,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2147,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); //усилок - $this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - -?> \ No newline at end of file + +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} +$io .= 'Подарочный комплект Мага Воды, '; +ItemsModel::addItem(851, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(753, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(670, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(1176, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(823, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(584, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(598, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(645, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(812, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4984, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4544, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(5004, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(5004, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(5004, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); + +$io .= 'Свитки и прочие материалы...., '; +ItemsModel::addItem(2712, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2687, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(873, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); // элик +ItemsModel::addItem(2139, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2140, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(5046, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4941, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4942, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(1460, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2147, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); //усилок +ItemsModel::addItem(1001, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); + diff --git a/_incl_data/class/Magic/sun_per_voz.php b/_incl_data/class/Magic/sun_per_voz.php index cc14ecf8..c7659056 100644 --- a/_incl_data/class/Magic/sun_per_voz.php +++ b/_incl_data/class/Magic/sun_per_voz.php @@ -1,45 +1,46 @@ Подарочный комплект Мага Воздуха, '; - $this->addItem(848,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(752,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(671,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(1176,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(820,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(581,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(595,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(646,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(811,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4982,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4545,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(5002,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(5002,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(5002,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - - $io .= 'Свитки и прочие материалы...., '; - $this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2687,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(873,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); // элик - $this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4942,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(1460,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2148,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); //усилок - $this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - -?> \ No newline at end of file + +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} +$io .= 'Подарочный комплект Мага Воздуха, '; +ItemsModel::addItem(848, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(752, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(671, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(1176, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(820, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(581, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(595, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(646, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(811, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4982, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4545, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(5002, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(5002, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(5002, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); + +$io .= 'Свитки и прочие материалы...., '; +ItemsModel::addItem(2712, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2687, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(873, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); // элик +ItemsModel::addItem(2139, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2140, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(5046, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4941, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4942, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(1460, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2148, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); //усилок +ItemsModel::addItem(1001, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); + diff --git a/_incl_data/class/Magic/sun_per_zem.php b/_incl_data/class/Magic/sun_per_zem.php index 275dd7fd..417368ed 100644 --- a/_incl_data/class/Magic/sun_per_zem.php +++ b/_incl_data/class/Magic/sun_per_zem.php @@ -1,45 +1,46 @@ Подарочный комплект Мага Земли, '; - $this->addItem(849,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(750,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(668,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(1176,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(821,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(582,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(596,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(643,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(809,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4985,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4546,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(5005,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(5005,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(5005,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4401,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - - $io .= 'Свитки и прочие материалы...., '; - $this->addItem(2712,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2687,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4736,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(873,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); // элик - $this->addItem(2139,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2140,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(5046,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2390,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4941,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(4942,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(1460,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(2149,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); //усилок - $this->addItem(1001,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - $this->addItem(3102,$this->info['id'],'|nosale=1|srok=864000|sudba='.$this->info['login']); - -?> \ No newline at end of file + +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} +$io .= 'Подарочный комплект Мага Земли, '; +ItemsModel::addItem(849, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(750, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(668, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(1176, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(821, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(582, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(596, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(643, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(809, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4985, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4546, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(5005, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(5005, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(5005, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4401, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); + +$io .= 'Свитки и прочие материалы...., '; +ItemsModel::addItem(2712, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2687, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4736, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(873, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); // элик +ItemsModel::addItem(2139, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2140, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(5046, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2390, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4941, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(4942, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(1460, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(2149, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); //усилок +ItemsModel::addItem(1001, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); +ItemsModel::addItem(3102, $this->info['id'], '|nosale=1|srok=864000|sudba=' . $this->info['login']); + diff --git a/_incl_data/class/Magic/sunduk.php b/_incl_data/class/Magic/sunduk.php index f0ccf4bb..4fdd6ed2 100644 --- a/_incl_data/class/Magic/sunduk.php +++ b/_incl_data/class/Magic/sunduk.php @@ -1,149 +1,145 @@ 4) { - //маг - $itmadd = array( - //3053 - вечность , 3052 - МР 1000 - //суперсвиток - 0 => array(2142,2143,2144,2141,3052), - //простые свитки - 1 => array(3053,3043,2545,2709,874,2391), - //гарантированные - 2 => array(3044) - ); - $tr['var_id'] -= 4; - }else{ - //воин - $itmadd = array( - //суперсвиток - 0 => array(911,1172,2143,2144,1173), - //простые свитки - 1 => array(3043,2545,2709,874,2391), - //гарантированные - 2 => array(3044) - ); - } - - if($tr['var_id'] > 4) { - //Маг - $i3[9] = $this->addItem(4676,$this->info['id'],'|notr=1|sudba='.$this->info['login']); - }else{ - //Воин - $i3[9] = $this->addItem(2870,$this->info['id'],'|notr=1|sudba='.$this->info['login']); - } - - if($tr['var_id'] == 1) { - // 200 екр. - 1 суперсвиток 0/15, 2 простых 0/75 + Эссенция Здоровья 0/1 - $i4 = array( - $itmadd[0][rand(0,count($itmadd[0])-1)], - $itmadd[1][rand(0,count($itmadd[1])-1)], - $itmadd[1][rand(0,count($itmadd[1])-1)] - ); - - $i3 = array(); - - $i3[0] = $this->addItem($i4[0],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,15); - - $i3[1] = $this->addItem($i4[1],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,75); - $i3[2] = $this->addItem($i4[2],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,75); - - $i3[3] = $this->addItem(3044,$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,1); - - if($io == '') { - $io = 'Какие-то предметы добавлены к Вам в инвентарь...'; - } - - }elseif($tr['var_id'] == 2) { - // 400 екр. - 2 суперсвитка 0/15, 4 простых 0/75 + Эссенция Здоровья 0/2 + новогодний эликсир 0/7 - $i4 = array( - $itmadd[0][rand(0,count($itmadd[0])-1)], - $itmadd[0][rand(0,count($itmadd[0])-1)], - $itmadd[1][rand(0,count($itmadd[1])-1)], - $itmadd[1][rand(0,count($itmadd[1])-1)], - $itmadd[1][rand(0,count($itmadd[1])-1)], - $itmadd[1][rand(0,count($itmadd[1])-1)] - ); - - $i3 = array(); - - $i3[0] = $this->addItem($i4[0],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,15); - $i3[1] = $this->addItem($i4[1],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,15); - - $i3[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 == '') { - $io = 'Какие-то предметы добавлены к Вам в инвентарь...'; - } - - }elseif($tr['var_id'] == 3) { - // 600 екр. - 2 суперсвитка 0/20, 4 простых 0/100 + Эссенция Здоровья 0/2 + новогодний эликсир 0/10 - $i4 = array( - $itmadd[0][rand(0,count($itmadd[0])-1)], - $itmadd[0][rand(0,count($itmadd[0])-1)], - $itmadd[1][rand(0,count($itmadd[1])-1)], - $itmadd[1][rand(0,count($itmadd[1])-1)], - $itmadd[1][rand(0,count($itmadd[1])-1)], - $itmadd[1][rand(0,count($itmadd[1])-1)] - ); - - $i3 = array(); - - $i3[0] = $this->addItem($i4[0],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,20); - $i3[1] = $this->addItem($i4[1],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,20); - - $i3[2] = $this->addItem($i4[2],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,100); - $i3[3] = $this->addItem($i4[3],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,100); - $i3[4] = $this->addItem($i4[4],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,100); - $i3[5] = $this->addItem($i4[5],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,100); - - $i3[6] = $this->addItem(3044,$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,2); - - if($io == '') { - $io = 'Какие-то предметы добавлены к Вам в инвентарь...'; - } +if ($tr['var_id'] > 4) { + //маг + $itmadd = [ + //3053 - вечность , 3052 - МР 1000 + //суперсвиток + 0 => [2142, 2143, 2144, 2141, 3052], + //простые свитки + 1 => [3053, 3043, 2545, 2709, 874, 2391], + //гарантированные + 2 => [3044], + ]; + $tr['var_id'] -= 4; +} else { + //воин + $itmadd = [ + //суперсвиток + 0 => [911, 1172, 2143, 2144, 1173], + //простые свитки + 1 => [3043, 2545, 2709, 874, 2391], + //гарантированные + 2 => [3044], + ]; +} - }elseif($tr['var_id'] == 4) { - // 1000 екр. - 3-4 суперсвитка 0/20, 4 простых 0/100 + Эссенция Здоровья 0/3 + новогодний эликсир 0/10 - $i4 = array( - $itmadd[0][rand(0,count($itmadd[0])-1)], - $itmadd[0][rand(0,count($itmadd[0])-1)], - $itmadd[0][rand(0,count($itmadd[0])-1)], - $itmadd[1][rand(0,count($itmadd[1])-1)], - $itmadd[1][rand(0,count($itmadd[1])-1)], - $itmadd[1][rand(0,count($itmadd[1])-1)], - $itmadd[1][rand(0,count($itmadd[1])-1)] - ); - - $i3 = array(); - - $i3[0] = $this->addItem($i4[0],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,20); - $i3[1] = $this->addItem($i4[1],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,20); - $i3[3] = $this->addItem($i4[2],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,20); - - 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[4] = $this->addItem($i4[4],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,100); - $i3[5] = $this->addItem($i4[5],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,100); - $i3[6] = $this->addItem($i4[6],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,100); - $i3[7] = $this->addItem($i4[7],$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,100); - - $i3[8] = $this->addItem(3044,$this->info['id'],'|notr=1|sudba='.$this->info['login'],NULL,3); - - if($io == '') { - $io = 'Какие-то предметы добавлены к Вам в инвентарь...'; - } - - } - unset($itmadd,$i3,$i4); -?> \ No newline at end of file +if ($tr['var_id'] > 4) { + //Маг + $i3[9] = ItemsModel::addItem(4676, $this->info['id'], '|notr=1|sudba=' . $this->info['login']); +} else { + //Воин + $i3[9] = ItemsModel::addItem(2870, $this->info['id'], '|notr=1|sudba=' . $this->info['login']); +} + +if ($tr['var_id'] == 1) { + // 200 екр. - 1 суперсвиток 0/15, 2 простых 0/75 + Эссенция Здоровья 0/1 + $i4 = [ + $itmadd[0][rand(0, count($itmadd[0]) - 1)], + $itmadd[1][rand(0, count($itmadd[1]) - 1)], + $itmadd[1][rand(0, count($itmadd[1]) - 1)], + ]; + + $i3 = []; + $i3[0] = ItemsModel::addItem($i4[0], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 15); + $i3[1] = ItemsModel::addItem($i4[1], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 75); + $i3[2] = ItemsModel::addItem($i4[2], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 75); + $i3[3] = ItemsModel::addItem(3044, $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 1); + + if ($io == '') { + $io = 'Какие-то предметы добавлены к Вам в инвентарь...'; + } + +} elseif ($tr['var_id'] == 2) { + // 400 екр. - 2 суперсвитка 0/15, 4 простых 0/75 + Эссенция Здоровья 0/2 + новогодний эликсир 0/7 + $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 = []; + $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[6] = ItemsModel::addItem(3044, $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 2); + + if ($io == '') { + $io = 'Какие-то предметы добавлены к Вам в инвентарь...'; + } + +} elseif ($tr['var_id'] == 3) { + // 600 екр. - 2 суперсвитка 0/20, 4 простых 0/100 + Эссенция Здоровья 0/2 + новогодний эликсир 0/10 + $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 = []; + + $i3[0] = ItemsModel::addItem($i4[0], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 20); + $i3[1] = ItemsModel::addItem($i4[1], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 20); + + $i3[2] = ItemsModel::addItem($i4[2], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 100); + $i3[3] = ItemsModel::addItem($i4[3], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 100); + $i3[4] = ItemsModel::addItem($i4[4], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 100); + $i3[5] = ItemsModel::addItem($i4[5], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 100); + + $i3[6] = ItemsModel::addItem(3044, $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 2); + + if ($io == '') { + $io = 'Какие-то предметы добавлены к Вам в инвентарь...'; + } + +} elseif ($tr['var_id'] == 4) { + // 1000 екр. - 3-4 суперсвитка 0/20, 4 простых 0/100 + Эссенция Здоровья 0/3 + новогодний эликсир 0/10 + $i4 = [ + $itmadd[0][rand(0, count($itmadd[0]) - 1)], + $itmadd[0][rand(0, count($itmadd[0]) - 1)], + $itmadd[0][rand(0, count($itmadd[0]) - 1)], + $itmadd[1][rand(0, count($itmadd[1]) - 1)], + $itmadd[1][rand(0, count($itmadd[1]) - 1)], + $itmadd[1][rand(0, count($itmadd[1]) - 1)], + $itmadd[1][rand(0, count($itmadd[1]) - 1)], + ]; + + $i3 = []; + + $i3[0] = ItemsModel::addItem($i4[0], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 20); + $i3[1] = ItemsModel::addItem($i4[1], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 20); + $i3[3] = ItemsModel::addItem($i4[2], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 20); + + if (rand(0, 1000) > 250 && rand(0, 1000) < 750) { + $i3[9] = ItemsModel::addItem($i4[3], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 20); + } + + $i3[4] = ItemsModel::addItem($i4[4], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 100); + $i3[5] = ItemsModel::addItem($i4[5], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 100); + $i3[6] = ItemsModel::addItem($i4[6], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 100); + $i3[7] = ItemsModel::addItem($i4[7], $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 100); + + $i3[8] = ItemsModel::addItem(3044, $this->info['id'], '|notr=1|sudba=' . $this->info['login'], null, 3); + + if ($io == '') { + $io = 'Какие-то предметы добавлены к Вам в инвентарь...'; + } + +} +unset($itmadd, $i3, $i4); diff --git a/_incl_data/class/Magic/sunduk_50.php b/_incl_data/class/Magic/sunduk_50.php index 54239921..887e1046 100644 --- a/_incl_data/class/Magic/sunduk_50.php +++ b/_incl_data/class/Magic/sunduk_50.php @@ -1,47 +1,48 @@ info['level']; - if( $arts_lvl < 4 ) { - $arts_lvl = 4; - }elseif( $arts_lvl > 10 ) { - $arts_lvl = 10; - } - $sp1 = mysql_query('SELECT `items_id` FROM `items_main_data` WHERE `data` LIKE "%|art=%" AND `data` LIKE "%tr_lvl='.$arts_lvl.'%"'); - while( $pl1 = mysql_fetch_array($sp1) ) { - $arts_1[] = $pl1['items_id']; - } - $arts_1 = $arts_1[rand(0,count($arts_1)-1)]; - if( $arts_1 > 0 ) { - $this->addItem($arts_1,$this->info['id'],'|sroknext=1|nosale=1|srok='.(1*86400).'',NULL,75); - } - } - }else{ - //Выдаем предмет - $this->addItem($i3[0],$this->info['id'],'|nosale=1|notr=1|sudba='.$this->info['login'],NULL,$i3[1]); - } - $i4++; - } - - if($io == '') { - $io .= 'Какие-то предметы добавлены к Вам в инвентарь...'; - } - - } - unset($i5,$i3,$i4); -?> \ No newline at end of file + +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} +if ($tr['var_id'] != '') { + + $i4 = 0; + $i5 = explode('@', $tr['var_id']); + while ($i4 < count($i5)) { + $i3 = explode('-', $i5[$i4]); + if ($i3 == 'ekr') { + //Выдаем екр. + } elseif ($i3[0] == 'artefact') { + //Выдаем случайный артефакт. + if (rand(0, 100) <= $i3[1]) { + $io = 'Вы обнаружили временный Артефакт и какие-то предметы...'; + $arts_1 = []; + $arts_lvl = $this->info['level']; + if ($arts_lvl < 4) { + $arts_lvl = 4; + } elseif ($arts_lvl > 10) { + $arts_lvl = 10; + } + $sp1 = mysql_query('SELECT `items_id` FROM `items_main_data` WHERE `data` LIKE "%|art=%" AND `data` LIKE "%tr_lvl=' . $arts_lvl . '%"'); + while ($pl1 = mysql_fetch_array($sp1)) { + $arts_1[] = $pl1['items_id']; + } + $arts_1 = $arts_1[rand(0, count($arts_1) - 1)]; + if ($arts_1 > 0) { + ItemsModel::addItem($arts_1, $this->info['id'], '|sroknext=1|nosale=1|srok=' . (1 * 86400) . '', null, 75); + } + } + } else { + //Выдаем предмет + ItemsModel::addItem($i3[0], $this->info['id'], '|nosale=1|notr=1|sudba=' . $this->info['login'], null, $i3[1]); + } + $i4++; + } + + if ($io == '') { + $io .= 'Какие-то предметы добавлены к Вам в инвентарь...'; + } + +} +unset($i5, $i3, $i4); diff --git a/_incl_data/class/Magic/sunduk_78.php b/_incl_data/class/Magic/sunduk_78.php index dd67947a..3f9e06b1 100644 --- a/_incl_data/class/Magic/sunduk_78.php +++ b/_incl_data/class/Magic/sunduk_78.php @@ -1,131 +1,143 @@ info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - $key2 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4461 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - $key3 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4462 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - $key4 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4463 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - - if( isset($key1['id']) && isset($key2['id']) && isset($key3['id']) && isset($key4['id']) ) { - mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `id` = '.$key1['id'].' OR `id` = '.$key2['id'].' OR `id` = '.$key3['id'].' OR `id` = '.$key4['id'].' LIMIT 4'); - $trgos = true; - } - - if( $trgos == true ) { - if( rand(0,100) == 57 || $this->info['admin'] > 0 ) { - //Выдаем артефакт - $io .= 'Временный артефакт, '; - $arts_1 = array(); - $arts_lvl = $this->info['level']; - if( $arts_lvl < 4 ) { - $arts_lvl = 4; - }elseif( $arts_lvl > 10 ) { - $arts_lvl = 10; - } - $sp1 = mysql_query('SELECT `items_id` FROM `items_main_data` WHERE `data` LIKE "%|art=%" AND `data` LIKE "%tr_lvl='.$arts_lvl.'%"'); - while( $pl1 = mysql_fetch_array($sp1) ) { - $arts_1[] = $pl1['items_id']; - } - $arts_1 = $arts_1[rand(0,count($arts_1)-1)]; - if( $arts_1 > 0 ) { - $this->addItem($arts_1,$this->info['id'],'|nosale=1|srok='.(1*259200).'',NULL,50); - } - //echo '['.$arts_1[rand(0,count($arts_1)-1)].'!'.count($arts_1).'!'.$arts_lvl.']'; - } - - $recr=rand(1,200); // 0.5% 4510 - 40 екр /2% 5021 - 20 екр /5.5% 5020 -10 екр/ 10.5% 4465 -5 екр/ 100% 5017 - 1екр - $rcr=rand(1,200); // 5%4274 - 400 кр / 15% 4392/4392 - 100 кр / 30% 4392 -50 кр/ 100% 4464 - 20кр - $ryay=rand(1,200); // 5%4274 - 400 кр / 15% 4392/4392 - 100 кр / 30% 4392 -50 кр/ 100% 4464 - 20кр - - if( $recr > 199 ) { - //Выдаем чек +40 екр. - - $io .= 'Чек на 40 екр., '; - $this->addItem(4510,$this->info['id'],'|sudba='.$this->info['login']); - - }elseif( $recr > 198 ){ - //Выдаем чек +20 екр. - $io .= 'Чек на 20 екр., '; - $this->addItem(5021,$this->info['id'],'|sudba='.$this->info['login']); - }elseif( $recr > 192 ){ - //Выдаем чек +10 екр. - $io .= 'Чек на 10 екр., '; - $this->addItem(5020,$this->info['id'],'|sudba='.$this->info['login']); - }elseif( $recr > 180 ){ - //Выдаем чек +5 екр. - $io .= 'Чек на 5 екр., '; - $this->addItem(4465,$this->info['id'],'|sudba='.$this->info['login']); - }else{ - //Выдаем чек +1 екр. - $io .= 'Чек на 1 екр., '; - $this->addItem(5017,$this->info['id'],'|sudba='.$this->info['login']); - } - - if( $rcr > 94 ) { - //Выдаем чек на 400 кр. - $io .= 'Чек на 400 кр. '; - $this->addItem(4274,$this->info['id'],'|sudba='.$this->info['login']); - }elseif( $rcr > 84 ){ - //Выдаем чек на 100 кр. - $io .= 'Чеки на сумму 100 кр. '; - $this->addItem(4392,$this->info['id'],'|sudba='.$this->info['login']); - $this->addItem(4392,$this->info['id'],'|sudba='.$this->info['login']); - }elseif( $rcr > 69 ){ - //Выдаем чек на 50 кр. - $io .= 'Чек на 50 кр. '; - $this->addItem(4392,$this->info['id'],'|sudba='.$this->info['login']); - }else{ - //Выдаем чек на 20 кр. - $io .= 'Чек на 20 кр. '; - $this->addItem(4464,$this->info['id'],'|sudba='.$this->info['login']); - } - if( $ryay > 199 ) { - //Выдаем яйцо дракона. - $io .= 'Яйцо Дракона. '; - $this->addItem(6445,$this->info['id']); - } - - - $elik_1 = array( - 4037,4038,4039,4040 - ); - $elik_1 = $elik_1[rand(0,3)]; - if( $elik_1 > 0 ) { - //Выдаем 1 из 4 эликов - $io .= 'Эликсир +22 статов, '; - $this->addItem($elik_1,$this->info['id'],'|nosale=1|',NULL,1); - } - +use User\ItemsModel; - - //Выдаем свиток +200% - $io .= 'Свиток +100% опыта, '; - $this->addItem(4466,$this->info['id'],''); - - mysql_query('INSERT INTO `actions`(`uid`, `time`, `city`, `room`, `vars`, `ip`, `vals`, `val`) VALUES ("'.$this->info['id'].'","'.time().'","capitalcity","'.$this->info['room'].'","trup_sun"," ","","")'); - mysql_query('UPDATE `users_achiv` SET `snt`= `snt`+1 WHERE `id` = "'.$this->info['id'].'" LIMIT 1'); - - }else{ - $no_open_itm = true; - $this->error = 'Требуется 4 различных ключа с поля битвы.'; - } +if (!defined('GAME')) { + die(); +} +if ($tr['var_id'] != '') { - - } - unset($i5,$i3,$i4); -?> \ No newline at end of file + $io = ''; + + /* + 1. Выпадает артефакт уровня персонажа - 1% , временный , не продается , судьба , 3 дн. срок годности + 2. Выпадает либо 5 екр. свиток, либо свиток +200% опыта на 3 часа (без заморозки) + 3. 1 из 4 эликсирова +15 (екр.) + 4. Чек 20 кр. + */ + $trgos = false; + + $key1 = mysql_fetch_array( + mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4460 AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1') + ); + $key2 = mysql_fetch_array( + mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4461 AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1') + ); + $key3 = mysql_fetch_array( + mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4462 AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1') + ); + $key4 = mysql_fetch_array( + mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4463 AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1') + ); + + if (isset($key1['id']) && isset($key2['id']) && isset($key3['id']) && isset($key4['id'])) { + mysql_query( + 'UPDATE `items_users` SET `delete` = "' . time() . '" WHERE `id` = ' . $key1['id'] . ' OR `id` = ' . $key2['id'] . ' OR `id` = ' . $key3['id'] . ' OR `id` = ' . $key4['id'] . ' LIMIT 4' + ); + $trgos = true; + } + + if ($trgos == true) { + if (rand(0, 100) == 57 || $this->info['admin'] > 0) { + //Выдаем артефакт + $io .= 'Временный артефакт, '; + $arts_1 = []; + $arts_lvl = $this->info['level']; + if ($arts_lvl < 4) { + $arts_lvl = 4; + } elseif ($arts_lvl > 10) { + $arts_lvl = 10; + } + $sp1 = mysql_query('SELECT `items_id` FROM `items_main_data` WHERE `data` LIKE "%|art=%" AND `data` LIKE "%tr_lvl=' . $arts_lvl . '%"'); + while ($pl1 = mysql_fetch_array($sp1)) { + $arts_1[] = $pl1['items_id']; + } + $arts_1 = $arts_1[rand(0, count($arts_1) - 1)]; + if ($arts_1 > 0) { + ItemsModel::addItem($arts_1, $this->info['id'], '|nosale=1|srok=' . (1 * 259200) . '', null, 50); + } + //echo '['.$arts_1[rand(0,count($arts_1)-1)].'!'.count($arts_1).'!'.$arts_lvl.']'; + } + + $recr = rand(1, 200); // 0.5% 4510 - 40 екр /2% 5021 - 20 екр /5.5% 5020 -10 екр/ 10.5% 4465 -5 екр/ 100% 5017 - 1екр + $rcr = rand(1, 200); // 5%4274 - 400 кр / 15% 4392/4392 - 100 кр / 30% 4392 -50 кр/ 100% 4464 - 20кр + $ryay = rand(1, 200); // 5%4274 - 400 кр / 15% 4392/4392 - 100 кр / 30% 4392 -50 кр/ 100% 4464 - 20кр + + if ($recr > 199) { + //Выдаем чек +40 екр. + + $io .= 'Чек на 40 екр., '; + ItemsModel::addItem(4510, $this->info['id'], '|sudba=' . $this->info['login']); + + } elseif ($recr > 198) { + //Выдаем чек +20 екр. + $io .= 'Чек на 20 екр., '; + ItemsModel::addItem(5021, $this->info['id'], '|sudba=' . $this->info['login']); + } elseif ($recr > 192) { + //Выдаем чек +10 екр. + $io .= 'Чек на 10 екр., '; + ItemsModel::addItem(5020, $this->info['id'], '|sudba=' . $this->info['login']); + } elseif ($recr > 180) { + //Выдаем чек +5 екр. + $io .= 'Чек на 5 екр., '; + ItemsModel::addItem(4465, $this->info['id'], '|sudba=' . $this->info['login']); + } else { + //Выдаем чек +1 екр. + $io .= 'Чек на 1 екр., '; + ItemsModel::addItem(5017, $this->info['id'], '|sudba=' . $this->info['login']); + } + + if ($rcr > 94) { + //Выдаем чек на 400 кр. + $io .= 'Чек на 400 кр. '; + ItemsModel::addItem(4274, $this->info['id'], '|sudba=' . $this->info['login']); + } elseif ($rcr > 84) { + //Выдаем чек на 100 кр. + $io .= 'Чеки на сумму 100 кр. '; + ItemsModel::addItem(4392, $this->info['id'], '|sudba=' . $this->info['login']); + ItemsModel::addItem(4392, $this->info['id'], '|sudba=' . $this->info['login']); + } elseif ($rcr > 69) { + //Выдаем чек на 50 кр. + $io .= 'Чек на 50 кр. '; + ItemsModel::addItem(4392, $this->info['id'], '|sudba=' . $this->info['login']); + } else { + //Выдаем чек на 20 кр. + $io .= 'Чек на 20 кр. '; + ItemsModel::addItem(4464, $this->info['id'], '|sudba=' . $this->info['login']); + } + if ($ryay > 199) { + //Выдаем яйцо дракона. + $io .= 'Яйцо Дракона. '; + ItemsModel::addItem(6445, $this->info['id']); + } + + + $elik_1 = [ + 4037, 4038, 4039, 4040, + ]; + $elik_1 = $elik_1[rand(0, 3)]; + if ($elik_1 > 0) { + //Выдаем 1 из 4 эликов + $io .= 'Эликсир +22 статов, '; + ItemsModel::addItem($elik_1, $this->info['id'], '|nosale=1|', null, 1); + } + + + //Выдаем свиток +200% + $io .= 'Свиток +100% опыта, '; + ItemsModel::addItem(4466, $this->info['id'], ''); + + mysql_query( + 'INSERT INTO `actions`(`uid`, `time`, `city`, `room`, `vars`, `ip`, `vals`, `val`) VALUES ("' . $this->info['id'] . '","' . time( + ) . '","capitalcity","' . $this->info['room'] . '","trup_sun"," ","","")' + ); + mysql_query('UPDATE `users_achiv` SET `snt`= `snt`+1 WHERE `id` = "' . $this->info['id'] . '" LIMIT 1'); + + } else { + $no_open_itm = true; + $this->error = 'Требуется 4 различных ключа с поля битвы.'; + } + + +} +unset($i5, $i3, $i4); diff --git a/_incl_data/class/Magic/sunduk_79.php b/_incl_data/class/Magic/sunduk_79.php index 6f42c80e..6153a043 100644 --- a/_incl_data/class/Magic/sunduk_79.php +++ b/_incl_data/class/Magic/sunduk_79.php @@ -1,50 +1,51 @@ info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - $key2 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4461 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - $key3 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4462 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - $key4 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4463 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - */ - $keyall = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - if( $keyall[0] >= 2 ) { - mysql_query('DELETE FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 2'); - //mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `id` = '.$key1['id'].' OR `id` = '.$key2['id'].' OR `id` = '.$key3['id'].' OR `id` = '.$key4['id'].' LIMIT 4'); - $trgos = true; - } - - if( $trgos == true ) { - // - $io .= 'Целебный пирог (х2), '; - $this->addItem(1028,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - $this->addItem(1028,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - // - $io .= 'Запас маны (х2), '; - $this->addItem(1029,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - $this->addItem(1029,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - // - $io .= 'Восстановление энергии 600HP, '; - $this->addItem(4015,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - // - $io .= 'Восстановление энергии 500MP, '; - $this->addItem(4024,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - // - }else{ - $no_open_itm = true; - $this->error = 'Требуется 2 ключа с поля битвы.'; - } - - } - unset($i5,$i3,$i4); -?> \ No newline at end of file + +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} +if ($tr['var_id'] != '') { + + $io = ''; + + /* + 1. Требует 2 любых ключа + */ + $trgos = false; + $keyall = mysql_fetch_array( + mysql_query( + 'SELECT COUNT(`id`) FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1' + ) + ); + if ($keyall[0] >= 2) { + mysql_query( + 'DELETE FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 2' + ); + + $trgos = true; + } + + if ($trgos) { + // + $io .= 'Целебный пирог (х2), '; + ItemsModel::addItem(1028, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + ItemsModel::addItem(1028, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + // + $io .= 'Запас маны (х2), '; + ItemsModel::addItem(1029, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + ItemsModel::addItem(1029, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + // + $io .= 'Восстановление энергии 600HP, '; + ItemsModel::addItem(4015, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + // + $io .= 'Восстановление энергии 500MP, '; + ItemsModel::addItem(4024, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + // + } else { + $no_open_itm = true; + $this->error = 'Требуется 2 ключа с поля битвы.'; + } + +} +unset($i5, $i3, $i4); diff --git a/_incl_data/class/Magic/sunduk_80.php b/_incl_data/class/Magic/sunduk_80.php index 94bebf73..057eceb0 100644 --- a/_incl_data/class/Magic/sunduk_80.php +++ b/_incl_data/class/Magic/sunduk_80.php @@ -1,58 +1,58 @@ info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - $key2 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4461 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - $key3 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4462 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - $key4 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4463 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - */ - $keyall = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - if( $keyall[0] >= 4 ) { - mysql_query('DELETE FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 4'); - //mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `id` = '.$key1['id'].' OR `id` = '.$key2['id'].' OR `id` = '.$key3['id'].' OR `id` = '.$key4['id'].' LIMIT 4'); - $trgos = true; - } - - if( $trgos == true ) { - // - $io .= 'Целебный пирог (х2), '; - $this->addItem(1028,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - $this->addItem(1028,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - // - $io .= 'Запас маны (х2), '; - $this->addItem(1029,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - $this->addItem(1029,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - // - $io .= 'Восстановление энергии 900HP, '; - $this->addItem(2710,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - // - $io .= 'Восстановление энергии 1000MP, '; - $this->addItem(4030,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - // - $io .= 'Зелье Жизни, '; - $this->addItem(724,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - mysql_query('UPDATE `items_users` SET `iznosMAX` = 1 WHERE `id` = "'.$iidtm.'" LIMIT 1'); - // - $io .= 'Зелье Маны, '; - $this->addItem(1187,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - mysql_query('UPDATE `items_users` SET `iznosMAX` = 1 WHERE `id` = "'.$iidtm.'" LIMIT 1'); - // - }else{ - $no_open_itm = true; - $this->error = 'Требуется 4 ключа с поля битвы.'; - } - - } - unset($i5,$i3,$i4); -?> \ No newline at end of file + +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} +if ($tr['var_id'] != '') { + + $io = ''; + + /* + 1. Требует 4 любых ключа + */ + $trgos = false; + $keyall = mysql_fetch_array( + mysql_query( + 'SELECT COUNT(`id`) FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1' + ) + ); + if ($keyall[0] >= 4) { + mysql_query( + 'DELETE FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 4' + ); + $trgos = true; + } + + if ($trgos) { + // + $io .= 'Целебный пирог (х2), '; + ItemsModel::addItem(1028, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + ItemsModel::addItem(1028, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + // + $io .= 'Запас маны (х2), '; + ItemsModel::addItem(1029, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + ItemsModel::addItem(1029, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + // + $io .= 'Восстановление энергии 900HP, '; + ItemsModel::addItem(2710, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + // + $io .= 'Восстановление энергии 1000MP, '; + ItemsModel::addItem(4030, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + // + $io .= 'Зелье Жизни, '; + ItemsModel::addItem(724, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + mysql_query('UPDATE `items_users` SET `iznosMAX` = 1 WHERE `id` = "' . $iidtm . '" LIMIT 1'); + // + $io .= 'Зелье Маны, '; + ItemsModel::addItem(1187, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + mysql_query('UPDATE `items_users` SET `iznosMAX` = 1 WHERE `id` = "' . $iidtm . '" LIMIT 1'); + // + } else { + $no_open_itm = true; + $this->error = 'Требуется 4 ключа с поля битвы.'; + } + +} +unset($i5, $i3, $i4); diff --git a/_incl_data/class/Magic/sunduk_81.php b/_incl_data/class/Magic/sunduk_81.php index 49fbce0b..dd369d79 100644 --- a/_incl_data/class/Magic/sunduk_81.php +++ b/_incl_data/class/Magic/sunduk_81.php @@ -1,64 +1,65 @@ info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - $key2 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4461 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - $key3 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4462 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - $key4 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4463 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - */ - $keyall = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - if( $keyall[0] >= 6 ) { - mysql_query('DELETE FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 6'); - //mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `id` = '.$key1['id'].' OR `id` = '.$key2['id'].' OR `id` = '.$key3['id'].' OR `id` = '.$key4['id'].' LIMIT 4'); - $trgos = true; - } - - if( $trgos == true ) { - // - $io .= 'Целебный пирог (х3), '; - $this->addItem(1028,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - $this->addItem(1028,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - // - $io .= 'Запас маны (х3), '; - $this->addItem(1029,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - $this->addItem(1029,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - // - $io .= 'Восстановление энергии 900HP, '; - $this->addItem(2711,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - // - $io .= 'Восстановление энергии 1000MP, '; - $this->addItem(4029,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - // - $io .= 'Пропуск забытых, '; - $this->addItem(2412,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - // - $io .= 'Зелье Жизни, '; - $this->addItem(724,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - mysql_query('UPDATE `items_users` SET `iznosMAX` = 5 WHERE `id` = "'.$iidtm.'" LIMIT 1'); - // - $io .= 'Зелье Маны, '; - $this->addItem(1187,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - mysql_query('UPDATE `items_users` SET `iznosMAX` = 1 WHERE `id` = "'.$iidtm.'" LIMIT 1'); - // - $io .= 'Нападение, '; - $this->addItem(865,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - // - }else{ - $no_open_itm = true; - $this->error = 'Требуется 6 ключей с поля битвы.'; - } - - } - unset($i5,$i3,$i4); -?> \ No newline at end of file + +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} +if ($tr['var_id'] != '') { + + $io = ''; + + /* + 1. Требует 6 любых ключа + */ + $trgos = false; + + $keyall = mysql_fetch_array( + mysql_query( + 'SELECT COUNT(`id`) FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1' + ) + ); + if ($keyall[0] >= 6) { + mysql_query( + 'DELETE FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 6' + ); + $trgos = true; + } + + if ($trgos) { + // + $io .= 'Целебный пирог (х3), '; + ItemsModel::addItem(1028, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + ItemsModel::addItem(1028, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + // + $io .= 'Запас маны (х3), '; + ItemsModel::addItem(1029, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + ItemsModel::addItem(1029, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + // + $io .= 'Восстановление энергии 900HP, '; + ItemsModel::addItem(2711, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + // + $io .= 'Восстановление энергии 1000MP, '; + ItemsModel::addItem(4029, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + // + $io .= 'Пропуск забытых, '; + ItemsModel::addItem(2412, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + // + $io .= 'Зелье Жизни, '; + 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 .= 'Зелье Маны, '; + ItemsModel::addItem(1187, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + mysql_query('UPDATE `items_users` SET `iznosMAX` = 1 WHERE `id` = "' . $iidtm . '" LIMIT 1'); + // + $io .= 'Нападение, '; + ItemsModel::addItem(865, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + // + } else { + $no_open_itm = true; + $this->error = 'Требуется 6 ключей с поля битвы.'; + } + +} +unset($i5, $i3, $i4); diff --git a/_incl_data/class/Magic/sunduk_82.php b/_incl_data/class/Magic/sunduk_82.php index 8b0cbce5..d28cc165 100644 --- a/_incl_data/class/Magic/sunduk_82.php +++ b/_incl_data/class/Magic/sunduk_82.php @@ -1,68 +1,56 @@ info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - $key2 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4461 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - $key3 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4462 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - $key4 = mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `item_id` = 4463 AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - */ - $keyall = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1')); - if( $keyall[0] >= 8 ) { - mysql_query('DELETE FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = '.$this->info['id'].' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 8'); - //mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `id` = '.$key1['id'].' OR `id` = '.$key2['id'].' OR `id` = '.$key3['id'].' OR `id` = '.$key4['id'].' LIMIT 4'); - $trgos = true; - } - - if( $trgos == true ) { - // - $io .= 'Целебный пирог (х3), '; - $this->addItem(1028,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - $this->addItem(1028,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - // - $io .= 'Запас маны (х3), '; - $this->addItem(1029,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - $this->addItem(1029,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - // - $io .= 'Восстановление энергии 1500HP, '; - $this->addItem(4022,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - // - $io .= 'Восстановление энергии 1500MP, '; - $this->addItem(4034,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - // - $io .= 'Пропуск Забытых, '; - $this->addItem(2412,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - // - $io .= 'Нападение, '; - $this->addItem(865,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - // - $io .= 'Зелье Жизни, '; - $this->addItem(724,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - //mysql_query('UPDATE `items_users` SET `iznosMAX` = 5 WHERE `id` = "'.$iidtm.'" LIMIT 1'); - // - $io .= 'Зелье Маны, '; - $this->addItem(1187,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - //mysql_query('UPDATE `items_users` SET `iznosMAX` = 5 WHERE `id` = "'.$iidtm.'" LIMIT 1'); - // - $io .= 'Звездное Сияние, '; - $iidtm = $this->addItem(1463,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - mysql_query('UPDATE `items_users` SET `iznosMAX` = 1 WHERE `id` = "'.$iidtm.'" LIMIT 1'); - // - }else{ - $no_open_itm = true; - $this->error = 'Требуется 8 ключей с поля битвы.'; - } - - } - unset($i5,$i3,$i4); -?> \ No newline at end of file + +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} +if ($tr['var_id'] != '') { + + $io = ''; + + /* + 1. Требует 8 любых ключа + */ + $trgos = false; + $keyall = mysql_fetch_array( + mysql_query( + 'SELECT COUNT(`id`) FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1' + ) + ); + if ($keyall[0] >= 8) { + mysql_query( + 'DELETE FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 8' + ); + $trgos = true; + } + + if ($trgos) { + $io .= 'Целебный пирог (х3), '; + ItemsModel::addItem(1028, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + ItemsModel::addItem(1028, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + $io .= 'Запас маны (х3), '; + ItemsModel::addItem(1029, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + ItemsModel::addItem(1029, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + $io .= 'Восстановление энергии 1500HP, '; + ItemsModel::addItem(4022, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + $io .= 'Восстановление энергии 1500MP, '; + ItemsModel::addItem(4034, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + $io .= 'Пропуск Забытых, '; + ItemsModel::addItem(2412, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + $io .= 'Нападение, '; + ItemsModel::addItem(865, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + $io .= 'Зелье Жизни, '; + ItemsModel::addItem(724, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + $io .= 'Зелье Маны, '; + ItemsModel::addItem(1187, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + $io .= 'Звездное Сияние, '; + $iidtm = ItemsModel::addItem(1463, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + mysql_query('UPDATE `items_users` SET `iznosMAX` = 1 WHERE `id` = "' . $iidtm . '" LIMIT 1'); + } else { + $no_open_itm = true; + $this->error = 'Требуется 8 ключей с поля битвы.'; + } + +} +unset($i5, $i3, $i4); diff --git a/_incl_data/class/Magic/sunduk_91.php b/_incl_data/class/Magic/sunduk_91.php index 58c8c321..9594fbd7 100644 --- a/_incl_data/class/Magic/sunduk_91.php +++ b/_incl_data/class/Magic/sunduk_91.php @@ -1,17 +1,14 @@ †ажда †изни +6, '; - $this->addItem(3101,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - - $io .= '‡вездная ’Яжесть, '; - $this->addItem(1462,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - - - $io .= '—ек на 2 екрК, '; - $this->addItem(5018,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - -?> \ No newline at end of file + +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} + +$io .= 'Жажда Жизни +6, '; +ItemsModel::addItem(3101, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); +$io .= 'Звездная Тяжесть, '; +ItemsModel::addItem(1462, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); +$io .= 'Чек на 2 екр, '; +ItemsModel::addItem(5018, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); diff --git a/_incl_data/class/Magic/sunduk_92.php b/_incl_data/class/Magic/sunduk_92.php index 40a28b0e..da283034 100644 --- a/_incl_data/class/Magic/sunduk_92.php +++ b/_incl_data/class/Magic/sunduk_92.php @@ -1,20 +1,19 @@ Чек на 5 ЕКР, '; - $this->addItem(5019,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - - $io .= 'Бутерброд -The Best Friend-, '; - $this->addItem(5010,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - - $io .= 'Звездное Сияние, '; - $this->addItem(1463,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - - $io .= 'Амброзия подмастерья Владык, '; - $this->addItem(5239,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - - -?> \ No newline at end of file + +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} + +$io .= 'Чек на 5 ЕКР, '; +ItemsModel::addItem(5019, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + +$io .= 'Бутерброд -The Best Friend-, '; +ItemsModel::addItem(5010, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + +$io .= 'Звездное Сияние, '; +ItemsModel::addItem(1463, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + +$io .= 'Амброзия подмастерья Владык, '; +ItemsModel::addItem(5239, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); diff --git a/_incl_data/class/Magic/sunduk_93.php b/_incl_data/class/Magic/sunduk_93.php index e735c7bf..798b5a35 100644 --- a/_incl_data/class/Magic/sunduk_93.php +++ b/_incl_data/class/Magic/sunduk_93.php @@ -1,25 +1,26 @@ Чек на 10 ЕКР, '; - $this->addItem(5020,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - - $io .= 'Амброзия Скучающих Владык, '; - $this->addItem(5069,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - - $io .= 'Эликсир Магического Искусства, '; - $this->addItem(4948,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - $io .= 'Звездное Сияние, '; - $this->addItem(1463,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - - $io .= 'Жажда Жизни +6, '; - $this->addItem(3101,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - - $io .= 'Бутерброд -The Best Friend-, '; - $this->addItem(5010,$this->info['id'],'|nosale=1|sudba='.$this->info['login']); - -?> \ No newline at end of file +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} + +$io .= 'Чек на 10 ЕКР, '; +ItemsModel::addItem(5020, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + +$io .= 'Амброзия Скучающих Владык, '; +ItemsModel::addItem(5069, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + +$io .= 'Эликсир Магического Искусства, '; +ItemsModel::addItem(4948, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + +$io .= 'Звездное Сияние, '; +ItemsModel::addItem(1463, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + +$io .= 'Жажда Жизни +6, '; +ItemsModel::addItem(3101, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + +$io .= 'Бутерброд -The Best Friend-, '; +ItemsModel::addItem(5010, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']); + diff --git a/_incl_data/class/Magic/sunduk_bd.php b/_incl_data/class/Magic/sunduk_bd.php index bd0b77d5..7456093b 100644 --- a/_incl_data/class/Magic/sunduk_bd.php +++ b/_incl_data/class/Magic/sunduk_bd.php @@ -1,51 +1,54 @@ array(911,1172,2143,2144,1173), - //простые свитки - 1 => array(3043,2545,2709,874,2391), - //гарантированные - 2 => array(3044) - ); - - // 1000 екр. - 3-4 суперсвитка 0/20, 4 простых 0/100 + Эссенция Здоровья 0/3 + новогодний эликсир 0/10 - $i4 = array( - $itmadd[0][rand(0,count($itmadd[0])-1)], - $itmadd[0][rand(0,count($itmadd[0])-1)], - $itmadd[0][rand(0,count($itmadd[0])-1)], - $itmadd[1][rand(0,count($itmadd[1])-1)], - $itmadd[1][rand(0,count($itmadd[1])-1)], - $itmadd[1][rand(0,count($itmadd[1])-1)], - $itmadd[1][rand(0,count($itmadd[1])-1)] - ); - - $i3 = array(); - - if( $u->info['level'] > 8 ) { - $i3[0] = $this->addItem(2143,$this->info['id'],'|nosale=1|notr=1|sudba='.$this->info['login'],NULL,($u->info['level']*2-10)); - $i3[1] = $this->addItem(2144,$this->info['id'],'|nosale=1|notr=1|sudba='.$this->info['login'],NULL,($u->info['level']*2-10)); - } - - $i3[3] = $this->addItem(4020,$this->info['id'],'|nosale=1|notr=1|sudba='.$this->info['login'],NULL,($u->info['level']*2-10)); - $i3[4] = $this->addItem(4035,$this->info['id'],'|nosale=1|notr=1|sudba='.$this->info['login'],NULL,($u->info['level']*2-10)); - $i3[5] = $this->addItem(3101,$this->info['id'],'|nosale=1|notr=1|sudba='.$this->info['login'],NULL,($u->info['level']*2-10)); - $i3[6] = $this->addItem(4041,$this->info['id'],'|nosale=1|notr=1|sudba='.$this->info['login'],NULL,($u->info['level']*2-10)); - $i3[7] = $this->addItem(4541,$this->info['id'],'|nosale=1|notr=1|sudba='.$this->info['login'],NULL,1); - $i3[8] = $this->addItem(4542,$this->info['id'],'|nosale=1|notr=1|sudba='.$this->info['login'],NULL,1); - $i3[9] = $this->addItem(3048,$this->info['id'],'|nosale=1|notr=1|sudba='.$this->info['login'],NULL,1); - $i3[10] = $this->addItem(3041,$this->info['id'],'|nosale=1|notr=1|sudba='.$this->info['login'],NULL,1); - mysql_query('UPDATE `items_users` SET `gift` = "Ангел",`gtxt1` = "С Днем Рождения! Поздравляем! Удачи в боях и жизни!" WHERE - `id` = "'.$i3[8].'" OR `id` = "'.$i3[9].'" OR `id` = "'.$i3[10].'" - LIMIT 1'); - - if($io == '') { - $io = 'Какие-то предметы добавлены к Вам в инвентарь...'; - } - unset($itmadd,$i3,$i4); -?> \ No newline at end of file + +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} + +//воин +$itmadd = [ + //суперсвиток + 0 => [911, 1172, 2143, 2144, 1173], + //простые свитки + 1 => [3043, 2545, 2709, 874, 2391], + //гарантированные + 2 => [3044], +]; + +// 1000 екр. - 3-4 суперсвитка 0/20, 4 простых 0/100 + Эссенция Здоровья 0/3 + новогодний эликсир 0/10 +$i4 = [ + $itmadd[0][rand(0, count($itmadd[0]) - 1)], + $itmadd[0][rand(0, count($itmadd[0]) - 1)], + $itmadd[0][rand(0, count($itmadd[0]) - 1)], + $itmadd[1][rand(0, count($itmadd[1]) - 1)], + $itmadd[1][rand(0, count($itmadd[1]) - 1)], + $itmadd[1][rand(0, count($itmadd[1]) - 1)], + $itmadd[1][rand(0, count($itmadd[1]) - 1)], +]; + +$i3 = []; + +if ($u->info['level'] > 8) { + $i3[0] = ItemsModel::addItem(2143, $this->info['id'], '|nosale=1|notr=1|sudba=' . $this->info['login'], null, ($u->info['level'] * 2 - 10)); + $i3[1] = ItemsModel::addItem(2144, $this->info['id'], '|nosale=1|notr=1|sudba=' . $this->info['login'], null, ($u->info['level'] * 2 - 10)); +} + +$i3[3] = ItemsModel::addItem(4020, $this->info['id'], '|nosale=1|notr=1|sudba=' . $this->info['login'], null, ($u->info['level'] * 2 - 10)); +$i3[4] = ItemsModel::addItem(4035, $this->info['id'], '|nosale=1|notr=1|sudba=' . $this->info['login'], null, ($u->info['level'] * 2 - 10)); +$i3[5] = ItemsModel::addItem(3101, $this->info['id'], '|nosale=1|notr=1|sudba=' . $this->info['login'], null, ($u->info['level'] * 2 - 10)); +$i3[6] = ItemsModel::addItem(4041, $this->info['id'], '|nosale=1|notr=1|sudba=' . $this->info['login'], null, ($u->info['level'] * 2 - 10)); +$i3[7] = ItemsModel::addItem(4541, $this->info['id'], '|nosale=1|notr=1|sudba=' . $this->info['login'], null, 1); +$i3[8] = ItemsModel::addItem(4542, $this->info['id'], '|nosale=1|notr=1|sudba=' . $this->info['login'], null, 1); +$i3[9] = ItemsModel::addItem(3048, $this->info['id'], '|nosale=1|notr=1|sudba=' . $this->info['login'], null, 1); +$i3[10] = ItemsModel::addItem(3041, $this->info['id'], '|nosale=1|notr=1|sudba=' . $this->info['login'], null, 1); +mysql_query( + 'UPDATE `items_users` SET `gift` = "Ангел",`gtxt1` = "С Днем Рождения! Поздравляем! Удачи в боях и жизни!" WHERE + `id` = "' . $i3[8] . '" OR `id` = "' . $i3[9] . '" OR `id` = "' . $i3[10] . '" + LIMIT 1' +); + +if ($io == '') { + $io = 'Какие-то предметы добавлены к Вам в инвентарь...'; +} +unset($itmadd, $i3, $i4); diff --git a/_incl_data/class/Magic/sunduk_new.php b/_incl_data/class/Magic/sunduk_new.php index 6f97f343..c0e0c318 100644 --- a/_incl_data/class/Magic/sunduk_new.php +++ b/_incl_data/class/Magic/sunduk_new.php @@ -1,4 +1,7 @@ addItem(3200, $this->info['id'], '|nosale=1|noremont=1'); + $i3 = ItemsModel::addItem(3200, $this->info['id'], '|nosale=1|noremont=1'); setMentorGiftStatus($i3); //Эликсир - $i3 = $this->addItem(2418, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(2418, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Новый сундук - $i3 = $this->addItem(3201, $this->info['id']); + $i3 = ItemsModel::addItem(3201, $this->info['id']); setMentorGiftStatus($i3); if ($io == '') { @@ -41,19 +44,19 @@ if ($tr['var_id'] == 1) { $add_nas = 1; //Рубаха 3209 - $i3 = $this->addItem(3209, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(3209, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Штаны 3210 - $i3 = $this->addItem(3210, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(3210, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Эликсир - $i3 = $this->addItem(2418, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(2418, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Новый сундук - $i3 = $this->addItem(3202, $this->info['id']); + $i3 = ItemsModel::addItem(3202, $this->info['id']); setMentorGiftStatus($i3); if ($io == '') { @@ -65,19 +68,19 @@ if ($tr['var_id'] == 1) { $add_nas = 1; //Перчатки 3211 - $i3 = $this->addItem(3211, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(3211, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Наручи 3212 - $i3 = $this->addItem(3212, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(3212, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Эликсир - $i3 = $this->addItem(2418, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(2418, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Новый сундук - $i3 = $this->addItem(3203, $this->info['id']); + $i3 = ItemsModel::addItem(3203, $this->info['id']); setMentorGiftStatus($i3); if ($io == '') { @@ -89,23 +92,23 @@ if ($tr['var_id'] == 1) { $add_nas = 1; //Сапоги 3213 - $i3 = $this->addItem(3213, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(3213, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Шлем 3214 - $i3 = $this->addItem(3214, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(3214, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Пояс 3215 - $i3 = $this->addItem(3215, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(3215, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Эликсир - $i3 = $this->addItem(2418, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(2418, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Новый сундук - $i3 = $this->addItem(3204, $this->info['id']); + $i3 = ItemsModel::addItem(3204, $this->info['id']); setMentorGiftStatus($i3); if ($io == '') { @@ -117,27 +120,27 @@ if ($tr['var_id'] == 1) { $add_nas = 1; //Серьги 3216 - $i3 = $this->addItem(3216, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(3216, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Амулет 3217 - $i3 = $this->addItem(3217, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(3217, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Кольца 3218 - $i3 = $this->addItem(3218, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(3218, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); - $i3 = $this->addItem(3218, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(3218, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); - $i3 = $this->addItem(3218, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(3218, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Эликсир - $i3 = $this->addItem(2418, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(2418, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Новый сундук - $i3 = $this->addItem(3205, $this->info['id']); + $i3 = ItemsModel::addItem(3205, $this->info['id']); setMentorGiftStatus($i3); if ($io == '') { @@ -149,15 +152,15 @@ if ($tr['var_id'] == 1) { $add_nas = 1; //Броня 4002 - $i3 = $this->addItem(4002, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(4002, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Учебник воспитанника 4004 - $i3 = $this->addItem(4004, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(4004, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Сумка воспитанника 4003 - $i3 = $this->addItem(4003, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(4003, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Образы @@ -172,7 +175,7 @@ if ($tr['var_id'] == 1) { ); //Новый сундук - $i3 = $this->addItem(3206, $this->info['id']); + $i3 = ItemsModel::addItem(3206, $this->info['id']); setMentorGiftStatus($i3); if ($io == '') { @@ -184,19 +187,19 @@ if ($tr['var_id'] == 1) { $add_nas = 2; //Учебник воспитанника 4004 - $i3 = $this->addItem(4004, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(4004, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Сумка воспитанника 4003 - $i3 = $this->addItem(4003, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(4003, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Нападалка - $i3 = $this->addItem(865, $this->info['id'], '|nosale=1', null, 50); + $i3 = ItemsModel::addItem(865, $this->info['id'], '|nosale=1', null, 50); setMentorGiftStatus($i3); //Новый сундук - $i3 = $this->addItem(3207, $this->info['id']); + $i3 = ItemsModel::addItem(3207, $this->info['id']); setMentorGiftStatus($i3); if ($io == '') { @@ -208,21 +211,21 @@ if ($tr['var_id'] == 1) { $add_nas = 3; //Учебник воспитанника 4004 - $i3 = $this->addItem(4004, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(4004, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Сумка воспитанника 4003 - $i3 = $this->addItem(4003, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(4003, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Нападалка - $i3 = $this->addItem(865, $this->info['id'], '|nosale=1', null, 50); + $i3 = ItemsModel::addItem(865, $this->info['id'], '|nosale=1', null, 50); setMentorGiftStatus($i3); //Восстановление - $i3 = $this->addItem(2712, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(2712, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); - $i3 = $this->addItem(2712, $this->info['id'], '|nosale=1'); + $i3 = ItemsModel::addItem(2712, $this->info['id'], '|nosale=1'); setMentorGiftStatus($i3); //Образы @@ -245,7 +248,7 @@ if ($tr['var_id'] == 1) { if ($add_nas > 0 && $this->info['level'] < 8 && isset($refer['id'])) { $ino = 0; while ($ino < $add_nas) { - $this->addItem(4005, $refer['id']); + ItemsModel::addItem(4005, $refer['id']); $ino++; } diff --git a/_incl_data/class/Magic/sunduk_ov3.php b/_incl_data/class/Magic/sunduk_ov3.php index 9fc4195c..527f6026 100644 --- a/_incl_data/class/Magic/sunduk_ov3.php +++ b/_incl_data/class/Magic/sunduk_ov3.php @@ -1,46 +1,46 @@ info['id'],'|srok=43200|sudba='.$u->info['login'].''); - if($ov_item > 0) { - mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "'.$ov_item.'" LIMIT 1'); - - //пропуск забытых - $ov_item = \User\ItemsModel::addItem(2412,$u->info['id'],'|srok=43200|battleUseZd=7200|sudba='.$u->info['login'].''); - mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "'.$ov_item.'" LIMIT 1'); - //жж6 - $ov_item = \User\ItemsModel::addItem(3101,$u->info['id'],'|srok=3600|battleUseZd=7200|sudba='.$u->info['login'].''); - mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "'.$ov_item.'" LIMIT 1'); - //лечение средних травм - $ov_item = \User\ItemsModel::addItem(4413,$u->info['id'],'|srok=43200|sudba='.$u->info['login'].''); - mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "'.$ov_item.'" LIMIT 1'); - //право на подвиг (бездна) - $ov_item = \User\ItemsModel::addItem(5035,$u->info['id'],'|srok=43200|battleUseZd=7200|sudba='.$u->info['login'].''); - mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "'.$ov_item.'" LIMIT 1'); - //право на подвиг (грибница) - $ov_item = \User\ItemsModel::addItem(5039,$u->info['id'],'|srok=43200|battleUseZd=7200|sudba='.$u->info['login'].''); - mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "'.$ov_item.'" LIMIT 1'); - //Лечение тяжелых травм - $ov_item = \User\ItemsModel::addItem(4414,$u->info['id'],'|srok=43200|sudba='.$u->info['login'].''); - mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "'.$ov_item.'" LIMIT 1'); - //право на подвиг (ПТП) - $ov_item = \User\ItemsModel::addItem(5036,$u->info['id'],'|srok=43200|battleUseZd=7200|sudba='.$u->info['login'].''); - mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "'.$ov_item.'" LIMIT 1'); - //право на подвиг (Катакомбы) - $ov_item = \User\ItemsModel::addItem(5037,$u->info['id'],'|srok=43200|battleUseZd=7200|sudba='.$u->info['login'].''); - mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "'.$ov_item.'" LIMIT 1'); - //право на подвиг (Гора легиона) - $ov_item = \User\ItemsModel::addItem(5038,$u->info['id'],'|srok=43200|battleUseZd=7200|sudba='.$u->info['login'].''); - mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "'.$ov_item.'" LIMIT 1'); - // - mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1'); - $u->error = 'Вы получили предметы:
Лечение легких травм, Лечение средних травм, Лечение тяжелых травм, пропуск забытых, жажда жизни +6
право на подвиг(бездна), право на подвиг(грибница), - право на подвиг(ПТП), право на подвиг(катакомбы), право на подвиг(Гора легиона)'; - - } +//лечение легких травм +$ov_item = ItemsModel::addItem(4412, $u->info['id'], '|srok=43200|sudba=' . $u->info['login'] . ''); +if ($ov_item > 0) { + mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "' . $ov_item . '" LIMIT 1'); -?> \ No newline at end of file + //пропуск забытых + $ov_item = ItemsModel::addItem(2412, $u->info['id'], '|srok=43200|battleUseZd=7200|sudba=' . $u->info['login'] . ''); + mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "' . $ov_item . '" LIMIT 1'); + //жж6 + $ov_item = ItemsModel::addItem(3101, $u->info['id'], '|srok=3600|battleUseZd=7200|sudba=' . $u->info['login'] . ''); + mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "' . $ov_item . '" LIMIT 1'); + //лечение средних травм + $ov_item = ItemsModel::addItem(4413, $u->info['id'], '|srok=43200|sudba=' . $u->info['login'] . ''); + mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "' . $ov_item . '" LIMIT 1'); + //право на подвиг (бездна) + $ov_item = ItemsModel::addItem(5035, $u->info['id'], '|srok=43200|battleUseZd=7200|sudba=' . $u->info['login'] . ''); + mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "' . $ov_item . '" LIMIT 1'); + //право на подвиг (грибница) + $ov_item = ItemsModel::addItem(5039, $u->info['id'], '|srok=43200|battleUseZd=7200|sudba=' . $u->info['login'] . ''); + mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "' . $ov_item . '" LIMIT 1'); + //Лечение тяжелых травм + $ov_item = ItemsModel::addItem(4414, $u->info['id'], '|srok=43200|sudba=' . $u->info['login'] . ''); + mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "' . $ov_item . '" LIMIT 1'); + //право на подвиг (ПТП) + $ov_item = ItemsModel::addItem(5036, $u->info['id'], '|srok=43200|battleUseZd=7200|sudba=' . $u->info['login'] . ''); + mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "' . $ov_item . '" LIMIT 1'); + //право на подвиг (Катакомбы) + $ov_item = ItemsModel::addItem(5037, $u->info['id'], '|srok=43200|battleUseZd=7200|sudba=' . $u->info['login'] . ''); + mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "' . $ov_item . '" LIMIT 1'); + //право на подвиг (Гора легиона) + $ov_item = ItemsModel::addItem(5038, $u->info['id'], '|srok=43200|battleUseZd=7200|sudba=' . $u->info['login'] . ''); + mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "' . $ov_item . '" LIMIT 1'); + // + mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = ' . $itm['id'] . ' LIMIT 1'); + $u->error = 'Вы получили предметы:
Лечение легких травм, Лечение средних травм, Лечение тяжелых травм, пропуск забытых, жажда жизни +6
право на подвиг(бездна), право на подвиг(грибница), + право на подвиг(ПТП), право на подвиг(катакомбы), право на подвиг(Гора легиона)'; + +} diff --git a/_incl_data/class/Magic/tankkom.php b/_incl_data/class/Magic/tankkom.php index d8b82397..7146249f 100644 --- a/_incl_data/class/Magic/tankkom.php +++ b/_incl_data/class/Magic/tankkom.php @@ -1,23 +1,24 @@ Предметы Танка 8-го уровня,'; - $this->addItem(558,$this->info['id'],'|sudba=0'); - $this->addItem(722,$this->info['id'],'|sudba=0'); - $this->addItem(718,$this->info['id'],'|sudba=0'); - $this->addItem(700,$this->info['id'],'|sudba=0'); - $this->addItem(291,$this->info['id'],'|sudba=0'); - $this->addItem(545,$this->info['id'],'|sudba=0'); - $this->addItem(533,$this->info['id'],'|sudba=0'); - $this->addItem(536,$this->info['id'],'|sudba=0'); - $this->addItem(628,$this->info['id'],'|sudba=0'); - $this->addItem(710,$this->info['id'],'|sudba=0'); - $this->addItem(654,$this->info['id'],'|sudba=0'); - $this->addItem(684,$this->info['id'],'|sudba=0'); - $this->addItem(689,$this->info['id'],'|sudba=0'); - $this->addItem(689,$this->info['id'],'|sudba=0'); - $this->addItem(689,$this->info['id'],'|sudba=0'); -?> \ No newline at end of file + +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} + +$io .= 'Предметы Танка 8-го уровня,'; +ItemsModel::addItem(558, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(722, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(718, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(700, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(291, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(545, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(533, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(536, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(628, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(710, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(654, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(684, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(689, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(689, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(689, $this->info['id'], '|sudba=0'); diff --git a/_incl_data/class/Magic/toporkom.php b/_incl_data/class/Magic/toporkom.php index 6efdb57a..91676053 100644 --- a/_incl_data/class/Magic/toporkom.php +++ b/_incl_data/class/Magic/toporkom.php @@ -1,23 +1,24 @@ Предметы Силача 8-го уровня,'; - $this->addItem(552,$this->info['id'],'|sudba=0'); - $this->addItem(552,$this->info['id'],'|sudba=0'); - $this->addItem(716,$this->info['id'],'|sudba=0'); - $this->addItem(320,$this->info['id'],'|sudba=0'); - $this->addItem(291,$this->info['id'],'|sudba=0'); - $this->addItem(543,$this->info['id'],'|sudba=0'); - $this->addItem(528,$this->info['id'],'|sudba=0'); - $this->addItem(540,$this->info['id'],'|sudba=0'); - $this->addItem(627,$this->info['id'],'|sudba=0'); - $this->addItem(709,$this->info['id'],'|sudba=0'); - $this->addItem(653,$this->info['id'],'|sudba=0'); - $this->addItem(681,$this->info['id'],'|sudba=0'); - $this->addItem(687,$this->info['id'],'|sudba=0'); - $this->addItem(687,$this->info['id'],'|sudba=0'); - $this->addItem(687,$this->info['id'],'|sudba=0'); -?> \ No newline at end of file + +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} + +$io .= 'Предметы Силача 8-го уровня,'; +ItemsModel::addItem(552, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(552, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(716, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(320, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(291, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(543, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(528, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(540, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(627, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(709, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(653, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(681, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(687, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(687, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(687, $this->info['id'], '|sudba=0'); diff --git a/_incl_data/class/Magic/uvortkom.php b/_incl_data/class/Magic/uvortkom.php index 68f67603..dd1aff91 100644 --- a/_incl_data/class/Magic/uvortkom.php +++ b/_incl_data/class/Magic/uvortkom.php @@ -1,23 +1,24 @@ Предметы Уворотчика 8-го уровня,'; - $this->addItem(523,$this->info['id'],'|sudba=0'); - $this->addItem(523,$this->info['id'],'|sudba=0'); - $this->addItem(712,$this->info['id'],'|sudba=0'); - $this->addItem(1151,$this->info['id'],'|sudba=0'); - $this->addItem(290,$this->info['id'],'|sudba=0'); - $this->addItem(541,$this->info['id'],'|sudba=0'); - $this->addItem(525,$this->info['id'],'|sudba=0'); - $this->addItem(539,$this->info['id'],'|sudba=0'); - $this->addItem(633,$this->info['id'],'|sudba=0'); - $this->addItem(707,$this->info['id'],'|sudba=0'); - $this->addItem(647,$this->info['id'],'|sudba=0'); - $this->addItem(680,$this->info['id'],'|sudba=0'); - $this->addItem(685,$this->info['id'],'|sudba=0'); - $this->addItem(685,$this->info['id'],'|sudba=0'); - $this->addItem(685,$this->info['id'],'|sudba=0'); -?> \ No newline at end of file + +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} + +$io .= 'Предметы Уворотчика 8-го уровня,'; +ItemsModel::addItem(523, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(523, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(712, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(1151, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(290, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(541, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(525, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(539, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(633, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(707, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(647, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(680, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(685, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(685, $this->info['id'], '|sudba=0'); +ItemsModel::addItem(685, $this->info['id'], '|sudba=0'); diff --git a/_incl_data/class/User.php b/_incl_data/class/User.php index c9b29ba0..06f5f442 100644 --- a/_incl_data/class/User.php +++ b/_incl_data/class/User.php @@ -2130,23 +2130,6 @@ class User //Расчет защиты (магия) - /** Для совместимости. Поиск по файлам $this->additem выдаёт сотни отсылок с видимо подключаемымим файлами - * в которых невозможно отследить зависимость и сделать полноценную замену. - * @param $id - * @param $uid - * @param $md - * @param $dn - * @param $mxiznos - * @param $nosudba - * @param $plavka - * @return int|mixed|string - * @deprecated use ItemsModel::addItem() - */ - public function addItem($id, $uid, $md = null, $dn = null, $mxiznos = null, $nosudba = null, $plavka = null): mixed - { - return ItemsModel::addItem($id, $uid, $md, $dn, $mxiznos, $nosudba, $plavka); - } - public function newAct($test): bool { $r = true; diff --git a/modules_data/usemarry.php b/modules_data/usemarry.php index c533610d..325d943c 100644 --- a/modules_data/usemarry.php +++ b/modules_data/usemarry.php @@ -1,86 +1,80 @@ 0) - { - $uer = 'Персонаж уже находится в браке
'; - }elseif($uu['marry']>0) - { - $uer = 'Персонаж уже находится в браке
'; - }elseif($uu['align']>1 && $uu['align']<2 && $u->info['admin']==0) - { - $uer = 'Вы не можете использовать данное заклятие на Паладинов.
'; - }elseif($uu['align']>3 && $uu['align']<4 && $u->info['admin']==0) - { - $uer = 'Вы не можете использовать данное заклятие на Тарманов.
'; - }elseif($uu['admin']>0 && $u->info['admin']==0) - { - $uer = 'Вы не можете накладывать заклятие на Ангелов'; - }elseif($uu['city']!=$u->info['city'] && $p['citym1']==0){ - $uer = 'Персонаж находится в другом городе'; - }elseif($uu['id']==$u->info['id'] && $u->info['admin']==0){ - $uer = 'Вы не можете использовать на самого себя'; - }elseif($uu2['align']>1 && $uu['align']<2 && $u->info['admin']==0) - { - $uer = 'Вы не можете использовать данное заклятие на Паладинов.
'; - }elseif($uu2['align']>3 && $uu['align']<4 && $u->info['admin']==0) - { - $uer = 'Вы не можете использовать данное заклятие на Тарманов.
'; - }elseif($uu2['admin']>0 && $u->info['admin']==0) - { - $uer = 'Вы не можете накладывать заклятие на Ангелов'; - }elseif($uu2['city']!=$u->info['city'] && $p['citym1']==0){ - $uer = 'Персонаж находится в другом городе'; - }elseif($uu2['id']==$u->info['id'] && $u->info['admin']==0){ - $uer = 'Вы не можете использовать на самого себя'; - }else{ - $uu['palpro'] = time()+60*60*24*7; - $upd = mysql_query('UPDATE `users` SET `marry` = "'.$uu2['id'].'" WHERE `id` = "'.$uu['id'].'" LIMIT 1'); - $upd = mysql_query('UPDATE `users` SET `marry` = "'.$uu['id'].'" WHERE `id` = "'.$uu2['id'].'" LIMIT 1'); - if($upd) - { - $sx = ''; - if($u->info['sex']==1) - { - $sx = 'а'; - } - $rtxt = '[img[items/marry.gif]] '.$rang.' "'.$u->info['login'].'" подтвердил'.$sx.' законность брака между "'.$uu['login'].'" и "'.$uu2['login'].'".'; - - mysql_query("UPDATE `chat` SET `delete` = 1 WHERE `login` = '".$uu['login']."' LIMIT 1000"); -$cmsg = new ChatMessage(); -$cmsg->setCity($u->info['city']); -$cmsg->setRoom($u->info['room']); -$cmsg->setText($rtxt); -$cmsg->setType(6); -$cmsg->setTypeTime(1); -(new Chat())->sendMsg($cmsg); - $rtxt = $rang.' "'.$u->info['login'].'" подтвердил'.$sx.' законность брака с '.$uu2['id'].'.'; - mysql_query("INSERT INTO `users_delo` (`uid`,`ip`,`city`,`time`,`text`,`login`,`type`) VALUES ('".$uu['id']."','".$_SERVER['REMOTE_ADDR']."','".$u->info['city']."','".time()."','".$rtxt."','".$u->info['login']."',0)"); - $rtxt = $rang.' "'.$u->info['login'].'" подтвердил'.$sx.' законность брака с '.$uu['id'].'.'; - mysql_query("INSERT INTO `users_delo` (`uid`,`ip`,`city`,`time`,`text`,`login`,`type`) VALUES ('".$uu2['id']."','".$_SERVER['REMOTE_ADDR']."','".$u->info['city']."','".time()."','".$rtxt."','".$u->info['login']."',0)"); - - $this->addItem(76,$uu['id'],'sudba='.$uu['login'].'|noremont=1|notransfer=1'); - $this->addItem(76,$uu2['id'],'sudba='.$uu2['login'].'|noremont=1|notransfer=1'); - - $uer = 'Вы успешно зафиксировали брак "'.$uu['login'].'" и "'.$uu2['login'].'".'; - }else{ - $uer = 'Не удалось использовать данное заклятие'; - } - } - }else{ - $uer = 'Персонаж не найден в этом городе'; - } -}else{ - $uer = 'У Вас нет прав на использование данного заклятия'; -} -?> \ No newline at end of file +use User\ItemsModel; + +if (!defined('GAME')) { + die(); +} +if ($p['banned'] == 1 || $p['proverka'] == 1) { + $uu = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `login` = "' . mysql_real_escape_string($_POST['logingo']) . '" LIMIT 1')); + $uu2 = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `login` = "' . mysql_real_escape_string($_POST['logingo2']) . '" LIMIT 1')); + if (isset($uu['id']) && isset($uu2['id'])) { + + if ($uu['marry'] > 0) { + $uer = 'Персонаж уже находится в браке
'; + } elseif ($uu['marry'] > 0) { + $uer = 'Персонаж уже находится в браке
'; + } elseif ($uu['align'] > 1 && $uu['align'] < 2 && $u->info['admin'] == 0) { + $uer = 'Вы не можете использовать данное заклятие на Паладинов.
'; + } elseif ($uu['align'] > 3 && $uu['align'] < 4 && $u->info['admin'] == 0) { + $uer = 'Вы не можете использовать данное заклятие на Тарманов.
'; + } elseif ($uu['admin'] > 0 && $u->info['admin'] == 0) { + $uer = 'Вы не можете накладывать заклятие на Ангелов'; + } elseif ($uu['city'] != $u->info['city'] && $p['citym1'] == 0) { + $uer = 'Персонаж находится в другом городе'; + } elseif ($uu['id'] == $u->info['id'] && $u->info['admin'] == 0) { + $uer = 'Вы не можете использовать на самого себя'; + } elseif ($uu2['align'] > 1 && $uu['align'] < 2 && $u->info['admin'] == 0) { + $uer = 'Вы не можете использовать данное заклятие на Паладинов.
'; + } elseif ($uu2['align'] > 3 && $uu['align'] < 4 && $u->info['admin'] == 0) { + $uer = 'Вы не можете использовать данное заклятие на Тарманов.
'; + } elseif ($uu2['admin'] > 0 && $u->info['admin'] == 0) { + $uer = 'Вы не можете накладывать заклятие на Ангелов'; + } elseif ($uu2['city'] != $u->info['city'] && $p['citym1'] == 0) { + $uer = 'Персонаж находится в другом городе'; + } elseif ($uu2['id'] == $u->info['id'] && $u->info['admin'] == 0) { + $uer = 'Вы не можете использовать на самого себя'; + } else { + $uu['palpro'] = time() + 60 * 60 * 24 * 7; + $upd = mysql_query('UPDATE `users` SET `marry` = "' . $uu2['id'] . '" WHERE `id` = "' . $uu['id'] . '" LIMIT 1'); + $upd = mysql_query('UPDATE `users` SET `marry` = "' . $uu['id'] . '" WHERE `id` = "' . $uu2['id'] . '" LIMIT 1'); + if ($upd) { + $sx = ''; + if ($u->info['sex'] == 1) { + $sx = 'а'; + } + $rtxt = '[img[items/marry.gif]] ' . $rang . ' "' . $u->info['login'] . '" подтвердил' . $sx . ' законность брака между "' . $uu['login'] . '" и "' . $uu2['login'] . '".'; + + mysql_query("UPDATE `chat` SET `delete` = 1 WHERE `login` = '" . $uu['login'] . "' LIMIT 1000"); + + $cmsg = new ChatMessage(); + $cmsg->setRoom($u->info['room']); + $cmsg->setText($rtxt); + $cmsg->setType(6); + $cmsg->setTypeTime(1); + (new Chat())->sendMsg($cmsg); + $rtxt = $rang . ' "' . $u->info['login'] . '" подтвердил' . $sx . ' законность брака с ' . $uu2['id'] . '.'; + mysql_query( + "INSERT INTO `users_delo` (`uid`,`ip`,`city`,`time`,`text`,`login`,`type`) VALUES ('" . $uu['id'] . "','" . $_SERVER['REMOTE_ADDR'] . "','" . $u->info['city'] . "','" . time( + ) . "','" . $rtxt . "','" . $u->info['login'] . "',0)" + ); + $rtxt = $rang . ' "' . $u->info['login'] . '" подтвердил' . $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)" + ); + + ItemsModel::addItem(76, $uu['id'], 'sudba=' . $uu['login'] . '|noremont=1|notransfer=1'); + ItemsModel::addItem(76, $uu2['id'], 'sudba=' . $uu2['login'] . '|noremont=1|notransfer=1'); + + $uer = 'Вы успешно зафиксировали брак "' . $uu['login'] . '" и "' . $uu2['login'] . '".'; + } else { + $uer = 'Не удалось использовать данное заклятие'; + } + } + } else { + $uer = 'Персонаж не найден в этом городе'; + } +} else { + $uer = 'У Вас нет прав на использование данного заклятия'; +}