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

27 lines
599 B
PHP

<?
if(!defined('GAME'))
{
die();
}
if( $itm['magic_inci'] == 'enternizin' ) {
$pvr = array();
//Äåéñòâèå ïðè êëèêå
if( $u->info['room'] == 447) {
$u->error = '<font color=red><b>Âû è òàê â ýòîé êîìíàòå, íåò ñìûñëà èñïîëüçîâàòü ñâèòîê.</b></font> ';
}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');
$u->error = '<font color=red><b>Ñâèòîê óäà÷íî èñïîëüçîâàí</b></font> ';
}
//Îòíèìàåì òàêòèêè
//$this->mintr($pl);
unset($pvr);
}
?>