game/_incl_data/class/magic/sunduk_ov3.php

46 lines
3.0 KiB
PHP
Raw Normal View History

2022-06-06 21:30:34 +00:00
<?
if(!defined('GAME'))
{
die();
}
2023-01-10 16:29:32 +00:00
//лечение легких травм
2022-06-06 21:30:34 +00:00
$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');
2023-01-10 16:29:32 +00:00
//пропуск забытых
2022-06-06 21:30:34 +00:00
$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');
2023-01-10 16:29:32 +00:00
//жж6
2022-06-06 21:30:34 +00:00
$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');
2023-01-10 16:29:32 +00:00
//лечение средних травм
2022-06-06 21:30:34 +00:00
$ov_item = $u->addItem(4413,$u->info['id'],'|srok=43200|sudba='.$u->info['login'].'');
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "'.$ov_item.'" LIMIT 1');
2023-01-10 16:29:32 +00:00
//право на подвиг (бездна)
2022-06-06 21:30:34 +00:00
$ov_item = $u->addItem(5035,$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');
2023-01-10 16:29:32 +00:00
//право на подвиг (грибница)
2022-06-06 21:30:34 +00:00
$ov_item = $u->addItem(5039,$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');
2023-01-10 16:29:32 +00:00
//Лечение тяжелых травм
2022-06-06 21:30:34 +00:00
$ov_item = $u->addItem(4414,$u->info['id'],'|srok=43200|sudba='.$u->info['login'].'');
mysql_query('UPDATE `items_users` SET `iznosMAX` = "1" WHERE `id` = "'.$ov_item.'" LIMIT 1');
2023-01-10 16:29:32 +00:00
//право на подвиг (ПТП)
2022-06-06 21:30:34 +00:00
$ov_item = $u->addItem(5036,$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');
2023-01-10 16:29:32 +00:00
//право на подвиг (Катакомбы)
2022-06-06 21:30:34 +00:00
$ov_item = $u->addItem(5037,$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');
2023-01-10 16:29:32 +00:00
//право на подвиг (Гора легиона)
2022-06-06 21:30:34 +00:00
$ov_item = $u->addItem(5038,$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');
//
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1');
2023-01-10 16:29:32 +00:00
$u->error = 'Вы получили предметы:<br> Лечение легких травм, Лечение средних травм, Лечение тяжелых травм, пропуск забытых, жажда жизни +6<br> право на подвиг(бездна), право на подвиг(грибница),
право на подвиг(ПТП), право на подвиг(катакомбы), право на подвиг(Гора легиона)';
2022-06-06 21:30:34 +00:00
}
?>