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

24 lines
915 B
PHP

<?
if(!defined('GAME'))
{
die();
}
//ëå÷åíèå ëåãêèõ òðàâì
$ov_item = $u->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');
//ïðîïóñê çàáûòûõ
$ov_item = $u->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 = $u->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');
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1');
$u->error = 'Âû ïîëó÷èëè ïðåäìåòû:<br> Ëå÷åíèå ëåãêèõ òðàâì, ïðîïóñê çàáûòûõ, Æàæäà æèçíè +6';
}
?>