2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
if ( ! defined ( 'GAME' ))
{
die ();
}
2023-01-10 16:29:32 +00:00
//Выдаем предметы, но не раньше 00:00:00 01-01-2013
2022-06-06 21:30:34 +00:00
if ( date ( 'Y' ) == 2013 || $u -> info [ 'id' ] == 1 ) {
/*
2023-01-10 16:29:32 +00:00
2. Новогодний Шоколад ( полное вост . хп )
3. Новогодняя Открытка
4. Зелье - Бойцовский Дух - ( мощ урона / магии + 10 , хп + 60 )
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
7. Новогодний Эликсир
2022-06-06 21:30:34 +00:00
*/
2023-01-10 16:29:32 +00:00
//Снежок 0/13 (x1)
2023-04-15 23:54:34 +00:00
$idit = \User\ItemsModel :: addItem ( 1000 , $u -> info [ 'id' ]);
2022-06-06 21:30:34 +00:00
if ( $idit > 0 ) {
2023-01-10 16:29:32 +00:00
mysql_query ( 'UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "13" WHERE `id` = "' . $idit . '" LIMIT 1' );
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
//Новогодний эликсир (x1)
2023-04-15 23:54:34 +00:00
$idit = \User\ItemsModel :: addItem ( 997 , $u -> info [ 'id' ]);
2023-01-10 16:29:32 +00:00
mysql_query ( 'UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "7" WHERE `id` = "' . $idit . '" LIMIT 1' );
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
//Новогодний эликсир (x1)
2023-04-15 23:54:34 +00:00
$idit = \User\ItemsModel :: addItem ( 2870 , $u -> info [ 'id' ]);
2023-01-10 16:29:32 +00:00
mysql_query ( 'UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "7" WHERE `id` = "' . $idit . '" LIMIT 1' );
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
//Звездное сияние (x1)
2023-04-15 23:54:34 +00:00
$idit = \User\ItemsModel :: addItem ( 1462 , $u -> info [ 'id' ]);
2023-01-10 16:29:32 +00:00
mysql_query ( 'UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "7" WHERE `id` = "' . $idit . '" LIMIT 1' );
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
//Открытка (x1)
2023-04-15 23:54:34 +00:00
$idit = \User\ItemsModel :: addItem ( 996 , $u -> info [ 'id' ]);
2023-01-10 16:29:32 +00:00
mysql_query ( 'UPDATE `items_users` SET `gift` = "Новый Год" , `gtxt1` = "Администрация проекта поздравляет В а с с Новым, 2013, Годом!" WHERE `id` = "' . $idit . '" LIMIT 1' );
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
//Нападалка 0/13 (x1)
2023-04-15 23:54:34 +00:00
$idit = \User\ItemsModel :: addItem ( 874 , $u -> info [ 'id' ]);
2023-01-10 16:29:32 +00:00
mysql_query ( 'UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "13" WHERE `id` = "' . $idit . '" LIMIT 1' );
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
//Кольцо жизни (x1)
2023-04-15 23:54:34 +00:00
$idit = \User\ItemsModel :: addItem ( 2101 , $u -> info [ 'id' ], '|noremont=1|srok=1209600|sudba=' . $u -> info [ 'login' ]);
2023-01-10 16:29:32 +00:00
mysql_query ( 'UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "13" WHERE `id` = "' . $idit . '" LIMIT 1' );
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
//Восстановление Энергии 900Н Р (x3)
2023-04-15 23:54:34 +00:00
$idit = \User\ItemsModel :: addItem ( 2710 , $u -> info [ 'id' ]);
2023-01-10 16:29:32 +00:00
mysql_query ( 'UPDATE `items_users` SET `gift` = "Старый Год" WHERE `id` = "' . $idit . '" LIMIT 1' );
2023-04-15 23:54:34 +00:00
$idit = \User\ItemsModel :: addItem ( 2710 , $u -> info [ 'id' ]);
2023-01-10 16:29:32 +00:00
mysql_query ( 'UPDATE `items_users` SET `gift` = "Старый Год" WHERE `id` = "' . $idit . '" LIMIT 1' );
2023-04-15 23:54:34 +00:00
$idit = \User\ItemsModel :: addItem ( 2710 , $u -> info [ 'id' ]);
2023-01-10 16:29:32 +00:00
mysql_query ( 'UPDATE `items_users` SET `gift` = "Старый Год" WHERE `id` = "' . $idit . '" LIMIT 1' );
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
$u -> error = 'Вы успешно использовали "' . $itm [ 'name' ] . '". В инвентарь добавлены подарки. С Новым, 2013, Годом!' ;
2022-06-06 21:30:34 +00:00
mysql_query ( 'UPDATE `items_users` SET `delete` = "' . time () . '" WHERE (`item_id` = "2763" OR `id` = "' . $itm [ 'id' ] . '") AND `uid` = "' . $u -> info [ 'id' ] . '" LIMIT 10' );
}
} else {
2023-01-10 16:29:32 +00:00
$u -> error = 'Н е удалось использовать "' . $itm [ 'name' ] . '". Подарок возможно использовать не раньше 01.01.2013' ;
2022-06-06 21:30:34 +00:00
}
?>