Function nick5() merged with nick class.
This commit is contained in:
@@ -319,7 +319,7 @@ class fbattle
|
||||
foreach ($this->t1 as $k => $v) {
|
||||
mysql_query('UPDATE `battle` SET `win` = 1 WHERE `id` = "' . $this->battle_data['id'] . '" LIMIT 1');
|
||||
|
||||
$this->t1[$k] = nick5($v, " ");
|
||||
$this->t1[$k] = nick::id($v)->short();
|
||||
|
||||
if ($this->battle_data['aren_of'] == 1 && $this->t1[$k] && $v < _BOTSEPARATOR_) {
|
||||
mysql_query('INSERT INTO `logs_arena` (`battle`, `user`, `uid`, `damage`, `team`) VALUES ("' . $this->battle_data['id'] . '", "' . $this->t1[$k] . '", "' . $v . '", "' . $this->damage[$v] . '", "1")');
|
||||
@@ -407,7 +407,7 @@ class fbattle
|
||||
$flag = 2;
|
||||
foreach ($this->t2 as $k => $v) {
|
||||
mysql_query('UPDATE `battle` SET `win` = 2 WHERE `id` = "' . $this->user['battle'] . '" LIMIT 1');
|
||||
$this->t2[$k] = nick5($v, "");
|
||||
$this->t2[$k] = nick::id($v)->short();
|
||||
|
||||
if ($this->battle_data['aren_of'] == 1 && $this->t2[$k] && $v < _BOTSEPARATOR_) {
|
||||
mysql_query('INSERT INTO `logs_arena` (`battle`, `user`, `uid`, `damage`, `team`) VALUES ("' . $this->user['battle'] . '", "' . $this->t1[$k] . '", "' . $v . '", "' . $this->damage[$v] . '", "2")');
|
||||
@@ -695,7 +695,7 @@ class fbattle
|
||||
}
|
||||
|
||||
if ($us['hp'] <= 0) {
|
||||
$this->AddToLog('<span class=date>' . date("H:i") . '</span> ' . nick5($k, 'b') . ' умер!<BR>');
|
||||
$this->AddToLog('<span class=date>' . date("H:i") . '</span> ' . nick::id($k)->short() . ' умер!<BR>');
|
||||
|
||||
if ($k < _BOTSEPARATOR_) {
|
||||
mysql_query("UPDATE `users` SET `hp` = 0, `fullhptime` = '" . time() . "' WHERE `id` = '{$k}' LIMIT 1");
|
||||
@@ -1213,7 +1213,7 @@ class fbattle
|
||||
} else {
|
||||
$textuvorot = array(" <font color=green><B>уклонился</B></font> от удара ", " <font color=green><B>увернулся</B></font> от удара ", " <font color=green><B>отскочил</B></font> от удара ");
|
||||
}
|
||||
return '<span class=date>' . date("H:i") . '</span> ' . nick5($kto, $color['me']) . ' ' . $textfail[mt_rand(0, count($textfail) - 1)] . ' ' . $hark2[mt_rand(0, count($hark2) - 1)] . ' ' . nick5($pokomy, $color['he']) . ' ' . $textuvorot[mt_rand(0, count($textuvorot) - 1)] . ' ' . $textchem[mt_rand(0, count($textchem) - 1)] . ' ' . $kuda . '.<BR>';
|
||||
return '<span class=date>' . date("H:i") . '</span> ' . nick::id($kto)->short() . ' ' . $textfail[mt_rand(0, count($textfail) - 1)] . ' ' . $hark2[mt_rand(0, count($hark2) - 1)] . ' ' . nick::id($pokomy)->short() . ' ' . $textuvorot[mt_rand(0, count($textuvorot) - 1)] . ' ' . $textchem[mt_rand(0, count($textchem) - 1)] . ' ' . $kuda . '.<BR>';
|
||||
break;
|
||||
|
||||
case "block":
|
||||
@@ -1222,7 +1222,7 @@ class fbattle
|
||||
} else {
|
||||
$textblock = array(" заблокировал удар ", " остановил удар ", " отбил удар ");
|
||||
}
|
||||
return '<span class=date>' . date("H:i") . '</span> ' . nick5($kto, $color['me']) . ' ' . $textfail[mt_rand(0, count($textfail) - 1)] . ' ' . $hark2[mt_rand(0, count($hark2) - 1)] . ' ' . nick5($pokomy, $color['he']) . ' ' . $textblock[mt_rand(0, count($textblock) - 1)] . ' ' . $textchem[mt_rand(0, count($textchem) - 1)] . ' ' . $kuda . '.<BR>';
|
||||
return '<span class=date>' . date("H:i") . '</span> ' . nick::id($kto)->short() . ' ' . $textfail[mt_rand(0, count($textfail) - 1)] . ' ' . $hark2[mt_rand(0, count($hark2) - 1)] . ' ' . nick::id($pokomy)->short() . ' ' . $textblock[mt_rand(0, count($textblock) - 1)] . ' ' . $textchem[mt_rand(0, count($textchem) - 1)] . ' ' . $kuda . '.<BR>';
|
||||
break;
|
||||
|
||||
case "krit":
|
||||
@@ -1231,7 +1231,7 @@ class fbattle
|
||||
} else {
|
||||
$textkrit = array(", напугав всех, неслышно подойдя сзади ударил по голове булыжником оппонента.", ", сказав \"БУ!\", ласково заломил руку за спину соперника.", ", расслабившись, расцарапал нос соперника.", ", показав сразу два пальца, наступил на ногу врага.", ", напугав всех, укусил в нос противника.", ", проклиная этот сайт, провел ужасный бросок через пупок оппонента.");
|
||||
}
|
||||
return '<span class=date>' . date("H:i") . '</span> ' . nick5($pokomy, $color['he']) . ' ' . $textud[mt_rand(0, count($textud) - 1)] . ' ' . $hark[mt_rand(0, count($hark) - 1)] . ' ' . nick5($kto, $color['me']) . ' ' . $textkrit[mt_rand(0, count($textkrit) - 1)] . ' <b><font color=red>-' . $uron . '</font></b> [' . $hp . '/' . $maxhp . ']' . '<BR>';
|
||||
return '<span class=date>' . date("H:i") . '</span> ' . nick::id($pokomy)->short() . ' ' . $textud[mt_rand(0, count($textud) - 1)] . ' ' . $hark[mt_rand(0, count($hark) - 1)] . ' ' . nick::id($kto)->short() . ' ' . $textkrit[mt_rand(0, count($textkrit) - 1)] . ' <b><font color=red>-' . $uron . '</font></b> [' . $hp . '/' . $maxhp . ']' . '<BR>';
|
||||
break;
|
||||
|
||||
case "krita":
|
||||
@@ -1240,7 +1240,7 @@ class fbattle
|
||||
} else {
|
||||
$textkrit = array(", напугав всех, неслышно подойдя сзади ударил, пробив блок, по голове булыжником оппонента.", ", пробив блок, ласково заломил руку за спину соперника.", ", пробив блок, расцарапал нос соперника.", ", пробив блок, наступил на ногу врага.", ", пробив блок, укусил в нос противника.", ", пробив блок, провел ужасный бросок через пупок оппонента.");
|
||||
}
|
||||
return '<span class=date>' . date("H:i") . '</span> ' . nick5($pokomy, $color['he']) . ' ' . $textud[mt_rand(0, count($textud) - 1)] . ' ' . $hark[mt_rand(0, count($hark) - 1)] . ' ' . nick5($kto, $color['me']) . ' ' . $textkrit[mt_rand(0, count($textkrit) - 1)] . ' <b><font color=red>-' . $uron . '</font></b> [' . $hp . '/' . $maxhp . ']' . '<BR>';
|
||||
return '<span class=date>' . date("H:i") . '</span> ' . nick::id($pokomy)->short() . ' ' . $textud[mt_rand(0, count($textud) - 1)] . ' ' . $hark[mt_rand(0, count($hark) - 1)] . ' ' . nick::id($kto)->short() . ' ' . $textkrit[mt_rand(0, count($textkrit) - 1)] . ' <b><font color=red>-' . $uron . '</font></b> [' . $hp . '/' . $maxhp . ']' . '<BR>';
|
||||
break;
|
||||
|
||||
case "udar":
|
||||
@@ -1249,7 +1249,7 @@ class fbattle
|
||||
} else {
|
||||
$textudar = array(", разбежавшись, рубанул", " отчаянно проткнул ", " нехотя уколол ", " не подумав, рубанул ", ", улыбаясь, саданул укол ", " приложил удар ", " ударил ", " сдуру вмазал ");
|
||||
}
|
||||
return '<span class=date>' . date("H:i") . '</span> ' . nick5($pokomy, $color['he']) . ' ' . $textud[mt_rand(0, count($textud) - 1)] . ' ' . $hark[mt_rand(0, count($hark) - 1)] . ' ' . nick5($kto, $color['me']) . '' . $textudar[mt_rand(0, count($textudar) - 1)] . ' ' . $textchem[mt_rand(0, count($textchem) - 1)] . ' ' . $kuda . ' <b>-' . $uron . '</b> [' . $hp . '/' . $maxhp . ']' . '<BR>';
|
||||
return '<span class=date>' . date("H:i") . '</span> ' . nick::id($pokomy)->short() . ' ' . $textud[mt_rand(0, count($textud) - 1)] . ' ' . $hark[mt_rand(0, count($hark) - 1)] . ' ' . nick::id($kto)->short() . '' . $textudar[mt_rand(0, count($textudar) - 1)] . ' ' . $textchem[mt_rand(0, count($textchem) - 1)] . ' ' . $kuda . ' <b>-' . $uron . '</b> [' . $hp . '/' . $maxhp . ']' . '<BR>';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user