2022-06-06 21:30:34 +00:00
< ? php
2023-01-12 01:18:17 +00:00
use Core\Config ;
2022-12-30 19:03:37 +00:00
use Core\Database ;
use Core\Db ;
if ( ! defined ( 'GAME_VERSION' )) {
require_once '_incl_data/autoload.php' ;
}
2023-01-12 01:18:17 +00:00
Config :: init ();
2022-12-30 19:03:37 +00:00
Database :: init ();
2022-08-11 10:38:38 +00:00
if ( isset ( $_COOKIE [ 'login' ])) {
2022-12-30 19:03:37 +00:00
$u = Db :: getRow ( 'select id, login, banned, admin from users where login = ?' , [ $_COOKIE [ 'login' ]]);
$admin = ! empty ( $u [ 'admin' ]) ? 1 : 0 ;
2022-08-11 10:38:38 +00:00
} else {
$admin = 0 ;
2022-06-06 21:30:34 +00:00
}
2022-08-11 10:38:38 +00:00
if ( ! isset ( $_GET [ 'id' ])) {
$urla = explode ( '?' , $_SERVER [ " REQUEST_URI " ]);
$url = explode ( '/' , $urla [ 0 ]);
$_GET [ 'id' ] = round (( int ) $url [ 2 ]);
2022-06-06 21:30:34 +00:00
}
2023-01-10 16:29:32 +00:00
/* разделы */
2022-08-11 10:38:38 +00:00
$rz = [
2023-01-10 16:29:32 +00:00
[ 'alls' , 'Прочее' ],
[ 'crutch' , 'Костыли' ], // 1
[ 'potion' , 'Эликсиры' ], // 2
[ 'scrollattack' , 'Магические свитки' ], // 3
[ 'armor' , 'Броня' ], // 4
[ 'venok' , 'Венки' ], // 5
[ 'naruchi' , 'Наручи' ], // 6
[ 'shoes' , 'Обувь' ], // 7
[ 'glove' , 'Перчатки' ], // 8
[ 'Cloak' , 'Плащи' ], // 9
[ 'leg' , 'Поножи' ], // 10
[ 'belt' , 'Пояса' ], // 11
[ 'shirt' , 'Рубахи' ], // 12
[ 'helmet' , 'Шлемы' ], // 13
[ 'el_sm' , 'Елки' ], // 14
[ 'flail' , 'Дубины и Булавы' ], // 15
[ 'knuckleduster' , 'Ножи и Кастеты' ], // 16
[ 'sword' , 'Мечи' ], // 17
[ 'staff' , 'Посохи' ], // 18
[ 'pole-axe' , 'Топоры и Секиры' ], // 19
[ 'flower' , 'Цветы и Букеты' ], // 20
[ 'component' , 'Компоненты' ], // 21
[ 'magicitem' , 'Магические предметы' ], // 22
[ 'gift' , 'Подарки' ], // 23
[ 'shield' , 'Щиты' ], // 24
[ 'ring' , 'Кольца' ], // 25
[ 'necklace' , 'Ожерелья' ], // 26
[ 'earring' , 'Серьги' ], // 27
[ 'other' , 'Разное' ], // 28
2022-08-11 10:38:38 +00:00
];
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
// Отображать 3Д изображение? True - отображать в любом случае, False - только если существует.
2022-08-11 10:38:38 +00:00
$img3dShow = false ;
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
/* Типы предметов по разделам */
2022-08-11 10:38:38 +00:00
$rt = [
26 => 1 ,
30 => 2 ,
29 => 3 ,
5 => 4 ,
6 => 4 ,
2 => 5 ,
3 => 6 ,
15 => 7 ,
12 => 8 ,
7 => 9 ,
14 => 10 ,
8 => 11 ,
4 => 12 ,
1 => 13 ,
20 => 15 ,
18 => 16 ,
21 => 17 ,
22 => 18 ,
19 => 19 ,
28 => 20 ,
38 => 23 ,
39 => 23 ,
37 => 23 ,
13 => 24 ,
11 => 25 ,
10 => 26 ,
9 => 27 ,
62 => 22 ,
2023-01-10 16:29:32 +00:00
67 => 28 , // 67 разное
32 => 22 , // 32 ингридиенты, маг.предметы
34 => 28 , // 34 ключи, разное
2022-08-11 10:38:38 +00:00
];
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
/* Предмет */
2022-12-30 19:03:37 +00:00
$itm = Db :: getRow ( 'select * from items_main where id = ?' , [ $_GET [ 'id' ]]);
2023-01-12 01:18:17 +00:00
if ( empty ( $itm )) {
$itm = [];
}
2022-06-06 21:30:34 +00:00
2022-08-11 10:38:38 +00:00
function timeOut ( $ttm )
{
$out = '' ;
$time_still = $ttm ;
$tmp = floor ( $time_still / 2592000 );
$id = 0 ;
if ( $tmp > 0 ) {
$id ++ ;
if ( $id < 3 ) {
2023-01-10 16:29:32 +00:00
$out .= $tmp . " мес. " ;
2022-08-11 10:38:38 +00:00
}
$time_still = $time_still - $tmp * 2592000 ;
}
$tmp = floor ( $time_still / 86400 );
if ( $tmp > 0 ) {
$id ++ ;
if ( $id < 3 ) {
2023-01-10 16:29:32 +00:00
$out .= $tmp . " дн. " ;
2022-08-11 10:38:38 +00:00
}
$time_still = $time_still - $tmp * 86400 ;
}
$tmp = floor ( $time_still / 3600 );
if ( $tmp > 0 ) {
$id ++ ;
if ( $id < 3 ) {
2023-01-10 16:29:32 +00:00
$out .= $tmp . " ч. " ;
2022-08-11 10:38:38 +00:00
}
$time_still = $time_still - $tmp * 3600 ;
}
$tmp = floor ( $time_still / 60 );
if ( $tmp > 0 ) {
$id ++ ;
if ( $id < 3 ) {
2023-01-10 16:29:32 +00:00
$out .= $tmp . " мин. " ;
2022-08-11 10:38:38 +00:00
}
}
if ( $out == '' ) {
if ( $time_still < 0 ) {
$time_still = 0 ;
}
2023-01-10 16:29:32 +00:00
$out = $time_still . ' сек.' ;
2022-08-11 10:38:38 +00:00
}
return $out ;
}
function lookStats ( $m )
{
2022-12-30 19:03:37 +00:00
if ( empty ( $m )) {
return [];
}
2022-08-11 10:38:38 +00:00
$ist = [];
$di = explode ( '|' , $m );
$i = 0 ;
$de = false ;
while ( $i < count ( $di )) {
$de = explode ( '=' , $di [ $i ]);
if ( isset ( $de [ 0 ], $de [ 1 ])) {
if ( ! isset ( $ist [ $de [ 0 ]])) {
$ist [ $de [ 0 ]] = 0 ;
}
$ist [ $de [ 0 ]] = $de [ 1 ];
}
$i ++ ;
}
return $ist ;
2022-06-06 21:30:34 +00:00
}
2023-01-12 01:18:17 +00:00
if ( empty ( $itm [ 'id' ]) && ! empty ( $_GET [ 'id' ])) {
$data = Db :: getValue ( 'select data from items_main_data where items_id = ?' , [ $_GET [ 'id' ]]);
2022-08-11 10:38:38 +00:00
} else {
2023-01-12 01:18:17 +00:00
$data = Db :: getValue ( 'select data from items_main_data where items_id = ?' , [ $itm [ 'id' ]]);
2022-06-06 21:30:34 +00:00
}
2023-01-12 01:18:17 +00:00
$itd = ! empty ( $data ) ? lookStats ( $data ) : [];
2022-06-06 21:30:34 +00:00
2022-08-11 10:38:38 +00:00
$items = [
2022-12-19 18:26:14 +00:00
'tr' => [ 'lvl' , 's1' , 's2' , 's3' , 's4' , 's5' , 's6' , 's7' , 's8' , 's9' , 's10' , 'a1' , 'a2' , 'a3' , 'a4' , 'a5' , 'a6' , 'a7' , 'mg1' , 'mg2' , 'mg3' , 'mg4' , 'mg5' , 'mg6' , 'mg7' , 'mall' , 'm2all' , 'aall' ],
'add' => [ 'min_heal_proc' , 'no_yv1' , 'no_bl1' , 'no_pr1' , 'no_yv2' , 'no_bl2' , 'no_pr2' , 'silver' , 'pza' , 'pza1' , 'pza2' , 'pza3' , 'pza4' , 'pzm' , 'pzm1' , 'pzm2' , 'pzm3' , 'pzm4' , 'pzm5' , 'pzm6' , 'pzm7' , 'yron_min' , 'yron_max' , 'notravma' , 'min_zonb' , 'min_zona' , 'nokrit' , 'pog' , 'min_use_mp' , 'za1proc' , 'za2proc' , 'za3proc' , 'za4proc' , 'zaproc' , 'zmproc' , 'zm1proc' , 'zm2proc' , 'zm3proc' , 'zm4proc' , 'shopSale' , 's1' , 's2' , 's3' , 's4' , 's5' , 's6' , 's7' , 's8' , 's9' , 's10' , 'aall' , 'a1' , 'a2' , 'a3' , 'a4' , 'a5' , 'a6' , 'a7' , 'm2all' , 'mall' , 'mg1' , 'mg2' , 'mg3' , 'mg4' , 'mg5' , 'mg6' , 'mg7' , 'hpAll' , 'mpAll' , 'm1' , 'm2' , 'm3' , 'm4' , 'm5' , 'm6' , 'm7' , 'm8' , 'm9' , 'm14' , 'm15' , 'm16' , 'm17' , 'm18' , 'm19' , 'm20' , 'm21' , 'pa1' , 'pa2' , 'pa3' , 'pa4' , 'pm1' , 'pm2' , 'pm3' , 'pm4' , 'pm5' , 'pm6' , 'pm7' , 'za' , 'za1' , 'za2' , 'za3' , 'za4' , 'zma' , 'zm' , 'zm1' , 'zm2' , 'zm3' , 'zm4' , 'zm5' , 'zm6' , 'zm7' , 'mib1' , 'mab1' , 'mib2' , 'mab2' , 'mib3' , 'mab3' , 'mib4' , 'mab4' , 'speedhp' , 'speedmp' , 'm10' , 'm11' , 'zona' , 'zonb' , 'maxves' , 'minAtack' , 'maxAtack' , 'speed_dungeon' , 'antm3' ],
'sv' => [ 'pza' , 'pza1' , 'pza2' , 'pza3' , 'pza4' , 'notravma' , 'min_zonb' , 'min_zona' , 'nokrit' , 'pog' , 'min_use_mp' , 'za1proc' , 'za2proc' , 'za3proc' , 'za4proc' , 'zaproc' , 'zmproc' , 'zm1proc' , 'zm2proc' , 'zm3proc' , 'zm4proc' , 'shopSale' , 's1' , 's2' , 's3' , 's4' , 's5' , 's6' , 's7' , 's8' , 's9' , 's10' , 'aall' , 'a1' , 'a2' , 'a3' , 'a4' , 'a5' , 'a6' , 'a7' , 'm2all' , 'mall' , 'mg1' , 'mg2' , 'mg3' , 'mg4' , 'mg5' , 'mg6' , 'mg7' , 'hpAll' , 'mpAll' , 'm1' , 'm2' , 'm3' , 'm4' , 'm5' , 'm6' , 'm7' , 'm8' , 'm9' , 'm14' , 'm15' , 'm16' , 'm17' , 'm18' , 'm19' , 'm20' , 'm21' , 'pa1' , 'pa2' , 'pa3' , 'pa4' , 'pm1' , 'pm2' , 'pm3' , 'pm4' , 'pm5' , 'pm6' , 'pm7' , 'min_use_mp' , 'za' , 'za1' , 'za2' , 'za3' , 'za4' , 'zma' , 'zm' , 'zm1' , 'zm2' , 'zm3' , 'zm4' , 'zm5' , 'zm6' , 'zm7' , 'mib1' , 'mab1' , 'mib2' , 'mab2' , 'mib3' , 'mab3' , 'mib4' , 'mab4' , 'speedhp' , 'speedmp' , 'm10' , 'm11' , 'zona' , 'zonb' , 'maxves' , 'minAtack' , 'maxAtack' , 'free_stats' , 'tya1' , 'tya2' , 'tya3' , 'tya4' , 'tym1' , 'tym2' , 'tym3' , 'tym4' , 'tym5' , 'tym6' , 'tym7' ],
2022-08-11 10:38:38 +00:00
];
2023-01-10 16:29:32 +00:00
$is = [ 'oza' => 'Защита от урона' , 'oza1' => 'Защита от колющего урона' , 'oza2' => 'Защита от рубящего урона' , 'oza3' => 'Защита от дробящего урона' , 'oza4' => 'Защита от режущего урона' , 'hpAll' => 'Уровень жизни (HP)' , 'mpAll' => 'Уровень маны' , 'sex' => 'Пол' , 'lvl' => 'Уровень' , 's1' => 'Сила' , 's2' => 'Ловкость' , 's3' => 'Интуиция' , 's4' => 'Выносливость' , 's5' => 'Интелект' , 's6' => 'Мудрость' , 's7' => 'Духовность' , 's8' => 'Воля' , 's9' => 'Свобода духа' , 's10' => 'Божественность' , 'm1' => 'Мф. критического удара (%)' , 'm2' => 'Мф. против критического удара (%)' , 'm3' => 'Мф. мощности критического удара (%)' , 'm4' => 'Мф. увертывания (%)' , 'm5' => 'Мф. против увертывания (%)' , 'm6' => 'Мф. контрудара (%)' , 'm7' => 'Мф. парирования (%)' , 'm8' => 'Мф. блока щитом (%)' , 'm9' => 'Мф. пробоя брони (%)' , 'm14' => 'Мф. а б с . критического удара (%)' , 'm15' => 'Мф. а б с . увертывания (%)' , 'm16' => 'Мф. а б с . парирования (%)' , 'm17' => 'Мф. а б с . контрудара (%)' , 'm18' => 'Мф. а б с . блока щитом (%)' , 'm19' => 'Мф. а б с . магический промах (%)' , 'm20' => 'Мф. удача (%)' , 'm21' => 'Мф. а б с . попадания (%)' , 'a1' => 'Мастерство владения ножами, кинжалами' , 'a2' => 'Мастерство владения топорами, секирами' , 'a3' => 'Мастерство владения дубинами, молотами' , 'a4' => 'Мастерство владения мечами' , 'a5' => 'Мастерство владения магическими посохами' , 'a6' => 'Мастерство владения луками' , 'a7' => 'Мастерство владения арбалетами' , 'aall' => 'Мастерство владения оружием' , 'mall' => 'Мастерство владения магией стихий' , 'm2all' => 'Мастерство владения магией' , 'mg1' => 'Мастерство владения магией огня' , 'mg2' => 'Мастерство владения магией воздуха' , 'mg3' => 'Мастерство владения магией воды' , 'mg4' => 'Мастерство владения магией земли' , 'mg5' => 'Мастерство владения магией Света' , 'mg6' => 'Мастерство владения магией Тьмы' , 'mg7' => 'Мастерство владения серой магией' , 'tj' => 'Тяжелая броня' , 'lh' => 'Легкая броня' , 'minAtack' => 'Минимальный урон' , 'maxAtack' => 'Максимальный урон' , 'm10' => 'Мф. мощности урона' , 'm11' => 'Мф. мощности магии стихий' , 'm11a' => 'Мф. мощности магии' , 'pa1' => 'Мф. мощности колющего урона' , 'pa2' => 'Мф. мощности рубящего урона' , 'pa3' => 'Мф. мощности дробящий урона' , 'pa4' => 'Мф. мощности режущий урона' , 'pm1' => 'Мф. мощности магии огня' , 'pm2' => 'Мф. мощности магии воздуха' , 'pm3' => 'Мф. мощности магии воды' , 'pm4' => 'Мф. мощности магии земли' , 'pm5' => 'Мф. мощности магии Света' , 'pm6' => 'Мф. мощности магии Тьмы' , 'pm7' => 'Мф. мощности серой магии' , 'za' => 'Защита от урона' , 'zm' => 'Защита от магии стихий' , 'zma' => 'Защита от магии' , 'za1' => 'Защита от колющего урона' , 'za2' => 'Защита от рубящего урона' , 'za3' =>
2022-08-11 10:38:38 +00:00
2022-12-30 19:03:37 +00:00
if ( empty ( $rz [ $rt [ $itm [ 'type' ]]][ 0 ]) || ! file_exists (
'img.new-combats.com/i/encicl/pict_' . $rz [ $rt [ $itm [ 'type' ]]][ 0 ] . '.jpg'
)) {
2022-08-11 10:38:38 +00:00
//subject
$rz [ $rt [ $itm [ 'type' ]]][ 0 ] = 'subject' ;
2022-06-06 21:30:34 +00:00
}
2023-01-10 16:29:32 +00:00
$rz [ $rt [ $itm [ 'type' ]]][ 1 ] ? ? = 'Прочие предметы' ;
2022-08-11 10:38:38 +00:00
2022-06-06 21:30:34 +00:00
?>
<! DOCTYPE HTML >
2022-12-30 19:03:37 +00:00
< html lang = " ru " >
2022-06-06 21:30:34 +00:00
< head >
2023-01-10 17:26:14 +00:00
2023-01-10 16:29:32 +00:00
< title > Бойцовский клуб |
Библиотека < ? php if ( isset ( $itm [ 'id' ])) { ?> | <?= $rz[$rt[$itm['type']]][1] ?> | <?= $itm['name'] ?><?php } ?></title>
2022-08-11 10:38:38 +00:00
< link href = " /main1.css " rel = " stylesheet " type = " text/css " >
2022-12-30 19:03:37 +00:00
< style >
2022-08-11 10:38:38 +00:00
. style6 {
color : #DFD3A3;
font - size : 9 px ;
}
. inup3 {
border : 1 px dashed #D3CAA0;
font - size : 12 px ;
}
. inup3 {
border : 1 px dashed #D3CAA0;
font - size : 12 px ;
}
A : link {
FONT - WEIGHT : bold ;
COLOR : #5B3E33;
TEXT - DECORATION : none
}
A : visited {
FONT - WEIGHT : bold ;
COLOR : #633525;
TEXT - DECORATION : none
}
A : active {
FONT - WEIGHT : bold ;
COLOR : #77684d;
TEXT - DECORATION : none
}
A : hover {
COLOR : #000000;
TEXT - DECORATION : underline
}
img {
border : none ;
}
</ style >
2022-06-06 21:30:34 +00:00
</ head >
< body bgcolor = " #000000 " topmargin = 0 leftmargin = 0 marginheight = 0 marginwidth = 0 >
< table width = " 100% " border = " 0 " cellpadding = " 0 " cellspacing = " 0 " >
2022-08-11 10:38:38 +00:00
< tr valign = top >
< td >
< table width = " 100% " height = " 135 " border = " 0 " cellpadding = " 0 " cellspacing = " 0 " >
< tr >
2023-03-31 18:30:14 +00:00
< td background = " /forum_script/img/line_capitalcity.jpg " scope = " col "
align = center >< img style = " display:block " src = " /inx/newlogo2.jpg "
2022-08-11 10:38:38 +00:00
width = " 924 " height = " 135 " border = 0 ></ td >
</ tr >
</ table >
</ td >
</ tr >
2022-06-06 21:30:34 +00:00
</ table >
2023-03-31 16:54:33 +00:00
< ? php if ( isset ( $itm [ 'id' ])) { ?>
2022-08-11 10:38:38 +00:00
< table width = " 100% " border = " 0 " cellpadding = " 0 " cellspacing = " 0 " bgcolor = '#3D3D3B' >
< tr valign = top >
< td ></ td >
< td align = center >
< SCRIPT >
wsize = document . body . clientWidth ;
if ( wsize >= 800 ) wsize = Math . floor ( wsize * 0.8 );
if ( wsize < 700 ) wsize = 700 ;
document . write ( '<table cellspacing=0 cellpadding=0 bgcolor=#f2e5b1 border=0 width=' + ( wsize - 20 ) + '>' );
</ SCRIPT >
< tr valign = top >
2023-03-31 18:30:14 +00:00
< td width = " 29 " rowspan = 2 background = " /forum_script/img/leftground.jpg " >
< img src = " //img.new-combats.tech/i/encicl/pictlr_<?= $rz[$rt[$itm['type'] ]][0] ?>.jpg " width = " 29 "
2022-12-30 19:03:37 +00:00
height = " 256 " >
</ td >
< td width = " 118 " align = " left " >
2023-03-31 18:30:14 +00:00
< img id = " imleft " src = " //img.new-combats.tech/i/encicl/pictl_<?= $rz[$rt[$itm['type'] ]][0] ?>.jpg "
2022-12-30 19:03:37 +00:00
width = " 118 " height = " 257 " >< BR >
2022-08-11 10:38:38 +00:00
</ td >
< td rowspan = 2 align = " left " >
2023-03-31 18:30:14 +00:00
< p >< b > » </ b > < a href = " /item/ " > Предметы </ a > / < ? = $rz [ $rt [ $itm [ 'type' ]]][ 1 ] ?> /
2022-08-11 10:38:38 +00:00
< b >< i >< ? = $itm [ 'name' ] ?> </i></b>
< h2 >< ? = $itm [ 'name' ] ?> </h2>
2023-03-31 18:30:14 +00:00
< img src = " //img.new-combats.tech/i/encicl/ln3.jpg " width = " 400 " height = " 1 " >
2022-08-11 10:38:38 +00:00
</ p >
2023-03-31 16:54:33 +00:00
< ? php if ( file_exists (
2022-12-30 19:03:37 +00:00
'img.new-combats.com/i/big/3d' . str_replace (
'.gif' , '' , str_replace ( '.png' , '' , $itm [ 'img' ])
) . '.jpg'
)) { ?>
2022-08-11 10:38:38 +00:00
< div align = " center " >
< table width = " 504 " border = " 0 " cellspacing = " 0 " cellpadding = " 0 " >
< tr >
2022-12-30 19:03:37 +00:00
< td align = " left " width = " 12 " height = " 10 " >
2023-03-31 18:30:14 +00:00
< img style = " display:block " src = " //img.new-combats.tech/i/encicl/ll12_30.gif "
2022-12-30 19:03:37 +00:00
width = " 12 " height = " 10 " >
</ td >
2023-03-31 18:30:14 +00:00
< td width = " 100% " background = " //img.new-combats.tech/i/encicl/ram12_34.gif " ></ td >
2022-12-30 19:03:37 +00:00
< td width = " 12 " height = " 10 " align = " right " >
2023-03-31 18:30:14 +00:00
< img style = " display:block " src = " //img.new-combats.tech/i/encicl/ll12_30.gif "
2022-12-30 19:03:37 +00:00
width = " 12 " height = " 10 " >
</ td >
2022-08-11 10:38:38 +00:00
</ tr >
< tr >
2023-03-31 18:30:14 +00:00
< td width = " 12 " background = " //img.new-combats.tech/i/encicl/line_left_13.gif " >
2022-08-11 10:38:38 +00:00
& nbsp ;
</ td >
2022-12-30 19:03:37 +00:00
< td width = " 480 " >
2023-03-31 16:54:33 +00:00
< img style = " display:block " src = " <?php if (file_exists(
2022-12-30 19:03:37 +00:00
'img.new-combats.com/i/big/3d' . str_replace (
'.gif' , '' , str_replace (
'.png' , '' , $itm [ 'img' ]
)
) . '.jpg'
2023-03-31 18:30:14 +00:00
)) { ?> //img.new-combats.tech/i/big/3d<?= str_replace(
2022-12-19 18:26:14 +00:00
'.gif' , '' , str_replace (
2022-12-30 19:03:37 +00:00
'.png' , '' , $itm [ 'img' ]
)
2023-03-31 18:30:14 +00:00
) ?> .jpg<?php } else { ?>//img.new-combats.tech/i/big/back.jpg<?php } ?>" alt=""
2022-12-30 19:03:37 +00:00
width = " 480 " height = " 360 " border = 1 id = " bigim " >
</ td >
2023-03-31 18:30:14 +00:00
< td width = " 12 " background = " //img.new-combats.tech/i/encicl/line_right_13.gif " >
2022-08-11 10:38:38 +00:00
& nbsp ;
</ td >
</ tr >
< tr >
2022-12-30 19:03:37 +00:00
< td align = " left " width = " 12 " height = " 10 " >
2023-03-31 18:30:14 +00:00
< img style = " display:block " src = " //img.new-combats.tech/i/encicl/ll12_30.gif "
2022-12-30 19:03:37 +00:00
width = " 12 " height = " 10 " >
</ td >
2022-08-11 10:38:38 +00:00
< td width = " 100% "
2023-03-31 18:30:14 +00:00
style = " background-image:url(//img.new-combats.tech/i/encicl/ram12_34down.gif); background-position:bottom " ></ td >
2022-12-30 19:03:37 +00:00
< td width = " 12 " align = " right " >
2023-03-31 18:30:14 +00:00
< img style = " display:block " src = " //img.new-combats.tech/i/encicl/ll12_30.gif "
2022-12-30 19:03:37 +00:00
width = " 12 " height = " 10 " >
</ td >
2022-08-11 10:38:38 +00:00
</ tr >
</ table >
</ div >
2023-03-31 16:54:33 +00:00
< ? php } ?>
2022-08-11 10:38:38 +00:00
< p align = " center " >& nbsp ; </ p >
< BR >
< table width = " 504 " border = " 0 " align = center cellpadding = " 0 " cellspacing = " 0 " >
< tr >
< td align = left valign = " top " >
< table width = " 95% " border = " 0 " align = " center " cellpadding = " 3 " cellspacing = " 0 " class = " inup3 " >
< tr >
< td width = " 100% " >
< A HREF = " ?id=<?= $itm['id'] ?> " >< ? = $itm [ 'name' ] ?> </A>
2023-03-31 18:30:14 +00:00
< IMG SRC = " //img.new-combats.tech/i/align/align0.gif " WIDTH = 12 HEIGHT = 15 >
2023-03-31 16:54:33 +00:00
< ? php $crd = '' ;
2022-08-11 10:38:38 +00:00
if ( $admin == 1 ) {
2023-03-31 18:30:14 +00:00
$crd = '<small><a href="javascript:window.open(\'/item_edit_data.php?edit_item_data=' . $itm [ 'id' ] . '\',\'winEdi1\',\'width=850,height=400,top=400,left=500,resizable=no,scrollbars=yes,status=no\');">Редактировать предмет</a> </small> ' ;
2022-08-11 10:38:38 +00:00
echo $crd ;
}
if ( $itm [ 'massa' ] > 0 ) {
2023-01-10 16:29:32 +00:00
echo '(М а с с а : ' . $itm [ 'massa' ] . ') ' ;
2022-08-11 10:38:38 +00:00
}
if ( isset ( $itd [ 'art' ]) && $itd [ 'art' ] > 0 ) {
2023-03-31 18:30:14 +00:00
echo '<IMG SRC=//img.new-combats.tech/i/artefact.gif WIDTH=18 HEIGHT=16 ALT="Артефактная вещь"> ' ;
2022-08-11 10:38:38 +00:00
}
if ( isset ( $po [ 'sudba' ]) && $po [ 'sudba' ] > 0 ) {
2023-03-31 18:30:14 +00:00
echo '<img title="Этот предмет будет связан общей судьбой с первым, кто наденет е г о . Никто другой не сможет е г о использовать." src="//img.new-combats.tech/i/destiny0.gif"> ' ;
2022-08-11 10:38:38 +00:00
}
if ( $itm [ 'price1' ] > 0 ) {
2023-01-10 16:29:32 +00:00
echo '<br><b>Цена: ' . $itm [ 'price1' ] . ' кр.</b>' ;
2022-08-11 10:38:38 +00:00
}
if ( $itm [ 'price2' ] > 0 ) {
2023-01-10 16:29:32 +00:00
echo '<br><b style="color:SaddleBrown ">Цена: ' . $itm [ 'price2' ] . ' екр.</b>' ;
2022-08-11 10:38:38 +00:00
}
if ( $itm [ 'iznosMAXi' ] >= 999999999 ) {
2023-01-10 16:29:32 +00:00
echo '<br>Долговечность: <font color="brown">неразрушимо</font >' ;
2022-08-11 10:38:38 +00:00
} elseif ( $itm [ 'iznosMAXi' ] > 0 ) {
2023-01-10 16:29:32 +00:00
echo '<br>Долговечность: 0/' . $itm [ 'iznosMAXi' ] . '' ;
2022-08-11 10:38:38 +00:00
}
2023-01-10 16:29:32 +00:00
//Срок годности предмета
2022-08-11 10:38:38 +00:00
if ( isset ( $itd [ 'srok' ]) && $itd [ 'srok' ] > 0 ) {
$itm [ 'srok' ] = $itd [ 'srok' ];
}
if ( $itm [ 'srok' ] > 0 ) {
2023-01-10 16:29:32 +00:00
echo '<br>Срок годности: ' . timeOut ( $itm [ 'srok' ]);
2022-08-11 10:38:38 +00:00
}
2023-01-10 16:29:32 +00:00
//Продолжительность действия магии:
2022-08-11 10:38:38 +00:00
if (( int ) $itm [ 'magic_inci' ] > 0 ) {
2022-12-30 19:03:37 +00:00
$efi = Db :: getRow ( 'select * from eff_main where id2 = ?' , [( int ) $itm [ 'magic_inci' ]]);
2022-08-11 10:38:38 +00:00
if ( isset ( $efi [ 'id2' ]) && $efi [ 'actionTime' ] > 0 ) {
2023-01-10 16:29:32 +00:00
echo '<br>Продолжительность действия: ' . timeOut ( $efi [ 'actionTime' ]);
2022-08-11 10:38:38 +00:00
}
}
2023-01-10 16:29:32 +00:00
/* требования */
2022-08-11 10:38:38 +00:00
$tr = '' ;
$t = $items [ 'tr' ];
$x = 0 ;
while ( $x < count ( $t )) {
$n = $t [ $x ];
if ( isset ( $itd [ 'tr_' . $n ])) {
2023-01-10 16:29:32 +00:00
$tr .= '<br>• ' ;
2022-08-11 10:38:38 +00:00
$tr .= $is [ $n ] . ': ' . $itd [ 'tr_' . $n ];
}
$x ++ ;
}
if ( $tr != '' ) {
2023-01-10 16:29:32 +00:00
echo '<br><B>Требуется минимальное:</B>' . $tr ;
2022-08-11 10:38:38 +00:00
}
2023-01-10 16:29:32 +00:00
/* действует на */
2022-08-11 10:38:38 +00:00
$tr = '' ;
$t = $items [ 'add' ];
$x = 0 ;
while ( $x < count ( $t )) {
$n = $t [ $x ];
if ( isset ( $itd [ 'add_' . $n ]) && isset ( $is [ $n ])) {
$z = '+' ;
if ( $itd [ 'add_' . $n ] < 1 ) {
$z = '' ;
}
$tr .= '<br>• ' . $is [ $n ] . ': ' . $z . $itd [ 'add_' . $n ];
}
$x ++ ;
}
2023-01-10 16:29:32 +00:00
//действует на (броня)
2022-08-11 10:38:38 +00:00
$i = 1 ;
2023-01-10 16:29:32 +00:00
$bn = [ 1 => 'головы' , 2 => 'корпуса' , 3 => 'пояса' , 4 => 'ног' ];
2022-08-11 10:38:38 +00:00
while ( $i <= 4 ) {
if ( isset ( $itd [ 'add_mab' . $i ]) && $itd [ 'add_mab' . $i ] > 0 ) {
if ( $itd [ 'add_mab' . $i ] == $itd [ 'add_mib' . $i ]) {
$z = '+' ;
if ( $itd [ 'add_mab' . $i ] < 0 ) {
$z = '' ;
}
2023-01-10 16:29:32 +00:00
$tr .= '<br>• Броня ' . $bn [ $i ] . ': ' . $z . '' . $itd [ 'add_mab' . $i ];
2022-08-11 10:38:38 +00:00
} else {
2023-01-10 16:29:32 +00:00
$tr .= '<br>• Броня ' . $bn [ $i ] . ': ' . $itd [ 'add_mib' . $i ] . '-' . $itd [ 'add_mab' . $i ];
2022-08-11 10:38:38 +00:00
}
}
$i ++ ;
}
if ( $tr != '' ) {
2023-01-10 16:29:32 +00:00
echo '<br><B>Действует на:</B>' . $tr ;
2022-08-11 10:38:38 +00:00
}
2023-01-10 16:29:32 +00:00
/* свойства предмета */
2022-08-11 10:38:38 +00:00
$tr = '' ;
if ( isset ( $itd [ 'sv_yron_min' ], $itd [ 'sv_yron_max' ])) {
2023-01-10 16:29:32 +00:00
$tr .= '<br>• Урон: ' . $itd [ 'sv_yron_min' ] . ' - ' . $itd [ 'sv_yron_max' ];
2022-08-11 10:38:38 +00:00
}
$x = 0 ;
while ( $x < count ( $t )) {
$n = $t [ $x ];
if ( isset ( $itd [ 'sv_' . $n ])) {
$z = '+' ;
if ( $itd [ 'sv_' . $n ] < 0 ) {
$z = '' ;
}
2023-01-10 16:29:32 +00:00
$tr .= '<br>• ' . $is [ $n ] . ': ' . $z . '' . $itd [ 'sv_' . $n ];
2022-08-11 10:38:38 +00:00
}
$x ++ ;
}
if ( $itm [ '2too' ] == 1 ) {
2023-01-10 16:29:32 +00:00
$tr .= '<br>• Второе оружие' ;
2022-08-11 10:38:38 +00:00
}
if ( $itm [ '2h' ] == 1 ) {
2023-01-10 16:29:32 +00:00
$tr .= '<br>• Двуручное оружие' ;
2022-08-11 10:38:38 +00:00
}
if ( isset ( $itd [ 'zonb' ])) {
2023-01-10 16:29:32 +00:00
$tr .= '<br>•Зоны блокирования: ' ;
2022-08-11 10:38:38 +00:00
if ( $itd [ 'zonb' ] > 0 ) {
$x = 1 ;
while ( $x <= $itd [ 'zonb' ]) {
$tr .= '+' ;
$x ++ ;
}
} else {
2023-01-10 16:29:32 +00:00
$tr .= '—' ;
2022-08-11 10:38:38 +00:00
}
}
if ( $tr != '' ) {
2023-01-10 16:29:32 +00:00
echo '<br><B>Свойства предмета:</B>' . $tr ;
2022-08-11 10:38:38 +00:00
}
2023-01-10 16:29:32 +00:00
/* особенности */
2022-08-11 10:38:38 +00:00
$tr = '' ;
$x = 1 ;
while ( $x <= 4 ) {
if ( isset ( $itd [ 'tya' . $x ]) && $itd [ 'tya' . $x ] > 0 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Ничтожно редки' ;
2022-08-11 10:38:38 +00:00
if ( $itd [ 'tya' . $x ] > 9 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Редки' ;
2022-08-11 10:38:38 +00:00
}
if ( $itd [ 'tya' . $x ] > 24 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Малы' ;
2022-08-11 10:38:38 +00:00
}
if ( $itd [ 'tya' . $x ] > 49 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Временами' ;
2022-08-11 10:38:38 +00:00
}
if ( $itd [ 'tya' . $x ] > 74 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Регулярны' ;
2022-08-11 10:38:38 +00:00
}
if ( $itd [ 'tya' . $x ] > 89 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Часты' ;
2022-08-11 10:38:38 +00:00
}
if ( $itd [ 'tya' . $x ] >= 100 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Всегда' ;
2022-08-11 10:38:38 +00:00
}
$tr .= '<br>• ' . $is [ 'tya' . $x ] . ': ' . $tyc ;
}
$x ++ ;
}
$x = 1 ;
while ( $x <= 7 ) {
if ( isset ( $itd [ 'tym' . $x ]) && $itd [ 'tym' . $x ] > 0 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Ничтожно редки' ;
2022-08-11 10:38:38 +00:00
if ( $itd [ 'tym' . $x ] > 9 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Редки' ;
2022-08-11 10:38:38 +00:00
}
if ( $itd [ 'tym' . $x ] > 24 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Малы' ;
2022-08-11 10:38:38 +00:00
}
if ( $itd [ 'tym' . $x ] > 49 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Временами' ;
2022-08-11 10:38:38 +00:00
}
if ( $itd [ 'tym' . $x ] > 74 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Регулярны' ;
2022-08-11 10:38:38 +00:00
}
if ( $itd [ 'tym' . $x ] > 89 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Часты' ;
2022-08-11 10:38:38 +00:00
}
if ( $itd [ 'tym' . $x ] >= 100 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Всегда' ;
2022-08-11 10:38:38 +00:00
}
$tr .= '<br>• ' . $is [ 'tym' . $x ] . ': ' . $tyc ;
}
$x ++ ;
}
$x = 1 ;
while ( $x <= 4 ) {
if ( isset ( $itd [ 'add_oza' . $x ]) && $itd [ 'add_oza' . $x ] > 0 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Слабая' ;
2022-08-11 10:38:38 +00:00
if ( $itd [ 'add_oza' . $x ] == 4 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Посредственная' ;
2022-08-11 10:38:38 +00:00
}
if ( $itd [ 'add_oza' . $x ] == 2 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Нормальная' ;
2022-08-11 10:38:38 +00:00
}
if ( $itd [ 'add_oza' . $x ] == 3 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Хорошая' ;
2022-08-11 10:38:38 +00:00
}
if ( $itd [ 'add_oza' . $x ] == 5 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Великолепная' ;
2022-08-11 10:38:38 +00:00
}
if ( $tyc != '' ) {
$tr .= '<br>• ' . $is [ 'oza' . $x ] . ': ' . $tyc ;
}
}
$x ++ ;
}
if ( isset ( $itd [ 'free_stats' ]) && $itd [ 'free_stats' ] > 0 ) {
2023-01-10 16:29:32 +00:00
echo '<br><b>Свободные распределения:</b><br>• Возможных распределений: ' . $itd [ 'free_stats' ];
2022-08-11 10:38:38 +00:00
}
if ( $tr != '' ) {
2023-01-10 16:29:32 +00:00
echo '<br><B>Особенности:</B>' . $tr ;
2022-08-11 10:38:38 +00:00
}
$is2 = '' ;
if ( isset ( $itd [ 'complect' ])) {
2023-01-10 16:29:32 +00:00
$is2 .= '<br><i>Дополнительная информация:</i>' ;
2022-08-11 10:38:38 +00:00
}
if ( isset ( $itd [ 'complect' ])) {
2023-01-10 16:29:32 +00:00
//не отображается
$com1 = [ 'name' => 'Неизвестный Комплект' , 'x' => 0 , 'text' => '' ];
2022-12-30 19:03:37 +00:00
$spc = Db :: getRows ( 'select * from complects where com = ? order by x limit 20' , [ $itd [ 'complect' ]]);
foreach ( $spc as $itmc ) {
2022-08-11 10:38:38 +00:00
$com1 [ 'name' ] = $itmc [ 'name' ];
$com1 [ 'text' ] .= ' • <font color="green">' . $itmc [ 'x' ] . '</font>: ' ;
2023-01-10 16:29:32 +00:00
//действие комплекта
2022-08-11 10:38:38 +00:00
$i1c = 0 ;
$i2c = 0 ;
$i1e = lookStats ( $itmc [ 'data' ]);
while ( $i1c < count ( $items [ 'add' ])) {
if ( isset ( $i1e [ $items [ 'add' ][ $i1c ]])) {
$i3c = $i1e [ $items [ 'add' ][ $i1c ]];
if ( $i3c > 0 ) {
$i3c = '+' . $i3c ;
}
if ( $i2c > 0 ) {
$com1 [ 'text' ] .= ' ' . $is [ $items [ 'add' ][ $i1c ]] . ': ' . $i3c ;
} else {
$com1 [ 'text' ] .= $is [ $items [ 'add' ][ $i1c ]] . ': ' . $i3c ;
}
$com1 [ 'text' ] .= '<br>' ;
$i2c ++ ;
}
$i1c ++ ;
}
unset ( $i1c , $i2c , $i3c );
$com1 [ 'x' ] ++ ;
}
2023-01-10 16:29:32 +00:00
$is2 .= '<br>• Часть комплекта: <b>' . $com1 [ 'name' ] . '</b><br><small>' ;
2022-08-11 10:38:38 +00:00
$is2 .= $com1 [ 'text' ];
$is2 .= '</small>' ;
}
$is2 .= '<small style="font-size:10px;">' ;
if ( $itm [ 'info' ] != '' ) {
2023-01-10 16:29:32 +00:00
$is2 .= '<div><b>Описание:</b></div><div>' . $itm [ 'info' ] . '</div>' ;
2022-08-11 10:38:38 +00:00
}
if ( isset ( $itd [ 'info' ]) && $itd [ 'info' ] != '' ) {
$is2 .= '<div>' . $itd [ 'info' ] . '</div>' ;
}
if ( isset ( $itm [ 'use_text' ]) && $itm [ 'max_text' ] - $itm [ 'use_text' ] > 0 ) {
2023-01-10 16:29:32 +00:00
$is2 .= '<div>Количество символов: ' . ( $itm [ 'max_text' ] - $itm [ 'use_text' ]) . '</div>' ;
2022-08-11 10:38:38 +00:00
}
if ( isset ( $itd [ 'noremont' ]) && $itd [ 'noremont' ] > 0 ) {
2023-01-10 16:29:32 +00:00
$is2 .= '<div style="color:brown;">Предмет не подлежит ремонту</div>' ;
2022-08-11 10:38:38 +00:00
}
if ( isset ( $itd [ 'frompisher' ]) && $itd [ 'frompisher' ] > 0 ) {
2023-01-10 16:29:32 +00:00
$is2 .= '<div style="color:brown;">Предмет из подземелья</div>' ;
2022-08-11 10:38:38 +00:00
}
if ( isset ( $itm [ 'dn_delete' ]) && $itm [ 'dn_delete' ] > 0 ) {
2023-01-10 16:29:32 +00:00
$is2 .= '<div style="color:brown;">Предмет будет удален при выходе из подземелья</div>' ;
2022-08-11 10:38:38 +00:00
}
$is2 .= '</small>' ;
echo $is2 ;
?>
< BR >
</ td >
< td align = " center " valign = " top " style = 'padding: 0,2,0,5' >
2022-12-30 19:03:37 +00:00
< a title = " <?= $itm['name'] ?> " href = " /item/<?= $itm['id'] ?> " >
< SPAN style = 'background-color: #E0E0E0' >
2023-03-31 18:30:14 +00:00
< img src = " //img.new-combats.tech/i/items/<?= $itm['img'] ?> "
2022-12-30 19:03:37 +00:00
alt = " <?= $itm['name'] ?> " name = " image " border = " 0 " >
</ SPAN >
</ a >
2022-08-11 10:38:38 +00:00
</ td >
</ tr >
</ table >
2022-12-30 19:03:37 +00:00
</ td >
2022-08-11 10:38:38 +00:00
</ tr >
</ table >
< p >
2022-12-30 19:03:37 +00:00
</ td >
2022-08-11 10:38:38 +00:00
<!-- End of text -->
2022-12-30 19:03:37 +00:00
< td style = 'padding-left: 3' align = right >
< img id = " imright " height = 144
2023-03-31 18:30:14 +00:00
src = " //img.new-combats.tech/i/encicl/pict_<?= $rz[$rt[$itm['type'] ]][0] ?>.jpg " width = 139
2022-12-30 19:03:37 +00:00
border = 0 >
</ td >
2023-03-31 18:30:14 +00:00
< td valign = top background = " /forum_script/img/rightground.jpg " >& nbsp ; & nbsp ; & nbsp ; & nbsp ; </ td >
2022-08-11 10:38:38 +00:00
</ tr >
< tr valign = top >
< td ></ td >
< td valign = center style = " padding-bottom:50 " align = " right " >< IMG height = 236
2023-03-31 18:30:14 +00:00
src = " //img.new-combats.tech/i/encicl/pictr_<?= $rz[$rt[$itm['type'] ]][0] ?>.jpg "
2022-12-30 19:03:37 +00:00
width = 128 border = 0 >
</ td >
2023-03-31 18:30:14 +00:00
< td width = " 23 " valign = top background = " /forum_script/img/rightground.jpg " >& nbsp ; </ td >
2022-08-11 10:38:38 +00:00
</ tr >
</ table >
2022-12-30 19:03:37 +00:00
< ? php } else {
2022-12-19 18:26:14 +00:00
2022-08-11 10:38:38 +00:00
$rv = explode ( 'i' , $url [ 2 ]);
$rv = ( int ) $rv [ 1 ];
//
2023-01-10 16:29:32 +00:00
$rname = 'Библиотека предметов Бойцовского Клуба' ;
2022-08-11 10:38:38 +00:00
$html = '' ;
//
if ( $rv >= 0 ) {
2022-12-19 18:26:14 +00:00
2022-08-11 10:38:38 +00:00
if ( $rv == 1 ) {
2023-01-10 16:29:32 +00:00
//Костыли
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 26' );
} elseif ( $rv == 3 ) {
2023-01-10 16:29:32 +00:00
//Свитки
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 29 AND `name` NOT LIKE "%Кристаллизатор%"' );
2022-08-11 10:38:38 +00:00
} elseif ( $rv == 2 ) {
2023-01-10 16:29:32 +00:00
//Эликсиры
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 30' );
} elseif ( $rv == 6 ) {
2023-01-10 16:29:32 +00:00
//Броня тяжелая
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 6' );
} elseif ( $rv == 32 ) {
2023-01-10 16:29:32 +00:00
//Броня легкая
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 5' );
} elseif ( $rv == 7 ) {
2023-01-10 16:29:32 +00:00
//Венки на голову
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 2' );
} elseif ( $rv == 8 ) {
2023-01-10 16:29:32 +00:00
//Наручи
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 3' );
} elseif ( $rv == 9 ) {
2023-01-10 16:29:32 +00:00
//Ботинки
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 15' );
} elseif ( $rv == 10 ) {
2023-01-10 16:29:32 +00:00
//Перчатки
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 12' );
} elseif ( $rv == 11 ) {
2023-01-10 16:29:32 +00:00
//Плащи
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 7' );
} elseif ( $rv == 12 ) {
2023-01-10 16:29:32 +00:00
//Поножи
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 14' );
} elseif ( $rv == 13 ) {
2023-01-10 16:29:32 +00:00
//Пояса
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 8' );
} elseif ( $rv == 14 ) {
2023-01-10 16:29:32 +00:00
//Рубахи
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 4' );
} elseif ( $rv == 15 ) {
2023-01-10 16:29:32 +00:00
//Шлема
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 1' );
} elseif ( $rv == 16 ) {
2023-01-10 16:29:32 +00:00
//Елки
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `name` LIKE "%Елка%"' );
2022-08-11 10:38:38 +00:00
} elseif ( $rv == 17 ) {
2023-01-10 16:29:32 +00:00
//Дубины
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 20' );
} elseif ( $rv == 18 ) {
2023-01-10 16:29:32 +00:00
//Кинжалы
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 18' );
} elseif ( $rv == 19 ) {
2023-01-10 16:29:32 +00:00
//Мечи
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 21' );
} elseif ( $rv == 20 ) {
2023-01-10 16:29:32 +00:00
//Топоры
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 19' );
} elseif ( $rv == 21 ) {
2023-01-10 16:29:32 +00:00
//Посохи
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 22' );
} elseif ( $rv == 22 ) {
2023-01-10 16:29:32 +00:00
//Цветы
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 32 AND `img` LIKE "f_%"' );
} elseif ( $rv == 25 ) {
2023-01-10 16:29:32 +00:00
//Подарки
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 38 OR `type` = 63' );
} elseif ( $rv == 26 ) {
2023-01-10 16:29:32 +00:00
//Руны
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 31' );
} elseif ( $rv == 27 ) {
2023-01-10 16:29:32 +00:00
//Прочие
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 32' );
} elseif ( $rv == 28 ) {
2023-01-10 16:29:32 +00:00
//Щиты
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 13' );
} elseif ( $rv == 29 ) {
2023-01-10 16:29:32 +00:00
//Кольца
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 11' );
} elseif ( $rv == 30 ) {
2023-01-10 16:29:32 +00:00
//Ожерелья
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 10' );
} elseif ( $rv == 31 ) {
2023-01-10 16:29:32 +00:00
//Серьги
2022-08-11 10:38:38 +00:00
$sp = mysql_query ( 'SELECT * FROM `items_main` WHERE `type` = 9' );
}
}
?>
< table width = " 100% " border = " 0 " cellpadding = " 0 " cellspacing = " 0 " bgcolor = '#3D3D3B' >
< tr valign = top >
< td ></ td >
< td align = center >
< SCRIPT >
wsize = document . body . clientWidth ;
if ( wsize >= 800 ) wsize = Math . floor ( wsize * 0.8 );
if ( wsize < 700 ) wsize = 700 ;
document . write ( '<table cellspacing=0 cellpadding=0 bgcolor=#f2e5b1 border=0 width=' + ( wsize - 20 ) + '>' );
</ SCRIPT >
< tr valign = top >
2023-03-31 18:30:14 +00:00
< td width = " 29 " rowspan = 2 background = " /forum_script/img/leftground.jpg " >
< img src = " //img.new-combats.tech/i/encicl/pictlr_subject.jpg " width = " 29 " height = " 256 " >
2022-12-30 19:03:37 +00:00
</ td >
< td width = " 218 " height = " 257 " align = " left " >
2023-03-31 18:30:14 +00:00
< img id = " imleft2 " src = " //img.new-combats.tech/i/encicl/pictl_subject.jpg " width = " 118 " height = " 257 " >< BR >
2022-12-30 19:03:37 +00:00
</ td >
< td rowspan = 2 align = " left " >
2023-03-31 18:30:14 +00:00
< p >< b >& raquo ; </ b > < a href = " /item/i1 " > Предметы </ a > /
2022-08-11 10:38:38 +00:00
< h2 >< ? = $rname ?> </h2>
2023-03-31 18:30:14 +00:00
< img src = " //img.new-combats.tech/i/encicl/ln3.jpg " width = " 400 " height = " 1 " >
2022-08-11 10:38:38 +00:00
</ p >
< ?
if ( $rv == 0 ) {
2023-01-10 16:29:32 +00:00
echo 'Выберите один из разделов слева, чтобы отобразить предметы<br>' ;
2022-08-11 10:38:38 +00:00
} else {
2022-12-19 18:26:14 +00:00
if ( isset ( $sp ) && is_array ( $sp )) {
while ( $itm = mysql_fetch_array ( $sp )) {
2022-12-30 19:03:37 +00:00
$itd = mysql_fetch_array (
mysql_query ( 'SELECT * FROM `items_main_data` WHERE `items_id` = ' . $itm [ 'id' ])
);
$itd = lookStats ( $itd [ 'data' ]);
?>
< br >
< table width = " 100% " border = " 0 " align = center cellpadding = " 0 " cellspacing = " 0 " >
< tr >
< td align = left valign = " top " >
< table width = " 95% " border = " 0 " align = " center " cellpadding = " 3 " cellspacing = " 0 "
class = " inup3 " >
< tr >
< td width = " 100% " >< A
HREF = " /item/<?= $itm['id'] ?> " >< ? = $itm [ 'name' ] ?> </A>
2023-03-31 18:30:14 +00:00
< IMG SRC = " //img.new-combats.tech/i/align/align0.gif " WIDTH = 12
2022-12-30 19:03:37 +00:00
HEIGHT = 15 >
< ?
if ( $admin == 1 ) {
2023-03-31 18:30:14 +00:00
$crd = '<small><a href="javascript:window.open(\'/item_edit_data.php?edit_item_data=' . $itm [ 'id' ] . '\',\'winEdi1\',\'width=850,height=400,top=400,left=500,resizable=no,scrollbars=yes,status=no\');">Редактировать предмет</a> </small> ' ;
2022-12-30 19:03:37 +00:00
echo $crd ;
}
if ( $itm [ 'massa' ] > 0 ) {
2023-01-10 16:29:32 +00:00
echo '(М а с с а : ' . $itm [ 'massa' ] . ') ' ;
2022-12-30 19:03:37 +00:00
}
if ( isset ( $itd [ 'art' ]) && $itd [ 'art' ] > 0 ) {
2023-03-31 18:30:14 +00:00
echo '<IMG SRC=//img.new-combats.tech/i/artefact.gif WIDTH=18 HEIGHT=16 ALT="Артефактная вещь"> ' ;
2022-12-30 19:03:37 +00:00
}
2022-12-19 18:26:14 +00:00
2022-12-30 19:03:37 +00:00
if ( isset ( $po [ 'sudba' ])) {
2023-03-31 18:30:14 +00:00
echo '<img title="Этот предмет будет связан общей судьбой с первым, кто наденет е г о . Никто другой не сможет е г о использовать." src="//img.new-combats.tech/i/destiny0.gif"> ' ;
2022-12-30 19:03:37 +00:00
}
2022-08-11 10:38:38 +00:00
2022-12-30 19:03:37 +00:00
if ( $itm [ 'price1' ] > 0 ) {
2023-01-10 16:29:32 +00:00
echo '<br><b>Цена: ' . $itm [ 'price1' ] . ' кр.</b>' ;
2022-12-30 19:03:37 +00:00
}
2022-08-11 10:38:38 +00:00
2022-12-30 19:03:37 +00:00
if ( $itm [ 'price2' ] > 0 ) {
2023-01-10 16:29:32 +00:00
echo '<br><b style="color:SaddleBrown ">Цена: ' . $itm [ 'price2' ] . ' екр.</b>' ;
2022-12-30 19:03:37 +00:00
}
2022-08-11 10:38:38 +00:00
2022-12-30 19:03:37 +00:00
if ( $itm [ 'iznosMAXi' ] >= 999999999 ) {
2023-01-10 16:29:32 +00:00
echo '<br>Долговечность: <font color="brown">неразрушимо</font >' ;
2022-12-30 19:03:37 +00:00
} elseif ( $itm [ 'iznosMAXi' ] > 0 ) {
2023-01-10 16:29:32 +00:00
echo '<br>Долговечность: 0/' . $itm [ 'iznosMAXi' ] . '' ;
2022-12-30 19:03:37 +00:00
}
2022-08-11 10:38:38 +00:00
2023-01-10 16:29:32 +00:00
//Срок годности предмета
2022-12-30 19:03:37 +00:00
if ( isset ( $itd [ 'srok' ]) && $itd [ 'srok' ] > 0 ) {
$itm [ 'srok' ] = $itd [ 'srok' ];
}
if ( $itm [ 'srok' ] > 0 ) {
2023-01-10 16:29:32 +00:00
echo '<br>Срок годности: ' . timeOut ( $itm [ 'srok' ]);
2022-12-30 19:03:37 +00:00
}
2022-08-11 10:38:38 +00:00
2023-01-10 16:29:32 +00:00
//Продолжительность действия магии:
2022-12-30 19:03:37 +00:00
if (( int ) $itm [ 'magic_inci' ] > 0 ) {
$efi = mysql_fetch_array (
mysql_query (
'SELECT * FROM `eff_main` WHERE `id2` = "' . (( int ) $itm [ 'magic_inci' ]) . '" LIMIT 1'
)
);
if ( isset ( $efi [ 'id2' ]) && $efi [ 'actionTime' ] > 0 ) {
2023-01-10 16:29:32 +00:00
echo '<br>Продолжительность действия: ' . timeOut (
2022-12-30 19:03:37 +00:00
$efi [ 'actionTime' ]
);
}
}
2022-08-11 10:38:38 +00:00
2023-01-10 16:29:32 +00:00
/* требования */
2022-12-30 19:03:37 +00:00
$tr = '' ;
2022-08-11 10:38:38 +00:00
2022-12-30 19:03:37 +00:00
$t = $items [ 'tr' ];
$x = 0 ;
while ( $x < count ( $t )) {
$n = $t [ $x ];
if ( isset ( $itd [ 'tr_' . $n ])) {
$tr .= '<br>• ' ;
$tr .= $is [ $n ] . ': ' . $itd [ 'tr_' . $n ];
}
$x ++ ;
2022-08-11 10:38:38 +00:00
}
2022-12-30 19:03:37 +00:00
if ( $tr != '' ) {
2023-01-10 16:29:32 +00:00
echo '<br><B>Требуется минимальное:</B>' . $tr ;
2022-12-30 19:03:37 +00:00
}
2022-08-11 10:38:38 +00:00
2023-01-10 16:29:32 +00:00
/* действует на */
2022-12-30 19:03:37 +00:00
$tr = '' ;
2022-08-11 10:38:38 +00:00
2022-12-30 19:03:37 +00:00
$t = $items [ 'add' ];
$x = 0 ;
while ( $x < count ( $t )) {
$n = $t [ $x ];
if ( isset ( $itd [ 'add_' . $n ]) && isset ( $is [ $n ])) {
$z = '+' ;
if ( $itd [ 'add_' . $n ] < 1 ) {
$z = '' ;
}
$tr .= '<br>• ' . $is [ $n ] . ': ' . $z . $itd [ 'add_' . $n ];
}
$x ++ ;
2022-08-11 10:38:38 +00:00
}
2023-01-10 16:29:32 +00:00
//действует на (броня)
2022-12-30 19:03:37 +00:00
$i = 1 ;
2023-01-10 16:29:32 +00:00
$bn = [ 1 => 'головы' , 2 => 'корпуса' , 3 => 'пояса' , 4 => 'ног' ];
2022-12-30 19:03:37 +00:00
while ( $i <= 4 ) {
if ( isset ( $itd [ 'add_mab' . $i ]) && $itd [ 'add_mab' . $i ] > 0 ) {
if ( $itd [ 'add_mab' . $i ] == $itd [ 'add_mib' . $i ]) {
$z = '+' ;
if ( $itd [ 'add_mab' . $i ] < 0 ) {
$z = '' ;
}
2023-01-10 16:29:32 +00:00
$tr .= '<br>• Броня ' . $bn [ $i ] . ': ' . $z . '' . $itd [ 'add_mab' . $i ];
2022-12-30 19:03:37 +00:00
} else {
2023-01-10 16:29:32 +00:00
$tr .= '<br>• Броня ' . $bn [ $i ] . ': ' . $itd [ 'add_mib' . $i ] . '-' . $itd [ 'add_mab' . $i ];
2022-12-30 19:03:37 +00:00
}
2022-08-11 10:38:38 +00:00
}
2022-12-30 19:03:37 +00:00
$i ++ ;
2022-08-11 10:38:38 +00:00
}
2022-12-30 19:03:37 +00:00
if ( $tr != '' ) {
2023-01-10 16:29:32 +00:00
echo '<br><B>Действует на:</B>' . $tr ;
2022-12-30 19:03:37 +00:00
}
2023-01-10 16:29:32 +00:00
/* свойства предмета */
2022-12-30 19:03:37 +00:00
$tr = '' ;
2022-08-11 10:38:38 +00:00
2022-12-30 19:03:37 +00:00
if ( isset ( $itd [ 'sv_yron_min' ], $itd [ 'sv_yron_max' ])) {
2023-01-10 16:29:32 +00:00
$tr .= '<br>• Урон: ' . $itd [ 'sv_yron_min' ] . ' - ' . $itd [ 'sv_yron_max' ];
2022-12-30 19:03:37 +00:00
}
$x = 0 ;
while ( $x < count ( $t )) {
$n = $t [ $x ];
if ( isset ( $itd [ 'sv_' . $n ])) {
2022-08-11 10:38:38 +00:00
$z = '+' ;
2022-12-30 19:03:37 +00:00
if ( $itd [ 'sv_' . $n ] < 0 ) {
2022-08-11 10:38:38 +00:00
$z = '' ;
}
2022-12-30 19:03:37 +00:00
$tr .= '<br>• ' . $is [ $n ] . ': ' . $z . '' . $itd [ 'sv_' . $n ];
2022-08-11 10:38:38 +00:00
}
2022-12-30 19:03:37 +00:00
$x ++ ;
2022-08-11 10:38:38 +00:00
}
2022-12-30 19:03:37 +00:00
if ( $itm [ '2too' ] == 1 ) {
2023-01-10 16:29:32 +00:00
$tr .= '<br>• Второе оружие' ;
2022-08-11 10:38:38 +00:00
}
2022-12-30 19:03:37 +00:00
if ( $itm [ '2h' ] == 1 ) {
2023-01-10 16:29:32 +00:00
$tr .= '<br>• Двуручное оружие' ;
2022-12-30 19:03:37 +00:00
}
if ( isset ( $itd [ 'zonb' ])) {
2023-01-10 16:29:32 +00:00
$tr .= '<br>• Зоны блокирования: ' ;
2022-12-30 19:03:37 +00:00
if ( $itd [ 'zonb' ] > 0 ) {
$x = 1 ;
while ( $x <= $itd [ 'zonb' ]) {
$tr .= '+' ;
$x ++ ;
}
} else {
$tr .= '—' ;
2022-08-11 10:38:38 +00:00
}
}
2022-12-30 19:03:37 +00:00
if ( $tr != '' ) {
2023-01-10 16:29:32 +00:00
echo '<br><B>Свойства предмета:</B>' . $tr ;
2022-12-30 19:03:37 +00:00
}
2022-08-11 10:38:38 +00:00
2023-01-10 16:29:32 +00:00
/* особенности */
2022-12-30 19:03:37 +00:00
$tr = '' ;
2022-08-11 10:38:38 +00:00
2022-12-30 19:03:37 +00:00
$x = 1 ;
while ( $x <= 4 ) {
if ( isset ( $itd [ 'tya' . $x ]) && $itd [ 'tya' . $x ] > 0 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Ничтожно редки' ;
2022-12-30 19:03:37 +00:00
if ( $itd [ 'tya' . $x ] > 6 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Редки' ;
2022-12-30 19:03:37 +00:00
}
if ( $itd [ 'tya' . $x ] > 14 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Малы' ;
2022-12-30 19:03:37 +00:00
}
if ( $itd [ 'tya' . $x ] > 34 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Временами' ;
2022-12-30 19:03:37 +00:00
}
if ( $itd [ 'tya' . $x ] > 79 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Регулярны' ;
2022-12-30 19:03:37 +00:00
}
if ( $itd [ 'tya' . $x ] > 89 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Часты' ;
2022-12-30 19:03:37 +00:00
}
if ( $itd [ 'tya' . $x ] >= 100 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Всегда' ;
2022-12-30 19:03:37 +00:00
}
$tr .= '<br>• ' . $is [ 'tya' . $x ] . ': ' . $tyc ;
2022-08-11 10:38:38 +00:00
}
2022-12-30 19:03:37 +00:00
$x ++ ;
2022-08-11 10:38:38 +00:00
}
2022-12-30 19:03:37 +00:00
$x = 1 ;
while ( $x <= 7 ) {
if ( isset ( $itd [ 'tym' . $x ]) && $itd [ 'tym' . $x ] > 0 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Ничтожно редки' ;
2022-12-30 19:03:37 +00:00
if ( $itd [ 'tym' . $x ] > 6 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Редки' ;
2022-12-30 19:03:37 +00:00
}
if ( $itd [ 'tym' . $x ] > 14 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Малы' ;
2022-12-30 19:03:37 +00:00
}
if ( $itd [ 'tym' . $x ] > 34 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Временами' ;
2022-12-30 19:03:37 +00:00
}
if ( $itd [ 'tym' . $x ] > 79 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Регулярны' ;
2022-12-30 19:03:37 +00:00
}
if ( $itd [ 'tym' . $x ] > 89 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Часты' ;
2022-12-30 19:03:37 +00:00
}
if ( $itd [ 'tym' . $x ] >= 100 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Всегда' ;
2022-12-30 19:03:37 +00:00
}
$tr .= '<br>• ' . $is [ 'tym' . $x ] . ': ' . $tyc ;
2022-08-11 10:38:38 +00:00
}
2022-12-30 19:03:37 +00:00
$x ++ ;
2022-08-11 10:38:38 +00:00
}
2022-12-30 19:03:37 +00:00
$x = 1 ;
while ( $x <= 4 ) {
if ( isset ( $itd [ 'add_oza' . $x ]) && $itd [ 'add_oza' . $x ] > 0 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Слабая' ;
2022-12-30 19:03:37 +00:00
if ( $itd [ 'add_oza' . $x ] == 4 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Посредственная' ;
2022-12-30 19:03:37 +00:00
}
if ( $itd [ 'add_oza' . $x ] == 2 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Нормальная' ;
2022-12-30 19:03:37 +00:00
}
if ( $itd [ 'add_oza' . $x ] == 3 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Хорошая' ;
2022-12-30 19:03:37 +00:00
}
if ( $itd [ 'add_oza' . $x ] == 5 ) {
2023-01-10 16:29:32 +00:00
$tyc = 'Великолепная' ;
2022-12-30 19:03:37 +00:00
}
if ( $tyc != '' ) {
$tr .= '<br>• ' . $is [ 'oza' . $x ] . ': ' . $tyc ;
}
2022-08-11 10:38:38 +00:00
}
2022-12-30 19:03:37 +00:00
$x ++ ;
2022-08-11 10:38:38 +00:00
}
2022-12-30 19:03:37 +00:00
if ( isset ( $itd [ 'free_stats' ]) && $itd [ 'free_stats' ] > 0 ) {
2023-01-10 16:29:32 +00:00
echo '<br><b>Свободные распределения:</b><br>• Возможных распределений: ' . $itd [ 'free_stats' ];
2022-12-30 19:03:37 +00:00
}
if ( $tr != '' ) {
2023-01-10 16:29:32 +00:00
echo '<br><B>Особенности:</B>' . $tr ;
2022-12-30 19:03:37 +00:00
}
$is2 = '' ;
2022-08-11 10:38:38 +00:00
2022-12-30 19:03:37 +00:00
if ( isset ( $itd [ 'complect' ])) {
2023-01-10 16:29:32 +00:00
$is2 .= '<br><i>Дополнительная информация:</i>' ;
2022-12-30 19:03:37 +00:00
}
if ( isset ( $itd [ 'complect' ])) {
2023-01-10 16:29:32 +00:00
//не отображается
$com1 = [ 'name' => 'Неизвестный Комплект' , 'x' => 0 , 'text' => '' ];
2022-12-30 19:03:37 +00:00
$spc = mysql_query (
'SELECT * FROM `complects` WHERE `com` = "' . $itd [ 'complect' ] . '" ORDER BY `x` ASC LIMIT 20'
);
while ( $itmc = mysql_fetch_array ( $spc )) {
$com1 [ 'name' ] = $itmc [ 'name' ];
$com1 [ 'text' ] .= ' • <font color="green">' . $itmc [ 'x' ] . '</font>: ' ;
2023-01-10 16:29:32 +00:00
//действие комплекта
2022-12-30 19:03:37 +00:00
$i1c = 0 ;
$i2c = 0 ;
$i1e = lookStats ( $itmc [ 'data' ]);
while ( $i1c < count ( $items [ 'add' ])) {
if ( isset ( $i1e [ $items [ 'add' ][ $i1c ]])) {
$i3c = $i1e [ $items [ 'add' ][ $i1c ]];
if ( $i3c > 0 ) {
$i3c = '+' . $i3c ;
}
if ( $i2c > 0 ) {
$com1 [ 'text' ] .= ' ' . $is [ $items [ 'add' ][ $i1c ]] . ': ' . $i3c ;
} else {
$com1 [ 'text' ] .= $is [ $items [ 'add' ][ $i1c ]] . ': ' . $i3c ;
}
$com1 [ 'text' ] .= '<br>' ;
$i2c ++ ;
2022-08-11 10:38:38 +00:00
}
2022-12-30 19:03:37 +00:00
$i1c ++ ;
2022-08-11 10:38:38 +00:00
}
2022-12-30 19:03:37 +00:00
unset ( $i1c , $i2c , $i3c );
$com1 [ 'x' ] ++ ;
2022-08-11 10:38:38 +00:00
}
2023-01-10 16:29:32 +00:00
$is2 .= '<br>• Часть комплекта: <b>' . $com1 [ 'name' ] . '</b><br><small>' ;
2022-12-30 19:03:37 +00:00
$is2 .= $com1 [ 'text' ];
$is2 .= '</small>' ;
2022-08-11 10:38:38 +00:00
}
2022-12-30 19:03:37 +00:00
$is2 .= '<small style="font-size:10px;">' ;
2022-08-11 10:38:38 +00:00
2022-12-30 19:03:37 +00:00
if ( $itm [ 'info' ] != '' ) {
2023-01-10 16:29:32 +00:00
$is2 .= '<div><b>Описание:</b></div><div>' . $itm [ 'info' ] . '</div>' ;
2022-12-30 19:03:37 +00:00
}
2022-08-11 10:38:38 +00:00
2022-12-30 19:03:37 +00:00
if ( isset ( $itd [ 'info' ]) && $itd [ 'info' ] != '' ) {
$is2 .= '<div>' . $itd [ 'info' ] . '</div>' ;
}
2022-08-11 10:38:38 +00:00
2022-12-30 19:03:37 +00:00
if ( isset ( $itm [ 'use_text' ]) && $itm [ 'max_text' ] - $itm [ 'use_text' ] > 0 ) {
2023-01-10 16:29:32 +00:00
$is2 .= '<div>Количество символов: ' . ( $itm [ 'max_text' ] - $itm [ 'use_text' ]) . '</div>' ;
2022-12-30 19:03:37 +00:00
}
2022-08-11 10:38:38 +00:00
2022-12-30 19:03:37 +00:00
if ( isset ( $itd [ 'noremont' ]) && $itd [ 'noremont' ] > 0 ) {
2023-01-10 16:29:32 +00:00
$is2 .= '<div style="color:brown;">Предмет не подлежит ремонту</div>' ;
2022-12-30 19:03:37 +00:00
}
2022-08-11 10:38:38 +00:00
2022-12-30 19:03:37 +00:00
if ( isset ( $itd [ 'frompisher' ]) && $itd [ 'frompisher' ] > 0 ) {
2023-01-10 16:29:32 +00:00
$is2 .= '<div style="color:brown;">Предмет из подземелья</div>' ;
2022-12-30 19:03:37 +00:00
}
2022-08-11 10:38:38 +00:00
2022-12-30 19:03:37 +00:00
if ( isset ( $itm [ 'dn_delete' ]) && $itm [ 'dn_delete' ] > 0 ) {
2023-01-10 16:29:32 +00:00
$is2 .= '<div style="color:brown;">Предмет будет удален при выходе из подземелья</div>' ;
2022-12-30 19:03:37 +00:00
}
2022-08-11 10:38:38 +00:00
2022-12-30 19:03:37 +00:00
$is2 .= '</small>' ;
2022-08-11 10:38:38 +00:00
2022-12-30 19:03:37 +00:00
echo $is2 ;
?>
< BR >
2022-12-19 18:26:14 +00:00
</ td >
2022-12-30 19:03:37 +00:00
< td align = " center " valign = " top " style = 'padding: 0,2,0,5' >
< a title = " <?= $itm['name'] ?> " href = " /item/<?= $itm['id'] ?> " >
< SPAN style = 'background-color: #E0E0E0' >
2023-03-31 18:30:14 +00:00
< img src = " //img.new-combats.tech/i/items/<?= $itm['img'] ?> "
2022-12-30 19:03:37 +00:00
alt = " <?= $itm['name'] ?> " name = " image " border = " 0 " >
</ SPAN >
</ a >
</ td >
</ tr >
</ table >
</ td >
</ tr >
</ table >
< ? php
}
2022-12-19 18:26:14 +00:00
}
2022-08-11 10:38:38 +00:00
}
?>
< p align = " center " >& nbsp ; </ p >
< BR >
< p >
<!-- End of text -->
2022-12-30 19:03:37 +00:00
< td style = 'padding-left: 3' align = right >
2023-03-31 18:30:14 +00:00
< img id = " imright2 " height = 144 src = " //img.new-combats.tech/i/encicl/pict_subject.jpg " width = 139 >
2022-12-30 19:03:37 +00:00
</ td >
2023-03-31 18:30:14 +00:00
< td valign = top background = " /forum_script/img/rightground.jpg " >& nbsp ; & nbsp ; & nbsp ; & nbsp ; </ td >
2022-06-06 21:30:34 +00:00
</ tr >
2022-08-11 10:38:38 +00:00
< tr valign = top >
< td valign = " top " >
<!-- -->
2023-01-10 16:29:32 +00:00
< b >< span style = " COLOR: #8f0000; FONT-FAMILY: Arial; FONT-SIZE: 11pt; " > Предметы </ span ></ b >< br >
2022-08-11 10:38:38 +00:00
< table width = " 100% " height = " 11 " border = " 0 " cellpadding = " 0 " cellspacing = " 0 " >
< tr >
2022-12-30 19:03:37 +00:00
< td width = " 12 " align = " left " >
2023-03-31 18:30:14 +00:00
< img src = " //img.new-combats.tech/ram12_33.gif " width = " 12 " height = " 11 " >
2022-12-30 19:03:37 +00:00
</ td >
2023-03-31 18:30:14 +00:00
< td style = " background-image:url(//img.new-combats.tech/ram12_34.gif); background-repeat:repeat-x; background-position:0 2px; " ></ td >
2022-12-30 19:03:37 +00:00
< td width = " 13 " align = " right " >
2023-03-31 18:30:14 +00:00
< img src = " //img.new-combats.tech/ram12_35.gif " width = " 13 " height = " 11 " >
2022-12-30 19:03:37 +00:00
</ td >
2022-08-11 10:38:38 +00:00
</ tr >
</ table >
< br >
2023-01-10 16:29:32 +00:00
< b > Амуниция </ b >< br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i1 " > Костыли </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i2 " > Эликсиры и еда </ a >& nbsp ; < br >
< b > Заклинания </ b >< br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i3 " > Заклинания </ a >& nbsp ; < br >
< b > Одежда </ b >< br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i6 " > Тяжелая броня </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i32 " > Легкая броня </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i7 " > Венки </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i8 " > Наручи </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i9 " > Обувь </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i10 " > Перчатки </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i11 " > Плащи </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i12 " > Поножи </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i13 " > Пояса </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i14 " > Рубахи </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i15 " > Шлемы </ a >& nbsp ; < br >
< b > Оружие </ b >< br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i16 " > Ёлки </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i17 " > Дубины </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i18 " > Кинжалы </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i19 " > Мечи </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i20 " > Топоры </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i21 " > Посохи </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i22 " > Цветы и Букеты </ a >& nbsp ; < br >
< b > Разное </ b >< br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i23 " > Компоненты </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i24 " > Магические предметы </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i25 " > Подарки </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i26 " > Руны </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i27 " > Прочие предметы </ a >& nbsp ; < br >
< b > Щиты </ b >< br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i28 " > Щиты </ a >& nbsp ; < br >
< b > Ювелирные товары </ b >< br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i29 " > Кольца </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i30 " > Ожерелья </ a >& nbsp ; < br >
& nbsp ; & nbsp ; & nbsp ; & middot ; & nbsp ; < a href = " /item/i31 " > Серьги </ a >& nbsp ; < br >
2022-08-11 10:38:38 +00:00
< br >< br >< br >
<!-- -->
</ td >
2022-12-30 19:03:37 +00:00
< td valign = " bottom " style = " padding-bottom:50 " align = " right " >
2023-03-31 18:30:14 +00:00
< IMG height = 236 src = " //img.new-combats.tech/i/encicl/pictr_subject.jpg " width = 128 border = 0 >
2022-12-30 19:03:37 +00:00
</ td >
2023-03-31 18:30:14 +00:00
< td width = " 23 " valign = top background = " /forum_script/img/rightground.jpg " >& nbsp ; </ td >
2022-08-11 10:38:38 +00:00
</ tr >
</ table >
2022-12-30 19:03:37 +00:00
< ? php } ?>
2022-06-06 21:30:34 +00:00
< table width = " 100% " border = " 0 " cellpadding = " 0 " cellspacing = " 0 " bgcolor = #000000>
2022-08-11 10:38:38 +00:00
< TR >
2023-03-31 18:30:14 +00:00
< TD colspan = 3 width = " 100% " height = 13 background = " //img.new-combats.tech/i/encicl/ln_footer.jpg " ></ TD >
2022-08-11 10:38:38 +00:00
</ TR >
< tr valign = top >
< td width = " 20% " >
< div align = " center " >
& nbsp ;
</ div >
</ td >
< td align = center valign = middle >
< div align = " center " style = " padding: 5px 0px; height: 32px; box-sizing: border-box; " >
2023-01-10 16:29:32 +00:00
< NOBR >< span class = " style6 " > Copyright © < ? = date ( 'Y' ) ?> «www.new-combats.com»</span></NOBR>
2022-12-30 19:03:37 +00:00
< br >< Br >
</ div >
2022-08-11 10:38:38 +00:00
</ td >
< td width = " 20% " ></ td >
</ tr >
2022-06-06 21:30:34 +00:00
</ table >
</ body >
</ html >