2022-06-06 21:30:34 +00:00
|
|
|
|
<?php
|
|
|
|
|
if(!defined('GAME'))die();
|
|
|
|
|
|
|
|
|
|
if(isset($file) && $file[0]=='nakova2.php'){
|
|
|
|
|
if(isset($_GET['back'])) {
|
|
|
|
|
mysql_query('UPDATE `stats` SET `x` = "3",`y` = "43",`s` = "3" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|
|
|
|
header('location: main.php');
|
|
|
|
|
}
|
|
|
|
|
$test = mysql_fetch_array(mysql_query('SELECT * FROM `dungeon_actions` WHERE `dn` = "'.$u->info['dnow'].'" AND `vars` = "obj_nakova2_use" LIMIT 1'));
|
|
|
|
|
if(isset($test['id']) && $test['uid'] != $u->info['id']) {
|
|
|
|
|
mysql_query('UPDATE `stats` SET `x` = "3",`y` = "43",`s` = "3" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|
|
|
|
header('location: main.php');
|
|
|
|
|
die();
|
|
|
|
|
}elseif(!isset($test['id'])) {
|
|
|
|
|
if( $u->info['sex'] == 0 ) {
|
2023-01-10 16:29:32 +00:00
|
|
|
|
$d->sys_chat('<b>'.$u->info['login'].'</b> воспользовался "Наковальней", другим данный обьект стал недоступен');
|
2022-06-06 21:30:34 +00:00
|
|
|
|
}else{
|
2023-01-10 16:29:32 +00:00
|
|
|
|
$d->sys_chat('<b>'.$u->info['login'].'</b> воспользовалась "Наковальней", другим данный обьект стал недоступен');
|
2022-06-06 21:30:34 +00:00
|
|
|
|
}
|
|
|
|
|
mysql_query('INSERT INTO `dungeon_actions` (`dn`,`uid`,`time`,`vars`) VALUES (
|
|
|
|
|
"'.$u->info['dnow'].'","'.$u->info['id'].'","'.time().'","obj_nakova2_use"
|
|
|
|
|
)');
|
|
|
|
|
}
|
|
|
|
|
if(!isset($_GET['otdel'])){
|
|
|
|
|
$_GET['otdel'] = 20;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$sid = 700;
|
|
|
|
|
|
|
|
|
|
$error = '';
|
|
|
|
|
|
|
|
|
|
if( isset($_GET['buy']) ) {
|
|
|
|
|
if( $u->newAct($_GET['sd4']) == true ){
|
|
|
|
|
$re = $u->buyItem($sid,(int)$_GET['buy'],(int)$_GET['x'],'sudba='.$u->info['login'].'|frompisher='.$d->info['id2'].'|nosale=1');
|
|
|
|
|
}else{
|
2023-01-10 16:29:32 +00:00
|
|
|
|
$re = 'Вы уверены что хотите получить этот предмет?';
|
2022-06-06 21:30:34 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if($re!=''){ echo '<div align="right"><font color="red"><b>'.$re.'</b></font></div>'; } ?>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
function AddCount(name, txt){
|
2023-01-10 16:29:32 +00:00
|
|
|
|
document.getElementById("hint4").innerHTML = '<table border=0 width=100% cellspacing=1 cellpadding=0 bgcolor="#CCC3AA"><tr><td align=center><B>Купить неск. штук</td><td width=20 align=right valign=top style="cursor: pointer" onclick="closehint3();"><BIG><B>x</TD></tr><tr><td colspan=2>'+
|
2022-06-06 21:30:34 +00:00
|
|
|
|
'<form method=post><table border=0 width=100% cellspacing=0 cellpadding=0 bgcolor="#FFF6DD"><tr><INPUT TYPE="hidden" name="set" value="'+name+'"><td colspan=2 align=center><B><I>'+txt+'</td></tr><tr><td width=80% align=right>'+
|
2023-01-10 16:29:32 +00:00
|
|
|
|
'Количество (шт.) <INPUT TYPE="text" NAME="count" id=count size=4></td><td width=20%> <INPUT TYPE="submit" value=" »» ">'+
|
2022-06-06 21:30:34 +00:00
|
|
|
|
'</TD></TR></form></TABLE></td></tr></table>';
|
|
|
|
|
document.getElementById("hint4").style.visibility = 'visible';
|
|
|
|
|
document.getElementById("hint4").style.left = '100px';
|
|
|
|
|
document.getElementById("hint4").style.top = '100px';
|
|
|
|
|
document.getElementById("count").focus();
|
|
|
|
|
}
|
|
|
|
|
function closehint3() {
|
|
|
|
|
document.getElementById('hint4').style.visibility='hidden';
|
|
|
|
|
Hint3Name='';
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
.pH3 { COLOR: #8f0000; FONT-FAMILY: Arial; FONT-SIZE: 12pt; FONT-WEIGHT: bold; }
|
|
|
|
|
.class_ {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #C5C5C5;
|
|
|
|
|
cursor:pointer;
|
|
|
|
|
}
|
|
|
|
|
.class_st {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #659BA3;
|
|
|
|
|
cursor:pointer;
|
|
|
|
|
}
|
|
|
|
|
.class__ {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #FFFFFF;
|
|
|
|
|
cursor:pointer;
|
|
|
|
|
background-color: #659BA3;
|
|
|
|
|
}
|
|
|
|
|
.class__st {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #FFFFFF;
|
|
|
|
|
cursor:pointer;
|
|
|
|
|
background-color: #659BA3;
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
}
|
|
|
|
|
.class_old {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #919191;
|
|
|
|
|
cursor:pointer;
|
|
|
|
|
}
|
|
|
|
|
.class__old {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #FFFFFF;
|
|
|
|
|
cursor:pointer;
|
|
|
|
|
background-color: #838383;
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<TABLE width="100%" cellspacing="0" cellpadding="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<td valign="top">
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<div align="center" class="pH3">Наковальня</div><?php
|
2022-06-06 21:30:34 +00:00
|
|
|
|
echo '<b style="color:red">'.$error.'</b>';
|
|
|
|
|
?><br />
|
|
|
|
|
<TABLE width="100%" cellspacing="0" cellpadding="4">
|
|
|
|
|
<TR>
|
|
|
|
|
<TD valign="top" align="left">
|
|
|
|
|
<form name="F1" method="post">
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<!--Магазин-->
|
2022-06-06 21:30:34 +00:00
|
|
|
|
<div id="hint3" style="visibility:hidden"></div>
|
|
|
|
|
<table width="100%" cellspacing="0" cellpadding="0" bgcolor="#a5a5a5">
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="center" height="21">
|
|
|
|
|
<?php
|
2023-01-10 16:29:32 +00:00
|
|
|
|
/*названия разделов (сверху)*/
|
2022-06-06 21:30:34 +00:00
|
|
|
|
$otdels_small_array = array (
|
2023-01-10 16:29:32 +00:00
|
|
|
|
//1 => '<b>Отдел "Разное"</b>',
|
|
|
|
|
//2 => '<b>Отдел "Оружие: кастеты,ножи"</b>',
|
|
|
|
|
//3 => '<b>Отдел "Оружие: топоры"</b>',
|
|
|
|
|
//4 => '<b>Отдел "Оружие: дубины,булавы"</b>',
|
|
|
|
|
//5 => '<b>Отдел "Оружие: мечи"</b>',
|
|
|
|
|
//6 => '<b>Отдел "Оружие: магические посохи"</b>',
|
2022-06-06 21:30:34 +00:00
|
|
|
|
//
|
2023-01-10 16:29:32 +00:00
|
|
|
|
//7 => '<b>Отдел Ресурсы: пещерные </b>',
|
2022-06-06 21:30:34 +00:00
|
|
|
|
//
|
2023-01-10 16:29:32 +00:00
|
|
|
|
//8 => '<b>Отдел "Одежда: плащи и накидки"</b>',
|
|
|
|
|
//9 => '<b>Отдел "Одежда: сапоги"</b>',
|
|
|
|
|
//10 => '<b>Отдел "Одежда: перчатки"</b>',
|
|
|
|
|
//11 => '<b>Отдел "Одежда: рубахи"</b>',
|
|
|
|
|
//12 => '<b>Отдел "Одежда: легкая броня"</b>',
|
|
|
|
|
//13 => '<b>Отдел "Одежда: тяжелая броня"</b>',
|
|
|
|
|
//14 => '<b>Отдел "Одежда: шлемы"</b>',
|
|
|
|
|
//15 => '<b>Отдел "Одежда: наручи"</b>',
|
|
|
|
|
//16 => '<b>Отдел "Одежда: пояса"</b>',
|
|
|
|
|
//17 => '<b>Отдел "Одежда: поножи"</b>',
|
2022-06-06 21:30:34 +00:00
|
|
|
|
//
|
2023-01-10 16:29:32 +00:00
|
|
|
|
//18 => '<b>Отдел "Щиты"</b>',
|
2022-06-06 21:30:34 +00:00
|
|
|
|
//
|
2023-01-10 16:29:32 +00:00
|
|
|
|
19 => '<b>Отдел "Ювелирные товары: серьги"</b>',
|
|
|
|
|
20 => '<b>Отдел "Ювелирные товары: ожерелья"</b>'
|
|
|
|
|
//21 => '<b>Отдел "Ювелирные товары: кольца"</b>',
|
2022-06-06 21:30:34 +00:00
|
|
|
|
//
|
2023-01-10 16:29:32 +00:00
|
|
|
|
//22 => '<b>Отдел "Заклинания: нейтральные"</b>',
|
|
|
|
|
//23 => '<b>Отдел "Заклинания: боевые и защитные"</b>',
|
|
|
|
|
//24 => '<b>Отдел "Заклинания: пирожки"</b>',
|
|
|
|
|
//25 => '<b>Отдел "Заклинания: исцеляющие"</b>',
|
|
|
|
|
//26 => '<b>Отдел "Заклинания: манящие"</b>',
|
|
|
|
|
//27 => '<b>Отдел "Заклинания: стратегические"</b>',
|
|
|
|
|
//28 => '<b>Отдел "Заклинания: тактические"</b>',
|
|
|
|
|
//29 => '<b>Отдел "Заклинания: сервисные"</b>',
|
2022-06-06 21:30:34 +00:00
|
|
|
|
//
|
2023-01-10 16:29:32 +00:00
|
|
|
|
//30 => '<b>Отдел "Амуниция"</b>',
|
|
|
|
|
//31 => '<b>Отдел "Эликсиры"</b>',
|
|
|
|
|
//32 => '<b>Отдел "Подарки"</b>',
|
|
|
|
|
//33 => '<b>Отдел "Подарки: недобрые"</b>',
|
|
|
|
|
//34 => '<b>Отдел "Подарки: упаковка"</b>',
|
|
|
|
|
//35 => '<b>Отдел "Подарки: открытки"</b>',
|
|
|
|
|
//36 => '<b>Отдел "Подарки: фейерверки"</b>',
|
|
|
|
|
//37 => '<b>Отдел "Усиление оружия: заточки"</b>',
|
|
|
|
|
//38 => '<b>Отдел "Наставничество: образы"</b>'
|
2022-06-06 21:30:34 +00:00
|
|
|
|
|
|
|
|
|
);
|
|
|
|
|
if(isset($otdels_small_array[$_GET['otdel']])){
|
|
|
|
|
echo $otdels_small_array[$_GET['otdel']];
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<!--Рюкзак / Прилавок-->
|
2022-06-06 21:30:34 +00:00
|
|
|
|
<table width="100%" CELLSPACING="1" CELLPADDING="1" bgcolor="#a5a5a5"><?php
|
2023-01-10 16:29:32 +00:00
|
|
|
|
//Выводим вещи в магазине для покупки
|
2022-06-06 21:30:34 +00:00
|
|
|
|
$u->shopItems($sid);
|
|
|
|
|
?></TABLE>
|
|
|
|
|
</TD>
|
|
|
|
|
</TR>
|
|
|
|
|
</TABLE>
|
|
|
|
|
</FORM>
|
|
|
|
|
</TD>
|
|
|
|
|
</TR>
|
|
|
|
|
</TABLE>
|
|
|
|
|
</td>
|
|
|
|
|
<td width="280" valign="top">
|
|
|
|
|
<TABLE cellspacing="0" cellpadding="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<TD width="100%"> </TD>
|
|
|
|
|
<TD>
|
|
|
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
|
|
|
<tr align="right" valign="top">
|
|
|
|
|
<td>
|
|
|
|
|
<!-- -->
|
|
|
|
|
<? echo $goLis; ?>
|
|
|
|
|
<!-- -->
|
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<td nowrap="nowrap">
|
|
|
|
|
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DEDEDE">
|
|
|
|
|
<tr>
|
|
|
|
|
<td bgcolor="#D3D3D3"><img src="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onclick="location='main.php?back=1&rnd=<?=$code?>';">Вернуться назад</a></td>
|
2022-06-06 21:30:34 +00:00
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<div><br />
|
|
|
|
|
<div align="right">
|
|
|
|
|
<small>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
Масса: <?=$u->aves['now']?>/<?=$u->aves['max']?> <br />
|
|
|
|
|
У вас в наличии: <b style="color:#339900;"><?php echo round($u->info['money'],2); ?> кр.</b>
|
2022-06-06 21:30:34 +00:00
|
|
|
|
</small>
|
|
|
|
|
</div>
|
|
|
|
|
<br />
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<INPUT TYPE="button" value="Обновить" onclick="location = '<? echo $_SERVER['REQUEST_URI']; ?>';"><BR>
|
2022-06-06 21:30:34 +00:00
|
|
|
|
</div>
|
2023-01-10 16:29:32 +00:00
|
|
|
|
<div style="background-color:#A5A5A5;padding:1"><center><B>Отделы магазина</B></center></div>
|
2022-06-06 21:30:34 +00:00
|
|
|
|
<div style="line-height:17px;">
|
|
|
|
|
<?php
|
2023-01-10 16:29:32 +00:00
|
|
|
|
/*названия разделов (справа)*/
|
2022-06-06 21:30:34 +00:00
|
|
|
|
$otdels_array = array (
|
2023-01-10 16:29:32 +00:00
|
|
|
|
//2=>'Кастеты и ножи',
|
|
|
|
|
//3=>'Топоры',
|
|
|
|
|
//4=>'Дубины и булавы',
|
|
|
|
|
//5=>'Мечи',
|
|
|
|
|
//6=>'Магические посохи',
|
|
|
|
|
//7=>'Ресурсы',
|
|
|
|
|
//8=>'Плащи и накидки '
|
|
|
|
|
//9=>' Сапоги',
|
|
|
|
|
//10=>'Перчатки',
|
|
|
|
|
//11=>'Рубахи',
|
|
|
|
|
//12=>'Легкая броня',
|
|
|
|
|
//13=>'Тяжелая броня',
|
|
|
|
|
//14=>'Шлемы',
|
|
|
|
|
//15=>'Наручи',
|
|
|
|
|
//16=>'Пояса',
|
|
|
|
|
//17=>'Поножи',
|
|
|
|
|
//18=>'Щиты',
|
|
|
|
|
//19=>'Ювелирные товары: серьги',
|
|
|
|
|
20=>' Ожерелья',
|
|
|
|
|
21=>' Кольца'
|
2022-06-06 21:30:34 +00:00
|
|
|
|
|
2023-01-10 16:29:32 +00:00
|
|
|
|
//22=>'Заклинания',
|
|
|
|
|
//23=>'боевые и защитные',
|
|
|
|
|
//24=>'пирожки',
|
|
|
|
|
//25=>'исцеляющие',
|
|
|
|
|
//26=>'манящие',
|
|
|
|
|
//27=>'стратегические',
|
|
|
|
|
//28=>'тактические',
|
|
|
|
|
//29=>'сервисные',
|
2022-06-06 21:30:34 +00:00
|
|
|
|
//
|
2023-01-10 16:29:32 +00:00
|
|
|
|
//30=>'Амуниция',
|
|
|
|
|
//31=>'Эликсиры',
|
|
|
|
|
//32=>'Подарки',
|
|
|
|
|
//33=>'недобрые',
|
|
|
|
|
//34=>'упаковка',
|
|
|
|
|
//35=>'открытки',
|
|
|
|
|
//36=>'фейерверки',
|
|
|
|
|
//37=>'Усиление оружия: заточки'
|
2022-06-06 21:30:34 +00:00
|
|
|
|
);
|
2023-01-10 16:29:32 +00:00
|
|
|
|
//$otdels_array = array (1=>'Ювелирные товары: ожерелья',2=>' кольца');
|
2022-06-06 21:30:34 +00:00
|
|
|
|
|
|
|
|
|
foreach($otdels_array as $key=>$val){
|
|
|
|
|
if(isset($key) && isset($val)){
|
|
|
|
|
if(isset($_GET['otdel']) && $_GET['otdel']==$key) {
|
|
|
|
|
$color = 'C7C7C7';
|
|
|
|
|
} else {
|
|
|
|
|
$color = 'e2e0e0';
|
|
|
|
|
}
|
|
|
|
|
echo '<A HREF="?otdel='.$key.'"><DIV style="background-color: #'.$color.'">'.$otdels_array[$key].'</DIV></A>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<br>
|
|
|
|
|
<div id="textgo" style="visibility:hidden;"></div>
|
|
|
|
|
<?
|
|
|
|
|
}
|
|
|
|
|
?>
|