1296 lines
43 KiB
PHP
1296 lines
43 KiB
PHP
<?php
|
|
define('GAME',time());
|
|
|
|
include('_incl_data/class/__db_connect.php');
|
|
if (isset($_COOKIE['login']))
|
|
{
|
|
$u = mysql_fetch_array(mysql_query('SELECT `id`,`admin` FROM `users` WHERE `login` = "'.mysql_real_escape_string($_COOKIE['login']).'" AND `pass` = "'.mysql_real_escape_string($_COOKIE['pass']).'" LIMIT 1'));
|
|
if(!isset($u['id']) || $u['admin'] == 0) {
|
|
$admin = 0;
|
|
}else{
|
|
$admin = 1;
|
|
}
|
|
unset($u);
|
|
} else {$admin = 0;}
|
|
|
|
|
|
if(!isset($_GET['id'])) {
|
|
$urla = explode('?',$_SERVER["REQUEST_URI"]);
|
|
$url = explode('/',$urla[0]);
|
|
|
|
$_GET['id'] = round((int)$url[2]);
|
|
}
|
|
|
|
/* ðàçäåëû */
|
|
$rz = array(
|
|
array('alls','Ïðî÷åå'),
|
|
array('crutch','Êîñòûëè'), // 1
|
|
array('potion','Ýëèêñèðû'), // 2
|
|
array('scrollattack','Ìàãè÷åñêèå ñâèòêè'), // 3
|
|
array('armor','Áðîíÿ'), // 4
|
|
array('venok','Âåíêè'), // 5
|
|
array('naruchi','Íàðó÷è'), // 6
|
|
array('shoes','Îáóâü'), // 7
|
|
array('glove','Ïåð÷àòêè'), // 8
|
|
array('Cloak','Ïëàùè'), // 9
|
|
array('leg','Ïîíîæè'), // 10
|
|
array('belt','Ïîÿñà'), // 11
|
|
array('shirt','Ðóáàõè'), // 12
|
|
array('helmet','Øëåìû'), // 13
|
|
array('el_sm','Åëêè'), // 14
|
|
array('flail','Äóáèíû è Áóëàâû'), // 15
|
|
array('knuckleduster','Íîæè è Êàñòåòû'), // 16
|
|
array('sword','Ìå÷è'), // 17
|
|
array('staff','Ïîñîõè'), // 18
|
|
array('pole-axe','Òîïîðû è Ñåêèðû'), // 19
|
|
array('flower','Öâåòû è Áóêåòû'), // 20
|
|
array('component','Êîìïîíåíòû'), // 21
|
|
array('magicitem','Ìàãè÷åñêèå ïðåäìåòû'), // 22
|
|
array('gift','Ïîäàðêè'), // 23
|
|
array('shield','Ùèòû'), // 24
|
|
array('ring','Êîëüöà'), // 25
|
|
array('necklace','Îæåðåëüÿ'), // 26
|
|
array('earring','Ñåðüãè'), // 27
|
|
array('other','Ðàçíîå') // 28
|
|
);
|
|
|
|
// Îòîáðàæàòü 3Ä èçîáðàæåíèå? True - îòîáðàæàòü â ëþáîì ñëó÷àå, False - òîëüêî åñëè ñóùåñòâóåò.
|
|
$img3dShow = false;
|
|
|
|
/* Òèïû ïðåäìåòîâ ïî ðàçäåëàì */
|
|
$rt = array(
|
|
22 => 0,
|
|
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,
|
|
//28 => 14,
|
|
20 => 15,
|
|
18 => 16,
|
|
21 => 17,
|
|
22 => 18,
|
|
19 => 19,
|
|
28 => 20,
|
|
//00 => 21,
|
|
//00 => 22,
|
|
38 => 23,
|
|
39 => 23,
|
|
37 => 23,
|
|
13 => 24,
|
|
11 => 25,
|
|
10 => 26,
|
|
9 => 27,
|
|
62 => 22,
|
|
67 => 28, // 67 ðàçíîå
|
|
32 => 22, // 32 èíãðèäèåíòû, ìàã.ïðåäìåòû
|
|
34 => 28 // 34 êëþ÷è, ðàçíîå
|
|
);
|
|
|
|
/* Ïîëüçîâàòåëü */
|
|
if (isset($_COOKIE['login']))
|
|
{
|
|
$u = mysql_fetch_array(mysql_query('SELECT `id`,`login`,`banned` FROM `users` WHERE `login` = "'.mysql_real_escape_string($_COOKIE['login']).'" AND `pass` = "'.mysql_real_escape_string($_COOKIE['pass']).'" LIMIT 1'));
|
|
}
|
|
/* Ïðåäìåò */
|
|
$itm = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "'.mysql_real_escape_string($_GET['id']).'" LIMIT 1'));
|
|
|
|
|
|
function timeOut($ttm) {
|
|
$out = '';
|
|
$time_still = $ttm;
|
|
$tmp = floor($time_still/2592000);
|
|
$id=0;
|
|
if ($tmp > 0)
|
|
{
|
|
$id++;
|
|
if ($id<3) {$out .= $tmp." ìåñ. ";}
|
|
$time_still = $time_still-$tmp*2592000;
|
|
}
|
|
/*
|
|
$tmp = floor($time_still/604800);
|
|
if ($tmp > 0)
|
|
{
|
|
$id++;
|
|
if ($id<3) {$out .= $tmp." íåä. ";}
|
|
$time_still = $time_still-$tmp*604800;
|
|
}
|
|
*/
|
|
$tmp = floor($time_still/86400);
|
|
if ($tmp > 0)
|
|
{
|
|
$id++;
|
|
if ($id<3) {$out .= $tmp." äí. ";}
|
|
$time_still = $time_still-$tmp*86400;
|
|
}
|
|
$tmp = floor($time_still/3600);
|
|
if ($tmp > 0)
|
|
{
|
|
$id++;
|
|
if ($id<3) {$out .= $tmp." ÷. ";}
|
|
$time_still = $time_still-$tmp*3600;
|
|
}
|
|
$tmp = floor($time_still/60);
|
|
if ($tmp > 0)
|
|
{
|
|
$id++;
|
|
if ($id<3) {$out .= $tmp." ìèí. ";}
|
|
}
|
|
if($out=='')
|
|
{
|
|
if($time_still<0)
|
|
{
|
|
$time_still = 0;
|
|
}
|
|
$out = $time_still.' ñåê.';
|
|
}
|
|
return $out;
|
|
}
|
|
|
|
function lookStats($m)
|
|
{
|
|
$ist = array();
|
|
$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;
|
|
}
|
|
|
|
if(!isset($itm['id'])) {
|
|
$itd = mysql_fetch_array(mysql_query('SELECT * FROM `items_main_data` WHERE `items_id` = "'.mysql_real_escape_string($_GET['id']).'" LIMIT 1'));
|
|
if(!isset($itd['id'])) {
|
|
$itd = array();
|
|
}else{
|
|
$itd = lookStats($itd['data']);
|
|
}
|
|
}else{
|
|
$itd = mysql_fetch_array(mysql_query('SELECT * FROM `items_main_data` WHERE `items_id` = "'.mysql_real_escape_string($itm['id']).'" LIMIT 1'));
|
|
$itd = lookStats($itd['data']);
|
|
}
|
|
|
|
$items = array(
|
|
'tr' => array('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' => array('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' => array('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')
|
|
);
|
|
|
|
$is = array('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'=>'Çàùèòà îò äðîáÿùèé óðîíà','za4'=>'Çàùèòà îò ðåæóùèé óðîíà','zm1'=>'Çàùèòà îò ìàãèè îãíÿ','zm2'=>'Çàùèòà îò ìàãèè âîçäóõà','zm3'=>'Çàùèòà îò ìàãèè âîäû','zm4'=>'Çàùèòà îò ìàãèè çåìëè','zm5'=>'Çàùèòà îò ìàãèè Ñâåòà','zm6'=>'Çàùèòà îò ìàãèè Òüìû','zm7'=>'Çàùèòà îò ñåðîé ìàãèè','pza'=>'Ïîíèæåíèå çàùèòû îò óðîíà','pzm'=>'Ïîíèæåíèå çàùèòû îò ìàãèè','pza1'=>'Ïîíèæåíèå çàùèòû îò êîëþùåãî óðîíà','min_heal_proc'=>'Ýôôåêò ëå÷åíèÿ (%)','silver'=>'Ïðåìèóì','notravma'=>'Çàùèòà îò òðàâì','yron_min'=>'Ìèíèìàëüíûé óðîí','yron_max'=>'Ìàêñèìàëüíûé óðîí','pza2'=>'Ïîíèæåíèå çàùèòû îò ðóáÿùåãî óðîíà','pza3'=>'Ïîíèæåíèå çàùèòû îò äðîáÿùåãî óðîíà','pza4'=>'Ïîíèæåíèå çàùèòû îò ðåæóùåãî óðîíà','pzm1'=>'Ïîíèæåíèå çàùèòû îò ìàãèè îãíÿ','pzm2'=>'Ïîíèæåíèå çàùèòû îò ìàãèè âîçäóõà','pzm3'=>'Ïîíèæåíèå çàùèòû îò ìàãèè âîäû','pzm4'=>'Ïîíèæåíèå çàùèòû îò ìàãèè çåìëè','pzm5'=>'Ïîíèæåíèå çàùèòû îò ìàãèè Ñâåòà','pzm6'=>'Ïîíèæåíèå çàùèòû îò ìàãèè Òüìû','pzm7'=>'Ïîíèæåíèå çàùèòû îò ñåðîé ìàãèè','speedhp'=>'Ðåãåíåðàöèÿ çäîðîâüÿ (ÍÐ)','speedmp'=>'Ðåãåíåðàöèÿ ìàíû (ÌÐ)','tya1'=>'Êîëþùèå àòàêè','tya2'=>'Ðóáÿùèå àòàêè','tya3'=>'Äðîáÿùèå àòàêè','tya4'=>'Ðåæóùèå àòàêè','tym1'=>'Îãíåííûå àòàêè','tym2'=>'Ýëåêòðè÷åñêèå àòàêè','tym3'=>'Ëåäÿíûå àòàêè','tym4'=>'Çåìëÿíûå àòàêè','tym5'=>'Àòàêè Ñâåòà','tym6'=>'Àòàêè Òüìû','tym7'=>'Ñåðûå àòàêè','min_use_mp'=>'Óìåíüøàåò ðàñõîä ìàíû','pog'=>'Ïîãëîùåíèå óðîíà','maxves'=>'Óâåëè÷èâàåò ðþêçàê','zona'=>'Äîïîëíèòåëüíàÿ çîíà àòàêè','zaproc'=>'Áëîêèðîâêà ôèçè÷åñêîãî Óðîíà(%)','zmproc'=>'Áëîêèðîâêà ìàãè÷åñêîãî Óðîíà (%)','speed_dungeon'=>'Ñêîðîñòü ïåðåìåùåíèÿ ïî ïåùåðàì','free_stats'=>'Ñâîáîäíûõ ðàñïðåäåëåíèé','antm3'=>'Ìô. ïðîòèâ ìîùíîñòè êðèò. óäàðà');
|
|
|
|
if( !file_exists('.../img.new-combats.com/i/encicl/pict_'.$rz[$rt[$itm['type']]][0].'.jpg') == true ) {
|
|
//subject
|
|
$rz[$rt[$itm['type']]][0] = 'subject';
|
|
}
|
|
|
|
if( !isset($rz[$rt[$itm['type']]][1])) {
|
|
$rz[$rt[$itm['type']]][1] = 'Ïðî÷èå ïðåäìåòû';
|
|
}
|
|
|
|
?>
|
|
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
|
|
<title>Áîéöîâñêèé êëóá | Áèáëèîòåêà <? if(isset($itm['id'])) { ?> | <?=$rz[$rt[$itm['type']]][1]?> | <?=$itm['name']?><? } ?></title>
|
|
<link href="/main1.css" rel="stylesheet" type="text/css">
|
|
<style type="text/css">
|
|
.style6 { color: #DFD3A3;
|
|
font-size: 9px;
|
|
}
|
|
.inup3 {
|
|
border: 1px dashed #D3CAA0;
|
|
font-size: 12px;
|
|
|
|
}
|
|
.inup3 {
|
|
border: 1px dashed #D3CAA0;
|
|
font-size: 12px;
|
|
|
|
}
|
|
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>
|
|
</head>
|
|
<body bgcolor="#000000" topmargin=0 leftmargin=0 marginheight=0 marginwidth=0>
|
|
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
|
<tr valign=top>
|
|
<td><table width="100%" height="135" border="0" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td background="https://new-combats.com/forum_script/img/line_capitalcity.jpg" scope="col" align=center><img style="display:block" src="https://new-combats.com/inx/newlogo2.jpg" width="924" height="135" border=0></td>
|
|
</tr>
|
|
</table></td>
|
|
</tr>
|
|
</table>
|
|
<? if(isset($itm['id'])) { ?>
|
|
<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>
|
|
<td width="29" rowspan=2 background="https://new-combats.com/forum_script/img/leftground.jpg"><img src="https://img.new-combats.com/i/encicl/pictlr_<?=$rz[$rt[$itm['type']]][0]?>.jpg" width="29" height="256"></td>
|
|
<td width="118" align="left"><img id="imleft" src="https://img.new-combats.com/i/encicl/pictl_<?=$rz[$rt[$itm['type']]][0]?>.jpg" width="118" height="257"><BR>
|
|
</td>
|
|
<td rowspan=2 align="left">
|
|
<p><b>»</b> <a href="https://new-combats.com/item/">Ïðåäìåòû</a> / <?=$rz[$rt[$itm['type']]][1]?> / <b><i><?=$itm['name']?></i></b>
|
|
<h2><?=$itm['name']?></h2>
|
|
<img src="https://img.new-combats.com/i/encicl/ln3.jpg" width="400" height="1">
|
|
</p>
|
|
<? if( $img3dShow==false && (file_exists('../img.new-combats.com/i/big/3d'.str_replace('.gif','',str_replace('.png','',$itm['img'])).'.jpg') == true) OR $img3dShow==true ) { ?>
|
|
<div align="center">
|
|
<table width="504" border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td align="left" width="12" height="10"><img style="display:block" src="https://img.new-combats.com/i/encicl/ll12_30.gif" width="12" height="10"></td>
|
|
<td width="100%" background="https://img.new-combats.com/i/encicl/ram12_34.gif"></td>
|
|
<td width="12" height="10" align="right"><img style="display:block" src="https://img.new-combats.com/i/encicl/ll12_30.gif" width="12" height="10"></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="12" background="https://img.new-combats.com/i/encicl/line_left_13.gif"> </td>
|
|
<td width="480"><img style="display:block" src="<? if( file_exists('../img.new-combats.com/i/big/3d'.str_replace('.gif','',str_replace('.png','',$itm['img'])).'.jpg') == true ) { ?>https://img.new-combats.com/i/big/3d<?=str_replace('.gif','',str_replace('.png','',$itm['img']))?>.jpg<? }else{ ?>https://img.new-combats.com/i/big/back.jpg<? } ?>" alt="" width="480" height="360" border=1 id="bigim"></td>
|
|
<td width="12" background="https://img.new-combats.com/i/encicl/line_right_13.gif"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" width="12" height="10"><img style="display:block" src="https://img.new-combats.com/i/encicl/ll12_30.gif" width="12" height="10"></td>
|
|
<td width="100%" style="background-image:url(https://img.new-combats.com/i/encicl/ram12_34down.gif); background-position:bottom"></td>
|
|
<td width="12" align="right"><img style="display:block" src="https://img.new-combats.com/i/encicl/ll12_30.gif" width="12" height="10"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<? } ?>
|
|
<p align="center"> </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>
|
|
<IMG SRC="https://img.new-combats.com/i/align/align0.gif" WIDTH=12 HEIGHT=15>
|
|
<? $crd='';
|
|
if($admin == 1) {
|
|
$crd = '<small><a href="javascript:window.open(\'https://new-combats.com/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> ';
|
|
echo $crd;
|
|
}
|
|
|
|
if($itm['massa']>0)
|
|
{
|
|
echo '(Ìàññà: '.$itm['massa'].') ';
|
|
}
|
|
if(isset($itd['art']) && $itd['art'] > 0)
|
|
{
|
|
echo '<IMG SRC=https://img.new-combats.com/i/artefact.gif WIDTH=18 HEIGHT=16 ALT="Àðòåôàêòíàÿ âåùü"> ';
|
|
}
|
|
|
|
if(isset($po['sudba']) && $po['sudba'] > 0)
|
|
{
|
|
echo '<img title="Ýòîò ïðåäìåò áóäåò ñâÿçàí îáùåé ñóäüáîé ñ ïåðâûì, êòî íàäåíåò åãî. Íèêòî äðóãîé íå ñìîæåò åãî èñïîëüçîâàòü." src="https://img.new-combats.com/i/destiny0.gif"> ';
|
|
}
|
|
|
|
if($itm['price1'] > 0) {
|
|
echo '<br><b>Öåíà: '.$itm['price1'].' êð.</b>';
|
|
}
|
|
|
|
if($itm['price2'] > 0) {
|
|
echo '<br><b style="color:SaddleBrown ">Öåíà: '.$itm['price2'].' åêð.</b>';
|
|
}
|
|
|
|
if($itm['iznosMAXi'] >= 999999999) {
|
|
echo '<br>Äîëãîâå÷íîñòü: <font color="brown">íåðàçðóøèìî</font >';
|
|
}elseif($itm['iznosMAXi'] > 0) {
|
|
echo '<br>Äîëãîâå÷íîñòü: 0/'.$itm['iznosMAXi'].'';
|
|
}
|
|
|
|
|
|
//Ñðîê ãîäíîñòè ïðåäìåòà
|
|
if(isset($itd['srok']) && $itd['srok'] > 0)
|
|
{
|
|
$itm['srok'] = $itd['srok'];
|
|
}
|
|
if($itm['srok'] > 0)
|
|
{
|
|
echo '<br>Ñðîê ãîäíîñòè: '.timeOut($itm['srok']);
|
|
}
|
|
|
|
//Ïðîäîëæèòåëüíîñòü äåéñòâèÿ ìàãèè:
|
|
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)
|
|
{
|
|
echo '<br>Ïðîäîëæèòåëüíîñòü äåéñòâèÿ: '.timeOut($efi['actionTime']);
|
|
}
|
|
}
|
|
|
|
|
|
/* òðåáîâàíèÿ */
|
|
$tr = '';
|
|
|
|
$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++;
|
|
}
|
|
|
|
if($tr != '') {
|
|
echo '<br><B>Òðåáóåòñÿ ìèíèìàëüíîå:</B>'.$tr;
|
|
}
|
|
|
|
/* äåéñòâóåò íà */
|
|
$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++;
|
|
}
|
|
|
|
//äåéñòâóåò íà (áðîíÿ)
|
|
$i = 1; $bn = array(1=>'ãîëîâû',2=>'êîðïóñà',3=>'ïîÿñà',4=>'íîã');
|
|
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 = '';
|
|
}
|
|
$tr .= '<br>• Áðîíÿ '.$bn[$i].': '.$z.''.$itd['add_mab'.$i];
|
|
}else{
|
|
$tr .= '<br>• Áðîíÿ '.$bn[$i].': '.$itd['add_mib'.$i].'-'.$itd['add_mab'.$i];
|
|
}
|
|
}
|
|
$i++;
|
|
}
|
|
if($tr != '') {
|
|
echo '<br><B>Äåéñòâóåò íà:</B>'.$tr;
|
|
}
|
|
/* ñâîéñòâà ïðåäìåòà */
|
|
$tr = '';
|
|
|
|
if(isset($itd['sv_yron_min'],$itd['sv_yron_max']))
|
|
{
|
|
$tr .= '<br>• Óðîí: '.$itd['sv_yron_min'].' - '.$itd['sv_yron_max'];
|
|
}
|
|
$x = 0;
|
|
while($x<count($t))
|
|
{
|
|
$n = $t[$x];
|
|
if(isset($itd['sv_'.$n]))
|
|
{
|
|
$z = '+';
|
|
if($itd['sv_'.$n]<0)
|
|
{
|
|
$z = '';
|
|
}
|
|
$tr .= '<br>• '.$is[$n].': '.$z.''.$itd['sv_'.$n];
|
|
}
|
|
$x++;
|
|
}
|
|
if($itm['2too']==1)
|
|
{
|
|
$tr .= '<br>• Âòîðîå îðóæèå';
|
|
}
|
|
if($itm['2h']==1)
|
|
{
|
|
$tr .= '<br>• Äâóðó÷íîå îðóæèå';
|
|
}
|
|
if(isset($itd['zonb']))
|
|
{
|
|
$tr .= '<br>•Çîíû áëîêèðîâàíèÿ: ';
|
|
if($itd['zonb']>0)
|
|
{
|
|
$x = 1;
|
|
while($x<=$itd['zonb'])
|
|
{
|
|
$tr .= '+';
|
|
$x++;
|
|
}
|
|
}else{
|
|
$tr .= '—';
|
|
}
|
|
}
|
|
|
|
if($tr != '') {
|
|
echo '<br><B>Ñâîéñòâà ïðåäìåòà:</B>'.$tr;
|
|
}
|
|
|
|
/* îñîáåííîñòè */
|
|
$tr = '';
|
|
|
|
$x = 1;
|
|
while($x<=4)
|
|
{
|
|
if(isset($itd['tya'.$x]) && $itd['tya'.$x]>0)
|
|
{
|
|
$tyc = 'Íè÷òîæíî ðåäêè';
|
|
if($itd['tya'.$x]>9)
|
|
{
|
|
$tyc = 'Ðåäêè';
|
|
}
|
|
if($itd['tya'.$x]>24)
|
|
{
|
|
$tyc = 'Ìàëû';
|
|
}
|
|
if($itd['tya'.$x]>49)
|
|
{
|
|
$tyc = 'Âðåìåíàìè';
|
|
}
|
|
if($itd['tya'.$x]>74)
|
|
{
|
|
$tyc = 'Ðåãóëÿðíû';
|
|
}
|
|
if($itd['tya'.$x]>89)
|
|
{
|
|
$tyc = '×àñòû';
|
|
}
|
|
if($itd['tya'.$x]>=100)
|
|
{
|
|
$tyc = 'Âñåãäà';
|
|
}
|
|
$tr .= '<br>• '.$is['tya'.$x].': '.$tyc;
|
|
}
|
|
$x++;
|
|
}
|
|
$x = 1;
|
|
while($x<=7)
|
|
{
|
|
if(isset($itd['tym'.$x]) && $itd['tym'.$x]>0)
|
|
{
|
|
$tyc = 'Íè÷òîæíî ðåäêè';
|
|
if($itd['tym'.$x]>9)
|
|
{
|
|
$tyc = 'Ðåäêè';
|
|
}
|
|
if($itd['tym'.$x]>24)
|
|
{
|
|
$tyc = 'Ìàëû';
|
|
}
|
|
if($itd['tym'.$x]>49)
|
|
{
|
|
$tyc = 'Âðåìåíàìè';
|
|
}
|
|
if($itd['tym'.$x]>74)
|
|
{
|
|
$tyc = 'Ðåãóëÿðíû';
|
|
}
|
|
if($itd['tym'.$x]>89)
|
|
{
|
|
$tyc = '×àñòû';
|
|
}
|
|
if($itd['tym'.$x]>=100)
|
|
{
|
|
$tyc = 'Âñåãäà';
|
|
}
|
|
$tr .= '<br>• '.$is['tym'.$x].': '.$tyc;
|
|
}
|
|
$x++;
|
|
}
|
|
$x = 1;
|
|
while($x <= 4)
|
|
{
|
|
if(isset($itd['add_oza'.$x]) && $itd['add_oza'.$x]>0)
|
|
{
|
|
$tyc = 'Ñëàáàÿ';
|
|
if($itd['add_oza'.$x] == 4)
|
|
{
|
|
$tyc = 'Ïîñðåäñòâåííàÿ';
|
|
}
|
|
if($itd['add_oza'.$x] == 2)
|
|
{
|
|
$tyc = 'Íîðìàëüíàÿ';
|
|
}
|
|
if($itd['add_oza'.$x] == 3)
|
|
{
|
|
$tyc = 'Õîðîøàÿ';
|
|
}
|
|
if($itd['add_oza'.$x] == 5)
|
|
{
|
|
$tyc = 'Âåëèêîëåïíàÿ';
|
|
}
|
|
if($tyc != '') {
|
|
$tr .= '<br>• '.$is['oza'.$x].': '.$tyc;
|
|
}
|
|
}
|
|
$x++;
|
|
}
|
|
if(isset($itd['free_stats']) && $itd['free_stats']>0){
|
|
echo '<br><b>Ñâîáîäíûå ðàñïðåäåëåíèÿ:</b><br>• Âîçìîæíûõ ðàñïðåäåëåíèé: '.$itd['free_stats'];
|
|
}
|
|
if($tr != '') {
|
|
echo '<br><B>Îñîáåííîñòè:</B>'.$tr;
|
|
}
|
|
$is2 = '';
|
|
|
|
if(isset($itd['complect']))
|
|
{
|
|
$is2 .= '<br><i>Äîïîëíèòåëüíàÿ èíôîðìàöèÿ:</i>';
|
|
}
|
|
if(isset($itd['complect']))
|
|
{
|
|
//íå îòîáðàæàåòñÿ
|
|
$com1 = array('name'=>'Íåèçâåñòíûé Êîìïëåêò','x'=>0,'text'=>'');
|
|
$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>: ';
|
|
//äåéñòâèå êîìïëåêòà
|
|
$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']++;
|
|
}
|
|
$is2 .= '<br>• ×àñòü êîìïëåêòà: <b>'.$com1['name'].'</b><br><small>';
|
|
$is2 .= $com1['text'];
|
|
$is2 .= '</small>';
|
|
}
|
|
|
|
$is2 .= '<small style="font-size:10px;">';
|
|
|
|
if($itm['info']!='')
|
|
{
|
|
$is2 .= '<div><b>Îïèñàíèå:</b></div><div>'.$itm['info'].'</div>';
|
|
}
|
|
|
|
if(isset($itd['info']) && $itd['info']!='')
|
|
{
|
|
$is2 .= '<div>'.$itd['info'].'</div>';
|
|
}
|
|
|
|
if(isset($itm['use_text']) && $itm['max_text']-$itm['use_text'] > 0) {
|
|
$is2 .= '<div>Êîëè÷åñòâî ñèìâîëîâ: '.($itm['max_text']-$itm['use_text']).'</div>';
|
|
}
|
|
|
|
if(isset($itd['noremont']) && $itd['noremont']>0)
|
|
{
|
|
$is2 .= '<div style="color:brown;">Ïðåäìåò íå ïîäëåæèò ðåìîíòó</div>';
|
|
}
|
|
|
|
if(isset($itd['frompisher']) && $itd['frompisher']>0)
|
|
{
|
|
$is2 .= '<div style="color:brown;">Ïðåäìåò èç ïîäçåìåëüÿ</div>';
|
|
}
|
|
|
|
if(isset($itm['dn_delete']) && $itm['dn_delete']>0)
|
|
{
|
|
$is2 .= '<div style="color:brown;">Ïðåäìåò áóäåò óäàëåí ïðè âûõîäå èç ïîäçåìåëüÿ</div>';
|
|
}
|
|
|
|
$is2 .= '</small>';
|
|
|
|
echo $is2;
|
|
|
|
?>
|
|
<BR>
|
|
|
|
|
|
|
|
<? /*
|
|
|
|
<B>Òðåáóåòñÿ ìèíèìàëüíîå:</B><BR>• Óðîâåíü: 4<BR>• Âûíîñëèâîñòü: 16<BR>• Ñèëà: 16<BR>
|
|
<B>Äåéñòâóåò íà:</B><BR>• Ìô. óâåðòûâàíèÿ (%): +30<BR>• Èíòóèöèÿ: +3<BR>• Ñèëà: +5<BR>
|
|
<B>Ñâîéñòâà ïðåäìåòà:</B><BR>• Óðîí: 8 - 18<BR>• Ìô. ïðîòèâ óâåðòûâàíèÿ (%): 30<BR>• Ìô. êðèòè÷åñêîãî óäàðà (%): 50<BR>• Ìàñòåðñòâî âëàäåíèÿ ìå÷àìè: 2<BR>• Çîíû áëîêèðîâàíèÿ: +<BR>
|
|
|
|
<B>Îñîáåííîñòè:</B><BR>• Êîëþùèå àòàêè: Ìàëû<BR>• Ðóáÿùèå àòàêè: Âðåìåíàìè<BR>• Äðîáÿùèå àòàêè: Ðåäêè<BR>• Ðåæóùèå àòàêè: Ìàëû<BR>
|
|
|
|
|
|
|
|
<small>Âîçìîæíî óñèëåíèå äî 10ãî óðîâíÿ</small><BR>
|
|
|
|
*/
|
|
?>
|
|
|
|
</td>
|
|
<td align="center" valign="top" style='padding: 0,2,0,5'>
|
|
<a title="<?=$itm['name']?>" href="/item/<?=$itm['id']?>"><SPAN style='background-color: #E0E0E0'><img src="https://img.new-combats.com/i/items/<?=$itm['img']?>" alt="<?=$itm['name']?>" name="image" border="0"></SPAN></a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
</tr>
|
|
</table>
|
|
<p>
|
|
<!-- End of text -->
|
|
<td style='padding-left: 3' align=right><img id="imright" height=144 src="https://img.new-combats.com/i/encicl/pict_<?=$rz[$rt[$itm['type']]][0]?>.jpg" width=139 border=0></td>
|
|
<td valign=top background="https://new-combats.com/forum_script/img/rightground.jpg"> </td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td></td>
|
|
<td valign=center style="padding-bottom:50" align="right"><IMG height=236 src="https://img.new-combats.com/i/encicl/pictr_<?=$rz[$rt[$itm['type']]][0]?>.jpg" width=128 border=0></td>
|
|
<td width="23" valign=top background="https://new-combats.com/forum_script/img/rightground.jpg"> </td>
|
|
</tr>
|
|
</table>
|
|
<? }else{
|
|
|
|
$rv = explode('i',$url[2]);
|
|
$rv = (int)$rv[1];
|
|
//
|
|
$rname = 'Áèáëèîòåêà ïðåäìåòîâ Áîéöîâñêîãî Êëóáà';
|
|
$html = '';
|
|
//
|
|
if( $rv >= 0 ) {
|
|
|
|
if($rv == 1) {
|
|
//Êîñòûëè
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 26');
|
|
}elseif($rv == 3) {
|
|
//Ñâèòêè
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 29 AND `name` NOT LIKE "%Êðèñòàëëèçàòîð%"');
|
|
}elseif($rv == 2) {
|
|
//Ýëèêñèðû
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 30');
|
|
}elseif($rv == 6) {
|
|
//Áðîíÿ òÿæåëàÿ
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 6');
|
|
}elseif($rv == 32) {
|
|
//Áðîíÿ ëåãêàÿ
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 5');
|
|
}elseif($rv == 7) {
|
|
//Âåíêè íà ãîëîâó
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 2');
|
|
}elseif($rv == 8) {
|
|
//Íàðó÷è
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 3');
|
|
}elseif($rv == 9) {
|
|
//Áîòèíêè
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 15');
|
|
}elseif($rv == 10) {
|
|
//Ïåð÷àòêè
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 12');
|
|
}elseif($rv == 11) {
|
|
//Ïëàùè
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 7');
|
|
}elseif($rv == 12) {
|
|
//Ïîíîæè
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 14');
|
|
}elseif($rv == 13) {
|
|
//Ïîÿñà
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 8');
|
|
}elseif($rv == 14) {
|
|
//Ðóáàõè
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 4');
|
|
}elseif($rv == 15) {
|
|
//Øëåìà
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 1');
|
|
}elseif($rv == 16) {
|
|
//Åëêè
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `name` LIKE "%Åëêà%"');
|
|
}elseif($rv == 17) {
|
|
//Äóáèíû
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 20');
|
|
}elseif($rv == 18) {
|
|
//Êèíæàëû
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 18');
|
|
}elseif($rv == 19) {
|
|
//Ìå÷è
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 21');
|
|
}elseif($rv == 20) {
|
|
//Òîïîðû
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 19');
|
|
}elseif($rv == 21) {
|
|
//Ïîñîõè
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 22');
|
|
}elseif($rv == 22) {
|
|
//Öâåòû
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 32 AND `img` LIKE "f_%"');
|
|
}elseif($rv == 23) {
|
|
//Êîìïîíåíòû
|
|
//$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 2');
|
|
}elseif($rv == 24) {
|
|
//Ìàã.ïðåäìåòû
|
|
//$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 2');
|
|
}elseif($rv == 25) {
|
|
//Ïîäàðêè
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 38 OR `type` = 63');
|
|
}elseif($rv == 26) {
|
|
//Ðóíû
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 31');
|
|
}elseif($rv == 27) {
|
|
//Ïðî÷èå
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 32');
|
|
}elseif($rv == 28) {
|
|
//Ùèòû
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 13');
|
|
}elseif($rv == 29) {
|
|
//Êîëüöà
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 11');
|
|
}elseif($rv == 30) {
|
|
//Îæåðåëüÿ
|
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `type` = 10');
|
|
}elseif($rv == 31) {
|
|
//Ñåðüãè
|
|
$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>
|
|
<td width="29" rowspan=2 background="https://new-combats.com/forum_script/img/leftground.jpg"><img src="https://img.new-combats.com/i/encicl/pictlr_subject.jpg" width="29" height="256"></td>
|
|
<td width="218" height="257" align="left"><img id="imleft2" src="https://img.new-combats.com/i/encicl/pictl_subject.jpg" width="118" height="257"><BR></td>
|
|
<td rowspan=2 align="left"><p><b>»</b> <a href="https://new-combats.com/item/i1">Ïðåäìåòû</a> /
|
|
<h2><?=$rname?></h2>
|
|
<img src="https://img.new-combats.com/i/encicl/ln3.jpg" width="400" height="1">
|
|
</p>
|
|
<?
|
|
if( $rv == 0 ) {
|
|
echo 'Âûáåðèòå îäèí èç ðàçäåëîâ ñëåâà, ÷òîáû îòîáðàçèòü ïðåäìåòû<br>';
|
|
}else{
|
|
|
|
|
|
while( $itm = mysql_fetch_array($sp) ) {
|
|
|
|
//if(!isset($itm['id'])) {
|
|
$itd = mysql_fetch_array(mysql_query('SELECT * FROM `items_main_data` WHERE `items_id` = "'.mysql_real_escape_string($itm['id']).'" LIMIT 1'));
|
|
$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> <IMG SRC="https://img.new-combats.com/i/align/align0.gif" WIDTH=12 HEIGHT=15>
|
|
<?
|
|
if($admin == 1) {
|
|
$crd = '<small><a href="javascript:window.open(\'https://new-combats.com/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> ';
|
|
echo $crd;
|
|
}
|
|
if($itm['massa']>0) {
|
|
echo '(Ìàññà: '.$itm['massa'].') ';
|
|
}
|
|
if(isset($itd['art']) && $itd['art'] > 0)
|
|
{
|
|
echo '<IMG SRC=https://img.new-combats.com/i/artefact.gif WIDTH=18 HEIGHT=16 ALT="Àðòåôàêòíàÿ âåùü"> ';
|
|
}
|
|
|
|
if(isset($po['sudba']))
|
|
{
|
|
echo '<img title="Ýòîò ïðåäìåò áóäåò ñâÿçàí îáùåé ñóäüáîé ñ ïåðâûì, êòî íàäåíåò åãî. Íèêòî äðóãîé íå ñìîæåò åãî èñïîëüçîâàòü." src="https://img.new-combats.com/i/destiny0.gif"> ';
|
|
}
|
|
|
|
if($itm['price1'] > 0) {
|
|
echo '<br><b>Öåíà: '.$itm['price1'].' êð.</b>';
|
|
}
|
|
|
|
if($itm['price2'] > 0) {
|
|
echo '<br><b style="color:SaddleBrown ">Öåíà: '.$itm['price2'].' åêð.</b>';
|
|
}
|
|
|
|
if($itm['iznosMAXi'] >= 999999999) {
|
|
echo '<br>Äîëãîâå÷íîñòü: <font color="brown">íåðàçðóøèìî</font >';
|
|
}elseif($itm['iznosMAXi'] > 0) {
|
|
echo '<br>Äîëãîâå÷íîñòü: 0/'.$itm['iznosMAXi'].'';
|
|
}
|
|
|
|
|
|
//Ñðîê ãîäíîñòè ïðåäìåòà
|
|
if(isset($itd['srok']) && $itd['srok'] > 0)
|
|
{
|
|
$itm['srok'] = $itd['srok'];
|
|
}
|
|
if($itm['srok'] > 0)
|
|
{
|
|
echo '<br>Ñðîê ãîäíîñòè: '.timeOut($itm['srok']);
|
|
}
|
|
|
|
//Ïðîäîëæèòåëüíîñòü äåéñòâèÿ ìàãèè:
|
|
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)
|
|
{
|
|
echo '<br>Ïðîäîëæèòåëüíîñòü äåéñòâèÿ: '.timeOut($efi['actionTime']);
|
|
}
|
|
}
|
|
|
|
|
|
/* òðåáîâàíèÿ */
|
|
$tr = '';
|
|
|
|
$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++;
|
|
}
|
|
|
|
if($tr != '') {
|
|
echo '<br><B>Òðåáóåòñÿ ìèíèìàëüíîå:</B>'.$tr;
|
|
}
|
|
|
|
/* äåéñòâóåò íà */
|
|
$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++;
|
|
}
|
|
|
|
//äåéñòâóåò íà (áðîíÿ)
|
|
$i = 1; $bn = array(1=>'ãîëîâû',2=>'êîðïóñà',3=>'ïîÿñà',4=>'íîã');
|
|
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 = '';
|
|
}
|
|
$tr .= '<br>• Áðîíÿ '.$bn[$i].': '.$z.''.$itd['add_mab'.$i];
|
|
}else{
|
|
$tr .= '<br>• Áðîíÿ '.$bn[$i].': '.$itd['add_mib'.$i].'-'.$itd['add_mab'.$i];
|
|
}
|
|
}
|
|
$i++;
|
|
}
|
|
if($tr != '') {
|
|
echo '<br><B>Äåéñòâóåò íà:</B>'.$tr;
|
|
}
|
|
/* ñâîéñòâà ïðåäìåòà */
|
|
$tr = '';
|
|
|
|
if(isset($itd['sv_yron_min'],$itd['sv_yron_max']))
|
|
{
|
|
$tr .= '<br>• Óðîí: '.$itd['sv_yron_min'].' - '.$itd['sv_yron_max'];
|
|
}
|
|
$x = 0;
|
|
while($x<count($t))
|
|
{
|
|
$n = $t[$x];
|
|
if(isset($itd['sv_'.$n]))
|
|
{
|
|
$z = '+';
|
|
if($itd['sv_'.$n]<0)
|
|
{
|
|
$z = '';
|
|
}
|
|
$tr .= '<br>• '.$is[$n].': '.$z.''.$itd['sv_'.$n];
|
|
}
|
|
$x++;
|
|
}
|
|
if($itm['2too']==1)
|
|
{
|
|
$tr .= '<br>• Âòîðîå îðóæèå';
|
|
}
|
|
if($itm['2h']==1)
|
|
{
|
|
$tr .= '<br>• Äâóðó÷íîå îðóæèå';
|
|
}
|
|
if(isset($itd['zonb']))
|
|
{
|
|
$tr .= '<br>• Çîíû áëîêèðîâàíèÿ: ';
|
|
if($itd['zonb']>0)
|
|
{
|
|
$x = 1;
|
|
while($x<=$itd['zonb'])
|
|
{
|
|
$tr .= '+';
|
|
$x++;
|
|
}
|
|
}else{
|
|
$tr .= '—';
|
|
}
|
|
}
|
|
|
|
if($tr != '') {
|
|
echo '<br><B>Ñâîéñòâà ïðåäìåòà:</B>'.$tr;
|
|
}
|
|
|
|
/* îñîáåííîñòè */
|
|
$tr = '';
|
|
|
|
$x = 1;
|
|
while($x<=4)
|
|
{
|
|
if(isset($itd['tya'.$x]) && $itd['tya'.$x]>0)
|
|
{
|
|
$tyc = 'Íè÷òîæíî ðåäêè';
|
|
if($itd['tya'.$x]>6)
|
|
{
|
|
$tyc = 'Ðåäêè';
|
|
}
|
|
if($itd['tya'.$x]>14)
|
|
{
|
|
$tyc = 'Ìàëû';
|
|
}
|
|
if($itd['tya'.$x]>34)
|
|
{
|
|
$tyc = 'Âðåìåíàìè';
|
|
}
|
|
if($itd['tya'.$x]>79)
|
|
{
|
|
$tyc = 'Ðåãóëÿðíû';
|
|
}
|
|
if($itd['tya'.$x]>89)
|
|
{
|
|
$tyc = '×àñòû';
|
|
}
|
|
if($itd['tya'.$x]>=100)
|
|
{
|
|
$tyc = 'Âñåãäà';
|
|
}
|
|
$tr .= '<br>• '.$is['tya'.$x].': '.$tyc;
|
|
}
|
|
$x++;
|
|
}
|
|
$x = 1;
|
|
while($x<=7)
|
|
{
|
|
if(isset($itd['tym'.$x]) && $itd['tym'.$x]>0)
|
|
{
|
|
$tyc = 'Íè÷òîæíî ðåäêè';
|
|
if($itd['tym'.$x]>6)
|
|
{
|
|
$tyc = 'Ðåäêè';
|
|
}
|
|
if($itd['tym'.$x]>14)
|
|
{
|
|
$tyc = 'Ìàëû';
|
|
}
|
|
if($itd['tym'.$x]>34)
|
|
{
|
|
$tyc = 'Âðåìåíàìè';
|
|
}
|
|
if($itd['tym'.$x]>79)
|
|
{
|
|
$tyc = 'Ðåãóëÿðíû';
|
|
}
|
|
if($itd['tym'.$x]>89)
|
|
{
|
|
$tyc = '×àñòû';
|
|
}
|
|
if($itd['tym'.$x]>=100)
|
|
{
|
|
$tyc = 'Âñåãäà';
|
|
}
|
|
$tr .= '<br>• '.$is['tym'.$x].': '.$tyc;
|
|
}
|
|
$x++;
|
|
}
|
|
$x = 1;
|
|
while($x <= 4)
|
|
{
|
|
if(isset($itd['add_oza'.$x]) && $itd['add_oza'.$x]>0)
|
|
{
|
|
$tyc = 'Ñëàáàÿ';
|
|
if($itd['add_oza'.$x] == 4)
|
|
{
|
|
$tyc = 'Ïîñðåäñòâåííàÿ';
|
|
}
|
|
if($itd['add_oza'.$x] == 2)
|
|
{
|
|
$tyc = 'Íîðìàëüíàÿ';
|
|
}
|
|
if($itd['add_oza'.$x] == 3)
|
|
{
|
|
$tyc = 'Õîðîøàÿ';
|
|
}
|
|
if($itd['add_oza'.$x] == 5)
|
|
{
|
|
$tyc = 'Âåëèêîëåïíàÿ';
|
|
}
|
|
if($tyc != '') {
|
|
$tr .= '<br>• '.$is['oza'.$x].': '.$tyc;
|
|
}
|
|
}
|
|
$x++;
|
|
}
|
|
if(isset($itd['free_stats']) && $itd['free_stats']>0){
|
|
echo '<br><b>Ñâîáîäíûå ðàñïðåäåëåíèÿ:</b><br>• Âîçìîæíûõ ðàñïðåäåëåíèé: '.$itd['free_stats'];
|
|
}
|
|
if($tr != '') {
|
|
echo '<br><B>Îñîáåííîñòè:</B>'.$tr;
|
|
}
|
|
$is2 = '';
|
|
|
|
if(isset($itd['complect']))
|
|
{
|
|
$is2 .= '<br><i>Äîïîëíèòåëüíàÿ èíôîðìàöèÿ:</i>';
|
|
}
|
|
if(isset($itd['complect']))
|
|
{
|
|
//íå îòîáðàæàåòñÿ
|
|
$com1 = array('name'=>'Íåèçâåñòíûé Êîìïëåêò','x'=>0,'text'=>'');
|
|
$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>: ';
|
|
//äåéñòâèå êîìïëåêòà
|
|
$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']++;
|
|
}
|
|
$is2 .= '<br>• ×àñòü êîìïëåêòà: <b>'.$com1['name'].'</b><br><small>';
|
|
$is2 .= $com1['text'];
|
|
$is2 .= '</small>';
|
|
}
|
|
|
|
$is2 .= '<small style="font-size:10px;">';
|
|
|
|
if($itm['info']!='')
|
|
{
|
|
$is2 .= '<div><b>Îïèñàíèå:</b></div><div>'.$itm['info'].'</div>';
|
|
}
|
|
|
|
if(isset($itd['info']) && $itd['info']!='')
|
|
{
|
|
$is2 .= '<div>'.$itd['info'].'</div>';
|
|
}
|
|
|
|
if(isset($itm['use_text']) && $itm['max_text']-$itm['use_text'] > 0) {
|
|
$is2 .= '<div>Êîëè÷åñòâî ñèìâîëîâ: '.($itm['max_text']-$itm['use_text']).'</div>';
|
|
}
|
|
|
|
if(isset($itd['noremont']) && $itd['noremont']>0)
|
|
{
|
|
$is2 .= '<div style="color:brown;">Ïðåäìåò íå ïîäëåæèò ðåìîíòó</div>';
|
|
}
|
|
|
|
if(isset($itd['frompisher']) && $itd['frompisher']>0)
|
|
{
|
|
$is2 .= '<div style="color:brown;">Ïðåäìåò èç ïîäçåìåëüÿ</div>';
|
|
}
|
|
|
|
if(isset($itm['dn_delete']) && $itm['dn_delete']>0)
|
|
{
|
|
$is2 .= '<div style="color:brown;">Ïðåäìåò áóäåò óäàëåí ïðè âûõîäå èç ïîäçåìåëüÿ</div>';
|
|
}
|
|
|
|
$is2 .= '</small>';
|
|
|
|
echo $is2;
|
|
|
|
?>
|
|
<BR>
|
|
<? /*
|
|
|
|
<B>Òðåáóåòñÿ ìèíèìàëüíîå:</B><BR>• Óðîâåíü: 4<BR>• Âûíîñëèâîñòü: 16<BR>• Ñèëà: 16<BR>
|
|
<B>Äåéñòâóåò íà:</B><BR>• Ìô. óâåðòûâàíèÿ (%): +30<BR>• Èíòóèöèÿ: +3<BR>• Ñèëà: +5<BR>
|
|
<B>Ñâîéñòâà ïðåäìåòà:</B><BR>• Óðîí: 8 - 18<BR>• Ìô. ïðîòèâ óâåðòûâàíèÿ (%): 30<BR>• Ìô. êðèòè÷åñêîãî óäàðà (%): 50<BR>• Ìàñòåðñòâî âëàäåíèÿ ìå÷àìè: 2<BR>• Çîíû áëîêèðîâàíèÿ: +<BR>
|
|
|
|
<B>Îñîáåííîñòè:</B><BR>• Êîëþùèå àòàêè: Ìàëû<BR>• Ðóáÿùèå àòàêè: Âðåìåíàìè<BR>• Äðîáÿùèå àòàêè: Ðåäêè<BR>• Ðåæóùèå àòàêè: Ìàëû<BR>
|
|
|
|
|
|
|
|
<small>Âîçìîæíî óñèëåíèå äî 10ãî óðîâíÿ</small><BR>
|
|
|
|
*/
|
|
?></td>
|
|
<td align="center" valign="top" style='padding: 0,2,0,5'><a title="<?=$itm['name']?>" href="/item/<?=$itm['id']?>"><SPAN style='background-color: #E0E0E0'><img src="https://img.new-combats.com/i/items/<?=$itm['img']?>" alt="<?=$itm['name']?>" name="image" border="0"></SPAN></a></td>
|
|
</tr>
|
|
</table>
|
|
</tr>
|
|
</table>
|
|
<?
|
|
}
|
|
}
|
|
?>
|
|
<p align="center"> </p>
|
|
<BR>
|
|
<p>
|
|
<!-- End of text -->
|
|
<td style='padding-left: 3' align=right><img id="imright2" height=144 src="https://img.new-combats.com/i/encicl/pict_subject.jpg" width=139 border=0></td>
|
|
<td valign=top background="https://new-combats.com/forum_script/img/rightground.jpg"> </td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td valign="top">
|
|
|
|
<!-- -->
|
|
|
|
<b><span style="COLOR: #8f0000; FONT-FAMILY: Arial; FONT-SIZE: 11pt;">Ïðåäìåòû</span></b><br>
|
|
<table width="100%" height="11" border="0" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td width="12" align="left"><img src="https://img.new-combats.com/ram12_33.gif" width="12" height="11"></td>
|
|
<td style="background-image:url(https://img.new-combats.com/ram12_34.gif); background-repeat:repeat-x; background-position:0 2px;"></td>
|
|
<td width="13" align="right"><img src="https://img.new-combats.com/ram12_35.gif" width="13" height="11"></td>
|
|
</tr>
|
|
</table><br>
|
|
<b>Àìóíèöèÿ</b><br>
|
|
· <a href="/item/i1">Êîñòûëè</a> <br>
|
|
· <a href="/item/i2">Ýëèêñèðû è åäà</a> <br>
|
|
<b>Çàêëèíàíèÿ</b><br>
|
|
· <a href="/item/i3">Çàêëèíàíèÿ</a> <br>
|
|
<b>Îäåæäà</b><br>
|
|
· <a href="/item/i6">Òÿæåëàÿ áðîíÿ</a> <br>
|
|
· <a href="/item/i32">Ëåãêàÿ áðîíÿ</a> <br>
|
|
· <a href="/item/i7">Âåíêè</a> <br>
|
|
· <a href="/item/i8">Íàðó÷è</a> <br>
|
|
· <a href="/item/i9">Îáóâü</a> <br>
|
|
· <a href="/item/i10">Ïåð÷àòêè</a> <br>
|
|
· <a href="/item/i11">Ïëàùè</a> <br>
|
|
· <a href="/item/i12">Ïîíîæè</a> <br>
|
|
· <a href="/item/i13">Ïîÿñà</a> <br>
|
|
· <a href="/item/i14">Ðóáàõè</a> <br>
|
|
· <a href="/item/i15">Øëåìû</a> <br>
|
|
<b>Îðóæèå</b><br>
|
|
· <a href="/item/i16">¨ëêè</a> <br>
|
|
· <a href="/item/i17">Äóáèíû</a> <br>
|
|
· <a href="/item/i18">Êèíæàëû</a> <br>
|
|
· <a href="/item/i19">Ìå÷è</a> <br>
|
|
· <a href="/item/i20">Òîïîðû</a> <br>
|
|
· <a href="/item/i21">Ïîñîõè</a> <br>
|
|
· <a href="/item/i22">Öâåòû è Áóêåòû</a> <br>
|
|
<b>Ðàçíîå</b><br>
|
|
· <a href="/item/i23">Êîìïîíåíòû</a> <br>
|
|
· <a href="/item/i24">Ìàãè÷åñêèå ïðåäìåòû</a> <br>
|
|
· <a href="/item/i25">Ïîäàðêè</a> <br>
|
|
· <a href="/item/i26">Ðóíû</a> <br>
|
|
· <a href="/item/i27">Ïðî÷èå ïðåäìåòû</a> <br>
|
|
<b>Ùèòû</b><br>
|
|
· <a href="/item/i28">Ùèòû</a> <br>
|
|
<b>Þâåëèðíûå òîâàðû</b><br>
|
|
· <a href="/item/i29">Êîëüöà</a> <br>
|
|
· <a href="/item/i30">Îæåðåëüÿ</a> <br>
|
|
· <a href="/item/i31">Ñåðüãè</a> <br>
|
|
<br><br><br>
|
|
<!-- -->
|
|
|
|
</td>
|
|
<td valign="bottom" style="padding-bottom:50" align="right"><IMG height=236 src="https://img.new-combats.com/i/encicl/pictr_subject.jpg" width=128 border=0></td>
|
|
<td width="23" valign=top background="https://new-combats.com/forum_script/img/rightground.jpg"> </td>
|
|
</tr>
|
|
</table>
|
|
<? } ?>
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor=#000000>
|
|
<TR>
|
|
<TD colspan=3 width="100%" height=13 background="https://img.new-combats.com/i/encicl/ln_footer.jpg"></TD>
|
|
</TR>
|
|
<tr valign=top>
|
|
<td width="20%"><div align="center">
|
|
|
|
</div></td>
|
|
<td align=center valign=middle><div align="center" style="padding: 5px 0px; height: 32px; box-sizing: border-box;"><NOBR><span class="style6">Copyright © <?=date('Y')?> «www.new-combats.com»</span></NOBR><br><Br></div></td>
|
|
<td width="20%"></td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html>
|