game/_incl_data/class/magic/hny2012.php
2022-06-07 00:30:34 +03:00

61 lines
2.5 KiB
PHP

<?
if(!defined('GAME'))
{
die();
}
//Âûäàåì ïðåäìåòû, íî íå ðàíüøå 00:00:00 01-01-2013
if(date('Y')==2013 || $u->info['id'] == 1) {
/*
2. Íîâîãîäíèé Øîêîëàä (ïîëíîå âîñò. õï)
3. Íîâîãîäíÿÿ Îòêðûòêà
4. Çåëüå -Áîéöîâñêèé Äóõ- (ìîù óðîíà/ìàãèè +10, õï +60)
7. Íîâîãîäíèé Ýëèêñèð
*/
//Ñíåæîê 0/13 (x1)
$idit = $u->addItem(1000,$u->info['id']);
if($idit > 0) {
mysql_query('UPDATE `items_users` SET `gift` = "Ñòàðûé Ãîä",`iznosMAX` = "13" WHERE `id` = "'.$idit.'" LIMIT 1');
//Íîâîãîäíèé ýëèêñèð (x1)
$idit = $u->addItem(997,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Ñòàðûé Ãîä",`iznosMAX` = "7" WHERE `id` = "'.$idit.'" LIMIT 1');
//Íîâîãîäíèé ýëèêñèð (x1)
$idit = $u->addItem(2870,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Ñòàðûé Ãîä",`iznosMAX` = "7" WHERE `id` = "'.$idit.'" LIMIT 1');
//Çâåçäíîå ñèÿíèå (x1)
$idit = $u->addItem(1462,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Ñòàðûé Ãîä",`iznosMAX` = "7" WHERE `id` = "'.$idit.'" LIMIT 1');
//Îòêðûòêà (x1)
$idit = $u->addItem(996,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Íîâûé Ãîä" , `gtxt1` = "Àäìèíèñòðàöèÿ ïðîåêòà ïîçäðàâëÿåò Âàñ ñ Íîâûì, 2013, Ãîäîì!" WHERE `id` = "'.$idit.'" LIMIT 1');
//Íàïàäàëêà 0/13 (x1)
$idit = $u->addItem(874,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Ñòàðûé Ãîä",`iznosMAX` = "13" WHERE `id` = "'.$idit.'" LIMIT 1');
//Êîëüöî æèçíè (x1)
$idit = $u->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 = $u->addItem(2710,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Ñòàðûé Ãîä" WHERE `id` = "'.$idit.'" LIMIT 1');
$idit = $u->addItem(2710,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Ñòàðûé Ãîä" WHERE `id` = "'.$idit.'" LIMIT 1');
$idit = $u->addItem(2710,$u->info['id']);
mysql_query('UPDATE `items_users` SET `gift` = "Ñòàðûé Ãîä" WHERE `id` = "'.$idit.'" LIMIT 1');
$u->error = 'Âû óñïåøíî èñïîëüçîâàëè &quot;'.$itm['name'].'&quot;. Â èíâåíòàðü äîáàâëåíû ïîäàðêè. Ñ Íîâûì, 2013, Ãîäîì!';
mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE (`item_id` = "2763" OR `id` = "'.$itm['id'].'") AND `uid` = "'.$u->info['id'].'" LIMIT 10');
}
}else{
$u->error = 'Íå óäàëîñü èñïîëüçîâàòü &quot;'.$itm['name'].'&quot;. Ïîäàðîê âîçìîæíî èñïîëüçîâàòü íå ðàíüøå 01.01.2013';
}
?>