let elem = document.getElementById('se-pre-con');
elem.parentNode.removeChild(elem);
";
use Core\Config;
use DarksLight2\Battle\Techniques\TechniqueCategoryEntity;
use DarksLight2\Training\TrainingManager;
use Helper\Conversion;
if (!defined('GAME')) {
die();
}
/** @var User $u */
$u->info['marker'] = 'skills';
if (isset($_GET['delcop'])) {
mysql_query(
'DELETE FROM `complects_priem` WHERE `id` = "' . mysql_real_escape_string(
$_GET['delcop']
) . '" AND `uid` = "' . $u->info['id'] . '" LIMIT 1'
);
} elseif (isset($_GET['usecopr'])) {
$cpr = mysql_fetch_array(
mysql_query(
'SELECT * FROM `complects_priem` WHERE `id` = "' . mysql_real_escape_string(
$_GET['usecopr']
) . '" AND `uid` = "' . $u->info['id'] . '" LIMIT 1'
)
);
if (isset($cpr['id'])) {
$u->info['priems'] = $cpr['priems'];
mysql_query(
'UPDATE `stats` SET `priems` = "' . mysql_real_escape_string(
$cpr['priems']
) . '" WHERE `id` = "' . $u->info['id'] . '" LIMIT 1'
);
}
} elseif (isset($_GET['clear_abil']) && $u->info['priems'] != '0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0') {
$u->info['priems'] = '0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0';
mysql_query(
'UPDATE `stats` SET `priems` = "' . $u->info['priems'] . '" WHERE `id` = "' . $u->info['id'] . '" LIMIT 1'
);
}
$priem = new Priems();
if (isset($_GET['use_priem'])) {
$priem->uns((int)$_GET['use_priem']);
} elseif (isset($_GET['unuse_priem'])) {
$priem->reuns((int)$_GET['unuse_priem']);
}
//вывод знаний
$znn = '';
$toms = 0;
$sp = mysql_query(
'SELECT * FROM `actions` WHERE `uid` = "' . $u->info['id'] . '" AND `vars` = "read" AND `time` < ' . time() . ''
);
while ($pl = mysql_fetch_array($sp)) {
$itm = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "' . $pl['vals'] . '" LIMIT 1'));
if (isset($itm['id'])) {
if ($itm['id'] >= 1044 && $itm['id'] <= 1047) {
$toms++;
}
$lvar = '
Дата изучения: ' . date('d.m.Y', $pl['time']) . '';
$znn .= ' ';
} else {
$znn .= ' ';
}
}
if (10 + $toms > $u->info['priemslot']) {
$u->info['priemslot'] = 10 + $toms;
mysql_query(
'UPDATE `stats` SET `priemslot` = "' . $u->info['priemslot'] . '" WHERE `id` = "' . $u->info['id'] . '" LIMIT 1'
);
}
$rzsee = 1;
if (isset($_GET['rz'])) {
$rzsee = in_array((int)$_GET['rz'], [1, 3, 4, 5, 6, 7]) ? (int)$_GET['rz'] : 1;
}
$energy = '';
$str = '';
$inst = '';
$dex = '';
$intel = '';
$mec = '';
$dub = '';
$nj = '';
$top = '';
$pos = '';
$ogon = '';
$voda = '';
$vozduh = '';
$zemla = '';
$svet = '';
$seraya = '';
$tma = '';
?>
microLogin($u->info['id']);
$st = Conversion::dataStringToArray($u->info['stats']);
if (
$_GET['dec_transfer'] ||
$_GET['dec_travma'] ||
$_GET['fast_homeworld'] ||
$_GET['inc_expr'] ||
$_GET['inc_friends'] ||
$_GET['inc_hobby'] ||
$_GET['max_inventory'] ||
$_GET['num_transfer'] ||
$_GET['speed_HP'] ||
$_GET['speed_MP'] ||
$_GET['speed_debuff']
) {
$summs = floor(
$_GET['dec_transfer'] +
$_GET['dec_travma'] +
$_GET['fast_homeworld'] +
$_GET['inc_expr'] +
$_GET['inc_friends'] +
$_GET['inc_hobby'] +
$_GET['max_inventory'] +
$_GET['num_transfer'] +
$_GET['speed_HP'] +
$_GET['speed_MP'] +
$_GET['speed_debuff']
);
if (!is_numeric($summs)) {
$summs = 0;
}
if ($summs > 1) {
$summs = 0;
echo ' Что-то здесь не так... '; } elseif ($summs < 0) { $summs = 0; echo ' При вскрытие сейфа выяснилось, что он был вскрыт до Вас ;) '; } elseif (($st['os1'] + $_GET['dec_transfer'] <= 5 && $_GET['dec_transfer'] > 0) || ($st['os2'] + $_GET['dec_travma'] <= 5 && $_GET['dec_travma'] > 0) || ($st['os3'] + $_GET['fast_homeworld'] <= 5 && $_GET['fast_homeworld'] > 0) || ($st['os4'] + $_GET['inc_expr'] <= 5 && $_GET['inc_expr'] > 0) || ($st['os5'] + $_GET['inc_friends'] <= 5 && $_GET['inc_friends'] > 0) || ($st['os6'] + $_GET['inc_hobby'] <= 5 && $_GET['inc_hobby'] > 0) || ($st['os7'] + $_GET['max_inventory'] <= 5 && $_GET['max_inventory'] > 0) || ($st['os8'] + $_GET['num_transfer'] <= 5 && $_GET['num_transfer'] > 0) || ($st['os9'] + $_GET['speed_HP'] <= 5 && $_GET['speed_HP'] > 0) || ($st['os10'] + $_GET['speed_MP'] <= 5 && $_GET['speed_MP'] > 0) || ($st['os11'] + $_GET['speed_debuff'] <= 5 && $_GET['speed_debuff'] > 0) && $u->info['id'] == $_GET['s4i'] ) { $st['os1'] += (int)$_GET['dec_transfer']; $st['os2'] += (int)$_GET['dec_travma']; $st['os3'] += (int)$_GET['fast_homeworld']; $st['os4'] += (int)$_GET['inc_expr']; $st['os5'] += (int)$_GET['inc_friends']; $st['os6'] += (int)$_GET['inc_hobby']; $st['os7'] += (int)$_GET['max_inventory']; $st['os8'] += (int)$_GET['num_transfer']; $st['os9'] += (int)$_GET['speed_HP']; $st['os10'] += (int)$_GET['speed_MP']; $st['os11'] += (int)$_GET['speed_debuff']; $u->info['stats'] = Conversion::arrayToDataString($st); } if ($u->info['sskills'] - (int)$summs < 0) { echo ' У вас нет свободных особенностей '; } elseif (mysql_query( "UPDATE `stats` SET `stats`= '" . mysql_real_escape_string($u->info['stats']) . "', `sskills` = `sskills` - '" . (int)$summs . "' WHERE `id` = '" . (int)$u->info['id'] . "';" )) { function getstatusumenie(string $name, int $level): string { $str = $level > 1 ? " [$level]" : ''; $name .= $str; return " \"$name\" "; } if ($_GET['dec_transfer'] == 1) { echo getstatusumenie('Изворотливый', $st['os1']); } if ($_GET['dec_travma'] == 1) { echo getstatusumenie('Стойкий', $st['os2']); } if ($_GET['fast_homeworld'] == 1) { echo getstatusumenie('Быстрый', $st['os3']); } if ($_GET['inc_expr'] == 1) { echo getstatusumenie('Сообразительный', $st['os4']); } if ($_GET['inc_friends'] == 1) { echo getstatusumenie('Дружелюбный', $st['os5']); } if ($_GET['inc_hobby'] == 1) { echo getstatusumenie('Общительный', $st['os6']); } if ($_GET['max_inventory'] == 1) { echo getstatusumenie('Запасливый', $st['os7']); } if ($_GET['num_transfer'] == 1) { echo getstatusumenie('Коммуникабельный', $st['os8']); } if ($_GET['speed_HP'] == 1) { echo getstatusumenie('Двужильный', $st['os9']); } if ($_GET['speed_MP'] == 1) { echo getstatusumenie('Здравомыслящий', $st['os10']); } if ($_GET['speed_debuff'] == 1) { echo getstatusumenie('Здоровый сон', $st['os11']); } $u->info['sskills'] -= $summs; } } if ($_GET['upr']) { /*-----Проверяем сумму статов и умений-----*/ if (!isset($_GET['energy']) || $_GET['energy'] < 0) { $_GET['energy'] = 0; } if (!isset($_GET['str']) || $_GET['str'] < 0) { $_GET['str'] = 0; } if (!isset($_GET['dex']) || $_GET['dex'] < 0) { $_GET['dex'] = 0; } if (!isset($_GET['inst']) || $_GET['inst'] < 0) { $_GET['inst'] = 0; } if (!isset($_GET['power']) || $_GET['power'] < 0) { $_GET['power'] = 0; } if (!isset($_GET['intel']) || $_GET['intel'] < 0) { $_GET['intel'] = 0; } if (!isset($_GET['wis']) || $_GET['wis'] < 0) { $_GET['wis'] = 0; } if (!isset($_GET['spirit']) || $_GET['spirit'] < 0) { $_GET['spirit'] = 0; } if (!isset($_GET['will']) || $_GET['will'] < 0) { $_GET['will'] = 0; } if (!isset($_GET['freedom']) || $_GET['freedom'] < 0) { $_GET['freedom'] = 0; } if (!isset($_GET['god']) || $_GET['god'] < 0) { $_GET['god'] = 0; } if (!isset($_GET['m_sword']) || $_GET['m_sword'] < 0) { $_GET['m_sword'] = 0; } if (!isset($_GET['m_tohand']) || $_GET['m_tohand'] < 0) { $_GET['m_tohand'] = 0; } if (!isset($_GET['m_molot']) || $_GET['m_molot'] < 0) { $_GET['m_molot'] = 0; } if (!isset($_GET['m_axe']) || $_GET['m_axe'] < 0) { $_GET['m_axe'] = 0; } if (!isset($_GET['m_staff']) || $_GET['m_staff'] < 0) { $_GET['m_staff'] = 0; } if (!isset($_GET['m_magic1']) || $_GET['m_magic1'] < 0) { $_GET['m_magic1'] = 0; } if (!isset($_GET['m_magic2']) || $_GET['m_magic2'] < 0) { $_GET['m_magic2'] = 0; } if (!isset($_GET['m_magic3']) || $_GET['m_magic3'] < 0) { $_GET['m_magic3'] = 0; } if (!isset($_GET['m_magic4']) || $_GET['m_magic4'] < 0) { $_GET['m_magic4'] = 0; } if (!isset($_GET['m_magic5']) || $_GET['m_magic5'] < 0) { $_GET['m_magic5'] = 0; } if (!isset($_GET['m_magic6']) || $_GET['m_magic6'] < 0) { $_GET['m_magic6'] = 0; } if (!isset($_GET['m_magic7']) || $_GET['m_magic7'] < 0) { $_GET['m_magic7'] = 0; } $summ = floor( $_GET['energy'] + $_GET['str'] + $_GET['dex'] + $_GET['inst'] + $_GET['power'] + $_GET['intel'] + $_GET['wis'] + $_GET['spirit'] + $_GET['will'] + $_GET['freedom'] + $_GET['god'] ); if (!is_numeric($summ)) { $summ = 0; } $summu = floor( $_GET['m_axe'] + $_GET['m_molot'] + $_GET['m_sword'] + $_GET['m_tohand'] + $_GET['m_staff'] + $_GET['m_magic1'] + $_GET['m_magic2'] + $_GET['m_magic3'] + $_GET['m_magic4'] + $_GET['m_magic5'] + $_GET['m_magic6'] + $_GET['m_magic7'] ); if (!is_numeric($summu)) { $summu = 0; } /*-----Проверяем сумму статов и умений-----*/ /*-----Пишем статы и умения----*/ if ( (($_GET['energy'] > 0 || $_GET['str'] > 0 || $_GET['dex'] > 0 || $_GET['inst'] > 0 || $_GET['power'] > 0 || ($_GET['intel'] > 0 && $u->info['level'] > 3) || ($_GET['wis'] > 0 && $u->info['level'] > 6) || ($_GET['spirit'] > 0 && $u->info['level'] > 9) || ($_GET['will'] > 0 && $u->info['level'] > 12) || ($_GET['freedom'] > 0 && $u->info['level'] > 15) || ($_GET['god'] > 0 && $u->info['level'] > 18)) && $summ <= $u->info['ability'] && $u->info['ability'] > 0) || (($st['a1'] + $_GET['m_sword'] <= 20 && $_GET['m_sword'] > 0) || ($st['a2'] + $_GET['m_tohand'] <= 20 && $_GET['m_tohand'] > 0) || ($st['a3'] + $_GET['m_molot'] <= 20 && $_GET['m_molot'] > 0) || ($st['a4'] + $_GET['m_axe'] <= 20 && $_GET['m_axe'] > 0) || ($st['a5'] + $_GET['m_staff'] <= 20 && $_GET['m_staff'] > 0) || ($st['mg1'] + $_GET['m_magic1'] <= 20 && $_GET['m_magic1'] > 0) || ($st['mg2'] + $_GET['m_magic2'] <= 20 && $_GET['m_magic2'] > 0) || ($st['mg3'] + $_GET['m_magic3'] <= 20 && $_GET['m_magic3'] > 0) || ($st['mg4'] + $_GET['m_magic4'] <= 20 && $_GET['m_magic4'] > 0) || ($st['mg5'] + $_GET['m_magic5'] <= 20 && $_GET['m_magic5'] > 0) || ($st['mg6'] + $_GET['m_magic6'] <= 20 && $_GET['m_magic6'] > 0) || ($st['mg7'] + $_GET['m_magic7'] <= 20 && $_GET['m_magic7'] > 0) && $summu <= $u->info['skills'] && $u->info['skills'] > 0) && $u->info['id'] == $_GET['s4i'] ) { $st['s1'] += (int)$_GET['str']; $st['s2'] += (int)$_GET['dex']; $st['s3'] += (int)$_GET['inst']; $st['s4'] += (int)$_GET['power']; $st['a1'] += (int)$_GET['m_sword']; $st['a2'] += (int)$_GET['m_tohand']; $st['a3'] += (int)$_GET['m_molot']; $st['a4'] += (int)$_GET['m_axe']; $st['a5'] += (int)$_GET['m_staff']; $st['mg1'] += (int)$_GET['m_magic1']; $st['mg2'] += (int)$_GET['m_magic2']; $st['mg3'] += (int)$_GET['m_magic3']; $st['mg4'] += (int)$_GET['m_magic4']; $st['mg5'] += (int)$_GET['m_magic5']; $st['mg6'] += (int)$_GET['m_magic6']; $st['mg7'] += (int)$_GET['m_magic7']; if ($u->info['level'] > 3) { $st['s5'] += (int)$_GET['intel']; } if ($u->info['level'] > 6) { $st['s6'] += (int)$_GET['wis']; } if ($u->info['level'] > 9) { $st['s7'] += (int)$_GET['spirit']; } if ($u->info['level'] > 12) { $st['s8'] += (int)$_GET['will']; } if ($u->info['level'] > 15) { $st['s9'] += (int)$_GET['freedom']; } if ($u->info['level'] > 18) { $st['s10'] += (int)$_GET['god']; } $u->info['stats'] = Conversion::arrayToDataString($st); 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 ) { echo ' 1) Что-то здесь не так... '; } elseif ($u->info['ability'] - (int)$summ < 0 || $u->info['skills'] - (int)$summu < 0) { echo ' Что-то здесь не так... (Способности: ' . ($u->info['ability'] - (int)$summ) . ', Умения: ' . ($u->info['skills'] - (int)$summu) . ') '; } elseif (mysql_query( "UPDATE `stats` SET `stats`= '" . mysql_real_escape_string($u->info['stats']) . "', `ability` = `ability` - '" . (int)$summ . "', `skills` = `skills` - '" . (int)$summu . "' WHERE `id` = '" . (int)$u->info['id'] . "';" )) { if ((int)$u->info['ability'] === 0 && (int)$u->info['skills'] === 0) { TrainingManager::getInstance() ->addPoint( 'my_user_third_quest', function (TrainingManager $manager) { $manager->store(); } ); } function getSuccessStatusStat(string $name): string { return " Увеличение способности \"$name\" произведено удачно. "; } function getSuccessStatusParam(string $name): string { return " Увеличение умения \"Мастерство владения $name\" произведено удачно. "; } if ($_GET['str'] > 0) { echo getSuccessStatusStat('Сила'); } if ($_GET['dex'] > 0) { echo getSuccessStatusStat('Ловкость'); } if ($_GET['inst'] > 0) { echo getSuccessStatusStat('Интуиция'); } if ($_GET['power'] > 0) { echo getSuccessStatusStat('Выносливость'); } if ($_GET['intel'] > 0) { echo getSuccessStatusStat('Интеллект'); } if ($_GET['wis'] > 0) { echo getSuccessStatusStat('Мудрость'); } if ($_GET['spirit'] > 0) { echo getSuccessStatusStat('Духовность'); } if ($_GET['will'] > 0) { echo getSuccessStatusStat('Воля'); } if ($_GET['freedom'] > 0) { echo getSuccessStatusStat('Свобода духа'); } if ($_GET['god'] > 0) { echo getSuccessStatusStat('Божественность'); } if ($_GET['m_sword'] > 0) { echo getSuccessStatusParam('ножами, кастетами'); } if ($_GET['m_axe'] > 0) { echo getSuccessStatusParam('мечами'); } if ($_GET['m_molot'] > 0) { echo getSuccessStatusParam('дубинами, булавами'); } if ($_GET['m_tohand'] > 0) { echo getSuccessStatusParam('топорами, секирами'); } if ($_GET['m_staff'] > 0) { echo getSuccessStatusParam('магическими посохами'); } if ($_GET['m_magic1'] > 0) { echo getSuccessStatusParam('стихией Огня'); } if ($_GET['m_magic2'] > 0) { echo getSuccessStatusParam('стихией Воздуха'); } if ($_GET['m_magic3'] > 0) { echo getSuccessStatusParam('стихией Воды'); } if ($_GET['m_magic4'] > 0) { echo getSuccessStatusParam('стихией Земли'); } if ($_GET['m_magic5'] > 0) { echo getSuccessStatusParam('магией Света'); } if ($_GET['m_magic6'] > 0) { echo getSuccessStatusParam('магией Тьмы'); } if ($_GET['m_magic7'] > 0) { echo getSuccessStatusParam('серой магией'); } /*--для обновления--*/ $u->stats['s1'] += (int)$_GET['str']; $u->stats['s2'] += (int)$_GET['dex']; $u->stats['s3'] += (int)$_GET['inst']; $u->stats['s4'] += (int)$_GET['power']; $u->stats['a1'] += (int)$_GET['m_sword']; $u->stats['a2'] += (int)$_GET['m_tohand']; $u->stats['a3'] += (int)$_GET['m_molot']; $u->stats['a4'] += (int)$_GET['m_axe']; $u->stats['a5'] += (int)$_GET['m_staff']; $u->stats['mg1'] += (int)$_GET['m_magic1']; $u->stats['mg2'] += (int)$_GET['m_magic2']; $u->stats['mg3'] += (int)$_GET['m_magic3']; $u->stats['mg4'] += (int)$_GET['m_magic4']; $u->stats['mg5'] += (int)$_GET['m_magic5']; $u->stats['mg6'] += (int)$_GET['m_magic6']; $u->stats['mg7'] += (int)$_GET['m_magic7']; if ($u->info['level'] > 3) { $u->stats['s5'] += (int)$_GET['intel']; } if ($u->info['level'] > 6) { $u->stats['s6'] += (int)$_GET['wis']; } if ($u->info['level'] > 9) { $u->stats['s7'] += (int)$_GET['spirit']; } if ($u->info['level'] > 12) { $u->stats['s8'] += (int)$_GET['will']; } if ($u->info['level'] > 15) { $u->stats['s9'] += (int)$_GET['freedom']; } if ($u->info['level'] > 18) { $u->stats['s10'] += (int)$_GET['god']; } $u->info['ability'] -= $summ; $u->info['skills'] -= $summu; /*--для обновления--*/ } } } /*-----Пишем статы и умения-----*/ /////Прочие разные проверки // https://www.php.net/manual/ru/migration74.new-features.php#migration74.new-features.core.null-coalescing-assignment-operator $st['s1'] ??= 0; $st['s2'] ??= 0; $st['s3'] ??= 0; $st['s4'] ??= 0; $st['s5'] ??= 0; $st['s6'] ??= 0; $st['s7'] ??= 0; $st['s8'] ??= 0; $st['s9'] ??= 0; $st['s10'] ??= 0; $st['a1'] ??= 0; $st['a2'] ??= 0; $st['a3'] ??= 0; $st['a4'] ??= 0; $st['a5'] ??= 0; $st['mg1'] ??= 0; $st['mg2'] ??= 0; $st['mg3'] ??= 0; $st['mg4'] ??= 0; $st['mg5'] ??= 0; $st['mg6'] ??= 0; $st['mg7'] ??= 0; $u->stats['s1'] ??= 0; $u->stats['s2'] ??= 0; $u->stats['s3'] ??= 0; $u->stats['s4'] ??= 0; $u->stats['s5'] ??= 0; $u->stats['s6'] ??= 0; $u->stats['s7'] ??= 0; $u->stats['s8'] ??= 0; $u->stats['s9'] ??= 0; $u->stats['s10'] ??= 0; $u->stats['a1'] ??= 0; $u->stats['a2'] ??= 0; $u->stats['a3'] ??= 0; $u->stats['a4'] ??= 0; $u->stats['a5'] ??= 0; $u->stats['mg1'] ??= 0; $u->stats['mg2'] ??= 0; $u->stats['mg3'] ??= 0; $u->stats['mg4'] ??= 0; $u->stats['mg5'] ??= 0; $u->stats['mg6'] ??= 0; $u->stats['mg7'] ??= 0; /////////////////////////// /////Статы $sil = $u->stats['s1'] - $st['s1']; if ($sil > 0) { $str = " (" . $st['s1'] . "+" . $sil . ")"; } $lov = $u->stats['s2'] - $st['s2']; if ($lov > 0) { $dex = " (" . $st['s2'] . "+" . $lov . ")"; } $int = $u->stats['s3'] - $st['s3']; if ($int > 0) { $inst = " (" . $st['s3'] . "+" . $int . ")"; } $intell = $u->stats['s5'] - $st['s5']; if ($intell > 0) { $intel = " (" . $st['s5'] . "+" . $intell . ")"; } $noj = $u->stats['a1'] - $st['a1']; if ($noj > 0) { $nj = " (" . $st['a1'] . "+" . $noj . ")"; } $topor = $u->stats['a2'] - $st['a2']; if ($topor > 0) { $top = " (" . $st['a2'] . "+" . $topor . ")"; } $dubina = $u->stats['a3'] - $st['a3']; if ($dubina > 0) { $dub = " (" . $st['a3'] . "+" . $dubina . ")"; } $mech = $u->stats['a4'] - $st['a4']; if ($mech > 0) { $mec = " (" . $st['a4'] . "+" . $mech . ")"; } $posoh = $u->stats['a5'] - $st['a5']; if ($posoh > 0) { $pos = " (" . $st['a5'] . "+" . $posoh . ")"; } /////Магии $fire = $u->stats['mg1'] - $st['mg1']; if ($fire > 0) { $ogon = " (" . $st['mg1'] . "+" . $fire . ")"; } $water = $u->stats['mg2'] - $st['mg2']; if ($water > 0) { $voda = " (" . $st['mg2'] . "+" . $water . ")"; } $air = $u->stats['mg3'] - $st['mg3']; if ($air > 0) { $vozduh = " (" . $st['mg3'] . "+" . $air . ")"; } $earth = $u->stats['mg4'] - $st['mg4']; if ($earth > 0) { $zemla = " (" . $st['mg4'] . "+" . $earth . ")"; } $light = $u->stats['mg5'] - $st['mg5']; if ($light > 0) { $svet = " (" . $st['mg5'] . "+" . $light . ")"; } $gray = $u->stats['mg6'] - $st['mg6']; if ($gray > 0) { $seraya = " (" . $st['mg6'] . "+" . $gray . ")"; } $dark = $u->stats['mg7'] - $st['mg7']; if ($dark > 0) { $tma = " (" . $st['mg7'] . "+" . $dark . ")"; } /////Особенности $os['os1'] = $st['os1']; $os['os3'] = $st['os3']; $os['os4'] = $st['os4']; $os['os5'] = $st['os5']; $os['os6'] = $st['os6']; $os['os7'] = $st['os7']; $os['os9'] = $st['os9']; $os['os10'] = $st['os10']; $os["os1"] = [ "name" => "Изворотливый", "opt" => "dec_transfer", "descr" => "Снижение стоимости передач на ", "nlevel" => 4, "bonus1" => "0,1 кр.", "bonus2" => "0,2 кр.", "bonus3" => "0,3 кр.", "bonus4" => "0,4 кр.", "bonus5" => "0,5 кр.", ]; $os["os3"] = ["name" => "Быстрый", "opt" => "fast_homeworld", "descr" => "Кнопка \"Возврат\" появляется раньше на ", "nlevel" => 4, "bonus1" => "5 минут", "bonus2" => "10 минут", "bonus3" => "15 минут", "bonus4" => "20 минут", "bonus5" => "25 минут"]; $os["os4"] = ["name" => "Сообразительный", "opt" => "inc_expr", "descr" => "Получаемый опыт больше на ", "nlevel" => 4, "bonus1" => "1 %", "bonus2" => "2 %", "bonus3" => "3 %", "bonus4" => "4 %", "bonus5" => "5 %"]; $os["os5"] = ["name" => "Дружелюбный", "opt" => "inc_friends", "descr" => "Cписок друзей больше на ", "bonus1" => 5, "bonus2" => 10, "bonus3" => 15, "bonus4" => 20, "bonus5" => 25]; $os["os6"] = ["name" => "Общительный", "opt" => "inc_hobby", "descr" => "Увеличение максимального размера раздела \"Увлечения / хобби\" на ", "bonus1" => "200 символов", "bonus2" => "400 символов", "bonus3" => "600 символов", "bonus4" => "800 символов", "bonus5" => "1000 символов"]; $os["os7"] = ["name" => "Запасливый", "opt" => "max_inventory", "descr" => "Больше места в рюкзаке на ", "nlevel" => 4, "bonus1" => "10 единиц", "bonus2" => "20 единиц", "bonus3" => "30 единиц", "bonus4" => "40 единиц", "bonus5" => "50 единиц"]; $os["os9"] = ["name" => "Двужильный", "opt" => "speed_HP", "descr" => "Здоровье восстанавливается быстрее на ", "npower" => 10, "bonus1" => "+5%", "bonus2" => "+10%", "bonus3" => "+15%", "bonus4" => "+20%", "bonus5" => "+30%"]; $os["os10"] = ["name" => "Здравомыслящий", "opt" => "speed_MP", "descr" => "Мана восстанавливается быстрее на ", "nwis" => 20, "bonus1" => "+5%", "bonus2" => "+10%", "bonus3" => "+15%", "bonus4" => "+20%", "bonus5" => "+25%"]; ?> |
&rnd== $code ?>"'> |
info['ability']) {
echo "Возможных увеличений: {$u->info['ability']}
"; } if ($u->info['skills']) { echo "Свободных умений: {$u->info['skills']} "; } if ($u->info['sskills']) { echo "Свободных особенностей: {$u->info['sskills']} "; } ?> Зависимость максимального профильного урона оружием у основных воинских классов:
|
|