2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
if ( ! defined ( 'GAME' ))
{
die ();
}
if ( $itm [ 'magic_inci' ] == 'platie' && $itm [ 'iznosNOW' ] < $itm [ 'iznosMAX' ]) {
//
if ( $itm [ 'gift' ] == '' || $itm [ 'gift' ] == '0' ) {
2023-01-10 16:29:32 +00:00
$u -> error = 'Использовать возможно, только если вам подарят этот предмет!' ;
2022-06-06 21:30:34 +00:00
} else {
//
$itm [ 'tpjjj' ] = 1 ;
$itm [ 'tpiii' ] = 389 ;
if ( $itm [ 'item_id' ] == 4907 || $itm [ 'item_id' ] == 4909 ) {
$itm [ 'tpjjj' ] = 2 ;
$itm [ 'tpiii' ] = $itm [ 'tpiii' ] = 390 ;
}
//
mysql_query ( 'UPDATE `eff_users` SET `delete` = "' . time () . '" WHERE `uid` = "' . $u -> info [ 'id' ] . '" AND `delete` = 0 AND `data` LIKE "%itempltype=' . $itm [ 'tpjjj' ] . '%"' );
//
mysql_query ( ' INSERT INTO `eff_users`
( `overType` , `timeUse` , `hod` , `name` , `data` , `uid` , `id_eff` , `img2` , `timeAce` , `v1` ) VALUES (
" 0 " , " '.time().' " , " -1 " ,
2023-01-10 16:29:32 +00:00
" Иллюзия: '. $itm['name'] .' " , " itempl='. $itm['item_id'] .'|itempltype='. $itm['tpjjj'] .' " , " '. $u->info ['id'].' " ,
2022-06-06 21:30:34 +00:00
" '. $itm['tpiii'] .' " , " spell_item_illusion.gif " , " 0 " , " 0 "
) ' );
//
mysql_query ( 'UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = "' . $itm [ 'id' ] . '" LIMIT 1' );
$itm [ 'iznosNOW' ] -- ;
//
2023-01-10 16:29:32 +00:00
$u -> error = 'Вы использовали "' . $itm [ 'name' ] . '" и облачились в красивые одеяния!' ;
2022-06-06 21:30:34 +00:00
}
}
?>