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-12-19 18:26:14 +00:00
if ( date ( 'Y' ) == 2023 ) {
2022-06-06 21:30:34 +00:00
/*
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
//рыба (x1)
2022-06-06 21:30:34 +00:00
$idit = $u -> addItem ( 5009 , $u -> info [ 'id' ]);
if ( $idit > 0 ) {
2023-01-10 16:29:32 +00:00
mysql_query ( 'UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "3" WHERE `id` = "' . $idit . '" LIMIT 1' );
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
//мастера
2022-06-06 21:30:34 +00:00
$idit = $u -> addItem ( 4041 , $u -> info [ 'id' ]);
2023-01-10 16:29:32 +00:00
mysql_query ( 'UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "3" WHERE `id` = "' . $idit . '" LIMIT 1' );
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
//искуства
2022-06-06 21:30:34 +00:00
$idit = $u -> addItem ( 4948 , $u -> info [ 'id' ]);
2023-01-10 16:29:32 +00:00
mysql_query ( 'UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "3" WHERE `id` = "' . $idit . '" LIMIT 1' );
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
//жж6
2022-06-06 21:30:34 +00:00
$idit = $u -> addItem ( 3101 , $u -> info [ 'id' ]);
2023-01-10 16:29:32 +00:00
mysql_query ( 'UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "5" WHERE `id` = "' . $idit . '" LIMIT 1' );
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
//Открытка (x1)
2022-06-06 21:30:34 +00:00
$idit = $u -> addItem ( 996 , $u -> info [ 'id' ]);
2023-01-10 16:29:32 +00:00
mysql_query ( 'UPDATE `items_users` SET `gift` = "Новый Год" , `gtxt1` = "Администрация проекта поздравляет В а с с Новым, 2023, Годом!" WHERE `id` = "' . $idit . '" LIMIT 1' );
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
//точилка
2022-06-06 21:30:34 +00:00
$idit = $u -> addItem ( 6457 , $u -> info [ 'id' ]);
2023-01-10 16:29:32 +00:00
mysql_query ( 'UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "100" WHERE `id` = "' . $idit . '" LIMIT 1' );
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
//чек на 100 екров
2022-06-06 21:30:34 +00:00
$idit = $u -> addItem ( 5023 , $u -> info [ 'id' ]);
2023-01-10 16:29:32 +00:00
mysql_query ( 'UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "1" WHERE `id` = "' . $idit . '" LIMIT 1' );
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
//цепь защитника
2022-06-06 21:30:34 +00:00
$idit = $u -> addItem ( 6459 , $u -> info [ 'id' ]);
2023-01-10 16:29:32 +00:00
mysql_query ( 'UPDATE `items_users` SET `gift` = "Старый Год",`iznosMAX` = "100" 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' ] . '". В инвентарь добавлены подарки. С Новым, 2023, Годом!' ;
2022-06-06 21:30:34 +00:00
mysql_query ( 'UPDATE `items_users` SET `delete` = "' . time () . '" WHERE (`item_id` = "4009" OR `id` = "' . $itm [ 'id' ] . '") AND `uid` = "' . $u -> info [ 'id' ] . '" LIMIT 10' ); //2763
}
} else {
2023-01-10 16:29:32 +00:00
$u -> error = 'Подарок возможно использовать не раньше 01.01.2023' ;
2022-06-06 21:30:34 +00:00
}
?>