21 lines
694 B
PHP
21 lines
694 B
PHP
<?
|
|
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 ) {
|
|
$u->error = 'Çàïðåùåíî èñïîëüçîâàòü â ïîåäèíêå!';
|
|
}
|
|
/*elseif($iss['id']) {
|
|
$u->error = 'Íà ïåðñîíàæå '.$usr['login'].' íåò çàêëÿòèÿ "Èññóøåíèå"';
|
|
*/
|
|
elseif($itm['magic_inci']=='off_is'){
|
|
//óäàëÿåì ýôôåêò
|
|
$u->deleteItem($itm['id']);
|
|
mysql_query('UPDATE `eff_users` SET `delete` = "'.time().'" where `uid` = "'.$usr['id'].'" AND `id_eff` = "320" LIMIT 1');
|
|
$u->error = 'Âû óñïåøíî ñíÿëè çàêëÿòèå "Èññóøåíèå -5" ñ ïåðñîíàæà '.$usr['login'].'';
|
|
}
|
|
?>
|