game/modules_data/location/monwar.php
2022-06-07 00:30:34 +03:00

206 lines
6.9 KiB
PHP

<?php
if(!defined('GAME'))
{
die();
}
if($u->room['file']=='monwar')
{
$shopProcent = 50;
if(date('d',time())==22)
{
//$shopProcent = 1;
}
if(!isset($_GET['otdel']))
{
$_GET['otdel'] = 21;
}
$sid = 11;
$error = '';
if(isset($_GET['buy']))
{
if($u->newAct($_GET['sd4'])==true)
{
$re = $u->buyItem($sid,(int)$_GET['buy'],(int)$_GET['x'],'|sudba=1');
}else{
$re = 'Âû óâåðåíû ÷òî õîòèòå êóïèòü ýòîò ïðåäìåò?';
}
}
if($re!=''){ echo '<div align="right"><font color="red"><b>'.$re.'</b></font></div>'; } ?>
<script type="text/javascript">
function AddCount(name, txt)
{
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>'+
'<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>'+
'Êîëè÷åñòâî (øò.) <INPUT TYPE="text" NAME="count" id=count size=4></td><td width=20%>&nbsp;<INPUT TYPE="submit" value=" »» ">'+
'</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"><br /><br /><div align="center" class="pH3">Àëòàðü Êðîâè</div><br />
<?php
echo '<b style="color:red">'.$error.'</b>';
?>
<br />
<TABLE width="100%" cellspacing="0" cellpadding="4">
<TR>
<form name="F1" method="post">
<TD valign="top" align="left">
<!--Ìàãàçèí-->
<table width="100%" cellspacing="0" cellpadding="0" bgcolor="#a5a5a5">
<div id="hint3" style="visibility:hidden"></div>
<tr>
<td align="center" height="21">
<?php
/*íàçâàíèÿ ðàçäåëîâ (ñâåðõó)*/
if(!isset($_GET['sale']) && !isset($_GET['gifts']) && isset($_GET['otdel']))
{
$otdels_small_array = array (1=>'<b>Îòäåë&nbsp;&quot;Îðóæèå: êàñòåòû,íîæè&quot;</b>',2=>'<b>Îòäåë&nbsp;&quot;Îðóæèå: òîïîðû&quot;</b>',3=>'<b>Îòäåë&nbsp;&quot;Îðóæèå: äóáèíû,áóëàâû&quot;</b>',4=>'<b>Îòäåë&nbsp;&quot;Îðóæèå: ìå÷è&quot;</b>',5=>'<b>Îòäåë&nbsp;&quot;Îðóæèå: ìàãè÷åñêèå ïîñîõè&quot;</b>',6=>'<b>Îòäåë&nbsp;&quot;Îäåæäà: ñàïîãè&quot;</b>',7=>'<b>Îòäåë&nbsp;&quot;Îäåæäà: ïåð÷àòêè&quot;</b>',8=>'<b>Îòäåë&nbsp;&quot;Îäåæäà: ðóáàõè&quot;</b>',9=>'<b>Îòäåë&nbsp;&quot;Îäåæäà: ëåãêàÿ áðîíÿ&quot;</b>',10=>'<b>Îòäåë&nbsp;&quot;Îäåæäà: òÿæåëàÿ áðîíÿ&quot;</b>',11=>'<b>Îòäåë&nbsp;&quot;Îäåæäà: øëåìû&quot;</b>',12=>'<b>Îòäåë&nbsp;&quot;Îäåæäà: íàðó÷è&quot;</b>',13=>'<b>Îòäåë&nbsp;&quot;Îäåæäà: ïîÿñà&quot;</b>',14=>'<b>Îòäåë&nbsp;&quot;Îäåæäà: ïîíîæè&quot;</b>',15=>'<b>Îòäåë&nbsp;&quot;Ùèòû&quot;</b>',16=>'<b>Îòäåë&nbsp;&quot;Þâåëèðíûå òîâàðû: ñåðüãè&quot;</b>',17=>'<b>Îòäåë&nbsp;&quot;Þâåëèðíûå òîâàðû: îæåðåëüÿ&quot;</b>',18=>'<b>Îòäåë&nbsp;&quot;Þâåëèðíûå òîâàðû: êîëüöà&quot;</b>',19=>'<b>Îòäåë&nbsp;&quot;Çàêëèíàíèÿ: íåéòðàëüíûå&quot;</b>',20=>'<b>Îòäåë&nbsp;&quot;Çàêëèíàíèÿ: áîåâûå è çàùèòíûå&quot;</b>',21=>'<b>Îòäåë&nbsp;&quot;Àìóíèöèÿ&quot;</b>',22=>'<b>Îòäåë&nbsp;&quot;Ýëèêñèðû&quot;</b>',23=>'<b>Îòäåë&nbsp;&quot;Ðåñóðñû&quot;</b>',24=>'<b>Îòäåë&nbsp;&quot;Ïîíîæè [10]&quot;</b>',25=>'<b>Îòäåë&nbsp;&quot;Ïîäàðêè: óïàêîâêà&quot;</b>',26=>'<b>Îòäåë&nbsp;&quot;Ïîäàðêè: îòêðûòêè&quot;</b>',27=>'<b>Îòäåë&nbsp;&quot;Ïîäàðêè: ôåéåðâåðêè&quot;</b>');
if(isset($otdels_small_array[$_GET['otdel']]))
{
echo $otdels_small_array[$_GET['otdel']];
}
}
?>
</tr>
<tr><td>
<!--Ðþêçàê / Ïðèëàâîê-->
<table width="100%" CELLSPACING="1" CELLPADDING="1" bgcolor="#a5a5a5">
<?php
//Âûâîäèì âåùè â ìàãàçèíå äëÿ ïîêóïêè
$u->shopItems($sid);
?>
</TABLE>
</TD></TR>
</TABLE>
</TD>
</FORM>
</TR>
</TABLE>
<td width="280" valign="top">
<TABLE cellspacing="0" cellpadding="0"><TD width="100%">&nbsp;</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>
<td bgcolor="#D3D3D3" nowrap><a href="javascript:void(0)" id="greyText" class="menutop" onclick="location='main.php?loc=1.180.0.406&rnd=<? echo $code; ?>';" title="<? thisInfRm('1.180.0.406',1); ?>">Àðåíà</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td></table>
</td></table>
<div><br />
<div align="right">
<small>
Ìàññà: <?=$u->aves['now']?>/<?=$u->aves['max']?> &nbsp;<br />
Ó âàñ â íàëè÷èè: <b style="color:#339900;"><?php echo round($u->info['money'],2); ?> êð.</b> &nbsp;
</small>
</div>
<br />
<INPUT TYPE="button" value="Îáíîâèòü" onclick="location = '<? echo $_SERVER['REQUEST_URI']; ?>';"><BR>
</div>
<div style="background-color:#A5A5A5;padding:1"><center><B>Îòäåëû ìîíóìåíòà</B></center></div>
<div style="line-height:17px;">
<?php
/*íàçâàíèÿ ðàçäåëîâ (ñïðàâà)*/
$otdels_array = array (19=>'Çàêëèíàíèÿ: íåéòðàëüíûå',20=>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;áîåâûå è çàùèòíûå',21=>'Àìóíèöèÿ',22=>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ýëèêñèðû',23=>'Ðåñóðñû',24=>'Ïîíîæè [10]');
$i=1;
while ($i!=-1)
{
if(isset($otdels_array[$i]))
{
if(isset($_GET['otdel']) && $_GET['otdel']==$i)
{
$color = 'C7C7C7';
} else {
$color = 'e2e0e0';
}
echo '
<A HREF="?otdel='.$i.'"><DIV style="background-color: #'.$color.'">
'.$otdels_array[$i].'
</A></DIV>
';
} else {
if($i > 30) {
$i = -2;
}
}
$i++;
}
?>
</div><br />
<hr />
<center><small>
<b style="color:red">(Âñå âåùè ñâÿçûâàþòñÿ <img src="https://img.new-combats.com/i/desteny.gif" width="16" height="18" /> Îáùåé Ñóäüáîé ñ òåì, êòî èõ êóïèë!)</b>
</small>
</center>
</td>
</table>
<br>
<div id="textgo" style="visibility:hidden;"></div>
<?
}
?>