2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
if ( ! defined ( 'GAME' ))
{
die ();
}
//$iss = mysql_fetch_array(mysql_query('SELECT `id`,`v1` FROM `eff_users` WHERE `id_eff` = 320 AND `uid` = "'.$usr['id'].'" AND `delete` = "0" ORDER BY `v1` DESC LIMIT 1'));
if ( $u -> info [ 'battle' ] > 0 ) {
2023-01-10 16:29:32 +00:00
$u -> error = 'Запрещено использовать в поединке!' ;
2022-06-06 21:30:34 +00:00
}
/* elseif ( $iss [ 'id' ]) {
2023-01-10 16:29:32 +00:00
$u -> error = 'Н а персонаже ' . $usr [ 'login' ] . ' нет заклятия "Иссушение"' ;
2022-06-06 21:30:34 +00:00
*/
elseif ( $itm [ 'magic_inci' ] == 'off_is' ){
2023-01-10 16:29:32 +00:00
//удаляем эффект
2022-06-06 21:30:34 +00:00
$u -> deleteItem ( $itm [ 'id' ]);
mysql_query ( 'UPDATE `eff_users` SET `delete` = "' . time () . '" where `uid` = "' . $usr [ 'id' ] . '" AND `id_eff` = "320" LIMIT 1' );
2023-01-10 16:29:32 +00:00
$u -> error = 'Вы успешно сняли заклятие "Иссушение -5" с персонажа ' . $usr [ 'login' ] . '' ;
2022-06-06 21:30:34 +00:00
}
?>