refactor
This commit is contained in:
parent
74b644fe59
commit
cffcf57031
@ -1021,8 +1021,7 @@ class Dialog
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->title = $this->info['text'];
|
$this->title = $this->info['text'];
|
||||||
$this->youInfo = $u->getInfoPers($u->info['id'], 1);
|
$this->youInfo = $u->getInfoPers($u->info['id'], 1)[0];
|
||||||
$this->youInfo = $this->youInfo[0];
|
|
||||||
$this->botInfo = $this->infoBot($this->info['bot_id']);
|
$this->botInfo = $this->infoBot($this->info['bot_id']);
|
||||||
//Диалог
|
//Диалог
|
||||||
$qpl = mysql_fetch_array(mysql_query('SELECT * FROM `dungeon_dlg` WHERE `type` = "1" AND `qid` = "0" AND `id_dg` = "' . $this->info['id'] . '" AND `page` = "' . ((int)$pg) . '" LIMIT 1'));
|
$qpl = mysql_fetch_array(mysql_query('SELECT * FROM `dungeon_dlg` WHERE `type` = "1" AND `qid` = "0" AND `id_dg` = "' . $this->info['id'] . '" AND `page` = "' . ((int)$pg) . '" LIMIT 1'));
|
||||||
|
@ -84,21 +84,22 @@ class FightRequest
|
|||||||
);
|
);
|
||||||
foreach ($sp as $pl) {
|
foreach ($sp as $pl) {
|
||||||
$uz = Db::getRow(
|
$uz = Db::getRow(
|
||||||
'select users.id, * from users left join stats on users.id = stats.id where zv = ?',
|
'select * from users left join stats on users.id = stats.id where zv = ?',
|
||||||
[$pl['id']]
|
[$pl['id']]
|
||||||
);
|
);
|
||||||
$i = [];
|
$i = [];
|
||||||
$toChat = '';
|
$toChat = '';
|
||||||
$toWhere = '';
|
$toWhere = '';
|
||||||
foreach ($uz as $t) {
|
if (is_iterable($uz)) {
|
||||||
${'tm' . $t['team']} ??= [];
|
foreach ($uz as $t) {
|
||||||
$i[$t['team']] ??= 0;
|
${'tm' . $t['team']} ??= [];
|
||||||
${'tm' . $t['team']}[$i[$t['team']]] = $t;
|
$i[$t['team']] ??= 0;
|
||||||
$toChat .= '' . $t['login'] . ',';
|
${'tm' . $t['team']}[$i[$t['team']]] = $t;
|
||||||
$toWhere .= 'OR `id` = "' . $t['id'] . '" ';
|
$toChat .= '' . $t['login'] . ',';
|
||||||
$i[$t['team']]++;
|
$toWhere .= 'OR `id` = "' . $t['id'] . '" ';
|
||||||
|
$i[$t['team']]++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($pl['razdel'] == self::BATTLE_RAZDEL_CHAOTIC) {
|
if ($pl['razdel'] == self::BATTLE_RAZDEL_CHAOTIC) {
|
||||||
$cols = $this->countUsersAll($pl['id']);
|
$cols = $this->countUsersAll($pl['id']);
|
||||||
if ($cols >= $pl['maxplayers']) {
|
if ($cols >= $pl['maxplayers']) {
|
||||||
|
@ -1643,9 +1643,7 @@ class User
|
|||||||
);
|
);
|
||||||
if (isset($t['id'])) {
|
if (isset($t['id'])) {
|
||||||
if ($this->info['login'] == $t['login']) {
|
if ($this->info['login'] == $t['login']) {
|
||||||
$this->error = 'Вы не можете передать самому себе, персонаж ' . $this->microLogin(
|
$this->error = 'Вы не можете передать самому себе';
|
||||||
$t['id'], 1
|
|
||||||
) . '';
|
|
||||||
} elseif ($t['battle'] > 0) {
|
} elseif ($t['battle'] > 0) {
|
||||||
$this->error = 'Персонаж находится в бою';
|
$this->error = 'Персонаж находится в бою';
|
||||||
} elseif ($t['align'] == 2 && $this->info['admin'] == 0) {
|
} elseif ($t['align'] == 2 && $this->info['admin'] == 0) {
|
||||||
|
@ -291,21 +291,6 @@ $log_text[1][7][10] = 'удар тёмной магией';
|
|||||||
$log_text[1][7][11] = 'удар серой магией';
|
$log_text[1][7][11] = 'удар серой магией';
|
||||||
$log_text[1][7][12] = 'неизсветный удар';
|
$log_text[1][7][12] = 'неизсветный удар';
|
||||||
$log_text[1][7][13] = 'удар';
|
$log_text[1][7][13] = 'удар';
|
||||||
/*
|
|
||||||
$log_text[1][7][0] = 'тычок';
|
|
||||||
$log_text[1][7][1] = 'рубящий удар';
|
|
||||||
$log_text[1][7][2] = 'разбивающий удар';
|
|
||||||
$log_text[1][7][3] = 'рассекающий удар';
|
|
||||||
$log_text[1][7][4] = 'обжигающий удар';
|
|
||||||
$log_text[1][7][5] = 'удар электричеством';
|
|
||||||
$log_text[1][7][6] = 'обмораживающий удар';
|
|
||||||
$log_text[1][7][7] = 'удар магией земли';
|
|
||||||
$log_text[1][7][8] = 'удар светлой магией';
|
|
||||||
$log_text[1][7][9] = 'удар тёмной магией';
|
|
||||||
$log_text[1][7][10] = 'удар серой магией';
|
|
||||||
$log_text[1][7][11] = 'неизсветный удар';
|
|
||||||
$log_text[1][7][12] = 'удар';
|
|
||||||
*/
|
|
||||||
|
|
||||||
//R8
|
//R8
|
||||||
$log_text[1][8][0] = 'не контролировала ситуацию';
|
$log_text[1][8][0] = 'не контролировала ситуацию';
|
||||||
|
101
logs.php
101
logs.php
@ -15,12 +15,10 @@ if (isset($btl['id'])) {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
$allprice = 0 + $allprice[0];
|
$allprice = 0 + $allprice[0];
|
||||||
function typeBattle($x)
|
function typeBattle($x): array
|
||||||
{
|
{
|
||||||
$r = [0, 0, 'Обычный поединок', 'Кровавый Поединок'];
|
$r = [0, 0, 'Обычный поединок', 'Кровавый Поединок'];
|
||||||
if ($x < 50000) {
|
if ($x >= 50000 && $x < 100000) {
|
||||||
//Обычный бой
|
|
||||||
} elseif ($x >= 50000 && $x < 100000) {
|
|
||||||
$r = [25, 50, 'Великая Битва', 'Кровавая Битва'];
|
$r = [25, 50, 'Великая Битва', 'Кровавая Битва'];
|
||||||
} elseif ($x < 500000) {
|
} elseif ($x < 500000) {
|
||||||
$r = [50, 75, 'Величайшая Битва', 'Кровавая Резня'];
|
$r = [50, 75, 'Величайшая Битва', 'Кровавая Резня'];
|
||||||
@ -39,7 +37,7 @@ if (isset($btl['id'])) {
|
|||||||
$allprice = [150, 150, 'Жесточайшее Сражение', 'Жесточайшее Сражение'];
|
$allprice = [150, 150, 'Жесточайшее Сражение', 'Жесточайшее Сражение'];
|
||||||
}
|
}
|
||||||
if ($btl['type'] == 99) {
|
if ($btl['type'] == 99) {
|
||||||
$allprice = '<font color=red>' . str_replace(' ', ' ', $allprice[3]) . '</font>';
|
$allprice = '<span style="color: red;">' . str_replace(' ', ' ', $allprice[3]) . '</span>';
|
||||||
} else {
|
} else {
|
||||||
$allprice = str_replace(' ', ' ', $allprice[2]);
|
$allprice = str_replace(' ', ' ', $allprice[2]);
|
||||||
}
|
}
|
||||||
@ -68,7 +66,7 @@ $b .= '</td>
|
|||||||
</table>';
|
</table>';
|
||||||
if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
|
if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
|
||||||
|
|
||||||
function rzv($v)
|
function rzv($v): string
|
||||||
{
|
{
|
||||||
$v = explode('.', $v);
|
$v = explode('.', $v);
|
||||||
if (!isset($v[1])) {
|
if (!isset($v[1])) {
|
||||||
@ -85,9 +83,7 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
|
|||||||
if ($btl['invis'] > 0) {
|
if ($btl['invis'] > 0) {
|
||||||
$tbtl .= '<img src="//img.new-combats.tech/i/fighttypehidden0.gif">';
|
$tbtl .= '<img src="//img.new-combats.tech/i/fighttypehidden0.gif">';
|
||||||
}
|
}
|
||||||
if ($btl['type'] == 0) {
|
if ($btl['type'] == 1) {
|
||||||
$tbtl = 'Тип боя: ' . $tbtl . ' (физический поединок) ';
|
|
||||||
} elseif ($btl['type'] == 1) {
|
|
||||||
$tbtl = 'Тип боя: ' . $tbtl . ' (кулачный поединок) ';
|
$tbtl = 'Тип боя: ' . $tbtl . ' (кулачный поединок) ';
|
||||||
} else {
|
} else {
|
||||||
$tbtl = 'Тип боя: ' . $tbtl . ' (физический поединок) ';
|
$tbtl = 'Тип боя: ' . $tbtl . ' (физический поединок) ';
|
||||||
@ -99,15 +95,10 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
|
|||||||
|
|
||||||
$tbtl .= 'Продолжительность боя: ' . $tmStart . ' мин.<br>';
|
$tbtl .= 'Продолжительность боя: ' . $tmStart . ' мин.<br>';
|
||||||
|
|
||||||
$users = [
|
$users = [];
|
||||||
|
$uids = [];
|
||||||
|
|
||||||
];
|
function con_login($us): string
|
||||||
|
|
||||||
$uids = [
|
|
||||||
|
|
||||||
];
|
|
||||||
|
|
||||||
function con_login($us)
|
|
||||||
{
|
{
|
||||||
$r = '';
|
$r = '';
|
||||||
if ($us['align'] > 0) {
|
if ($us['align'] > 0) {
|
||||||
@ -124,35 +115,24 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
|
|||||||
//Поулчаем инфо
|
//Поулчаем инфо
|
||||||
$tpas = [
|
$tpas = [
|
||||||
1 => 'X',
|
1 => 'X',
|
||||||
2 => '<font color=#AAAAEE>•</font>',
|
2 => '<span style="color: #AAAAEE; ">•</span>',
|
||||||
3 => '<b>•</b>',
|
3 => '<b>•</b>',
|
||||||
4 => '<font color=#FF0000>¤</font>',
|
4 => '<span style="color: #FF0000; ">¤</span>',
|
||||||
5 => '<font color=#FF0000>X</font>',
|
5 => '<span style="color: #FF0000; ">X</span>',
|
||||||
6 => '<font color=#AAAAEE>•</font>',
|
6 => '<span style="color: #AAAAEE; ">•</span>',
|
||||||
7 => '<font color=777777><B>•</B></font>',
|
7 => '<span style="color:#777777; "><B>•</B></span>',
|
||||||
8 => '<font color=#AAAAEE>•</font>',
|
8 => '<span style="color: #AAAAEE; ">•</span>',
|
||||||
];
|
];
|
||||||
/*$tpbs = array(
|
|
||||||
0 => 'X',
|
|
||||||
1 => 'X',
|
|
||||||
2 => '<font color=#AAAAAA><B>•</B></font>',
|
|
||||||
3 => '<font color=#AAAAEE><B>•</B></font>',
|
|
||||||
4 => 'X',
|
|
||||||
5 => '<font color=#FF0000><B>•</B></font>',
|
|
||||||
6 => '<font color=#AAAAEE><B>•</B></font>',
|
|
||||||
7 => '<font color=#777777><B>•</B></font>',
|
|
||||||
8 => '<font color=#AAAAAA><B>•</B></font>'
|
|
||||||
);*/
|
|
||||||
$tpbs = [
|
$tpbs = [
|
||||||
0 => '',
|
0 => '',
|
||||||
1 => '<B>•</B>',
|
1 => '<B>•</B>',
|
||||||
2 => '<font color=#AAAAAA><B>•</B></font>',
|
2 => '<span style="color: #AAAAAA; "><B>•</B></span>',
|
||||||
3 => 'X',
|
3 => 'X',
|
||||||
4 => '<font color=#FFEEEE><B>X</B></font>',
|
4 => '<span style="color: #FFEEEE; "><B>X</B></span>',
|
||||||
5 => '<font color=#FFEEEE><B>•</B></font>',
|
5 => '<span style="color: #FFEEEE; "><B>•</B></span>',
|
||||||
6 => '<font color=#AAAAEE><B>•</B></font>',
|
6 => '<span style="color: #AAAAEE; "><B>•</B></span>',
|
||||||
7 => '<font color=#777777><B>•</B></font>',
|
7 => '<span style="color: #777777; "><B>•</B></span>',
|
||||||
8 => '<font color=#AAAAAA><B>•</B></font>',
|
8 => '<span style="color: #AAAAAA; "><B>•</B></span>',
|
||||||
];
|
];
|
||||||
$sp = mysql_query('SELECT * FROM `battle_users` WHERE `battle` = "' . $btl['id'] . '"');
|
$sp = mysql_query('SELECT * FROM `battle_users` WHERE `battle` = "' . $btl['id'] . '"');
|
||||||
while ($pl = mysql_fetch_array($sp)) {
|
while ($pl = mysql_fetch_array($sp)) {
|
||||||
@ -214,7 +194,6 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
|
|||||||
$users[$i]['value']['sa'][$k] .= $tpas[$tpa];
|
$users[$i]['value']['sa'][$k] .= $tpas[$tpa];
|
||||||
} else {
|
} else {
|
||||||
$zag[$k] = false;
|
$zag[$k] = false;
|
||||||
//$users[$i]['value']['sa'][$za] .= '.';
|
|
||||||
}
|
}
|
||||||
$k++;
|
$k++;
|
||||||
}
|
}
|
||||||
@ -235,7 +214,7 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
|
|||||||
//
|
//
|
||||||
$k = 1;
|
$k = 1;
|
||||||
while ($k <= 5) {
|
while ($k <= 5) {
|
||||||
if ($zag[$k] == false) {
|
if (!$zag[$k]) {
|
||||||
$users[$i]['value']['sa'][$k] .= ' ';
|
$users[$i]['value']['sa'][$k] .= ' ';
|
||||||
}
|
}
|
||||||
$k++;
|
$k++;
|
||||||
@ -284,9 +263,7 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
|
|||||||
} else {
|
} else {
|
||||||
$d = 1;
|
$d = 1;
|
||||||
while ($d <= 5) {
|
while ($d <= 5) {
|
||||||
if ($bjj[$d] == true) {
|
if (!$bjj[$d]) {
|
||||||
|
|
||||||
} else {
|
|
||||||
$users[$i]['value']['sb'][$d] .= ' ';
|
$users[$i]['value']['sb'][$d] .= ' ';
|
||||||
}
|
}
|
||||||
$d++;
|
$d++;
|
||||||
@ -391,9 +368,9 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
|
|||||||
}
|
}
|
||||||
$r .= '</TABLE>';
|
$r .= '</TABLE>';
|
||||||
$r .= '(<b>X</b> - удачный блок, <b><FONT COLOR=red>X</FONT></b> - пробили блок критом, <B>•</B> - пропустил удар,
|
$r .= '(<b>X</b> - удачный блок, <b><FONT COLOR=red>X</FONT></b> - пробили блок критом, <B>•</B> - пропустил удар,
|
||||||
<font color=#AAAAAA><B>•</B></font> - увернулся,
|
<span style="color: #AAAAAA; "><B>•</B></span> - увернулся,
|
||||||
<font color=#AAAAEE><B>•</B></font> - парировал,
|
<span style="color: #AAAAEE; "><B>•</B></span> - парировал,
|
||||||
<font color=#777777><B>•</B></font> - отбил щитом)';
|
<span style="color: #777777; "><B>•</B></span> - отбил щитом)';
|
||||||
//
|
//
|
||||||
$r .= '<H4>Суммарно</H4>';
|
$r .= '<H4>Суммарно</H4>';
|
||||||
$r .= '<TABLE border=1 cellspacing=0 cellpadding=4>
|
$r .= '<TABLE border=1 cellspacing=0 cellpadding=4>
|
||||||
@ -441,7 +418,7 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
|
|||||||
$team_data['heal'] += $us['heal'];
|
$team_data['heal'] += $us['heal'];
|
||||||
$winw = '';
|
$winw = '';
|
||||||
if ($us['hp'] < 1) {
|
if ($us['hp'] < 1) {
|
||||||
$us['hp'] = '<font color=red>0</font>';
|
$us['hp'] = '<span style="color: red; ">0</span>';
|
||||||
$winw = '<img title="Погиб" width="7" height="7" src="//img.new-combats.tech/i/ico/looses.gif">';
|
$winw = '<img title="Погиб" width="7" height="7" src="//img.new-combats.tech/i/ico/looses.gif">';
|
||||||
} else {
|
} else {
|
||||||
$winw = '<img title="Выжил" width="7" height="7" src="//img.new-combats.tech/i/ico/wins.gif">';
|
$winw = '<img title="Выжил" width="7" height="7" src="//img.new-combats.tech/i/ico/wins.gif">';
|
||||||
@ -681,11 +658,8 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
|
|||||||
$clr = 'f2e5e0';
|
$clr = 'f2e5e0';
|
||||||
}
|
}
|
||||||
$cclr = 'border-top:1px solid #b1b1b1;';
|
$cclr = 'border-top:1px solid #b1b1b1;';
|
||||||
#$r .= '<table cellspacing="1" width="100%"><tbody><tr><td height="1" bgcolor="#b0b0b0"></td></tr></tbody></table>';
|
|
||||||
}
|
}
|
||||||
$h = $pl['id_hod'];
|
$h = $pl['id_hod'];
|
||||||
} else {
|
|
||||||
//$r .= '<br>';
|
|
||||||
}
|
}
|
||||||
$r .= '<div class="logs_php_line" style="background-color:#' . $clr . ';' . $cclr . 'padding:1px;">' . $pl['text'] . '</div>';
|
$r .= '<div class="logs_php_line" style="background-color:#' . $clr . ';' . $cclr . 'padding:1px;">' . $pl['text'] . '</div>';
|
||||||
$cclr = '';
|
$cclr = '';
|
||||||
@ -762,9 +736,9 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="ru">
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
<title>Архив: Поединки</title>
|
<title>Архив: Поединки</title>
|
||||||
<script type="text/javascript" src="js/jquery.js"></script>
|
<script type="text/javascript" src="js/jquery.js"></script>
|
||||||
<script type="text/javascript" src="js/jqueryrotate.js"></script>
|
<script type="text/javascript" src="js/jqueryrotate.js"></script>
|
||||||
@ -776,7 +750,7 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
|
|||||||
hi_no_fm = 1;
|
hi_no_fm = 1;
|
||||||
|
|
||||||
function maginfo(z, p, m, obj) {
|
function maginfo(z, p, m, obj) {
|
||||||
var r = '';
|
let r = '';
|
||||||
r += '<b>' + $(obj).attr('magelogin') + '</b><br><br>';
|
r += '<b>' + $(obj).attr('magelogin') + '</b><br><br>';
|
||||||
r += 'Мощь: ' + m + ', ';
|
r += 'Мощь: ' + m + ', ';
|
||||||
r += 'Защита: ' + z + ', ';
|
r += 'Защита: ' + z + ', ';
|
||||||
@ -794,8 +768,6 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
|
|||||||
#f2e5e0;
|
#f2e5e0;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
min-width: 400px;
|
min-width: 400px;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
@ -804,10 +776,7 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
|
|||||||
|
|
||||||
.ttl_css {
|
.ttl_css {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
padding-left: 3px;
|
padding: 2px 3px;
|
||||||
padding-right: 3px;
|
|
||||||
padding-top: 2px;
|
|
||||||
padding-bottom: 2px;
|
|
||||||
background-color: #ffffcc;
|
background-color: #ffffcc;
|
||||||
border: 1px solid #6F6B5E;
|
border: 1px solid #6F6B5E;
|
||||||
}
|
}
|
||||||
@ -885,17 +854,17 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
|
|||||||
<body> <!--#E2E0E0 -->
|
<body> <!--#E2E0E0 -->
|
||||||
<div style="max-width:95%; min-height: 100%; margin:0 auto;">
|
<div style="max-width:95%; min-height: 100%; margin:0 auto;">
|
||||||
<br><br>
|
<br><br>
|
||||||
<div id="ttl" class="ttl_css" style="display:none;z-index:1111;"/>
|
<div id="ttl" class="ttl_css" style="display:none;z-index:1111;"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="gi" class="gifin" style="display:none;z-index:1110;"></div>
|
<div id="gi" class="gifin" style="display:none;z-index:1110;"></div>
|
||||||
<H3><IMG SRC="//img.new-combats.tech/i/fighttype2.gif" WIDTH=20 HEIGHT=20> Бойцовский
|
<H3><IMG SRC="//img.new-combats.tech/i/fighttype2.gif" WIDTH=20 HEIGHT=20 alt=""> Бойцовский
|
||||||
Клуб<?php if ($based != 'battle_logs') {
|
Клуб<?php if ($based != 'battle_logs') {
|
||||||
echo ' (Архив поединков)';
|
echo ' (Архив поединков)';
|
||||||
} ?> <IMG SRC="//img.new-combats.tech/i/fighttype2.gif" WIDTH=20 HEIGHT=20></H3>
|
} ?> <IMG SRC="//img.new-combats.tech/i/fighttype2.gif" WIDTH=20 HEIGHT=20 alt=""></H3>
|
||||||
<?= $r; ?>
|
<?= $r; ?>
|
||||||
<br><br><br>
|
<br><br><br>
|
||||||
</div>
|
</div>
|
||||||
<script language="JavaScript">
|
<script>
|
||||||
$('#line_filter').submit(function () {
|
$('#line_filter').submit(function () {
|
||||||
$('#line_filter_input_submit').trigger('click');
|
$('#line_filter_input_submit').trigger('click');
|
||||||
});
|
});
|
||||||
@ -938,4 +907,4 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -6,7 +6,6 @@ elem.parentNode.removeChild(elem);
|
|||||||
</script>";
|
</script>";
|
||||||
|
|
||||||
use Core\Config;
|
use Core\Config;
|
||||||
use DarksLight2\Battle\Techniques\TechniqueCategoryEntity;
|
|
||||||
use DarksLight2\Training\TrainingManager;
|
use DarksLight2\Training\TrainingManager;
|
||||||
|
|
||||||
if (!defined('GAME')) {
|
if (!defined('GAME')) {
|
||||||
@ -317,7 +316,7 @@ $tma = '';
|
|||||||
$u->info['sskills'] -= $summs;
|
$u->info['sskills'] -= $summs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (@$_GET['upr']) {
|
if ($_GET['upr']) {
|
||||||
/*-----Проверяем сумму статов и умений-----*/
|
/*-----Проверяем сумму статов и умений-----*/
|
||||||
if (!isset($_GET['energy']) || $_GET['energy'] < 0) {
|
if (!isset($_GET['energy']) || $_GET['energy'] < 0) {
|
||||||
$_GET['energy'] = 0;
|
$_GET['energy'] = 0;
|
||||||
@ -468,7 +467,28 @@ $tma = '';
|
|||||||
$u->info['stats'] = \Core\ConversionHelper::arrayToDataString($st);
|
$u->info['stats'] = \Core\ConversionHelper::arrayToDataString($st);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
$_GET['str'] < 0 || $_GET['dex'] < 0 || $_GET['intel'] < 0 || $_GET['wis'] < 0 || $_GET['spirit'] < 0 || $_GET['will'] < 0 || $_GET['freedom'] < 0 || $_GET['god'] < 0 || $_GET['inst'] < 0 || $_GET['power'] < 0 || $_GET['m_sword'] < 0 || $_GET['m_tohand'] < 0 || $_GET['m_molot'] < 0 || $_GET['m_staff'] < 0 || $_GET['m_magic1'] < 0 || $_GET['m_magic2'] < 0 || $_GET['m_magic3'] < 0 || $_GET['m_magic4'] < 0 || $_GET['m_magic5'] < 0 || $_GET['m_magic6'] < 0 || $_GET['m_magic7'] < 0) {
|
$_GET['str'] < 0 ||
|
||||||
|
$_GET['dex'] < 0 ||
|
||||||
|
$_GET['intel'] < 0 ||
|
||||||
|
$_GET['wis'] < 0 ||
|
||||||
|
$_GET['spirit'] < 0 ||
|
||||||
|
$_GET['will'] < 0 ||
|
||||||
|
$_GET['freedom'] < 0 ||
|
||||||
|
$_GET['god'] < 0 ||
|
||||||
|
$_GET['inst'] < 0 ||
|
||||||
|
$_GET['power'] < 0 ||
|
||||||
|
$_GET['m_sword'] < 0 ||
|
||||||
|
$_GET['m_tohand'] < 0 ||
|
||||||
|
$_GET['m_molot'] < 0 ||
|
||||||
|
$_GET['m_staff'] < 0 ||
|
||||||
|
$_GET['m_magic1'] < 0 ||
|
||||||
|
$_GET['m_magic2'] < 0 ||
|
||||||
|
$_GET['m_magic3'] < 0 ||
|
||||||
|
$_GET['m_magic4'] < 0 ||
|
||||||
|
$_GET['m_magic5'] < 0 ||
|
||||||
|
$_GET['m_magic6'] < 0 ||
|
||||||
|
$_GET['m_magic7'] < 0
|
||||||
|
) {
|
||||||
echo ' <span style="color: red; ">1) Что-то здесь не так...</span><br>';
|
echo ' <span style="color: red; ">1) Что-то здесь не так...</span><br>';
|
||||||
} elseif ($u->info['ability'] - (int)$summ < 0 || $u->info['skills'] - (int)$summu < 0) {
|
} elseif ($u->info['ability'] - (int)$summ < 0 || $u->info['skills'] - (int)$summu < 0) {
|
||||||
echo ' <span style="color: red; ">Что-то здесь не так... (Способности: ' . ($u->info['ability'] - (int)$summ) . ', Умения: ' . ($u->info['skills'] - (int)$summu) . ')</span><br>';
|
echo ' <span style="color: red; ">Что-то здесь не так... (Способности: ' . ($u->info['ability'] - (int)$summ) . ', Умения: ' . ($u->info['skills'] - (int)$summu) . ')</span><br>';
|
||||||
@ -764,232 +784,233 @@ $tma = '';
|
|||||||
<TABLE border=0 cellspacing=0 cellpadding=0 width=100%>
|
<TABLE border=0 cellspacing=0 cellpadding=0 width=100%>
|
||||||
<tr>
|
<tr>
|
||||||
<TD width=30% valign=top>
|
<TD width=30% valign=top>
|
||||||
<TABLE border=0 cellspacing=1 cellpadding=0 width=100%>
|
<TABLE border=0 cellspacing=1 cellpadding=0 width=100%>
|
||||||
<TR>
|
<TR>
|
||||||
<TD height="10" class=tzS>Характеристики персонажа</TD>
|
<TD height="10" class=tzS>Характеристики персонажа</TD>
|
||||||
</TR>
|
</TR>
|
||||||
<TR>
|
<TR>
|
||||||
<TD style='padding-left: 5'>
|
<TD style='padding-left: 5'>
|
||||||
<STYLE>
|
<STYLE>
|
||||||
IMG.skill {
|
IMG.skill {
|
||||||
width: 9px;
|
width: 9px;
|
||||||
height: 9px;
|
height: 9px;
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
}
|
}
|
||||||
|
|
||||||
TD.skill {
|
TD.skill {
|
||||||
font-weight: bold
|
font-weight: bold
|
||||||
}
|
}
|
||||||
|
|
||||||
TD.skills {
|
TD.skills {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #600000
|
color: #600000
|
||||||
}
|
}
|
||||||
|
|
||||||
TD.skillb {
|
TD.skillb {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #006000
|
color: #006000
|
||||||
}
|
}
|
||||||
|
|
||||||
.linestl1 {
|
.linestl1 {
|
||||||
background-color: #E2E0E0;
|
background-color: #E2E0E0;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
</STYLE>
|
</STYLE>
|
||||||
<TABLE cellSpacing=0>
|
|
||||||
<TR id="str" onMouseDown="ChangeSkill(event,this)" onMouseUp="DropTimer()"
|
<TABLE cellSpacing=0>
|
||||||
onclick="OnClick(event,this);">
|
<TR id="str" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()" onclick="OnClick(event,this);">
|
||||||
<TD>• Сила:</TD>
|
<TD>• Сила:</TD>
|
||||||
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s1'] ?><BR></small></TD>
|
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s1'] ?><BR></small></TD>
|
||||||
<TD width=60 noWrap><?= $dex ?></TD> <?php
|
<TD width=60 noWrap><?= $str ?></TD>
|
||||||
if ($u->info['ability'] > 0) { ?>
|
<?php if ($u->info['ability'] > 0): ?>
|
||||||
<TD><IMG id="minus_dex" src=<?= Config::img() ?>/i/minus.gif class="nonactive"
|
<TD>
|
||||||
ALT="уменьшить"> <IMG src=<?= Config::img() ?>/i/plus.gif
|
<IMG id="minus_str" src=<?= Config::img() ?>/i/minus.gif class="nonactive" ALT="уменьшить">
|
||||||
class=skill
|
<IMG id="plus_str" src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"></TD>
|
||||||
ALT="увеличить" id="plus_dex"></TD><?php } ?>
|
<?php endif; ?>
|
||||||
</TR>
|
</TR>
|
||||||
<TR id="dex" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
|
<TR id="dex" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
|
||||||
onclick="OnClick(event,this);">
|
onclick="OnClick(event,this);">
|
||||||
<TD>• Ловкость:</TD>
|
<TD>• Ловкость:</TD>
|
||||||
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s2'] ?><BR></small></TD>
|
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s2'] ?><BR></small></TD>
|
||||||
<TD width=60 noWrap><?= $dex ?></TD>
|
<TD width=60 noWrap><?= $dex ?></TD>
|
||||||
|
<?php
|
||||||
|
if ($u->info['ability'] > 0) { ?>
|
||||||
|
<TD><IMG id="minus_dex" src=<?= Config::img() ?>/i/minus.gif class="nonactive"
|
||||||
|
ALT="уменьшить"> <IMG src=<?= Config::img() ?>/i/plus.gif
|
||||||
|
class=skill ALT="увеличить" id="plus_dex"></TD><?php
|
||||||
|
} ?>
|
||||||
|
</TR>
|
||||||
|
<TR id="inst" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
|
||||||
|
onclick="OnClick(event,this);">
|
||||||
|
<TD>• Интуиция:</TD>
|
||||||
|
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s3'] ?><BR></small></TD>
|
||||||
|
<TD width=60 noWrap><?= $inst ?></TD>
|
||||||
|
<?php
|
||||||
|
if ($u->info['ability'] > 0) { ?>
|
||||||
|
<TD><IMG id="minus_inst" src=<?= Config::img() ?>/i/minus.gif class="nonactive"
|
||||||
|
ALT="уменьшить"> <IMG src=<?= Config::img() ?>/i/plus.gif
|
||||||
|
class=skill
|
||||||
|
ALT="увеличить" id="plus_inst"></TD><?php } ?>
|
||||||
|
</TR>
|
||||||
|
<TR id="power" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
|
||||||
|
onclick="OnClick(event,this);">
|
||||||
|
<TD>• Выносливость:</TD>
|
||||||
|
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s4'] ?><BR></small></TD>
|
||||||
|
<TD width=60 noWrap></TD>
|
||||||
|
<?php
|
||||||
|
if ($u->info['ability'] > 0) { ?>
|
||||||
|
<TD><IMG id="minus_power" src=<?= Config::img() ?>/i/minus.gif class="nonactive"
|
||||||
|
ALT="уменьшить"> <IMG src=<?= Config::img() ?>/i/plus.gif
|
||||||
|
class=skill
|
||||||
|
ALT="увеличить" id="plus_power"></TD><?php } ?>
|
||||||
|
</TR>
|
||||||
<?php
|
<?php
|
||||||
if ($u->info['ability'] > 0) { ?>
|
if ($u->info['level'] > 3) { ?>
|
||||||
<TD><IMG id="minus_dex" src=<?= Config::img() ?>/i/minus.gif class="nonactive"
|
<TR id="intel" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
|
||||||
ALT="уменьшить"> <IMG src=<?= Config::img() ?>/i/plus.gif
|
onclick="OnClick(event,this);">
|
||||||
class=skill ALT="увеличить" id="plus_dex"></TD><?php
|
<TD>• Интеллект:</TD>
|
||||||
|
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s5'] ?></TD>
|
||||||
|
<TD width=60 noWrap><?= $intel ?></TD>
|
||||||
|
<?php
|
||||||
|
if ($u->info['ability'] > 0) { ?>
|
||||||
|
<TD><IMG id="minus_intel" src=<?= Config::img() ?>/i/minus.gif
|
||||||
|
class="nonactive" ALT="уменьшить"> <IMG
|
||||||
|
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
|
||||||
|
id="plus_intel"></TD><?php
|
||||||
|
} ?>
|
||||||
|
</TR>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
if ($u->info['level'] > 6) { ?>
|
||||||
|
<TR id="wis" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
|
||||||
|
onclick="OnClick(event,this);">
|
||||||
|
<TD>• Мудрость:</TD>
|
||||||
|
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s6'] ?></TD>
|
||||||
|
<TD width=60 noWrap></TD>
|
||||||
|
<?php
|
||||||
|
if ($u->info['ability'] > 0) { ?>
|
||||||
|
<TD><IMG id="minus_wis" src=<?= Config::img() ?>/i/minus.gif
|
||||||
|
class="nonactive" ALT="уменьшить"> <IMG
|
||||||
|
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
|
||||||
|
id="plus_wis"></TD><?php
|
||||||
|
} ?>
|
||||||
|
</TR>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
if ($u->info['level'] > 9) { ?>
|
||||||
|
<TR id="spirit" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
|
||||||
|
onclick="OnClick(event,this);">
|
||||||
|
<TD>• Духовность:</TD>
|
||||||
|
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s7'] ?></TD>
|
||||||
|
<TD width=60 noWrap></TD>
|
||||||
|
<?php
|
||||||
|
if ($u->info['ability'] > 0) { ?>
|
||||||
|
<TD><IMG id="minus_spirit" src=<?= Config::img() ?>/i/minus.gif
|
||||||
|
class="nonactive" ALT="уменьшить"> <IMG
|
||||||
|
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
|
||||||
|
id="plus_spirit"></TD><?php
|
||||||
|
} ?>
|
||||||
|
</TR>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
if ($u->info['level'] > 12) { ?>
|
||||||
|
<TR id="will" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
|
||||||
|
onclick="OnClick(event,this);">
|
||||||
|
<TD>• Воля:</TD>
|
||||||
|
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s8'] ?></TD>
|
||||||
|
<TD width=60 noWrap></TD>
|
||||||
|
<?php
|
||||||
|
if ($u->info['ability'] > 0) { ?>
|
||||||
|
<TD><IMG id="minus_will" src=<?= Config::img() ?>/i/minus.gif
|
||||||
|
class="nonactive" ALT="уменьшить"> <IMG
|
||||||
|
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
|
||||||
|
id="plus_will"></TD><?php
|
||||||
|
} ?>
|
||||||
|
</TR>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
if ($u->info['level'] > 15) { ?>
|
||||||
|
<TR id="freedom" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
|
||||||
|
onclick="OnClick(event,this);">
|
||||||
|
<TD>• Свобода духа:</TD>
|
||||||
|
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s9'] ?></TD>
|
||||||
|
<TD width=60 noWrap></TD>
|
||||||
|
<?php
|
||||||
|
if ($u->info['ability'] > 0) { ?>
|
||||||
|
<TD><IMG id="minus_freedom" src=<?= Config::img() ?>/i/minus.gif
|
||||||
|
class="nonactive" ALT="уменьшить"> <IMG
|
||||||
|
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
|
||||||
|
id="plus_freedom"></TD><?php
|
||||||
|
} ?>
|
||||||
|
</TR>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
if ($u->info['level'] > 18) { ?>
|
||||||
|
<TR id="god" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
|
||||||
|
onclick="OnClick(event,this);">
|
||||||
|
<TD>• Божественность:</TD>
|
||||||
|
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s10'] ?></TD>
|
||||||
|
<TD width=60 noWrap></TD>
|
||||||
|
<?php
|
||||||
|
if ($u->info['ability'] > 0) { ?>
|
||||||
|
<TD><IMG id="minus_god" src=<?= Config::img() ?>/i/minus.gif
|
||||||
|
class="nonactive" ALT="уменьшить"> <IMG
|
||||||
|
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
|
||||||
|
id="plus_god"></TD><?php
|
||||||
|
} ?>
|
||||||
|
</TR>
|
||||||
|
<?php
|
||||||
} ?>
|
} ?>
|
||||||
</TR>
|
</TABLE>
|
||||||
<TR id="inst" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
|
|
||||||
onclick="OnClick(event,this);">
|
|
||||||
<TD>• Интуиция:</TD>
|
|
||||||
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s3'] ?><BR></small></TD>
|
|
||||||
<TD width=60 noWrap><?= $inst ?></TD>
|
|
||||||
<?php
|
|
||||||
if ($u->info['ability'] > 0) { ?>
|
|
||||||
<TD><IMG id="minus_dex" src=<?= Config::img() ?>/i/minus.gif class="nonactive"
|
|
||||||
ALT="уменьшить"> <IMG src=<?= Config::img() ?>/i/plus.gif
|
|
||||||
class=skill
|
|
||||||
ALT="увеличить" id="plus_dex"></TD><?php } ?>
|
|
||||||
</TR>
|
|
||||||
<TR id="power" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
|
|
||||||
onclick="OnClick(event,this);">
|
|
||||||
<TD>• Выносливость:</TD>
|
|
||||||
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s4'] ?><BR></small></TD>
|
|
||||||
<TD width=60 noWrap></TD>
|
|
||||||
<?php
|
|
||||||
if ($u->info['ability'] > 0) { ?>
|
|
||||||
<TD><IMG id="minus_dex" src=<?= Config::img() ?>/i/minus.gif class="nonactive"
|
|
||||||
ALT="уменьшить"> <IMG src=<?= Config::img() ?>/i/plus.gif
|
|
||||||
class=skill
|
|
||||||
ALT="увеличить" id="plus_dex"></TD><?php } ?>
|
|
||||||
</TR>
|
|
||||||
<?php
|
|
||||||
if ($u->info['level'] > 3) { ?>
|
|
||||||
<TR id="intel" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
|
|
||||||
onclick="OnClick(event,this);">
|
|
||||||
<TD>• Интеллект:</TD>
|
|
||||||
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s5'] ?></TD>
|
|
||||||
<TD width=60 noWrap><?= $intel ?></TD>
|
|
||||||
<?php
|
|
||||||
if ($u->info['ability'] > 0) { ?>
|
|
||||||
<TD><IMG id="minus_intel" src=<?= Config::img() ?>/i/minus.gif
|
|
||||||
class="nonactive" ALT="уменьшить"> <IMG
|
|
||||||
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
|
|
||||||
id="plus_intel"></TD><?php
|
|
||||||
} ?>
|
|
||||||
</TR>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
if ($u->info['level'] > 6) { ?>
|
|
||||||
<TR id="wis" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
|
|
||||||
onclick="OnClick(event,this);">
|
|
||||||
<TD>• Мудрость:</TD>
|
|
||||||
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s6'] ?></TD>
|
|
||||||
<TD width=60 noWrap></TD>
|
|
||||||
<?php
|
|
||||||
if ($u->info['ability'] > 0) { ?>
|
|
||||||
<TD><IMG id="minus_wis" src=<?= Config::img() ?>/i/minus.gif
|
|
||||||
class="nonactive" ALT="уменьшить"> <IMG
|
|
||||||
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
|
|
||||||
id="plus_wis"></TD><?php
|
|
||||||
} ?>
|
|
||||||
</TR>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
if ($u->info['level'] > 9) { ?>
|
|
||||||
<TR id="spirit" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
|
|
||||||
onclick="OnClick(event,this);">
|
|
||||||
<TD>• Духовность:</TD>
|
|
||||||
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s7'] ?></TD>
|
|
||||||
<TD width=60 noWrap></TD>
|
|
||||||
<?php
|
|
||||||
if ($u->info['ability'] > 0) { ?>
|
|
||||||
<TD><IMG id="minus_spirit" src=<?= Config::img() ?>/i/minus.gif
|
|
||||||
class="nonactive" ALT="уменьшить"> <IMG
|
|
||||||
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
|
|
||||||
id="plus_spirit"></TD><?php
|
|
||||||
} ?>
|
|
||||||
</TR>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
if ($u->info['level'] > 12) { ?>
|
|
||||||
<TR id="will" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
|
|
||||||
onclick="OnClick(event,this);">
|
|
||||||
<TD>• Воля:</TD>
|
|
||||||
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s8'] ?></TD>
|
|
||||||
<TD width=60 noWrap></TD>
|
|
||||||
<?php
|
|
||||||
if ($u->info['ability'] > 0) { ?>
|
|
||||||
<TD><IMG id="minus_will" src=<?= Config::img() ?>/i/minus.gif
|
|
||||||
class="nonactive" ALT="уменьшить"> <IMG
|
|
||||||
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
|
|
||||||
id="plus_will"></TD><?php
|
|
||||||
} ?>
|
|
||||||
</TR>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
if ($u->info['level'] > 15) { ?>
|
|
||||||
<TR id="freedom" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
|
|
||||||
onclick="OnClick(event,this);">
|
|
||||||
<TD>• Свобода духа:</TD>
|
|
||||||
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s9'] ?></TD>
|
|
||||||
<TD width=60 noWrap></TD>
|
|
||||||
<?php
|
|
||||||
if ($u->info['ability'] > 0) { ?>
|
|
||||||
<TD><IMG id="minus_freedom" src=<?= Config::img() ?>/i/minus.gif
|
|
||||||
class="nonactive" ALT="уменьшить"> <IMG
|
|
||||||
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
|
|
||||||
id="plus_freedom"></TD><?php
|
|
||||||
} ?>
|
|
||||||
</TR>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
if ($u->info['level'] > 18) { ?>
|
|
||||||
<TR id="god" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
|
|
||||||
onclick="OnClick(event,this);">
|
|
||||||
<TD>• Божественность:</TD>
|
|
||||||
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s10'] ?></TD>
|
|
||||||
<TD width=60 noWrap></TD>
|
|
||||||
<?php
|
|
||||||
if ($u->info['ability'] > 0) { ?>
|
|
||||||
<TD><IMG id="minus_god" src=<?= Config::img() ?>/i/minus.gif
|
|
||||||
class="nonactive" ALT="уменьшить"> <IMG
|
|
||||||
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
|
|
||||||
id="plus_god"></TD><?php
|
|
||||||
} ?>
|
|
||||||
</TR>
|
|
||||||
<?php
|
|
||||||
} ?>
|
|
||||||
</TABLE>
|
|
||||||
</TD>
|
|
||||||
</TR>
|
|
||||||
</TABLE>
|
|
||||||
<INPUT class="btn btn-success" type="button" value="Сохранить" disabled id="save_button0"
|
|
||||||
onClick="SaveSkill()">
|
|
||||||
<INPUT type="checkbox" onClick="ChangeButtonState(0)">
|
|
||||||
<div style="color: green; margin: 16px 0;" id="ups">
|
|
||||||
<?php
|
|
||||||
if ($u->info['ability']) {
|
|
||||||
echo "Возможных увеличений: <span id='UP'>{$u->info['ability']}</span><br>";
|
|
||||||
}
|
|
||||||
if ($u->info['skills']) {
|
|
||||||
echo "Свободных умений: <span id='m_UP'>{$u->info['skills']}</span><br>";
|
|
||||||
}
|
|
||||||
if ($u->info['sskills']) {
|
|
||||||
echo "Свободных особенностей: <span id='m_UP'>{$u->info['sskills']}</span><br>";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
<style>
|
|
||||||
ul {
|
|
||||||
padding-left: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul li {
|
</TD>
|
||||||
font-size: x-small;
|
</TR>
|
||||||
}
|
</TABLE>
|
||||||
|
<INPUT class="btn btn-success" type="button" value="Сохранить" disabled id="save_button0"
|
||||||
|
onClick="SaveSkill()">
|
||||||
|
<INPUT type="checkbox" onClick="ChangeButtonState(0)">
|
||||||
|
<div style="color: green; margin: 16px 0;" id="ups">
|
||||||
|
<?php
|
||||||
|
if ($u->info['ability']) {
|
||||||
|
echo "Возможных увеличений: <span id='UP'>{$u->info['ability']}</span><br>";
|
||||||
|
}
|
||||||
|
if ($u->info['skills']) {
|
||||||
|
echo "Свободных умений: <span id='m_UP'>{$u->info['skills']}</span><br>";
|
||||||
|
}
|
||||||
|
if ($u->info['sskills']) {
|
||||||
|
echo "Свободных особенностей: <span id='m_UP'>{$u->info['sskills']}</span><br>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
<style>
|
||||||
|
ul {
|
||||||
|
padding-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
ul li b {
|
ul li {
|
||||||
color: green;
|
font-size: x-small;
|
||||||
}
|
}
|
||||||
</style>
|
|
||||||
<div>
|
ul li b {
|
||||||
<INPUT TYPE=button class="btn btn-danger"
|
color: green;
|
||||||
onClick="window.open('/stats_bonus.php/', 'stats_bonus', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')"
|
}
|
||||||
value="Статовые Бонусы">
|
</style>
|
||||||
<br><br>
|
<div>
|
||||||
<b style="font-size: x-small;">Зависимость максимального профильного урона оружием у основных воинских
|
<INPUT TYPE=button class="btn btn-danger"
|
||||||
классов:</b>
|
onClick="window.open('/stats_bonus.php/', 'stats_bonus', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')"
|
||||||
<ul>
|
value="Статовые Бонусы">
|
||||||
<li><b>Дробящий</b> (дубины): 1 сила = 0,5 к урону и 1 выносливость = +1 к урону.</li>
|
<br><br>
|
||||||
<li><b>Режущий</b> (мечи): 1 интуиция = 1 к урону.</li>
|
<b style="font-size: x-small;">Зависимость максимального профильного урона оружием у основных воинских
|
||||||
<li><b>Колющий</b> (кинжалы): 1 сила = 0,25 к урону и 1 ловкость = 0,75 к урону.</li>
|
классов:</b>
|
||||||
<li><b>Рубящий</b> (топоры): 1 сила = 1,2 к урону.</li>
|
<ul>
|
||||||
</ul>
|
<li><b>Дробящий</b> (дубины): 1 сила = 0,5 к урону и 1 выносливость = +1 к урону.</li>
|
||||||
</div>
|
<li><b>Режущий</b> (мечи): 1 интуиция = 1 к урону.</li>
|
||||||
</TD>
|
<li><b>Колющий</b> (кинжалы): 1 сила = 0,25 к урону и 1 ловкость = 0,75 к урону.</li>
|
||||||
|
<li><b>Рубящий</b> (топоры): 1 сила = 1,2 к урону.</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</TD>
|
||||||
<TD width=1 bgcolor=#A0A0A0></TD>
|
<TD width=1 bgcolor=#A0A0A0></TD>
|
||||||
<TD valign=top>
|
<TD valign=top>
|
||||||
<TABLE border=0 cellspacing=1 cellpadding=0 width=100%>
|
<TABLE border=0 cellspacing=1 cellpadding=0 width=100%>
|
||||||
@ -1382,14 +1403,14 @@ $tma = '';
|
|||||||
<div style="display: flex; width: 100%">
|
<div style="display: flex; width: 100%">
|
||||||
<fieldset style="width: 50%">
|
<fieldset style="width: 50%">
|
||||||
<legend><b>Категории</b></legend>
|
<legend><b>Категории</b></legend>
|
||||||
<div
|
<div style="display: flex; flex-wrap: wrap; flex-direction: column; justify-content: center;">
|
||||||
style="display: flex; flex-wrap: wrap; flex-direction: column; justify-content: center;">
|
|
||||||
<?php
|
<?php
|
||||||
|
// недописанный огрызок неизвестно чего
|
||||||
$categories = TechniqueCategoryEntity::getInstance()->findAll();
|
$categories = TechniqueCategoryEntity::getInstance()->findAll();
|
||||||
foreach ($categories as $category) {
|
foreach ($categories as $category) {
|
||||||
?>
|
?>
|
||||||
<div style='margin-right: 10px;height: 20px'>
|
<div style='margin-right: 10px;height: 20px'>
|
||||||
<a onclick='show_div("<?= $category->id ?>")' href='#'>
|
<a onclick='show_div("--><?php //= $category->id ?>//")' href='#'>
|
||||||
<?= $category->name ?>
|
<?= $category->name ?>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@ -1560,8 +1581,7 @@ $tma = '';
|
|||||||
}
|
}
|
||||||
$psh = mysql_fetch_array(
|
$psh = mysql_fetch_array(
|
||||||
mysql_query(
|
mysql_query(
|
||||||
'SELECT * FROM `actions` WHERE `uid` = "' . $u->info['id'] . '" AND `vars` = "psh0" AND `time` > ' . (time(
|
'SELECT * FROM `actions` WHERE `uid` = "' . $u->info['id'] . '" AND `vars` = "psh0" AND `time` > ' . (time() - 7200) . ' LIMIT 1'
|
||||||
) - 7200) . ' LIMIT 1'
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
if (isset($psh['id'])) {
|
if (isset($psh['id'])) {
|
||||||
@ -1573,7 +1593,7 @@ $tma = '';
|
|||||||
<?php
|
<?php
|
||||||
/* Бонусы статов */
|
/* Бонусы статов */
|
||||||
$b = [];
|
$b = [];
|
||||||
$st = [];
|
//$st = [];
|
||||||
|
|
||||||
//Бонусы статов
|
//Бонусы статов
|
||||||
//Бонусы статов
|
//Бонусы статов
|
||||||
@ -2253,8 +2273,7 @@ $tma = '';
|
|||||||
}
|
}
|
||||||
|
|
||||||
$sp = mysql_query(
|
$sp = mysql_query(
|
||||||
'SELECT * FROM `actions` WHERE `uid` = "' . $u->info['id'] . '" AND `vars` LIKE "psh_qt_%" AND `time` > ' . (time(
|
'SELECT * FROM `actions` WHERE `uid` = "' . $u->info['id'] . '" AND `vars` LIKE "psh_qt_%" AND `time` > ' . (time() - 86400) . ' '
|
||||||
) - 86400) . ' '
|
|
||||||
);
|
);
|
||||||
while ($pl = mysql_fetch_array($sp)) {
|
while ($pl = mysql_fetch_array($sp)) {
|
||||||
$ic1 = str_replace('psh_qt_', '', $pl['vars']);
|
$ic1 = str_replace('psh_qt_', '', $pl['vars']);
|
||||||
@ -2262,8 +2281,7 @@ $tma = '';
|
|||||||
}
|
}
|
||||||
//Пещеры
|
//Пещеры
|
||||||
$dungeon_timeout = $u->testAction(
|
$dungeon_timeout = $u->testAction(
|
||||||
'`uid` = "' . $u->info['id'] . '" AND `vars` = "psh0" AND `time` > ' . (time(
|
'`uid` = "' . $u->info['id'] . '" AND `vars` = "psh0" AND `time` > ' . (time() - 60 * 60 * 3) . ' LIMIT 1',
|
||||||
) - 60 * 60 * 3) . ' LIMIT 1',
|
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
if ($dungeon_timeout['vars'] == "psh0") {
|
if ($dungeon_timeout['vars'] == "psh0") {
|
||||||
@ -2369,5 +2387,5 @@ $tma = '';
|
|||||||
</tr>
|
</tr>
|
||||||
</TABLE>
|
</TABLE>
|
||||||
|
|
||||||
<!--рейтинг тут-->
|
<!--рейтинг тут-->
|
||||||
</BODY>
|
</BODY>
|
||||||
|
@ -323,14 +323,14 @@ if ($u->room['file'] == 'dungeon') {
|
|||||||
$u->info['s'] = 3(назад)
|
$u->info['s'] = 3(назад)
|
||||||
$u->info['s'] = 4(право)
|
$u->info['s'] = 4(право)
|
||||||
*/
|
*/
|
||||||
stor =<?echo $u->info['s'];?>;
|
stor =<?= $u->info['s'];?>;
|
||||||
bott = 0;
|
bott = 0;
|
||||||
if (stor == 1) {
|
if (stor == 1) {
|
||||||
<?php
|
<?php
|
||||||
$bottem = mysql_fetch_assoc(mysql_query('SELECT `id2` FROM `dungeon_bots` WHERE `dn` = "' . $u->info['dnow'] . '" AND `delete` = "0" AND `x` = "' . ($u->info['x']) . '" AND `y` = "' . ($u->info['y'] + 1) . '" LIMIT 1'));
|
$bottem = mysql_fetch_assoc(mysql_query('SELECT `id2` FROM `dungeon_bots` WHERE `dn` = "' . $u->info['dnow'] . '" AND `delete` = "0" AND `x` = "' . ($u->info['x']) . '" AND `y` = "' . ($u->info['y'] + 1) . '" LIMIT 1'));
|
||||||
if (isset($bottem['id2']))
|
if (isset($bottem['id2']))
|
||||||
{
|
{
|
||||||
?> bott = <?echo $bottem['id2'];?>;<?php
|
?> bott = <?= $bottem['id2'];?>;<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
} else if (stor == 2) {
|
} else if (stor == 2) {
|
||||||
@ -338,7 +338,7 @@ if ($u->room['file'] == 'dungeon') {
|
|||||||
$bottem = mysql_fetch_assoc(mysql_query('SELECT `id2` FROM `dungeon_bots` WHERE `dn` = "' . $u->info['dnow'] . '" AND `delete` = "0" AND `x` = "' . ($u->info['x'] - 1) . '" AND `y` = "' . ($u->info['y']) . '" LIMIT 1'));
|
$bottem = mysql_fetch_assoc(mysql_query('SELECT `id2` FROM `dungeon_bots` WHERE `dn` = "' . $u->info['dnow'] . '" AND `delete` = "0" AND `x` = "' . ($u->info['x'] - 1) . '" AND `y` = "' . ($u->info['y']) . '" LIMIT 1'));
|
||||||
if (isset($bottem['id2']))
|
if (isset($bottem['id2']))
|
||||||
{
|
{
|
||||||
?> bott = <?echo $bottem['id2'];?>;<?php
|
?> bott = <?= $bottem['id2'];?>;<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
} else if (stor == 3) {
|
} else if (stor == 3) {
|
||||||
@ -346,7 +346,7 @@ if ($u->room['file'] == 'dungeon') {
|
|||||||
$bottem = mysql_fetch_assoc(mysql_query('SELECT `id2` FROM `dungeon_bots` WHERE `dn` = "' . $u->info['dnow'] . '" AND `delete` = "0" AND `x` = "' . ($u->info['x']) . '" AND `y` = "' . ($u->info['y'] - 1) . '" LIMIT 1'));
|
$bottem = mysql_fetch_assoc(mysql_query('SELECT `id2` FROM `dungeon_bots` WHERE `dn` = "' . $u->info['dnow'] . '" AND `delete` = "0" AND `x` = "' . ($u->info['x']) . '" AND `y` = "' . ($u->info['y'] - 1) . '" LIMIT 1'));
|
||||||
if (isset($bottem['id2']))
|
if (isset($bottem['id2']))
|
||||||
{
|
{
|
||||||
?> bott = <?echo $bottem['id2'];?>;<?php
|
?> bott = <?= $bottem['id2'];?>;<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
} else if (stor == 4) {
|
} else if (stor == 4) {
|
||||||
@ -354,7 +354,7 @@ if ($u->room['file'] == 'dungeon') {
|
|||||||
$bottem = mysql_fetch_assoc(mysql_query('SELECT `id2` FROM `dungeon_bots` WHERE `dn` = "' . $u->info['dnow'] . '" AND `delete` = "0" AND `x` = "' . ($u->info['x'] + 1) . '" AND `y` = "' . ($u->info['y']) . '" LIMIT 1'));
|
$bottem = mysql_fetch_assoc(mysql_query('SELECT `id2` FROM `dungeon_bots` WHERE `dn` = "' . $u->info['dnow'] . '" AND `delete` = "0" AND `x` = "' . ($u->info['x'] + 1) . '" AND `y` = "' . ($u->info['y']) . '" LIMIT 1'));
|
||||||
if (isset($bottem['id2']))
|
if (isset($bottem['id2']))
|
||||||
{
|
{
|
||||||
?> bott = <?echo $bottem['id2'];?>;<?php
|
?> bott = <?= $bottem['id2'];?>;<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
}
|
}
|
||||||
@ -366,9 +366,9 @@ if ($u->room['file'] == 'dungeon') {
|
|||||||
itemtake = 0;
|
itemtake = 0;
|
||||||
<?php $sp = mysql_fetch_assoc(mysql_query('SELECT `ish`.* FROM `dungeon_items` AS `ish` WHERE `ish`.`dn` = "' . $u->info['dnow'] . '" AND `ish`.`take` = "0" AND `ish`.`delete` = "0" AND ( `ish`.`onlyfor` = "0" OR `ish`.`onlyfor` = "' . $u->info['id'] . '" ) AND `ish`.`x` = "' . $u->info['x'] . '" AND `ish`.`y` = "' . $u->info['y'] . '" LIMIT 1'));
|
<?php $sp = mysql_fetch_assoc(mysql_query('SELECT `ish`.* FROM `dungeon_items` AS `ish` WHERE `ish`.`dn` = "' . $u->info['dnow'] . '" AND `ish`.`take` = "0" AND `ish`.`delete` = "0" AND ( `ish`.`onlyfor` = "0" OR `ish`.`onlyfor` = "' . $u->info['id'] . '" ) AND `ish`.`x` = "' . $u->info['x'] . '" AND `ish`.`y` = "' . $u->info['y'] . '" LIMIT 1'));
|
||||||
if (isset($sp['id']))
|
if (isset($sp['id']))
|
||||||
{?>
|
{ ?>
|
||||||
itemtake = <?echo $sp['id'];?>;
|
itemtake = <?= $sp['id'];?>;
|
||||||
<?}?>
|
<?php }?>
|
||||||
if (itemtake != 0) {
|
if (itemtake != 0) {
|
||||||
takeItem(itemtake);
|
takeItem(itemtake);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user