2022-06-06 21:30:34 +00:00
|
|
|
<?
|
|
|
|
if(!defined('GAME'))
|
|
|
|
{
|
|
|
|
die();
|
|
|
|
}
|
|
|
|
|
|
|
|
if( $itm['magic_inci'] == 'enternizin' ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$pvr = array();
|
2023-01-10 16:29:32 +00:00
|
|
|
//Действие при клике
|
2022-06-06 21:30:34 +00:00
|
|
|
if( $u->info['room'] == 447) {
|
2023-01-10 16:29:32 +00:00
|
|
|
$u->error = '<font color=red><b>Вы и так в этой комнате, нет смысла использовать свиток.</b></font> ';
|
2022-06-06 21:30:34 +00:00
|
|
|
}else{
|
|
|
|
|
|
|
|
mysql_query('UPDATE `users` SET `room` = 447 WHERE `users`.`id` = "'.$u->info['id'].'" LIMIT 1;');
|
|
|
|
mysql_query('DELETE FROM `items_users` WHERE `id` = '.$itm['id'].' LIMIT 1');
|
2023-01-10 16:29:32 +00:00
|
|
|
$u->error = '<font color=red><b>Свиток удачно использован</b></font> ';
|
2022-06-06 21:30:34 +00:00
|
|
|
}
|
|
|
|
|
2023-01-10 16:29:32 +00:00
|
|
|
//Отнимаем тактики
|
2022-06-06 21:30:34 +00:00
|
|
|
//$this->mintr($pl);
|
|
|
|
|
|
|
|
unset($pvr);
|
|
|
|
}
|
|
|
|
?>
|