nick7() functions replaced by nick class

This commit is contained in:
lopar
2018-03-04 02:09:58 +02:00
parent e5d14473db
commit 2bae7c09b9
47 changed files with 263 additions and 259 deletions

View File

@@ -47,7 +47,7 @@ if ($user['battle'] == 0) {
mysql_query("UPDATE `inventory` SET `duration`=`duration`+1 WHERE `type` <>12 AND `dressed` = 1 AND `owner` = '{$user['id']}';");
$magictime=time()+(10*60);
mysql_query("INSERT INTO `effects` (`owner`,`name`,`time`,`type`) values ('".$user['id']."','Путы','$magictime',10);");
addchp ('<font color=red>Внимание!</font> Вы вышли из боя! ','{[]}'.nick7 ($user['id']).'{[]}');
addchp ('<font color=red>Внимание!</font> Вы вышли из боя! ','{[]}'.nick::id($user['id'])->short().'{[]}');
mysql_query("UPDATE `battle` SET `teams` = '".serialize($battle)."', `t".$ttt."`='".implode(";",$tu)."' WHERE `id` = ".$user['battle']." ;");
mysql_query('UPDATE users SET `battle` =0, `hp` = 0 WHERE `id` = '.$user['id'].';');
header("Location:fbattle.php");