game/_incl_data/class/magic/hny2014.php
2022-12-19 20:26:14 +02:00

60 lines
2.1 KiB
PHP

<?
if(!defined('GAME'))
{
die();
}
//Âûäàåì ïðåäìåòû, íî íå ðàíüøå 00:00:00 01-01-2013
if(date('Y')==2023) {
/*
2. Íîâîãîäíèé Øîêîëàä (ïîëíîå âîñò. õï)
3. Íîâîãîäíÿÿ Îòêðûòêà
4. Çåëüå -Áîéöîâñêèé Äóõ- (ìîù óðîíà/ìàãèè +10, õï +60)
7. Íîâîãîäíèé Ýëèêñèð
*/
//ðûáà (x1)
$idit = $u->addItem(5009,$u->info['id']);
if($idit > 0) {
mysql_query('UPDATE `items_users` SET `gift` = "Ñòàðûé Ãîä",`iznosMAX` = "3" WHERE `id` = "'.$idit.'" LIMIT 1');
//ìàñòåðà
$idit = $u->addItem(4041,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Ñòàðûé Ãîä",`iznosMAX` = "3" WHERE `id` = "'.$idit.'" LIMIT 1');
//èñêóñòâà
$idit = $u->addItem(4948,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Ñòàðûé Ãîä",`iznosMAX` = "3" WHERE `id` = "'.$idit.'" LIMIT 1');
//ææ6
$idit = $u->addItem(3101,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Ñòàðûé Ãîä",`iznosMAX` = "5" WHERE `id` = "'.$idit.'" LIMIT 1');
//Îòêðûòêà (x1)
$idit = $u->addItem(996,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Íîâûé Ãîä" , `gtxt1` = "Àäìèíèñòðàöèÿ ïðîåêòà ïîçäðàâëÿåò Âàñ ñ Íîâûì, 2023, Ãîäîì!" WHERE `id` = "'.$idit.'" LIMIT 1');
//òî÷èëêà
$idit = $u->addItem(6457,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Ñòàðûé Ãîä",`iznosMAX` = "100" WHERE `id` = "'.$idit.'" LIMIT 1');
//÷åê íà 100 åêðîâ
$idit = $u->addItem(5023,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Ñòàðûé Ãîä",`iznosMAX` = "1" WHERE `id` = "'.$idit.'" LIMIT 1');
//öåïü çàùèòíèêà
$idit = $u->addItem(6459,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Ñòàðûé Ãîä",`iznosMAX` = "100" WHERE `id` = "'.$idit.'" LIMIT 1');
$u->error = 'Âû óñïåøíî èñïîëüçîâàëè &quot;'.$itm['name'].'&quot;. Â èíâåíòàðü äîáàâëåíû ïîäàðêè. Ñ Íîâûì, 2023, Ãîäîì!';
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{
$u->error = 'Ïîäàðîê âîçìîæíî èñïîëüçîâàòü íå ðàíüøå 01.01.2023';
}
?>